/* ==================================================
   VIP 会员购买页面样式
   ================================================== */

/* CSS 变量定义 */
:root {
    --primary-500: #3498db;
    --primary-600: #2980b9;
    --primary-50: #f5f3ff;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --border-color: #e5e5e5;
    --border-gray: #e9ecef;
}

/* ==================================================
   页面主体样式
   ================================================== */
.vip-page {
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: 70vh;
}

.content-vip-main {
    background: #F0F8FF;
}

/* ==================================================
   头部标题区域
   ================================================== */
.vip-hero-section {
    text-align: center;
    margin-bottom: 48px;
}

.vip-main-title {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.vip-subtitle {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-gray);
    max-width: 768px;
    margin: 0 auto;
}

/* ==================================================
   套餐容器布局
   ================================================== */
.plans-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================================
   套餐卡片样式
   ================================================== */
.plan-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}

/* 套餐标签（左上角） */
.plan-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 16px 0 16px 0;
    z-index: 10;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
    border-color: var(--primary-500);
}

.plan-card .p-6 {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 套餐标题行 */
.plan-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    margin: 11px auto 10px;
}

.plan-title-text {
    color: var(--primary-500);
    font-size: 16px;
    font-weight: 600;
}

.plan-icon {
    color: var(--primary-500);
    font-size: 23px;
}

/* 套餐价格区域 */
.plan-price-section {
    margin-bottom: 16px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.plan-current-price {
    color: var(--text-dark);
    font-size: 36px;
    font-weight: 700;
}

.plan-original-price {
    color: var(--text-light);
    font-size: 14px;
    text-decoration: line-through;
    margin-left: 8px;
}

/* 立即开通按钮 */
.vip-buy-btn {
    width: 85%;
    margin: 0 auto 20px;
    padding: 12px 24px;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vip-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.35);
    background: var(--primary-600);
}

/* 套餐特性列表 */
.feature-list {
    width: 85%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 16px;
}

.feature-item i {
    color: var(--primary-500);
}

/* ==================================================
   浮动社交图标
   ================================================== */
.floating-social-icons {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.social-icon i {
    color: white;
    font-size: 20px;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* ==================================================
   FAQ 常见问题区域
   ================================================== */
.faq-section {
    margin-top: 64px;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
}

.faq-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-gray);
    padding: 24px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-item-content {
    display: flex;
    align-items: flex-start;
}

.faq-question-icon {
    width: 18px;
    height: 18px;
    background: var(--primary-500);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 3px;
}

.faq-question-icon i {
    color: white;
    font-size: 10px;
}

.faq-item-body {
    flex: 1;
}

.faq-question {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================================================
   导航栏右侧样式
   ================================================== */
.navbar-right-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vip-link {
    background: var(--primary-500);
    color: white;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.vip-link:hover {
    background: var(--primary-600);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.nav-user-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.auth-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.auth-link {
    color: var(--text-gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-500);
}

.auth-sep {
    color: #ccc;
}

/* Toast 提示功能已移至 toast.js，避免样式冲突 */

/* ==================================================
   页面遮罩
   ================================================== */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2147483646;
    pointer-events: auto;
}

/* ==================================================
   导航栏样式优化
   ================================================== */
.navbar-wrapper .navbar-nav {
    background: transparent !important;
}

/* ==================================================
   响应式布局
   ================================================== */
@media (max-width: 1024px) {
    .plans-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .vip-page {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .vip-main-title {
        font-size: 32px;
    }

    .vip-subtitle {
        font-size: 15px;
    }

    .plans-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plan-card {
        width: 100%;
    }

    .faq-section {
        max-width: 100%;
        padding: 0 20px;
    }

    .floating-social-icons {
        display: none;
    }
}
