/* =========================================================
 * MCP AI Jerry — 设计系统 (v2)
 * 风格参考: Cursor / Trae / Linear / Vercel / Raycast
 * ========================================================= */

/* ----------- Reset ----------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ----------- Design Tokens ----------- */
:root {
  /* 色彩 */
  --bg: #0A0A0B;
  --bg-elevated: #101114;
  --bg-surface: #15161A;
  --bg-subtle: rgba(255, 255, 255, 0.02);
  --border: #22242B;
  --border-strong: #2D3039;
  --border-soft: rgba(255, 255, 255, 0.06);

  --text: #F5F5F7;
  --text-muted: #A8A9B4;
  --text-dim: #70727D;
  --text-faint: #4A4C56;

  --brand: #D97757;              /* Claude Terracotta */
  --brand-hover: #E89072;
  --brand-soft: rgba(217, 119, 87, 0.12);
  --brand-glow: rgba(217, 119, 87, 0.35);

  --accent: #E8A56E;              /* Warm Amber */
  --accent-soft: rgba(232, 165, 110, 0.12);

  --success: #34D399;
  --warning: #F59E0B;
  --danger: #F87171;

  /* 排版 */
  --font-sans: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, Menlo,
               Monaco, "Cascadia Code", Consolas, monospace;

  /* 圆角 / 阴影 / 间距 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(217, 119, 87, 0.25), 0 20px 60px rgba(217, 119, 87, 0.25);

  --nav-h: 64px;
  --container: 1200px;
  --container-narrow: 960px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------- Base ----------- */
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, pre { font-family: var(--font-mono); }

::selection { background: var(--brand-soft); color: var(--text); }

/* ----------- Ambient background ----------- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 119, 87, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(232, 165, 110, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 30%, rgba(56, 189, 248, 0.06), transparent 60%);
}
.ambient::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ----------- Layout ----------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.container.narrow { max-width: var(--container-narrow); }

/* ----------- Navbar ----------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border-soft); background: rgba(10, 10, 11, 0.85); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 6px 20px var(--brand-glow);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 50%);
}
.brand-mark-img {
  background: transparent;
  object-fit: contain;
  box-shadow: 0 6px 20px var(--brand-glow);
}
.brand-mark-img::after { display: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-subtle); }

.nav-cta { display: inline-flex; align-items: center; gap: 10px; }

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
              background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset,
              0 8px 30px var(--brand-glow);
}
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 12px 40px var(--brand-glow); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-subtle); }

.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

/* ----------- Hero ----------- */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  margin-bottom: 24px;
  transition: border-color 0.2s, color 0.2s;
}
.hero-eyebrow:hover { color: var(--text); border-color: var(--border-strong); }
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #E8A56E 0%, #D97757 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-muted);
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-visual {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40px -20px auto -20px;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--brand-glow), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* ----------- App Mockup ----------- */
.mockup {
  background: linear-gradient(180deg, #16171C 0%, #0F1014 100%);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65),
              0 0 0 1px rgba(255,255,255,0.04) inset,
              0 0 80px var(--brand-glow);
  overflow: hidden;
  text-align: left;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.mockup-bar .dot { width: 12px; height: 12px; border-radius: 50%; background: #3B3D44; }
.mockup-bar .dot:nth-child(1) { background: #FF5F56; }
.mockup-bar .dot:nth-child(2) { background: #FFBD2E; }
.mockup-bar .dot:nth-child(3) { background: #27C93F; }
.mockup-bar .title {
  margin-left: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.mockup-body { padding: 20px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; }

.term-line { display: flex; gap: 10px; white-space: pre-wrap; }
.term-prompt { color: var(--brand); font-weight: 700; flex-shrink: 0; }
.term-cmd { color: var(--text); }
.term-out { color: var(--text-muted); padding-left: 22px; }
.term-ok { color: var(--success); }
.term-muted { color: var(--text-dim); }
.caret {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--brand);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
  margin-left: 4px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ----------- Logo Wall ----------- */
.logos {
  padding: 48px 0;
  text-align: center;
}
.logos-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.75;
}
.logos-row .logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.logos-row .logo-chip:hover { color: var(--text); }

/* ----------- Section ----------- */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 16px;
}
.section-sub {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ----------- Feature Grid ----------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), var(--brand-soft), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature:hover::before { opacity: 1; }
.feature-ico {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
  border: 1px solid rgba(217, 119, 87, 0.2);
}
.feature-ico svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* ----------- Download Grid ----------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dl-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.dl-card:hover { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 50px rgba(217, 119, 87,0.2); }
.dl-card .os-ico { width: 32px; height: 32px; color: var(--text); margin-bottom: 14px; opacity: 0.9; }
.dl-card h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.dl-card .meta { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.dl-card .btn { width: 100%; }
.dl-card .dl-subs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.dl-card .dl-sub {
  font-size: 12px;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.dl-card .dl-sub:hover { color: var(--text); border-color: var(--brand); background: var(--brand-soft); }

/* ----------- Install Command ----------- */
.install-cmd {
  max-width: 760px;
  margin: 32px auto 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.install-cmd .prompt { color: var(--brand); font-weight: 700; }
.install-cmd code { flex: 1; color: var(--text); overflow-x: auto; white-space: nowrap; }
.install-cmd .copy-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}
.install-cmd .copy-btn:hover { background: var(--bg-subtle); color: var(--text); border-color: var(--border-strong); }
.install-cmd .copy-btn.copied { color: var(--success); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }

/* ----------- Steps (Tutorial) ----------- */
.steps { display: flex; flex-direction: column; gap: 24px; }
.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
}
.step-card:hover { border-color: var(--border-strong); }
.step-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step-num .num-chip {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--brand-soft);
  border: 1px solid rgba(217, 119, 87,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}
.step-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 12px; }
.step-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; margin-bottom: 8px; }
.step-card a { color: var(--brand); }
.step-card a:hover { color: var(--brand-hover); text-decoration: underline; }
.step-card ul { padding-left: 20px; color: var(--text-muted); font-size: 14.5px; }
.step-card ul li { margin-bottom: 6px; }
.step-card img { display:block; max-width: 420px; width: 100%; height: auto; border-radius: 10px; margin: 16px auto 8px; border: 1px solid var(--border); }

/* SVG 默认尺寸兜底（子页面 h2/badge/back-link 内联 SVG 无 width/height 会变成 300×150） */
.page-hero svg,
.doc-section svg,
.doc-step svg,
.cmp-table svg,
.cmd-table svg,
.faq-item svg,
.footer svg { width: 1em; height: 1em; }
.doc-section > h2 svg { width: 22px; height: 22px; }
.doc-step .step-num { width: 26px; height: 26px; }
.feature-mini .ico svg { width: 18px; height: 18px; }
.callout svg.ico { width: 18px; height: 18px; }

/* ----------- Callouts ----------- */
.callout {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid;
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  margin: 12px 0;
}
.callout svg { flex-shrink: 0; margin-top: 2px; }
.callout-info { background: var(--brand-soft); border-color: rgba(217, 119, 87,0.25); color: #FBD9C8; }
.callout-info svg { color: var(--brand); }
.callout-success { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.25); color: #A7F3D0; }
.callout-success svg { color: var(--success); }
.callout-warn { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.25); color: #FCD34D; }
.callout-warn svg { color: var(--warning); }
.callout-danger { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.25); color: #FCA5A5; }
.callout-danger svg { color: var(--danger); }
.callout svg.ico { width: 18px; height: 18px; }
.callout-danger > div strong { color: #FCA5A5; }
.callout-warn > div strong { color: #FCD34D; }
.callout-success > div strong { color: #A7F3D0; }
.callout-info > div strong { color: #FBD9C8; }
.callout > div code { color: inherit; background: rgba(255,255,255,0.08); }

/* ----------- Code block ----------- */
.code {
  background: #0B0C10;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
  margin: 12px 0;
  position: relative;
}

/* ----------- CTA Banner ----------- */
.cta-banner {
  padding: 80px 0 120px;
  text-align: center;
  position: relative;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--brand-glow), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  opacity: 0.6;
}
.cta-banner h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-banner p { color: var(--text-muted); font-size: 18px; margin-bottom: 32px; }

/* ----------- Footer ----------- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 48px;
  color: var(--text-dim);
  font-size: 14px;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-col h5 { color: var(--text); font-size: 13px; margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col a { display: block; padding: 4px 0; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-faint); }

/* ----------- Reveal on scroll ----------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ----------- Utilities ----------- */
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.hidden { display: none !important; }

/* ----------- Details / Disclosure ----------- */
details.disclosure {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 14px 0;
  transition: border-color 0.2s;
}
details.disclosure[open] { border-color: var(--border-strong); }
details.disclosure > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before {
  content: "";
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s;
  margin-right: 2px;
}
details.disclosure[open] > summary::before { transform: rotate(45deg); }
details.disclosure > *:not(summary) { margin-top: 14px; color: var(--text-muted); font-size: 14.5px; line-height: 1.65; }

/* =========================================================
 * 子页面组件（Tutorial Inner Pages）
 * ========================================================= */

/* Page Hero（内页轻量 Hero） */
.page-hero {
  padding: 56px 0 24px;
  position: relative;
}
.page-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 18px;
  transition: color 0.2s;
}
.page-hero .back-link:hover { color: var(--text); }
.page-hero h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-hero .lead {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 720px;
  margin-bottom: 20px;
}

/* Badge */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.badge svg { width: 12px; height: 12px; }
.badge-brand { background: var(--brand-soft); border-color: rgba(217, 119, 87,0.3); color: #FBD9C8; }
.badge-accent { background: var(--accent-soft); border-color: rgba(232, 165, 110,0.3); color: #DDD6FE; }
.badge-success { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.3); color: #A7F3D0; }
.badge-warn { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #FCD34D; }
.badge-danger { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); color: #FCA5A5; }
.badge-claude { background: rgba(217,119,87,0.15); border-color: rgba(217,119,87,0.35); color: #F5B49A; }
.badge-gpt { background: rgba(16,163,127,0.15); border-color: rgba(16,163,127,0.35); color: #6EE7B7; }
.badge-gemini { background: rgba(66,133,244,0.15); border-color: rgba(66,133,244,0.4); color: #93C5FD; }
.badge-wechat { background: rgba(7,193,96,0.15); border-color: rgba(7,193,96,0.4); color: #86EFAC; }

/* Doc Layout（左内容 + 右 TOC） */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 64px;
  padding: 32px 0 80px;
  align-items: start;
}
.doc-main { min-width: 0; }
.doc-side { position: sticky; top: calc(var(--nav-h) + 16px); }

/* TOC */
.toc-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px;
  font-size: 13px;
}
.toc-panel h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.toc-panel a {
  display: block;
  padding: 5px 10px;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all 0.15s;
  font-size: 13px;
  line-height: 1.4;
}
.toc-panel a:hover,
.toc-panel a.active {
  color: var(--brand);
  border-left-color: var(--brand);
  background: var(--brand-soft);
}
.toc-panel a.sub { padding-left: 22px; font-size: 12.5px; color: var(--text-dim); }
.toc-panel a.sub-sub { padding-left: 32px; font-size: 12px; color: var(--text-faint); }

/* Doc Section（章节卡片） */
.doc-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.doc-section.success-accent { border-color: rgba(52,211,153,0.3); }
.doc-section.success-accent > h2 { color: var(--success); }
.doc-section.brand-accent { border-color: rgba(217, 119, 87,0.4); }
.doc-section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.doc-section > h2 svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.doc-section > h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 20px 0 10px;
}
.doc-section p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.doc-section p strong { color: var(--text); font-weight: 600; }
.doc-section a { color: var(--brand); transition: color 0.15s; }
.doc-section a:hover { color: var(--brand-hover); text-decoration: underline; }
.doc-section ul, .doc-section ol { padding-left: 22px; color: var(--text-muted); font-size: 14.5px; }
.doc-section ul li, .doc-section ol li { margin-bottom: 6px; }
.doc-section ul li strong, .doc-section ol li strong { color: var(--text); }
.doc-section img { width: 100%; border-radius: 10px; margin: 14px 0; border: 1px solid var(--border); }

/* Step block（带编号/左边框） */
.doc-section { display: block; }
.doc-section > * { display: block; }
.doc-section > h2 { display: flex; align-items: center; gap: 10px; }
.doc-step {
  display: block;
  padding: 16px 0 16px 18px;
  border-left: 3px solid var(--border-strong);
  margin-top: 20px;
}
.doc-step:first-of-type { margin-top: 10px; }
.doc-step.brand { border-left-color: var(--brand); }
.doc-step.success { border-left-color: var(--success); }
.doc-step.warn { border-left-color: var(--warning); }
.doc-step.danger { border-left-color: var(--danger); }
.doc-step > * { display: block; }
.doc-step > h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.doc-step > .cmd { display: flex; }
.doc-step > .callout { display: flex; }
.doc-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--brand-soft);
  border: 1px solid rgba(217, 119, 87,0.3);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.doc-step h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 代码块（doc-section 里的单行/多行命令） */
.cmd {
  background: #0B0C10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px 12px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  margin: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  position: relative;
}
.cmd .cmd-prompt {
  color: var(--brand);
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}
.cmd code {
  flex: 1;
  color: var(--text);
  white-space: pre;
  min-width: 0;
}
.cmd .copy-btn {
  padding: 3px 10px;
  font-size: 11.5px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s;
  flex-shrink: 0;
  background: transparent;
}
.cmd .copy-btn:hover { background: var(--bg-subtle); color: var(--text); border-color: var(--border-strong); }
.cmd .copy-btn.copied { color: var(--success); border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.1); }
.cmd.multi { display: block; }
.cmd.multi code { display: block; white-space: pre; }
.cmd.multi .copy-btn { position: absolute; top: 8px; right: 8px; }

/* Terminal preview（带彩色） */
.term {
  background: linear-gradient(180deg, #0B0C10 0%, #0A0A0D 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  margin: 12px 0;
  overflow-x: auto;
  white-space: pre;
  color: var(--text);
}
.term .t-yellow { color: #FCD34D; }
.term .t-green { color: var(--success); }
.term .t-cyan { color: #67E8F9; }
.term .t-grey { color: var(--text-dim); }
.term .t-dim { color: var(--text-dim); }
.term .t-magenta { color: var(--accent); }
.term .t-bold { color: var(--text); font-weight: 700; }

/* Compare table（对比 + 命令表） */
.cmp-table, .cmd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0;
  font-size: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cmp-table th, .cmp-table td,
.cmd-table th, .cmd-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cmp-table tr:last-child td,
.cmd-table tr:last-child td { border-bottom: none; }
.cmp-table th, .cmd-table th {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
}
.cmp-table td, .cmd-table td { color: var(--text-muted); }
.cmp-table td strong { color: var(--text); }
.cmp-table .check { color: var(--success); }
.cmd-table td code, .cmp-table td code,
.doc-section p code, .doc-section li code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: #FCD34D;
}

/* 数据卡片（perf 数字） */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-strong); }
.stat-card .num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat-card h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.stat-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* Feature grid 小尺寸（内页） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.feature-mini {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.feature-mini:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-mini .ico {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(217, 119, 87,0.25);
  margin-bottom: 10px;
}
.feature-mini .ico svg { width: 18px; height: 18px; }
.feature-mini h4 { font-size: 14.5px; color: var(--text); margin-bottom: 4px; font-weight: 600; letter-spacing: -0.005em; }
.feature-mini p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* Download grid（内页） */
.dl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.dl-mini {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s var(--ease);
}
.dl-mini:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(217, 119, 87,0.12); }
.dl-mini .os-ico { width: 22px; height: 22px; color: var(--text); opacity: 0.85; margin-bottom: 6px; }
.dl-mini .platform { color: var(--text); font-size: 13.5px; font-weight: 600; }
.dl-mini .size { font-size: 11.5px; color: var(--text-dim); margin-bottom: 10px; }
.dl-mini .dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(217, 119, 87,0.3);
  border-radius: 6px;
  transition: all 0.15s;
}
.dl-mini .dl-btn:hover { background: var(--brand); color: #fff; }
.dl-mini.stable .dl-btn { color: var(--warning); background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); }
.dl-mini.stable .dl-btn:hover { background: var(--warning); color: #0B0C10; }

/* VS 对比盒 */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin: 14px 0;
}
.vs-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.vs-card h4 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.vs-card.accent { border-color: rgba(232, 165, 110,0.4); }
.vs-card.accent h4 { color: var(--accent); }
.vs-card.wechat { border-color: rgba(7,193,96,0.4); }
.vs-card.wechat h4 { color: #22C55E; }
.vs-card ul { padding-left: 18px; font-size: 13px; line-height: 1.65; margin: 0; }
.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* FAQ */
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item .q {
  display: flex;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.faq-item .q::before { content: "Q"; color: var(--brand); font-weight: 700; flex-shrink: 0; }
.faq-item .a {
  padding-left: 14px;
  border-left: 2px solid var(--success);
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.faq-item .a p { margin-bottom: 8px; }
.faq-item .a :last-child { margin-bottom: 0; }

/* ----------- Responsive ----------- */
@media (max-width: 1100px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-side { display: none; }
}
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 56px; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-divider { padding: 8px 0; }
  .doc-section { padding: 24px; }
}
@media (max-width: 640px) {
  .features, .download-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .step-card { padding: 20px; }
  .cta-banner { padding: 56px 0 80px; }
  .install-cmd { font-size: 12px; padding: 12px; }
  .install-cmd .copy-btn { padding: 5px 8px; }
  .doc-section { padding: 20px; }
  .doc-step { padding-left: 14px; }
  .page-hero { padding: 32px 0 16px; }
  .cmd { font-size: 12px; }
  .cmp-table, .cmd-table { font-size: 12.5px; }
  .cmp-table th, .cmp-table td, .cmd-table th, .cmd-table td { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
