/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    scroll-behavior: smooth;
}

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

/* ===== 头部导航 ===== */
.header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e2e8f0;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}

.nav-links .btn-outline {
    border: 1px solid #cbd5e1;
    padding: 6px 16px;
    border-radius: 40px;
    background: white;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links .btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ===== Hero 区域 ===== */
.hero {
    padding: 72px 0 48px;
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, #0f172a, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 🆕 直接下载按钮 */
.btn-cta-download-hero {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 14px 38px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 28px;
    box-shadow: 0 10px 18px -8px rgba(37,99,235,0.4);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-cta-download-hero:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -10px rgba(37,99,235,0.5);
}

.btn-cta-download-hero:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px -6px rgba(37,99,235,0.4);
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    max-width: 560px;
    margin: 0 auto 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px -6px rgba(59,130,246,0.2);
}

.search-icon {
    font-size: 1.2rem;
    padding: 0 0 0 20px;
    color: #94a3b8;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 14px 12px 14px 8px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #0f172a;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #1d4ed8;
}

.search-hints {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hint-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hint-tag:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

/* ===== 导航卡片枢纽 ===== */
.nav-hub {
    padding: 64px 0 48px;
    background: white;
}

.section-eyebrow {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hub-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.hub-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 12px 20px -10px rgba(59,130,246,0.15);
    background: white;
}

.hub-emoji {
    font-size: 2rem;
    margin-bottom: 4px;
}

.hub-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}

.hub-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.3;
}

.hub-arrow {
    margin-top: 8px;
    font-size: 1.2rem;
    color: #3b82f6;
    transition: transform 0.2s;
}

.hub-card:hover .hub-arrow {
    transform: translateX(4px);
}

.card-download { border-top: 3px solid #2563eb; }
.card-guide { border-top: 3px solid #7c3aed; }
.card-node { border-top: 3px solid #0891b2; }
.card-compare { border-top: 3px solid #ea580c; }
.card-rules { border-top: 3px solid #16a34a; }
.card-faq { border-top: 3px solid #d946ef; }
.card-home { border-top: 3px solid #94a3b8; }

/* ===== 3分钟快速路径 ===== */
.quick-path {
    padding: 56px 0;
    background: #f1f5f9;
}

.path-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.path-step {
    background: white;
    border-radius: 20px;
    padding: 20px 16px;
    text-align: center;
    min-width: 140px;
    flex: 1 1 140px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.path-step:hover {
    transform: translateY(-2px);
}

.step-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 6px;
}

.step-title {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
}

.step-link {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.step-link:hover {
    text-decoration: underline;
}

.path-connector {
    font-size: 1.6rem;
    color: #cbd5e1;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 640px) {
    .path-connector {
        display: block;
    }
}

/* ===== Clash Verge 简介区域 ===== */
.intro-section {
    padding: 64px 0;
    background: white;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-text h2 {
    text-align: left;
    margin-bottom: 16px;
}

.intro-desc {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 20px;
    line-height: 1.6;
}

.intro-feats {
    list-style: none;
    margin-bottom: 20px;
}

.intro-feats li {
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 500;
}

.intro-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-dummy-box {
    width: 200px;
    height: 180px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px dashed #94a3b8;
}

.intro-emoji {
    font-size: 3rem;
}

.intro-platform {
    font-weight: 600;
    color: #475569;
}

/* ===== 客户端生态 & 新手推荐 ===== */
.eco-section {
    padding: 64px 0;
    background: white;
    border-top: 1px solid #f1f5f9;
}

.eco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.eco-panel {
    background: #f8fafc;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #e2e8f0;
}

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

.eco-item {
    padding: 14px 0;
    border-bottom: 1px dashed #e2e8f0;
}

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

.eco-item strong {
    font-size: 1rem;
    display: inline-block;
    margin-right: 8px;
}

.eco-tag {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 6px;
}

.eco-tag-mac { background: #fce7f3; color: #9d174d; }
.eco-tag-win { background: #e0e7ff; color: #3730a3; }
.eco-tag-ios { background: #f1f5f9; color: #334155; }

.eco-item p {
    margin-top: 6px;
    color: #475569;
    font-size: 0.9rem;
}

.eco-highlight {
    background: rgba(37,99,235,0.04);
    padding: 14px 16px;
    border-radius: 16px;
    border-bottom: none;
    margin-bottom: 6px;
}

.eco-more {
    display: inline-block;
    margin-top: 16px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.eco-more:hover {
    text-decoration: underline;
}

/* 新手推荐 */
.newbie-card {
    background: white;
    border-radius: 16px;
    padding: 18px 16px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
}

.newbie-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.newbie-badge-mac {
    background: #fee2e2;
    color: #991b1b;
}

.newbie-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.newbie-reason {
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== 推荐阅读 ===== */
.reading-section {
    padding: 64px 0;
    background: #f8fafc;
}

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

.reading-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 18px;
    text-decoration: none;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
}

.reading-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 16px -6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.reading-icon {
    font-size: 1.8rem;
}

.reading-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.reading-hint {
    color: #64748b;
    font-size: 0.85rem;
}

/* ===== CTA 区域 (FAQ + 下载号召) ===== */
.cta-section {
    padding: 56px 0;
    background: #0f172a;
    color: #e2e8f0;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cta-faq-preview h2 {
    color: white;
}

.faq-mini-list {
    list-style: none;
    margin: 20px 0;
}

.faq-mini-list li {
    margin-bottom: 12px;
}

.faq-mini-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.faq-mini-list a:hover {
    color: white;
    text-decoration: underline;
}

.faq-all {
    display: inline-block;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    margin-top: 6px;
}

.cta-download-zone {
    background: #1e293b;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    border: 1px solid #334155;
}

.cta-shout {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.cta-desc {
    color: #cbd5e1;
    margin-bottom: 24px;
}

.btn-cta-download {
    display: inline-block;
    background: #2563eb;
    color: white;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 8px 16px -6px rgba(37,99,235,0.4);
}

.btn-cta-download:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #64748b;
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 32px;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.8rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        justify-content: flex-start;
        gap: 20px;
        width: 100%;
        flex-wrap: wrap;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-sub {
        font-size: 1rem;
    }
    .intro-grid,
    .eco-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .path-track {
        flex-direction: column;
        align-items: stretch;
    }
    .path-connector {
        display: none;
    }
    .section-eyebrow {
        font-size: 1.6rem;
    }
}