﻿/* ========== 触发横幅 ========== */
.vip-trigger-banner {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 16px;
    margin: 0 0 20px 0;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
    color: white;
    cursor: pointer;
    transition: box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.vip-trigger-banner:hover {
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
}
.vip-banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.vip-banner-particles .vip-particle {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: vipFloat 6s infinite ease-in-out;
}
.vip-trigger-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.vip-trigger-icon {
    font-size: 36px;
    background: rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vip-trigger-text h3 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.vip-trigger-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}
.vip-trigger-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.vip-trigger-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* ========== 特权弹窗 ========== */
.vip-privilege-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vipFadeIn 0.3s ease;
}
.vip-privilege-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 0;
}
.vip-privilege-dialog {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: vipDialogUp 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes vipDialogUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes vipFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vip-privilege-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f8f9fa;
}

/* ========== sticky 标题 ========== */
.vip-sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 28px 25px 22px;
    overflow: hidden;
    transition: padding 0.3s;
    text-align: center;
}
.vip-sticky-header .vip-floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.vip-sticky-header .vip-particle {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: vipFloat 6s infinite ease-in-out;
}
@keyframes vipFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.vip-privilege-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.vip-privilege-close:hover {
    background: rgba(255,255,255,0.4);
}

.vip-header-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vip-header-text h2 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vip-header-subtitle {
    transition: opacity 0.3s, max-height 0.3s;
    overflow: hidden;
    max-height: 80px;
    opacity: 1;
}
.vip-header-main-title {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 6px;
    color: white;
}
.vip-header-sub {
    font-size: 0.95rem;
    opacity: 0.85;
    color: white;
}

.vip-sticky-header.scrolled {
    padding: 14px 25px;
}
.vip-sticky-header.scrolled .vip-header-subtitle {
    opacity: 0;
    max-height: 0;
    margin: 0;
}
.vip-sticky-header.scrolled .vip-header-text h2 {
    margin-bottom: 0;
    font-size: 1.4rem;
}

/* ========== 底部返回按钮 ========== */
.vip-privilege-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    text-align: center;
}
.vip-back-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    transition: background 0.2s, transform 0.2s;
}
.vip-back-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ========== 会员卡片区域 ========== */
.vip-card-container {
    width: 100%;
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}
.vip-membership-section {
    padding: 30px 20px;
    background: white;
}

.vip-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50;
}
.vip-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #1abc9c, #3498db);
    margin: 10px auto 0;
    border-radius: 2px;
}
.vip-section-title--text-color::after {
    background: #2c3e50;
}

/* 双卡片布局 */
.vip-membership-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 0 auto 30px;
    max-width: 700px;
}

/* 普通卡片（年度会员） */
.vip-membership-option {
    flex: 1 1 280px;
    min-width: 260px;
    background: white;
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    border: 2px solid #3498db;
    position: relative;
}

/* 终身会员高亮卡片 - 完全移除 overflow: hidden，按钮自然可见 */
.vip-membership-option.vip-highlighted {
    border-color: #2ecc71;
    /* overflow 已去除 */
}
/* 重新设计角标为不旋转的右上角标签 */
.vip-membership-option.vip-highlighted::after {
    content: '最受欢迎';
    position: absolute;
    top: 12px;
    right: 10px;
    background: linear-gradient(135deg, #1abc9c, #2ecc71);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    /* 不再需要 transform，不会超出卡片 */
}

.vip-membership-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}
.vip-membership-option:not(.vip-highlighted) .vip-membership-title {
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.vip-membership-option.vip-highlighted .vip-membership-title {
    background: linear-gradient(135deg, #1abc9c, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-price {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}
.vip-membership-option:not(.vip-highlighted) .vip-price {
    color: #3498db;
}
.vip-membership-option.vip-highlighted .vip-price {
    color: #2ecc71;
}
.vip-price span {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}
.vip-original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin: 3px 0 6px;
}
.vip-duration {
    color: #888;
    font-size: 15px;
    margin-bottom: 10px;
}
.vip-benefits {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.vip-benefits li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #555;
}
.vip-benefits li i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
}
.vip-membership-option:not(.vip-highlighted) .vip-benefits li i {
    color: #3498db;
}
.vip-membership-option.vip-highlighted .vip-benefits li i {
    color: #2ecc71;
}

/* 开通按钮 - 始终完整显示 */
.vip-subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52,152,219,0.3);
    width: 100%;
    max-width: 220px;
    margin: 8px auto 5px;
    transition: background 0.2s;
}
.vip-subscribe-btn:hover {
    background: #2980b9;
}
.vip-subscribe-btn i {
    font-size: 1.1rem;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
}
.vip-note {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-bottom: 0;
}

