/* 核心布局样式 */
.page-container {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 130px 5% 60px;
    max-width: 1400px;
}

/* VIP头部区域 */
.vip-hero {
    padding: 30px 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--tertiary-dark), var(--secondary-dark));
    border-radius: 12px;
    margin: 0 0 30px;
}

.vip-hero-content h1 {
    background: linear-gradient(to right, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vip-hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.vip-badge-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.badge-arrow {
    color: var(--primary-accent);
    font-size: 1.2rem;
}

/* VIP套餐卡片区域 */
.vip-plans {
    padding: 0 0 40px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.plan-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column; /* 纵向布局，确保按钮在底部 */
}

.light-theme .plan-card {
    border-color: rgba(0,0,0,0.05);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.plan-card.popular {
    border: 2px solid var(--vip-popular);
    transform: scale(1.02);
    z-index: 2;
}

.plan-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff7700;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 15px;
    border-radius: 20px;
}

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

.plan-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
}

/* 修复VIP图标位置（确保在标题右侧，不偏移） */
.plan-header .vip-level {
    height: 24px;
    padding: 0 5px;
    font-size: 0.8rem;
}

.plan-price {
    margin-bottom: 25px;
    text-align: center;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-price .unit {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
    flex-grow: 1; /* 占满剩余空间，将按钮推到底部 */
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.text-success {
    color: var(--vip-success);
}

.text-disable {
    color: var(--vip-disable);
}

/* 修复推荐按钮样式（确保显示正常，位置固定在底部） */
.plan-button {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    color: #fff !important; /* 强制白色文字，避免被全局样式覆盖 */
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    margin-top: auto; /* 自动margin-top，将按钮固定在底部 */
}

.plan-button:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 208, 255, 0.3);
    background: linear-gradient(45deg, var(--secondary-accent), var(--primary-accent));
}

.light-theme .plan-button {
    color: #fff !important;
}

.light-theme .plan-button:hover {
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

/* 权益对比表格 */
.vip-benefits {
    padding: 40px 5%;
    background: var(--tertiary-dark);
    border-radius: 12px;
    margin: 0 0 30px;
}

.vip-benefits h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    margin-top: 0;
}

.benefits-table {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.benefits-header, .benefits-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.light-theme .benefits-header, .light-theme .benefits-row {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.benefit-item, .benefit-level {
    padding: 15px;
    text-align: center;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.benefit-item {
    text-align: left;
    font-weight: 500;
    color: var(--primary-accent);
}

.benefit-level {
    color: var(--text-primary);
}

.benefits-row:last-child {
    border-bottom: none;
}

/* 常见问题 */

.vip-faq h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-top: 20px;
    color: var(--text-primary);
    margin-top: 0;
}

.faq-list {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.light-theme .faq-item {
    border-color: rgba(0,0,0,0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--card-bg);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255,255,255,0.03);
}

.light-theme .faq-question:hover {
    background: rgba(0,0,0,0.02);
}

.faq-question span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--primary-accent);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--card-bg);
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    padding: 20px 0;
}

