/* ==================== 全局变量（与首页统一） ==================== */
: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-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 70px 0 50px;
    gap: 48px;
}

.hero-meta-text {
    flex: 1;
    min-width: 280px;
}

.hero-chip {
    display: inline-block;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 0.8rem;
    color: var(--accent-purple);
    margin-bottom: 24px;
}

.hero-meta-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #f0f9ff;
}

.highlight-text {
    background: linear-gradient(to right, #c4b5fd, #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-meta-text 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-meta-visual {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

.kernel-card {
    background: radial-gradient(circle at 30% 30%, rgba(168,85,247,0.2), rgba(15,23,42,0.9));
    border: 1px solid var(--accent-purple);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 0 30px rgba(168,85,247,0.25);
    width: 100%;
    max-width: 300px;
}

.kernel-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.kernel-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f1f5f9;
}

.kernel-ver {
    font-size: 0.85rem;
    color: var(--accent-purple);
    margin-bottom: 24px;
    font-weight: 600;
}

.kernel-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(168,85,247,0.3);
    padding-top: 16px;
}

/* ==================== 对比表格区域 ==================== */
.compare-section {
    margin: 60px 0;
}

.section-title {
    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: 12px;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.compare-table th {
    background: #1e293b;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
    color: white;
}

.compare-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.col-meta {
    color: #bae6fd !important;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.05);
}

.col-premium {
    color: #cbd5e1;
}

/* ==================== 信息块 (Mihomo 是什么) ==================== */
.info-block {
    margin: 60px 0;
    background: var(--gradient-subtle);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    border: 1px solid var(--border-soft);
}

.info-content h2 {
    font-size: 2rem;
    color: #f1f5f9;
    margin-bottom: 20px;
}

.info-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.highlight-quote {
    border-left: 4px solid var(--accent-purple);
    padding: 14px 22px;
    background: rgba(168,85,247,0.1);
    border-radius: 0 14px 14px 0;
    font-style: italic;
    color: #e2e8f0;
    margin-top: 24px;
}

/* ==================== 推荐理由卡片 ==================== */
.reasons-grid {
    margin: 60px 0;
}

.reason-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.reason-card {
    background: var(--bg-card);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.25s;
}

.reason-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-6px);
}

.reason-icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.reason-card h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 12px;
}

.reason-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== 生态/谁在用 ==================== */
.ecosystem {
    margin: 60px 0;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 36px 0 24px;
}

.eco-card {
    background: var(--bg-card);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.3s;
}

.eco-card:hover {
    border-color: var(--accent-green);
}

.eco-avatar {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 14px;
}

.eco-card strong {
    display: block;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 10px;
}

.eco-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.eco-note {
    text-align: center;
    background: rgba(56,189,248,0.08);
    padding: 14px 20px;
    border-radius: 50px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==================== 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-meta {
        flex-direction: column;
        text-align: center;
    }

    .hero-meta-text h1 {
        font-size: 2.4rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-meta-visual {
        flex: 0 0 auto;
        width: 100%;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .compare-table {
        font-size: 0.8rem;
    }

    .info-block {
        padding: 32px 24px;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }
}