/* ========== 本站优势（背景加深） ========== */
.vip-promo-section {
    background: rgba(52,152,219,0.1);
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    border: 1px solid rgba(52,152,219,0.15);
}
.vip-promo-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vip-promo-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vip-promo-point {
    display: flex;
    gap: 15px;
}
.vip-promo-point i {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #3498db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.vip-promo-point h4 {
    font-size: 18px;
    font-weight: 700;
    color: #3498db;
    margin: 0 0 6px;
}
.vip-promo-point p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ========== 会员尊享特权（同背景色） ========== */
.vip-common-features {
    background: rgba(52,152,219,0.1);
    border-radius: 16px;
    padding: 30px 25px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(52,152,219,0.15);
}
.vip-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}
.vip-features-list {
    list-style: none;
    padding: 0;
}
.vip-features-list li {
    padding: 12px 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #555;
}
.vip-features-list li i {
    color: #3498db;
    margin-right: 12px;
    font-size: 18px;
    width: 22px;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
}

/* 虚线框 */
.vip-membership-info {
    text-align: center;
    padding: 20px 45px;
    margin-left: -25px;
    margin-right: -25px;
    background: rgba(46,204,113,0.06);
    border-radius: 12px;
    border: 1px dashed rgba(46,204,113,0.35);
    margin-bottom: 0;
}
.vip-membership-info .vip-notice {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}
.vip-membership-info .vip-qq-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    font-size: 16px;
    font-weight: 700;
    color: #3498db;
}
.vip-membership-info .vip-qq-contact i {
    color: #2ecc71;
    font-size: 20px;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .vip-trigger-banner { padding: 15px; }
    .vip-trigger-icon { 
        width: 50px; 
        height: 50px; 
        font-size: 28px; 
        margin-right: 12px;
    }
    .vip-trigger-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }
    .vip-trigger-text {
        flex: 1;
        min-width: 0;
    }
    .vip-trigger-text h3 {
        font-size: 1.1rem;
    }
    .vip-trigger-btn {
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
        margin-left: 0;
        justify-content: center;
    }

    .vip-features-grid { grid-template-columns: 1fr; }
    .vip-sticky-header {
        padding: 24px 20px 18px;
    }
    .vip-sticky-header.scrolled {
        padding: 12px 20px;
    }
    .vip-header-text h2 {
        font-size: 1.4rem;
    }
    .vip-header-main-title {
        font-size: 1rem;
    }

    /* 移动端卡片竖排，全部卡片无 overflow 限制 */
    .vip-membership-options {
        flex-direction: column;
        align-items: center;
    }
    .vip-membership-option {
        max-width: 400px;
        width: 100%;
        /* 无 overflow: hidden，按钮自然完全显示 */
    }
    /* 无需单独对高亮卡片设置 overflow */
    .vip-membership-option.vip-highlighted {
        /* 继承普通设置，无 overflow */
    }

    .vip-promo-content {
        gap: 16px;
    }
    .vip-promo-points {
        align-items: flex-start;
    }

    .vip-membership-info {
        padding: 20px 20px;
        margin-left: -25px;
        margin-right: -25px;
    }
}