/**
 * PC端VIP会员购买页面样式
 *
 * @package HiTemp
 * @since 1.0.0
 */

/* ===== 页面基础 ===== */
.vip-page {
    min-height: calc(100vh - var(--header-height, 95px));
    padding: 0;
}

/* ===== 页面头部 ===== */
.vip-hero {
    background: linear-gradient(135deg, #f66600 0%, #ff8534 50%, #ffa366 100%);
    padding: 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.vip-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hero-icon i {
    font-size: 28px;
    color: #fff;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
    line-height: 1.3;
}

/* ===== 会员卡片区域 ===== */
.vip-plans-section {
    padding: 80px 0;
    background: #f8fafc;
}

.vip-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 330px);
    gap: 40px;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.vip-plan-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 330px;
    height: auto;
    min-height: 568px;
    display: flex;
    flex-direction: column;
}

.lifetime-plan {
    height: auto;
    min-height: 568px;
}

.vip-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.vip-plan-card.featured-plan {
    border: 2px solid #f66600;
}

.vip-plan-card.featured-plan:hover {
    transform: translateY(-8px);
}

.vip-plan-card.current-plan {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

/* 会员标签 */
.plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 10;
}

.plan-badge.premium {
    background: linear-gradient(135deg, #f66600, #ff8534);
}

/* 卡片头部 */
.plan-header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.plan-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lifetime-plan .plan-icon {
    background: linear-gradient(135deg, #f66600, #ff8534);
}

.plan-icon i {
    font-size: 24px;
    color: #fff;
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    line-height: 1.2;
}

.plan-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* 价格区域 */
.plan-price {
    text-align: center;
    margin-bottom: 18px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fff5f0, #ffe8e0);
    border-radius: 12px;
    padding: 20px;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 4px;
}

.currency {
    font-size: 18px;
    font-weight: 600;
    color: #f66600;
}

.amount {
    font-size: 42px;
    font-weight: 800;
    color: #ef4444;
    line-height: 1;
}

.price-period {
    font-size: 13px;
    color: #ff8534;
    font-weight: 500;
}

/* 折扣区域 */
.plan-discount {
    text-align: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.discount-badge.premium {
    background: linear-gradient(135deg, #ffe0b2, #ffccbc);
    color: #bf360c;
}

.discount-badge i {
    font-size: 9px;
}

.discount-desc {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.discount-desc strong {
    color: #f59e0b;
    font-weight: 700;
}

.lifetime-plan .discount-desc strong {
    color: #f66600;
}

/* 功能列表 */
.plan-features {
    margin-bottom: 16px;
    flex: 1;
    min-height: 0;
}

.lifetime-plan .plan-features {
    overflow: visible;
    flex: none;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.features-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.5;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: #10b981;
    font-size: 14px;
    flex-shrink: 0;
}

.features-list li span {
    flex: 0 1 auto;
}

/* 购买按钮 */
.plan-action {
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 4px;
}

.btn-plan {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-plan i {
    font-size: 13px;
}

.btn-plan.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-plan.btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-plan.btn-premium {
    background: linear-gradient(135deg, #f66600, #ff8534);
    box-shadow: 0 4px 15px rgba(246, 102, 0, 0.4);
}

.btn-plan.btn-premium:hover {
    background: linear-gradient(135deg, #ff8534, #ffa366);
    box-shadow: 0 6px 20px rgba(246, 102, 0, 0.5);
}

.btn-plan.btn-current {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-plan:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== 功能对比区域 ===== */
.vip-comparison-section {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 50px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
    background: linear-gradient(135deg, #f66600, #ff8534);
    color: #fff;
}

.comparison-table th {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.comparison-table th:first-child {
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
}

.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-table td.feature-name {
    text-align: left;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
}

.comparison-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
}

/* 普通用户列样式 - 灰色 */
.comparison-table tbody tr td:nth-child(2) .comparison-badge {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.comparison-table tbody tr td:nth-child(2) .comparison-badge i {
    color: #6b7280;
}

/* 包年会员列样式 - 绿色 */
.comparison-table tbody tr td:nth-child(3) .comparison-badge.yes {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.comparison-table tbody tr td:nth-child(3) .comparison-badge.yes i {
    color: #059669;
}

/* 终身会员列样式 - 橙红色 */
.comparison-table tbody tr td:nth-child(4) .comparison-badge.yes,
.comparison-table tbody tr td:nth-child(4) .comparison-badge.premium {
    background: rgba(246, 102, 0, 0.1);
    color: #f66600;
}

.comparison-table tbody tr td:nth-child(4) .comparison-badge.yes i,
.comparison-table tbody tr td:nth-child(4) .comparison-badge.premium i {
    color: #f66600;
}

.comparison-badge.yes {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.comparison-badge.yes.premium {
    background: rgba(246, 102, 0, 0.1);
    color: #f66600;
}

.comparison-badge.no {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.comparison-badge i {
    font-size: 18px;
    line-height: 1;
}

.comparison-table td {
    font-size: 14px;
    line-height: 1.5;
}

/* ===== 常见问题 ===== */
.vip-faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: #64748b;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===== Toast 提示 ===== */
.vip-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 100000;
    padding: 16px 28px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90%;
}

.vip-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.vip-toast i {
    font-size: 22px;
    flex-shrink: 0;
}

.vip-toast-success {
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.vip-toast-error {
    border: 1px solid #fecaca;
    color: #dc2626;
}

.vip-toast-info {
    border: 1px solid #e2e8f0;
    color: #475569;
}

/* ===== VIP购买弹窗 ===== */
.vip-purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.vip-purchase-modal.show {
    opacity: 1;
    visibility: visible;
}

.vip-purchase-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.vip-purchase-modal-content {
    position: relative;
    width: 438px;
    max-width: 95%;
    max-height: 540px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    flex-direction: column;
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vip-purchase-modal.show .vip-purchase-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.85) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* 弹窗头部 */
.vip-purchase-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    background: linear-gradient(135deg, #fff7ed 0%, #fff 50%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.vip-purchase-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f66600, #ff8534, #f59e0b);
    opacity: 0.8;
}

.vip-purchase-modal-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(246, 102, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.vip-purchase-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.vip-purchase-modal-header h3::before {
    content: '';
    width: 3px;
    height: 18px;
    background: linear-gradient(135deg, #f66600, #ff8534);
    border-radius: 2px;
}

.vip-purchase-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.vip-purchase-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg) scale(1.05);
}

.vip-purchase-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* 弹窗内容 */
.vip-purchase-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 20px;
    background: linear-gradient(to bottom, #fff 0%, #fafbfc 100%);
    min-height: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vip-purchase-modal-body::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* 弹窗打开时body滚动锁定 */
body.modal-open {
    overflow: hidden;
    padding-right: 6px;
}

/* 会员图标脉冲动画 */
.vip-purchase-plan-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }
}

.vip-purchase-plan-icon.lifetime {
    animation: iconPulseLifetime 2s ease-in-out infinite;
}

@keyframes iconPulseLifetime {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(246, 102, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(246, 102, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }
}

/* 会员信息 */
.vip-purchase-plan-info {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
    border-radius: 12px;
    border: 1px solid rgba(246, 102, 0, 0.1);
    box-shadow: 0 2px 12px rgba(246, 102, 0, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.vip-purchase-plan-info:hover {
    box-shadow: 0 6px 30px rgba(246, 102, 0, 0.12);
    transform: translateY(-2px);
}

.vip-purchase-plan-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
}

.vip-purchase-plan-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.vip-purchase-plan-icon.lifetime {
    background: linear-gradient(135deg, #f66600 0%, #ff8534 50%, #ffa366 100%);
    box-shadow: 0 8px 24px rgba(246, 102, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.vip-purchase-plan-icon i {
    font-size: 26px;
    color: #fff;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.vip-purchase-plan-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vip-purchase-plan-name {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 5px;
    background: linear-gradient(135deg, #f66600, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.vip-purchase-plan-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 价格信息 */
.vip-purchase-price-section {
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vip-purchase-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    transition: all 0.2s ease;
}

.vip-purchase-price-row:first-child {
    padding-top: 0;
}

.vip-purchase-price-row:last-child {
    padding-bottom: 0;
}

.vip-purchase-price-row.total-row {
    margin-top: 8px;
    padding-top: 10px;
    padding-bottom: 0;
    border-top: 1px solid #e2e8f0;
}

.vip-purchase-price-label {
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-purchase-price-label i {
    font-size: 12px;
    color: #94a3b8;
    width: 16px;
    text-align: center;
}

.vip-purchase-price-row.total-row .vip-purchase-price-label i {
    color: #f66600;
}

.vip-purchase-price-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.vip-purchase-price-value.total {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #f66600, #ff8534);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.8px;
}

.vip-purchase-price-value.total::before {
    content: '¥';
    font-size: 18px;
    font-weight: 700;
    color: #f66600;
    -webkit-text-fill-color: #f66600;
}

/* 购买提示 */
.vip-purchase-notice {
    padding: 12px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.vip-notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.vip-notice-content i {
    color: #3b82f6;
    font-size: 16px;
    flex-shrink: 0;
}

.vip-notice-content span {
    flex: 1;
}

/* 弹窗底部 */
.vip-purchase-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(to bottom, #f8fafc 0%, #fff 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.vip-purchase-cancel-btn,
.vip-purchase-confirm-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.vip-purchase-cancel-btn {
    background: #fff;
    color: #64748b;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vip-purchase-cancel-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.vip-purchase-cancel-btn:hover::before {
    width: 300px;
    height: 300px;
}

.vip-purchase-cancel-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vip-purchase-cancel-btn:active {
    transform: translateY(0);
}

.vip-purchase-confirm-btn {
    background: linear-gradient(135deg, #f66600 0%, #ff8534 50%, #ffa366 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(246, 102, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
}

.vip-purchase-confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.vip-purchase-confirm-btn:hover::before {
    left: 100%;
}

.vip-purchase-confirm-btn:hover {
    background: linear-gradient(135deg, #e55a00 0%, #f66600 50%, #ff8534 100%);
    box-shadow: 0 8px 32px rgba(246, 102, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transform: translateY(-2px) scale(1.02);
}

.vip-purchase-confirm-btn:active {
    transform: translateY(0) scale(0.98);
}

.vip-purchase-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(246, 102, 0, 0.2);
}

.vip-purchase-confirm-btn.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #f66600, #ff8534);
}

.vip-purchase-confirm-btn.loading i {
    animation: spin 1s linear infinite;
}

.vip-purchase-confirm-btn i {
    font-size: 14px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 弹窗内容动画延迟 */
.vip-purchase-modal.show .vip-purchase-plan-info {
    animation: fadeInUp 0.5s ease 0.1s both;
}

.vip-purchase-modal.show .vip-purchase-price-section {
    animation: fadeInUp 0.5s ease 0.2s both;
}

.vip-purchase-modal.show .vip-purchase-benefits {
    animation: fadeInUp 0.5s ease 0.3s both;
}

.vip-purchase-modal.show .vip-purchase-modal-footer {
    animation: fadeInUp 0.5s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 价格数字动画 */
.vip-purchase-price-value {
    transition: all 0.3s ease;
}

.vip-purchase-modal.show .vip-purchase-price-value {
    animation: pricePulse 0.6s ease 0.3s both;
}

@keyframes pricePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 权益列表项动画 */
.vip-benefits-list li {
    opacity: 0;
    animation: fadeInLeft 0.4s ease forwards;
}

.vip-purchase-modal.show .vip-benefits-list li:nth-child(1) {
    animation-delay: 0.35s;
}

.vip-purchase-modal.show .vip-benefits-list li:nth-child(2) {
    animation-delay: 0.4s;
}

.vip-purchase-modal.show .vip-benefits-list li:nth-child(3) {
    animation-delay: 0.45s;
}

.vip-purchase-modal.show .vip-benefits-list li:nth-child(4) {
    animation-delay: 0.5s;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .vip-plans-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-content: center;
    }
    
    .vip-plan-card {
        width: 100%;
        max-width: 330px;
        height: auto;
        min-height: 568px;
    }
    
    .vip-plan-card.featured-plan {
        transform: none;
    }
    
    .vip-plan-card.featured-plan:hover {
        transform: translateY(-8px);
    }
    
    .comparison-table-wrapper {
        overflow-x: scroll;
    }
    
    .faq-list {
        grid-template-columns: 1fr;
    }
    
    .faq-column {
        gap: 12px;
    }
    
    .vip-purchase-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }
    
    .vip-purchase-modal-header {
        padding: 18px 20px;
    }
    
    .vip-purchase-modal-header h3 {
        font-size: 18px;
    }
    
    .vip-purchase-modal-body {
        padding: 20px;
    }
    
    .vip-purchase-plan-info {
        padding: 16px;
        gap: 14px;
    }
    
    .vip-purchase-plan-icon {
        width: 56px;
        height: 56px;
    }
    
    .vip-purchase-plan-icon i {
        font-size: 24px;
    }
    
    .vip-purchase-plan-name {
        font-size: 18px;
    }
    
    .vip-purchase-plan-desc {
        font-size: 13px;
    }
    
    .vip-purchase-price-section {
        padding: 16px;
    }
    
    .vip-purchase-price-value.total {
        font-size: 28px;
    }
    
    .vip-purchase-price-value.total::before {
        font-size: 18px;
    }
    
    .vip-purchase-benefits {
        padding: 16px;
    }
    
    .vip-benefits-list li {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .vip-purchase-modal-footer {
        flex-direction: column;
        padding: 18px 20px;
        gap: 10px;
    }
    
    .vip-purchase-cancel-btn,
    .vip-purchase-confirm-btn {
        width: 100%;
        padding: 13px 20px;
    }
}

/* ===== 余额不足弹窗 ===== */
.balance-insufficient-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.balance-insufficient-modal.show {
    opacity: 1;
    visibility: visible;
}

.balance-insufficient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.balance-insufficient-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.balance-insufficient-modal.show .balance-insufficient-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.balance-insufficient-header {
    padding: 24px 24px 0;
    text-align: center;
    position: relative;
}

.balance-insufficient-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.balance-insufficient-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.balance-insufficient-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.balance-insufficient-close:hover {
    background: #e2e8f0;
    color: #475569;
}

.balance-insufficient-body {
    padding: 20px 24px;
}

.balance-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.balance-info-item:last-of-type {
    border-bottom: none;
}

.balance-label {
    font-size: 14px;
    color: #64748b;
}

.balance-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.balance-current {
    color: #64748b;
}

.balance-required {
    color: #f66600;
}

.balance-shortage {
    background: #fef3c7;
    margin: 12px -24px 0;
    padding: 12px 24px !important;
    border-bottom: none !important;
}

.balance-shortage-value {
    color: #dc2626;
    font-size: 18px;
}

.balance-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
}

.balance-tip i {
    color: #3b82f6;
}

.balance-insufficient-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.btn-balance-cancel,
.btn-balance-recharge {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-balance-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-balance-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-balance-recharge {
    background: linear-gradient(135deg, #f66600, #ff8534);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(246, 102, 0, 0.3);
}

.btn-balance-recharge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(246, 102, 0, 0.4);
    color: #fff;
    background: linear-gradient(135deg, #e55a00, #f66600);
}
