/* ===== VIP 会员弹窗样式 ===== */
.vip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vip-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vip-wrapper {
    position: relative;
    display: flex;
    max-width: 95vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-modal {
    background: #fff;
    border-radius: 16px;
    width: 800px;
    max-width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
}

.vip-overlay.active .vip-wrapper {
    transform: scale(1);
}

/* 关闭按钮 */
.vip-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s;
    z-index: 10;
    color: #666;
    font-size: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.vip-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

/* 左侧：会员权益 */
.vip-benefits {
    width: 200px;
    background: #f5f5f5;
    margin: 32px 24px;
    padding: 15px;
    border-radius: 15px;
    font-size: 14px;
    color: #606266;
    flex-shrink: 0;
}

.vip-benefits-header {
    margin-bottom: 24px;
}

.vip-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.vip-title svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.vip-title h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.vip-benefits-header p {
    font-size: 13px;
    color: #606266;
    margin: 0;
    padding-left: 44px;
}

.vip-benefits-section {
    margin-bottom: 20px;
}

.vip-benefits-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #606266;
}

.vip-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vip-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #606266;
}

.vip-benefit-list li i {
    font-size: 14px;
    color: #4ade80;
    flex-shrink: 0;
    margin-top: 2px;
}

.vip-benefit-list li strong {
    color: var(--theme-color);
    font-weight: 600;
}

.vip-compare-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    margin-top: 16px;
    transition: color 0.2s;
}

.vip-compare-link:hover {
    color: #fff;
}

.vip-compare-link i {
    font-size: 12px;
    transition: transform 0.2s;
}

.vip-compare-link:hover i {
    transform: translateX(4px);
}

/* 右侧：套餐选择 */
.vip-plans {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}


/* 套餐卡片 */
.vip-plan-cards {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.vip-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.vip-card:hover {
    border-color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.vip-card.active {
    border-color: var(--theme-color);
    background: var(--theme-background-color);
}

.card-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.vip-card-hot .card-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
}

.card-header h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.card-price {
    margin-bottom: 8px;
}

.card-price .currency {
    font-size: 18px;
    color: #333;
    vertical-align: super;
}

.card-price .amount {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.card-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 8px;
}

.card-highlight {
    display: inline-block;
    background: var(--theme-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 支付方式 */
.vip-payment {
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.payment-methods {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    border: 2px solid #e5e7eb;
    position: relative;
}

.payment-method:hover {
    border-color: var(--theme-color);
    background: #f8fafc;
}

.payment-method.active {
    border-color: var(--theme-color);
    background: #eff6ff;
}

.payment-method input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-dot {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.payment-method.active .radio-dot {
    border-color: var(--theme-color);
}

.payment-method.active .radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--theme-color);
    border-radius: 50%;
}

.payment-method svg {
    flex-shrink: 0;
}

.payment-method span {
    font-size: 14px;
    color: #333;
}

/* 二维码区域 */
.payment-qr {
    display: flex;
    align-items: center;
    gap: 24px;
}

.qr-code {
    width: 160px;
    height: 160px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* QR 码加载动画 */
.qr-code {
    position: relative;
}
.qr-code img.qr-loading {
    filter: blur(3px) brightness(1.9);
}
.qr-code::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    margin-left: -16px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--theme-color);
    border-radius: 50%;
    animation: qr-spin 0.7s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.qr-code:has(img.qr-loading)::after {
    opacity: 1;
}

@keyframes qr-spin {
    to { transform: rotate(360deg); }
}

.qr-info {
    flex: 1;
}

.qr-price {
    margin-bottom: 12px;
}

.qr-price .label {
    font-size: 14px;
    color: #666;
}

.qr-price .amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--theme-color);
    margin-left: 4px;
}

.qr-tip p {
    font-size: 14px;
    color: #333;
    margin: 8px 0;
}

.qr-agreement {
    font-size: 12px;
    color: #999;
}

.qr-refund {
    font-size: 12px;
    color: #ff6b6b;
}

/* 响应式 */
@media screen and (max-width: 1024px) {
    .vip-modal {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
    }

    .vip-benefits {
        width: 100%;
        padding: 24px;
    }

    .vip-plans {
        padding: 24px;
    }

    .vip-plan-cards {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .vip-overlay {
        padding: 12px;
        box-sizing: border-box;
    }

    .vip-wrapper {
        width: 100%;
    }

    .vip-modal {
        border-radius: 12px;
    }

    .vip-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 18px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .vip-benefits {
        display: none;
        padding: 20px;
    }

    .vip-benefits-header p {
        padding-left: 0;
        margin-top: 8px;
    }

    .vip-plans {
        padding: 20px;
    }

    .payment-qr {
        flex-direction: column;
        align-items: stretch;
    }

    .qr-code {
        width: 100%;
        height: 200px;
    }
}

/* ===== 支付状态提示 ===== */
.pay-status-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.pay-status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 加载中 */
.qr-info.pay-loading .pay-status-hint {
    display: flex !important;
    background: #eff6ff;
    color: var(--theme-color);
}
.qr-info.pay-loading .pay-status-icon {
    border: 2px solid var(--theme-color);
    border-top-color: transparent;
    animation: pay-spin 0.8s linear infinite;
}

/* 等待支付 */
.qr-info.pay-waiting .pay-status-hint {
    display: flex !important;
    background: #fef3c7;
    color: #d97706;
}
.qr-info.pay-waiting .pay-status-icon {
    background: #f59e0b;
}

/* 支付成功 */
.qr-info.pay-success .pay-status-hint {
    display: flex !important;
    background: #ecfdf5;
    color: #059669;
}
.qr-info.pay-success .pay-status-icon {
    background: #10b981;
}
.qr-info.pay-success .qr-tip p:first-child {
    color: #059669 !important;
}

/* 支付失败 */
.qr-info.pay-error .pay-status-hint {
    display: flex !important;
    background: #fef2f2;
    color: #dc2626;
}
.qr-info.pay-error .pay-status-icon {
    background: #ef4444;
}

@keyframes pay-spin {
    to { transform: rotate(360deg); }
}

/* ===== 移动端支付按钮 ===== */
.mobile-pay-btn-wrap {
    margin-top: 12px;
    text-align: center;
}
.mobile-pay-btn {
    display: inline-block;
    width: 80%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.mobile-pay-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}
.mobile-pay-btn:active {
    transform: translateY(0);
}

/* 二维码加载中：禁止交互并显示等待光标 */
.vip-modal.vip-busy .vip-card,
.vip-modal.vip-busy .payment-method {
    pointer-events: none;
    opacity: 0.5;
    cursor: wait;
}
