/* ========== 基础变量 ========== */
:root {
    --primary: #0a50b4;
    --primary-dark: #073a82;
    --vip1: #ec4899;
    --vip1-dark: #db2777;
    --vip2: #06b6d4;
    --vip2-dark: #0891b2;
    --svip: #f59e0b;
    --svip-dark: #d97706;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f0f9ff;
    --white: #ffffff;
    --border: #bfdbfe;
    --success: #10b981;
    --error: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

/* ========== 通用样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* ========== Hero 区域 ========== */
.hero {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #0a50b4 50%, #073a82 100%);
    opacity: 0.95;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.hero-cta {
    background: var(--white);
    color: var(--primary);
    font-size: 1.1rem;
    padding: 16px 32px;
}

.hero-cta:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 80, 180, 0.3);
}

/* ========== 核心优势 ========== */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #0a50b4 100%);
    border-radius: 12px;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== 套餐价格表 ========== */
.pricing {
    padding: 5rem 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* VIP1 样式 */
.pricing-card.vip1 .tier-icon {
    color: var(--vip1);
}

.pricing-card.vip1 .vip1-btn {
    border-color: var(--vip1);
    color: var(--vip1);
}

.pricing-card.vip1 .vip1-btn:hover {
    background: var(--vip1);
    color: var(--white);
}

/* VIP2 样式 */
.pricing-card.vip2 .tier-icon {
    color: var(--vip2);
}

.pricing-card.vip2 .vip2-btn {
    border-color: var(--vip2);
    color: var(--vip2);
}

.pricing-card.vip2 .vip2-btn:hover {
    background: var(--vip2);
    color: var(--white);
}

/* SVIP 样式 */
.pricing-card.svip {
    border: 2px solid var(--svip);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}

.pricing-card.svip .tier-icon {
    color: var(--svip);
}

.pricing-card.svip .svip-btn {
    background: var(--svip);
    color: var(--white);
    border-color: var(--svip);
}

.pricing-card.svip .svip-btn:hover {
    background: var(--svip-dark);
    border-color: var(--svip-dark);
}

.badge {
    position: absolute;
    top: 12px;
    right: -32px;
    background: var(--svip);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 40px;
    transform: rotate(45deg);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.tier-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tier-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 1.5rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-light);
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
}

.period {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-card button,
.pricing-card a.btn {
    width: calc(100% - 4rem);
    margin: 0 2rem 1.5rem;
}

.pricing-features {
    padding: 0 2rem 2rem;
}

.feature-group {
    margin-bottom: 1.5rem;
}

.feature-group:last-child {
    margin-bottom: 0;
}

.group-title {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
}

.feature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.feature-name {
    color: var(--text);
    flex: 1;
}

.feature-value {
    text-align: right;
    font-weight: 500;
    color: var(--text);
}

.feature-value.yes {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--success);
}

.feature-value.yes small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
}

.feature-value.no {
    color: var(--error);
}

.feature-value.highlight {
    color: var(--svip);
    font-weight: 600;
}

.feature-value.detail {
    font-size: 0.85rem;
    line-height: 1.4;
}

.feature-value.detail small {
    color: var(--text-light);
    font-weight: 400;
}

/* ========== FAQ ========== */
.faq {
    padding: 5rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(135deg, #1a1f2e 0%, #2c3e50 100%);
    color: #FFFFFF;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 32px;
}

.footer-section {
    min-height: 1px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.footer-more {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-more:hover {
    color: #40a9ff;
}

.contact-info p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.products-column {
    display: flex;
    flex-direction: column;
}

.products-column a {
    font-size: 14px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s;
}

.products-column a:hover {
    color: #40a9ff;
    transform: translateX(4px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    margin-bottom: 24px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== 弹窗 ========== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 2000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-content p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.modal-content strong {
    color: var(--text);
}

.modal-note {
    font-size: 0.9rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    margin: 1rem 0 1.5rem;
}

.modal-btn {
    width: 100%;
}

/* ========== 动画 ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.svip {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.svip {
        grid-column: span 1;
        max-width: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .pricing-header {
        padding: 1.5rem;
    }
    
    .pricing-features {
        padding: 0 1.5rem 1.5rem;
    }
    
    .pricing-card button,
    .pricing-card a.btn {
        width: calc(100% - 3rem);
        margin: 0 1.5rem 1rem;
    }
}
