/* ============================================
   八仙过海 - 全局样式 v2.0
   暗色仙境 · 精致现代
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

:root {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-deeper: #4f46e5;
    --primary-light: #a5b4fc;
    --primary-glow: rgba(129, 140, 248, 0.25);
    --secondary: #fbbf24;
    --secondary-dark: #f59e0b;
    --accent: #34d399;
    --accent-dark: #10b981;

    --bg-deep: #07070f;
    --bg-dark: #0c0c1a;
    --bg-card: #14142a;
    --bg-card-hover: #1c1c3a;
    --bg-surface: #1a1a34;
    --bg-elevated: #22224a;

    --text-primary: #f0f0ff;
    --text-secondary: #a0a0c0;
    --text-muted: #6b6b8a;

    --border: #2a2a4a;
    --border-light: #3a3a5a;

    --success: #34d399;
    --error: #f87171;
    --warning: #fbbf24;

    --gradient-primary: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
    --gradient-accent: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-hero: linear-gradient(160deg, #0c0c1a 0%, #14142a 40%, #1a1040 70%, #0c0c1a 100%);
    --gradient-card: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(99, 102, 241, 0.03));

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(129, 140, 248, 0.15);
    --shadow-glow-lg: 0 0 60px rgba(129, 140, 248, 0.2);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 999px;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === 容器 === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === 导航栏 === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 68px;
    background: rgba(12, 12, 26, 0.85);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(42, 42, 74, 0.6);
    z-index: 1000;
    display: flex; align-items: center;
}

.navbar .container {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
}

.navbar-brand {
    display: flex; align-items: center; gap: 12px;
    font-size: 22px; font-weight: 700;
    color: var(--text-primary); text-decoration: none;
    letter-spacing: 0.5px;
}

.navbar-brand .logo {
    width: 38px; height: 38px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
}

.navbar-nav { display: flex; align-items: center; gap: 4px; list-style: none; }

.navbar-nav a {
    color: var(--text-secondary); text-decoration: none;
    padding: 8px 18px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.navbar-nav a:hover { color: var(--text-primary); background: var(--bg-card); }
.navbar-nav a.active { color: var(--primary); background: rgba(129, 140, 248, 0.1); }

/* === 按钮 === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border: none;
    border-radius: var(--radius-full);
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* === Hero 区域 === */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 50% 40%, rgba(129, 140, 248, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(129, 140, 248, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 70%, rgba(52, 211, 153, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 20%, rgba(251, 191, 36, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; text-align: center; }

.hero-tags {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 28px;
}

.tag {
    padding: 6px 16px; border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary);
}

.tag.highlight {
    background: rgba(129, 140, 248, 0.12);
    border-color: rgba(129, 140, 248, 0.3);
    color: var(--primary-light);
}

.hero h1 {
    font-size: 52px; font-weight: 900;
    line-height: 1.2; margin-bottom: 20px;
    background: linear-gradient(135deg, #f0f0ff 0%, #a5b4fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.hero .subtitle {
    font-size: 17px; color: var(--text-secondary);
    max-width: 680px; margin: 0 auto 36px;
    line-height: 1.8;
}

/* === 使用流程 === */
.flow-diagram {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px; margin: 40px 0;
    text-align: center;
    backdrop-filter: blur(10px);
}

.flow-diagram h3 {
    font-size: 22px; margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flow-diagram p { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

.flow-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap;
}

.flow-step { text-align: center; min-width: 180px; padding: 20px; }

.flow-step-icon {
    width: 64px; height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 14px;
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.2);
    position: relative;
}

.flow-step .step-num {
    position: absolute; top: -6px; right: -6px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--bg-dark); border: 2px solid var(--primary);
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

.flow-step h4 { font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.flow-step p { font-size: 13px; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }

.flow-arrow { font-size: 28px; color: var(--text-muted); opacity: 0.5; }

/* === 定价卡片 === */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; max-width: 1000px; margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-glow);
}

.pricing-card:hover::before { opacity: 1; }

.pricing-card.popular {}

/* .pricing-card.popular::before uses default opacity */

.popular-badge {
    position: absolute; top: 16px; right: 16px;
    padding: 4px 12px; border-radius: var(--radius-full);
    background: var(--gradient-primary);
    font-size: 11px; font-weight: 600; color: white;
}

.pricing-card h3 {
    font-size: 18px; margin-bottom: 4px;
}

.pricing-card .sub-text {
    color: var(--text-muted); font-size: 13px; margin-bottom: 20px;
}

.pricing-price {
    font-size: 40px; font-weight: 900;
    margin-bottom: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price span { font-size: 16px; font-weight: 500; -webkit-text-fill-color: var(--text-muted); color: var(--text-muted); }

.discount-badge {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
    vertical-align: middle;
    margin-left: 8px;
    -webkit-text-fill-color: var(--warning);
}

.pricing-original {
    font-size: 14px; color: var(--text-muted);
    margin-bottom: 4px;
}

.pricing-original s {
    text-decoration: line-through;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none; margin: 20px 0;
}

.pricing-features li {
    padding: 8px 0; font-size: 14px; color: var(--text-secondary);
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-card .btn { width: 100%; }

/* === 页脚 === */
.footer {
    text-align: center; padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer p { color: var(--text-muted); font-size: 13px; }

/* === 表单 === */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}

.form-control {
    width: 100%; padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.form-control::placeholder { color: var(--text-muted); }

/* === 提示 === */
.usage-note {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: var(--radius);
    padding: 18px 24px;
    display: inline-flex; align-items: center; gap: 12px;
}

.usage-note .icon { font-size: 24px; }
.usage-note p { font-size: 14px; color: var(--text-secondary); text-align: left; }

/* === 加载 === */
.loading {
    text-align: center; padding: 48px;
    color: var(--text-muted);
}

.spinner {
    width: 32px; height: 32px; margin: 0 auto 12px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === FAQ === */
.faq { padding: 60px 0; max-width: 700px; margin: 0 auto; }

.faq h3 {
    font-size: 24px; margin-bottom: 28px; text-align: center;
    font-weight: 700;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px; margin-bottom: 12px;
    transition: all 0.2s;
}

.faq-item:hover { border-color: var(--border-light); }

.faq-item h4 { font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.faq-item p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* === 导航汉堡菜单 === */
.nav-toggle {
    display: none;
    background: none; border: none;
    color: var(--text-primary); font-size: 24px;
    cursor: pointer; padding: 4px 8px;
    line-height: 1;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .navbar-nav {
        display: none;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: rgba(12, 12, 26, 0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 12px 0;
        border-bottom: 1px solid rgba(42, 42, 74, 0.6);
        z-index: 999;
    }
    .navbar-nav.open {
        display: flex;
    }
    .navbar-nav a {
        padding: 14px 20px;
        font-size: 16px;
        width: 100%;
    }
    .brand-text {
        font-size: 18px;
    }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero .subtitle { font-size: 15px; }
    .hero { padding: 100px 0 60px; }
    .flow-arrow { display: none; }
    .flow-steps { flex-direction: column; }
    .flow-step { min-width: auto; width: 100%; }
    .pricing-grid { grid-template-columns: 1fr; }
    .navbar-nav a { padding: 8px 12px; font-size: 13px; }
    .faq { padding: 40px 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .container { padding: 0 16px; }
    .pricing-price { font-size: 32px; }
}
