/* ========== 公共基础样式（两个页面共用） ========== */
:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-soft: #fbfbfd;
    --line: #e5e5ea;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --accent: #0071e3;
    --accent-hover: #0062c5;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --maxw: 1120px;
}

[data-theme='dark'] {
    --bg: #000000;
    --surface: #111111;
    --surface-soft: #1a1a1a;
    --line: #2a2a2a;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #2997ff;
    --accent-hover: #50abff;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

a { color: inherit; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 导航 ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(20px);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.brand {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text);
    border-color: var(--line);
}

.theme-btn {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    padding: 68px 0 44px;
    text-align: center;
}

.eyebrow {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    margin: 12px 0 0;
    font-size: clamp(40px, 6.4vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero-desc {
    margin: 18px auto 0;
    max-width: 760px;
    font-size: clamp(17px, 2.2vw, 22px);
    color: var(--muted);
    line-height: 1.45;
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

/* ---------- 区块标题 ---------- */
.section {
    padding: 32px 0 12px;
}

.section-head {
    margin-bottom: 14px;
    text-align: center;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.section-head p {
    margin: 8px auto 0;
    max-width: 760px;
    color: var(--muted);
}

/* ---------- 页脚 ---------- */
.footer {
    margin-top: 32px;
    border-top: 1px solid var(--line);
    padding: 24px 0 34px;
    color: var(--muted);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

code {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 13px;
}

/* ---------- 小屏适配（公共部分） ---------- */
@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .nav-inner {
        min-height: unset;
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
    }
    .hero { padding-top: 44px; }
}
