/* 加载状态按钮 */
.button-loading {
    position: relative;
    cursor: not-allowed;
    opacity: 0.7;
}

.button-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* 订单确认弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-info-item {
    margin-bottom: 16px;
}

.modal-info-item:last-child {
    margin-bottom: 24px;
}

.modal-info-label {
    color: #666;
    margin-bottom: 4px;
    font-size: 14px;
}

.modal-info-value {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all;
}

.modal-url-container {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 12px;
    position: relative;
    margin: 8px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-url-text {
    flex: 1;
    padding-right: 16px;
    word-break: break-all;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.modal-copy-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
    color: #1890ff;
    background: white;
    border: 1px solid #1890ff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-copy-btn:hover {
    color: #40a9ff;
    border-color: #40a9ff;
    background: #f0f7ff;
}

.modal-copy-btn:active {
    color: #096dd9;
    border-color: #096dd9;
}

.modal-cancel-btn {
    width: 100%;
    height: 40px;
    background: #cf1322;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-confirm-btn:hover {
    background: #40a9ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.25);
}

.modal-confirm-btn:active {
    background: #096dd9;
}

/* 复制按钮状态 */
.modal-copy-btn.copied {
    color: #52c41a;
    border-color: #52c41a;
    background: #f6ffed;
    cursor: default;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式调整 */
@media screen and (max-width: 480px) {
    .modal-content {
        width: calc(100% - 32px);
        padding: 20px;
    }

    .modal-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .modal-info-item {
        margin-bottom: 12px;
    }

    .modal-url-container {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-url-text {
        padding-right: 0;
        margin-bottom: 8px;
    }

    .modal-copy-btn {
        align-self: flex-end;
    }
}

/* 按钮容器 */
.modal-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

/* 打开链接按钮 */
.modal-open-btn {
    width: 100%;
    padding: 6px 12px;
    font-size: 13px;
    color: #fff;
    background: #52c41a;
    border: 1px solid #52c41a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-open-btn:hover {
    background: #73d13d;
    border-color: #73d13d;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.25);
}

.modal-open-btn:active {
    background: #389e0d;
    border-color: #389e0d;
}

/* 调整原复制按钮样式 */
.modal-url-container {
    margin-bottom: 0; /* 移除底部间距 */
}

.subscription-status {
    margin-bottom: 20px;
}

.status-item {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.shop-name {
    font-size: 16px;
    font-weight: bold;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-active {
    background: #52c41a;
    color: white;
}

.status-inactive {
    background: #ff4d4f;
    color: white;
}

.status-info {
    font-size: 14px;
    color: #666;
}

.subscription-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 20px 0;
}

.links-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-group {
    background: #fafafa;
    border-radius: 8px;
    padding: 15px;
}

.group-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1890ff;
}

.group-description {
    color: #ff4d4f;
    font-size: 14px;
    margin: 8px 0;
}

.subscription-link {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.subscription-link:last-child {
    border-bottom: none;
}

.link-name {
    min-width: 120px;
    font-weight: 500;
}

.link-text {
    flex: 1;
    word-break: break-all;
    margin: 0 10px;
    color: #666;
}

.copy-button {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #4c6ef5, #4c6ef5);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 二维码按钮样式 */
.qrcode-button {
    background: linear-gradient(45deg, #52c41a, #52c41a) !important;
}

.qrcode-button:hover {
    background: linear-gradient(45deg, #73d13d, #73d13d) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 196, 26, 0.3);
}

.no-subscription {
    background: #fff1f0 !important;
    border: 1px solid #ffccc7;
}

.status-warning {
    background: #faad14;
    color: white;
}

.no-subscription-text {
    font-size: 16px;
    color: #cf1322;
    margin: 10px 0;
}

.purchase-button {
    padding: 8px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.purchase-button:hover {
    background: #096dd9;
}

.contact-info {
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.email-address {
    font-weight: 500;
    color: #1890ff;
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
}


.email-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.email-link:hover {
    color: #1890ff;
}
/* Banner样式 */
.banner {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    justify-content: center;
}

.banner-logo {
    height: 40px;
    width: auto;
}

.banner-title-text h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.banner-subtitle {
    font-size: 18px;
    color: #1890ff;
    margin: 0;
    padding: 10px 20px;
    background-color: #e6f7ff;
    border-radius: 20px;
    display: inline-block;
    border: 2px solid #1890ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media screen and (max-width: 480px) {
    .banner-subtitle {
        font-size: 16px;
        padding: 8px 16px;
    }
}

.modal-url-container {
    margin-bottom: 0; /* 移除底部间距 */
}

.subscription-status {
    margin-bottom: 20px;
}

.status-item {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.shop-name {
    font-size: 16px;
    font-weight: bold;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-active {
    background: #52c41a;
    color: white;
}

.status-inactive {
    background: #ff4d4f;
    color: white;
}

.status-info {
    font-size: 14px;
    color: #666;
}

.subscription-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 20px 0;
}

.links-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-group {
    background: #fafafa;
    border-radius: 8px;
    padding: 15px;
}

.group-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1890ff;
}

.subscription-link {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.subscription-link:last-child {
    border-bottom: none;
}

.link-name {
    min-width: 120px;
    font-weight: 500;
}

.link-text {
    flex: 1;
    word-break: break-all;
    margin: 0 10px;
    color: #666;
}

.no-subscription {
    background: #fff1f0 !important;
    border: 1px solid #ffccc7;
}

.status-warning {
    background: #faad14;
    color: white;
}

.no-subscription-text {
    font-size: 16px;
    color: #cf1322;
    margin: 10px 0;
}

.purchase-button {
    padding: 8px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.purchase-button:hover {
    background: #096dd9;
}

.contact-info {
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.email-address {
    font-weight: 500;
    color: #1890ff;
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
}

.email-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.email-link:hover {
    color: #1890ff;
}