/* 展开FAQ的样式 */
.faq-item.active .faq-answer {
    padding: 0 20px;
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* VIP等级样式（修复位置和显示） */
.vip-level {
    padding: 0 5px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    box-sizing: border-box;
}

/* VIP级别颜色渐变（0-9级） */
.vip-level-0 { background-color: #999; }
.vip-level-1 { background-color: #4299e1; }
.vip-level-2 { background-color: #38b2ac; }
.vip-level-3 { background-color: #48bb78; }
.vip-level-4 { background-color: #f6ad55; }
.vip-level-5 { background-color: #ed8936; }
.vip-level-6 { background: linear-gradient(45deg, #9f7aea, #667eea); }
.vip-level-7 { background: linear-gradient(45deg, #ed64a6, #9f7aea); }
.vip-level-8 { background: linear-gradient(45deg, #ffc107, #ff9800); }
.vip-level-9 { background: linear-gradient(45deg, #e53e3e, #ed8936); }

/* 响应式适配 */
@media (max-width: 992px) {
    .benefits-header, .benefits-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .benefit-item {
        grid-column: 1 / -1;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 20px;
        margin-bottom: 10px;
    }

    .light-theme .benefit-item {
        border-bottom-color: rgba(0,0,0,0.05);
    }
}

@media (max-width: 768px) {
    .vip-hero {
        padding: 30px 5%;
        margin: 0 0 20px;
    }
    
    .vip-hero-content h1 {
        font-size: 1.4rem;
    }
    
    .vip-hero-content p {
        font-size: 1rem;
    }
    
    .plan-card.popular {
        transform: scale(1);
    }
    
    .vip-benefits h2, .vip-faq h2 {
        font-size: 1.5rem;
    }
    
    .plan-price .price {
        font-size: 2rem;
    }

    .plan-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .vip-badge-preview {
        flex-direction: column;
    }
    
    .benefits-header, .benefits-row {
        grid-template-columns: 1fr;
    }
    
    .plan-features li {
        font-size: 0.9rem;
    }
    
    .faq-question span {
        font-size: 0.9rem;
    }
}

/* 关键：头部容器相对定位，作为图标的定位参考 */
.plan-header {
    position: relative; /* 相对定位容器 */
    text-align: center; /* 标题文字居中 */
    padding-left: 30px; /* 给图标留出位置，避免文字被遮挡 */
    margin-bottom: 25px;
    min-height: 30px; /* 确保容器高度足够容纳图标 */
}

.plan-header h3 {
    margin: 0;
    line-height: 30px;
    display: block;
    text-align: center;
    width: 100%;
}

/* VIP图标绝对定位到标题左侧 */
.plan-header .vip-level {
    position: absolute; /* 绝对定位 */
    left: 50%; /* 先定位到容器中间 */
    top: 50%; /* 垂直居中 */
    transform: translate(-300%, -50%); /* 向左偏移到标题左侧 */
    height: 26px; /* 固定高度 */
    white-space: nowrap; /* 防止文字换行 */
}



/* 订阅按钮缩小且不占满整行 */
.plan-button {
    width: 80% !important; /* 缩小为卡片宽度的80% */
    margin: 0 auto !important; /* 水平居中 */
    border-radius: 12px !important; /* 圆角更圆润 */
    padding: 11px 0 !important; /* 稍微减小高度 */
    font-size: 0.95rem !important;
    box-shadow: 0 3px 12px rgba(0, 102, 204, 0.15) !important;
    text-align:center;
    display:inline-block;
    color: #1a1a1a !important; /* 深灰色文字，适配金色/银色卡片 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2) !important; /* 轻微阴影增强可读性 */
}

/* 推荐卡片按钮文字同步深色，保持风格统一 */
.plan-card.popular .plan-button {
    color: #1a1a1a !important;
}

/* 按钮悬浮效果增强 */
.plan-button:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 5px 18px rgba(0, 208, 255, 0.25) !important;
}

/* 推荐套餐按钮特殊样式 */
.plan-card.popular .plan-button {
    background: linear-gradient(45deg, var(--vip-popular), #ffcc00) !important;
    box-shadow: 0 3px 12px rgba(255,204,0,0.25) !important;
}

/* 卡片整体样式优化 */
.plan-card {
    border-radius: 16px !important;
    padding: 32px 22px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.plan-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.12) !important;
}

/* 价格区域优化 */
.plan-price {
    background: rgba(255,255,255,0.03) !important;
    border-radius: 10px !important;
    padding: 12px 0 !important;
    margin-bottom: 28px !important;
}

/* 权益列表优化 */
.plan-features li {
    margin-bottom: 14px !important;
    gap: 10px !important;
}

.plan-features li i {
    font-size: 1.1rem !important;
}



/* VIP卡片背景色梯度增强（等级越高越鲜明） */
.plan-card {
    transition: all 0.3s ease;
}

/* 等级1-2：浅色调基础渐变 */
.plan-card:nth-child(1) {
    background: linear-gradient(180deg, rgba(66, 153, 225, 0.03), var(--card-bg));
}
.plan-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(56, 178, 172, 0.05), var(--card-bg));
}

/* 等级3-5：中等饱和度渐变 */
.plan-card:nth-child(3) {
    background: linear-gradient(180deg, rgba(72, 187, 120, 0.07), var(--card-bg));
}
.plan-card:nth-child(4) {
    background: linear-gradient(180deg, rgba(246, 173, 85, 0.08), var(--card-bg));
}
.plan-card:nth-child(5) {
    background: linear-gradient(180deg, rgba(237, 137, 54, 0.09), var(--card-bg));
}

/* 等级6-9：高饱和度渐变（最抢眼） */
.plan-card:nth-child(6) {
    background: linear-gradient(180deg, rgba(159, 122, 234, 0.12), var(--card-bg));
}
.plan-card:nth-child(7) {
    background: linear-gradient(180deg, rgba(237, 100, 166, 0.13), var(--card-bg));
}
.plan-card:nth-child(8) {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.14), var(--card-bg));
}
.plan-card:nth-child(9) {
    background: linear-gradient(180deg, rgba(229, 62, 62, 0.15), var(--card-bg));
}

/* 推荐卡片额外增强 */
.plan-card.popular {
    background: linear-gradient(180deg, rgba(255, 204, 0, 0.15), var(--card-bg)) !important;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.1) !important;
}

/* VIP头部区域（vip-hero）样式增强 */
.vip-hero {
    background: linear-gradient(135deg, 
        var(--tertiary-dark) 0%, 
        var(--secondary-dark) 50%, 
        rgba(66, 153, 225, 0.15) 100%
    ) !important;
    position: relative;
    overflow: hidden;
}

/* 头部装饰元素 */
.vip-hero::before, .vip-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.vip-hero::before {
    width: 400px;
    height: 400px;
    background: var(--primary-accent);
    top: -200px;
    right: -100px;
}

.vip-hero::after {
    width: 300px;
    height: 300px;
    background: var(--secondary-accent);
    bottom: -150px;
    left: -100px;
}

/* 头部内容层（避免被装饰元素遮挡） */
.vip-hero-content {
    position: relative;
    z-index: 2;
}



/* VIP等级1-9 专属渐变背景（等级越高色彩越浓郁） */
/* 等级1：浅蓝色系 */
.plan-card:nth-child(1) {
    background: linear-gradient(180deg, rgba(66, 153, 225, 0.08), var(--card-bg)) !important;
    border: 1px solid rgba(66, 153, 225, 0.15) !important;
}

/* VIP2等级卡片背景增强（更醒目） */
.plan-card:nth-child(2) {
    /* 加深青色浓度+添加光晕，视觉更突出 */
    background: linear-gradient(135deg, 
        rgba(56, 178, 172, 0.25),  /* 增强背景色浓度 */
        rgba(56, 178, 172, 0.05), 
        var(--card-bg)
    ) !important;
    /* 加粗边框+提高透明度，强化轮廓 */
    border: 2px solid rgba(56, 178, 172, 0.4) !important;
    /* 新增青色外发光，提升醒目度 */
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.08),
        0 0 20px rgba(56, 178, 172, 0.2) !important;
}

/* VIP2悬浮时增强效果，进一步突出 */
.plan-card:nth-child(2):hover {
    box-shadow: 
        0 15px 30px rgba(0,0,0,0.15),
        0 0 25px rgba(56, 178, 172, 0.3) !important;
}

/* 等级3：绿色系 */
.plan-card:nth-child(3) {
    background: linear-gradient(180deg, rgba(72, 187, 120, 0.12), var(--card-bg)) !important;
    border: 1px solid rgba(72, 187, 120, 0.25) !important;
}

/* 等级4：浅橙色系 */
.plan-card:nth-child(4) {
    background: linear-gradient(180deg, rgba(246, 173, 85, 0.14), var(--card-bg)) !important;
    border: 1px solid rgba(246, 173, 85, 0.28) !important;
}

/* 等级5：橙色系 */
.plan-card:nth-child(5) {
    background: linear-gradient(180deg, rgba(237, 137, 54, 0.16), var(--card-bg)) !important;
    border: 1px solid rgba(237, 137, 54, 0.3) !important;
}

/* 等级6：蓝紫色系 */
.plan-card:nth-child(6) {
    background: linear-gradient(180deg, rgba(159, 122, 234, 0.18), var(--card-bg)) !important;
    border: 1px solid rgba(159, 122, 234, 0.35) !important;
}

/* 等级7：粉紫色系 */
.plan-card:nth-child(7) {
    background: linear-gradient(180deg, rgba(237, 100, 166, 0.2), var(--card-bg)) !important;
    border: 1px solid rgba(237, 100, 166, 0.4) !important;
}

/* 等级8：金黄色系 */
.plan-card:nth-child(8) {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.22), var(--card-bg)) !important;
    border: 1px solid rgba(255, 193, 7, 0.45) !important;
}

/* 等级9：红橙色系（最高级最浓郁） */
.plan-card:nth-child(9) {
    background: linear-gradient(180deg, rgba(229, 62, 62, 0.25), var(--card-bg)) !important;
    border: 1px solid rgba(229, 62, 62, 0.5) !important;
}

/* 鼠标悬浮时增强效果 */
.plan-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

/* 推荐卡片叠加效果（在原有等级渐变上增强） */
.plan-card.popular {
    background: linear-gradient(180deg, 
        rgba(255, 204, 0, 0.2) 0%, 
        var(--card-bg) 100%
    ) !important;
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.15) !important;
    border: 1px solid rgba(255, 204, 0, 0.5) !important;
    transform: scale(1.03) !important;
    z-index: 2;
}



/* 核心修复：增加页面顶部内边距，避开固定导航 */
@media (max-width: 768px) {
    .page-container {
        padding-top: 80px !important; /* 比原有130px增加50px，彻底避开导航 */
        padding-bottom: 80px !important;
    }
    
    /* 超小屏额外增加顶部间距 */
    @media (max-width: 480px) {
        .page-container {
            padding-top: 90px !important; /* 进一步提升，确保无遮挡 */
            padding-left: 10px !important;
            padding-right: 10px !important;
        }
    }
    
    /* 修复VIP头部区域顶部间距，避免与导航紧贴 */
    .vip-hero {
        margin-top: 10px !important;
        padding: 10px 5% !important;
    }
    
    /* 确保套餐卡片不被导航覆盖 */
    .vip-plans {
        padding-top: 10px !important;
        position: relative;
        z-index: 1 !important;
    }
}



