/**
 * VIP 会员开通页面专用样式
 * 独立于 main.css，完整独立页面布局
 */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body.vip-body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

a {
    color: #1890ff;
    text-decoration: none;
}

a:hover {
    color: #0052cc;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 顶部导航栏 ==================== */
.vip-navbar {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.vip-navbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vip-navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.vip-navbar-logo svg {
    width: 28px;
    height: 28px;
    color: #1890ff;
}

.vip-navbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vip-navbar-links a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.vip-navbar-links a:hover {
    color: #1890ff;
}

.vip-navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.vip-navbar-user .user-points {
    background: #fff7e6;
    color: #fa8c16;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* ==================== 主容器 ==================== */
.vip-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* ==================== VIP 横幅 ==================== */
.vip-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a28 50%, #d44612 100%);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.25);
}

.vip-banner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.vip-banner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.vip-banner-crown {
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.vip-banner-crown svg {
    width: 56px;
    height: 56px;
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.vip-banner-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.vip-banner-subtitle {
    font-size: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ==================== 当前会员状态 ==================== */
.vip-status-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vip-status-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vip-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7e6, #ffe7ba);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vip-status-icon svg {
    width: 24px;
    height: 24px;
    color: #fa8c16;
}

.vip-status-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.vip-status-text p {
    font-size: 13px;
    color: #999;
}

.vip-status-text p strong {
    color: #fa8c16;
}

/* ==================== 章节标题 ==================== */
.vip-section {
    margin-bottom: 36px;
}

.vip-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.vip-section-header::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #1890ff;
    border-radius: 2px;
}

.vip-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.vip-section-subtitle {
    font-size: 13px;
    color: #999;
    margin-left: auto;
}

/* ==================== 特权列表 ==================== */
.vip-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.vip-benefit {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.vip-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.vip-benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.vip-benefit-icon svg {
    width: 26px;
    height: 26px;
}

.vip-benefit-icon.blue { background: #e6f7ff; color: #1890ff; }
.vip-benefit-icon.green { background: #f6ffed; color: #52c41a; }
.vip-benefit-icon.orange { background: #fff7e6; color: #fa8c16; }
.vip-benefit-icon.purple { background: #f9f0ff; color: #722ed1; }
.vip-benefit-icon.red { background: #fff2f0; color: #ff4d4f; }
.vip-benefit-icon.gold { background: #fffbe6; color: #faad14; }
.vip-benefit-icon.cyan { background: #e6fffb; color: #13c2c2; }
.vip-benefit-icon.indigo { background: #f0f5ff; color: #2f54eb; }

.vip-benefit h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.vip-benefit p {
    font-size: 12px;
    color: #999;
}

/* ==================== 价格方案 ==================== */
.vip-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vip-pricing-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.vip-pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.vip-pricing-card.featured {
    border-color: #ff6b35;
    background: linear-gradient(180deg, #fff8f5 0%, #fff 50%);
}

.vip-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35, #e55a28);
    color: #fff;
    font-size: 12px;
    padding: 4px 16px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

.vip-pricing-saver {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #52c41a;
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.vip-pricing-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.vip-pricing-price {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.vip-pricing-price .currency {
    font-size: 20px;
    vertical-align: top;
    line-height: 1.5;
}

.vip-pricing-price small {
    font-size: 15px;
    color: #999;
    font-weight: 400;
}

.vip-pricing-monthly {
    font-size: 13px;
    color: #999;
    margin: 8px 0 20px;
}

.vip-pricing-features {
    text-align: left;
    margin: 0 0 24px;
    flex: 1;
}

.vip-pricing-features li {
    font-size: 13px;
    color: #666;
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.vip-pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 16px;
    height: 16px;
    background: #f0f7ff;
    border-radius: 50%;
}

.vip-pricing-features li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 14px;
    width: 6px;
    height: 3px;
    border-left: 1.5px solid #1890ff;
    border-bottom: 1.5px solid #1890ff;
    transform: rotate(-45deg);
}

.vip-pricing-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #1890ff;
    background: #fff;
    color: #1890ff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.vip-pricing-btn:hover {
    background: #1890ff;
    color: #fff;
}

.vip-pricing-btn.featured {
    background: linear-gradient(135deg, #ff6b35, #e55a28);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.vip-pricing-btn.featured:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ==================== 开通流程 ==================== */
.vip-process {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.vip-process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 0;
}

.vip-process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e8e8e8;
    z-index: 0;
}

.vip-process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.vip-process-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #1890ff;
    color: #1890ff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.vip-process-step h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.vip-process-step p {
    font-size: 12px;
    color: #999;
    padding: 0 8px;
}

/* ==================== 支付方式 ==================== */
.vip-payment {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.vip-payment-methods {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.vip-payment-method {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #666;
    background: #fafafa;
    user-select: none;
}

.vip-payment-method:hover {
    border-color: #d0d0d0;
    background: #f5f5f5;
}

.vip-payment-method.active {
    border-color: #1890ff;
    background: #f0f7ff;
    color: #333;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
}

/* 选中标记 */
.vip-payment-method.active::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: #1890ff;
    border-radius: 0 10px 0 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* 支付图标容器 */
.pay-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.pay-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}
.pay-icon i { display:block; font-size:32px; line-height:1; }
.pay-icon-alipay i { color:#1677ff; }
.pay-icon-wechat i { color:#07c160; }

.pay-label {
    font-weight: 500;
    font-size: 15px;
}

/* 品牌色高亮 */
.vip-payment-method.active .pay-icon-alipay svg rect:first-child { fill: #1677FF; }
.vip-payment-method.active .pay-icon-wechat svg rect:first-child { fill: #07C160; }

.vip-payment-notice {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    font-size: 13px;
    color: #ad6800;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.vip-payment-notice svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .vip-payment-method {
        flex: 1 1 100%;
        padding: 14px 18px;
    }
    .vip-payment-methods {
        flex-direction: column;
    }
}

/* ==================== FAQ ==================== */
.vip-faq-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.vip-faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.vip-faq-item:last-child {
    border-bottom: none;
}

.vip-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: background 0.2s;
}

.vip-faq-question:hover {
    background: #fafafa;
}

.vip-faq-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
    color: #999;
    flex-shrink: 0;
}

.vip-faq-item.active .vip-faq-arrow {
    transform: rotate(180deg);
}

.vip-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.vip-faq-item.active .vip-faq-answer {
    max-height: 200px;
    padding: 0 24px 16px;
}

/* ==================== 底部 ==================== */
.vip-footer {
    text-align: center;
    padding: 32px 20px;
    color: #999;
    font-size: 13px;
}

.vip-footer a {
    color: #666;
    margin: 0 8px;
}

/* ==================== VIP 支付弹窗 ==================== */
.vip-pay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-pay-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.vip-pay-modal-box {
    position: relative;
    width: 360px;
    max-width: 90%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: vipPayModalIn 0.25s ease;
}

@keyframes vipPayModalIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.vip-pay-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.vip-pay-modal-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #999;
    transition: color 0.2s;
}

.vip-pay-modal-close:hover {
    color: #333;
}

.vip-pay-modal-body {
    padding: 24px 20px;
    text-align: center;
}

.vip-pay-modal-amount {
    font-size: 15px;
    color: #666;
    margin-bottom: 16px;
}

.vip-pay-modal-price {
    color: #ff6b35;
    font-size: 22px;
    font-weight: 700;
}

.vip-pay-modal-qrcode {
    margin: 0 auto 16px;
    width: 200px;
    height: 200px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.vip-pay-modal-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vip-pay-modal-tip {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.vip-pay-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.vip-pay-btn-primary,
.vip-pay-btn-default {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.vip-pay-btn-primary {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #fff;
}

.vip-pay-btn-primary:hover {
    background: linear-gradient(135deg, #e55a28, #ff6b35);
}

.vip-pay-btn-default {
    background: #f5f5f5;
    color: #666;
}

.vip-pay-btn-default:hover {
    background: #e8e8e8;
}

@media (max-width: 480px) {
    .vip-pay-modal-box {
        width: 92%;
    }
    .vip-pay-modal-qrcode {
        width: 180px;
        height: 180px;
    }
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .vip-navbar-inner {
        height: 48px;
        padding: 0 12px;
    }

    .vip-navbar-links {
        gap: 12px;
    }

    .vip-navbar-links a {
        font-size: 13px;
    }

    .vip-container {
        padding: 16px 12px 40px;
    }

    .vip-banner {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .vip-banner-title {
        font-size: 24px;
    }

    .vip-banner-subtitle {
        font-size: 13px;
    }

    .vip-banner-crown svg {
        width: 44px;
        height: 44px;
    }

    .vip-status-card {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .vip-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .vip-benefit {
        padding: 16px 12px;
    }

    .vip-pricing {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vip-pricing-card {
        padding: 24px 20px;
    }

    .vip-pricing-price {
        font-size: 36px;
    }

    .vip-process-steps {
        flex-direction: column;
        gap: 24px;
    }

    .vip-process-steps::before {
        display: none;
    }

    .vip-process-step {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .vip-process-step-num {
        margin: 0;
        width: 44px;
        height: 44px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .vip-process-step p {
        padding: 0;
    }

    .vip-faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }

    .vip-faq-answer {
        padding: 0 16px;
    }

    .vip-faq-item.active .vip-faq-answer {
        padding: 0 16px 14px;
    }
}

@media (max-width: 480px) {
    .vip-benefits {
        grid-template-columns: 1fr;
    }

    .vip-navbar-links {
        display: none;
    }
}
