/* ==================== 全局变量（与首页统一） ==================== */
:root {
    --bg-deep: #050b14;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-soft: #334155;
    --border-glow: rgba(56, 189, 248, 0.25);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --accent-green: #10b981;
    --gradient-hero: linear-gradient(135deg, #38bdf8, #a855f7);
    --gradient-subtle: linear-gradient(145deg, #0f172a, #020617);
    --radius-xl: 28px;
    --radius-2xl: 48px;
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* ==================== 导航栏（完全复用首页） ==================== */
header {
    background: rgba(5, 11, 20, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-glow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 0;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-accent {
    color: var(--accent-blue);
    -webkit-text-fill-color: var(--accent-blue);
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.25s;
    box-shadow: var(--shadow-glow);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle--active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle--active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle--active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==================== Hero 区域 ==================== */
.hero-verge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 70px 0 50px;
    gap: 48px;
}

.hero-verge-content {
    flex: 1;
    min-width: 280px;
}

.hero-chip {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
}

.hero-verge-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #f0f9ff;
}

.highlight-text {
    background: linear-gradient(to right, #bae6fd, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-verge-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-glow {
    background: var(--gradient-hero);
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.45);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--accent-blue);
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}

.btn-ghost:hover {
    background: var(--accent-blue);
    color: #0f172a;
}

.hero-visual-card {
    flex: 0 0 320px;
    display: flex;
    justify-content: center;
}

.visual-window {
    background: #0f172a;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 320px;
}

.win-dots {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.win-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
}
.win-dots span:nth-child(2) { background: #f59e0b; }
.win-dots span:nth-child(3) { background: #10b981; }

.win-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #a5f3fc;
    line-height: 1.7;
}

/* ==================== 什么是 Clash Verge (三栏) ==================== */
.section-define {
    margin: 60px 0;
}

.section-heading {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(to right, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 44px;
}

.define-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.define-card {
    background: var(--bg-card);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    transition: all 0.3s;
    text-align: center;
}

.define-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-6px);
    background: var(--bg-card-hover);
}

.define-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.define-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.define-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== 对比区 ==================== */
.compare-spotlight {
    margin: 60px 0;
    background: var(--gradient-subtle);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    border: 1px solid var(--border-soft);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.compare-item {
    background: rgba(5, 11, 20, 0.6);
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid var(--border-soft);
}

.compare-item.compare-best {
    border-color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.08);
    box-shadow: 0 0 20px rgba(56,189,248,0.15);
}

.compare-label {
    display: inline-block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: #f1f5f9;
}

.compare-item ul {
    list-style: none;
}

.compare-item li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(51,65,85,0.4);
}
.compare-item li:last-child {
    border-bottom: none;
}

/* ==================== 三步教程 ==================== */
.tutorial-steps {
    margin: 60px 0;
}

.steps-line {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.step-block {
    flex: 1;
    min-width: 240px;
    background: var(--bg-card);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.25s;
}

.step-block:hover {
    border-color: var(--accent-blue);
    transform: translateY(-6px);
}

.step-num {
    width: 44px;
    height: 44px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: #0f172a;
    margin: 0 auto 20px;
}

.step-block h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 12px;
}

.step-block p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== 高级玩法 ==================== */
.advanced-play {
    margin: 60px 0;
}

.play-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.play-card {
    background: var(--bg-card);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transition: all 0.3s;
}

.play-card:hover {
    border-color: var(--accent-purple);
    background: var(--bg-card-hover);
}

.play-card h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: #f1f5f9;
}

.play-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.code-snippet {
    background: #0b1120;
    border-radius: 14px;
    padding: 16px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #a5f3fc;
    border: 1px solid var(--border-soft);
    overflow-x: auto;
    white-space: pre-wrap;
}

/* ==================== CTA 号召区域（完全复用首页） ==================== */
.cta-banner {
    position: relative;
    background: linear-gradient(135deg, #0b1622 0%, #1a1040 100%);
    border-radius: var(--radius-2xl);
    margin: 60px 0 40px;
    overflow: hidden;
    padding: 60px 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
}

.cta-text p {
    color: #cbd5e1;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-glow-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-ghost-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-ghost-light:hover {
    background: rgba(255,255,255,0.1);
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-blue);
    opacity: 0.15;
    filter: blur(30px);
}

.cta-dot-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -40px;
}

.cta-dot-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: 10%;
    background: var(--accent-purple);
}

.cta-dot-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 55%;
}

/* ==================== 页脚（与首页统一） ==================== */
footer {
    background: #020617;
    border-top: 1px solid #1e293b;
    padding: 56px 0 28px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #f1f5f9;
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-blue);
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    color: #475569;
    font-size: 0.8rem;
    border-top: 1px solid #1e293b;
    margin-top: 36px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(5,11,20,0.98);
        backdrop-filter: blur(20px);
        margin-top: 16px;
        padding: 16px 0;
        gap: 12px;
        border-radius: 16px;
    }

    .nav-menu--open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-verge {
        flex-direction: column;
        text-align: center;
    }

    .hero-verge-content h1 {
        font-size: 2.4rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual-card {
        flex: 0 0 auto;
        width: 100%;
    }

    .section-heading {
        font-size: 1.9rem;
    }

    .compare-grid,
    .play-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }
}