/* ============================================================
   RNE 官网 · 设计系统 v3(2026-10 重构)
   规范:浅灰/白交替底 + slate 墨阶 + 品牌蓝点缀(≤10%)
   排版:H1 56/1.1 · H2 36/1.2 · H3 20/1.4 · 正文 16/1.7
   间距:8pt 网格 · Section 112px · 卡片 24-32px
   ============================================================ */

/* ================= 自托管字体:Geist(SIL OFL-1.1,Vercel 出品) =================
   仅 latin 子集;中文回落到系统字体(PingFang SC / Microsoft YaHei)。
   woff2 共 6 档,由 download-fonts.sh 一键获取(Fontsource CDN)。 */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;       /* 浅灰交替区 */
  --bg-mute: #ebebed;
  --ink: #1d1d1f;           /* 主文字 */
  --ink-2: #424245;         /* 正文/次要 */
  --ink-3: #86868b;         /* 辅助说明 */
  --ink-4: #aeaeb2;
  --sub: #6e6e73;           /* 副标题专用 */
  --accent: #2742d6;        /* 品牌蓝:按钮/链接/代码高亮/关键节点 */
  --accent-hover: #1e35ad;
  --accent-soft: #eef1fb;
  --accent-line: #d8def5;
  --ok: #0a8558;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 8px 32px rgba(0, 0, 0, 0.08);
  --code-bg: #0d1117;       /* 代码块深色底 */
  --code-text: #e6edf3;
  --code-line: #21262d;
  /* 旧令牌别名(docs.css / 子页沿用) */
  --paper: #ffffff;
  --paper-raise: #ffffff;
  --paper-deep: #f5f5f7;
  --red: #2742d6;
  --red-deep: #1e35ad;
  --blue: #2742d6;
  --pink-soft: #f5f5f7;
  --pink-line: #e5e5e8;
  --line: #e5e5e8;
  --line-strong: rgba(0, 0, 0, 0.16);
  --yellow: #f2b705;
  --display: "Geist", Inter, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: var(--display);
  --sans: var(--display);
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, Menlo, monospace;
  --nav-h: 64px;
  --maxw: 1120px;
  --textw: 720px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  transition: opacity .18s ease; /* 换页兜底:平滑降透明/恢复 */
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;
  letter-spacing: 0.01em;
}

h1, h2, h3 { letter-spacing: 0.02em; }

::selection { background: rgba(39, 66, 214, 0.14); }

a { color: inherit; text-decoration: none; }
img, svg { display: inline-block; vertical-align: middle; }

/* 交互基础:触屏点击去掉系统蓝色高亮框;焦点环只留给键盘导航 */
button, a, summary, label, [role="button"], .ed-tab, .pm-btn { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 300;
  background: var(--ink); color: #fff; padding: 8px 14px;
  border-radius: 8px; font-size: 13px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.readbar {
  position: fixed; top: 0; left: 0; z-index: 210;
  width: 0; height: 2px;
  background: var(--accent);
}

/* ================= 导航 ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 200;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  backdrop-filter: blur(10px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  padding: 0 24px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  padding: 3px 8px;
  background: var(--ink); color: #fff; font-family: var(--mono);
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
  border-radius: 6px;
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.nav-ver {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 2px 9px; background: var(--bg-soft);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 13px; border-radius: 8px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
/* 移动端菜单开关:桌面隐藏,≤640px 显示(见底部媒体查询) */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-left: auto;
  border: 1px solid var(--border); border-radius: 9px;
  background: #fff; color: var(--ink-2); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s, border-color .15s;
}
.nav-toggle:hover { color: var(--ink); }
/* 汉堡三线段:点击时上下线旋转交汇成 X,中线淡出(150ms) */
.nav-toggle .tg-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .tg-bars i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .15s cubic-bezier(0.16, 1, 0.3, 1), opacity .15s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-toggle .tg-bars i:nth-child(1) { top: 0; }
.nav-toggle .tg-bars i:nth-child(2) { top: 5px; }
.nav-toggle .tg-bars i:nth-child(3) { top: 10px; }
.nav-toggle.open .tg-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open .tg-bars i:nth-child(2) { opacity: 0; }
.nav-toggle.open .tg-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
/* 菜单背景遮罩:仅移动端出现,淡入 150ms,点击关闭 */
.nav-backdrop { display: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px;
  background: var(--ink); color: #fff;
  border-radius: 8px; font-size: 13.5px; font-weight: 600;
  transition: background .15s;
  flex-shrink: 0;
}
.nav-cta svg { width: 15px; height: 15px; }
.nav-cta:hover { background: #000; }
/* 无刷新换页兜底反馈(不支持 View Transitions 的浏览器):整页平滑降透明度 */
.nav-pending { opacity: .55; pointer-events: none; }

/* ================= 无刷新换页:View Transitions(仅正文交叉淡化,导航稳定) ================= */
main#top, .docs-layout { view-transition-name: rne-main; }
::view-transition-old(rne-main) { animation: vt-page-out .25s cubic-bezier(0.16, 1, 0.3, 1) both; }
::view-transition-new(rne-main) { animation: vt-page-in .25s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-page-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* 工具页整页跳转:先淡出再走;新页 body 淡入,首尾相接不生硬 */
html.nav-leaving { opacity: 0; pointer-events: none; }
body { animation: body-in .25s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes body-in { from { opacity: 0; } }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 8px;
  font-size: 15.5px; font-weight: 600; cursor: pointer;
  transition: transform .15s ease-out, background .15s, border-color .15s, box-shadow .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* ================= Hero ================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 88px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 64px; align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 16px;
}
.hero-meta span {
  font-size: 12px; color: var(--ink-3);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 10px; background: #fff;
}
.hero-meta span b { color: var(--ink-2); font-weight: 600; }
.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.1; font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub {
  font-size: 17px; line-height: 1.8; color: var(--sub);
  max-width: min(32em, 100%); margin-bottom: 32px;
}
.hero .sub b { color: var(--ink-2); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px;
}
.hero-note svg { width: 15px; height: 15px; color: var(--ok); flex-shrink: 0; }
.hero-scene { font-size: 13px; color: var(--ink-3); }
.hero-scene b { color: var(--ink-2); font-weight: 600; }
.hero-scene i { font-style: normal; color: var(--ink-4); margin: 0 6px; }
.scribble-note, .doodle-arrow { display: none; }

/* hero 右侧:深色代码编辑器 */
.hero-right { position: relative; }
.hero-editor {
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.12);
  min-width: 0;
}
.ed-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; background: #161b22;
  border-bottom: 1px solid var(--code-line);
}
.mac-dots { display: flex; gap: 7px; flex-shrink: 0; }
.mac-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mac-dots i:nth-child(1) { background: #ff5f57; }
.mac-dots i:nth-child(2) { background: #febc2e; }
.mac-dots i:nth-child(3) { background: #28c840; }
.ed-tab {
  font-family: var(--mono); font-size: 12px; color: #8b949e;
  padding: 3px 12px; border-radius: 6px;
  background: #0d1117; border: 1px solid var(--code-line);
  cursor: pointer; transition: color .15s, border-color .15s;
}
.ed-tab:hover { color: #c9d1d9; }
.ed-tab.on { color: #e6edf3; border-color: #3d444d; }
.ed-j .jc { color: #8b949e; }
.hero-editor pre[hidden] { display: none; }
.hero-editor pre {
  padding: 20px 22px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.8;
  color: var(--code-text);
}
.hero-editor pre code, .hero-editor pre { white-space: pre; }
.hero-editor .ed-wrap { white-space: normal; }
.ed-term {
  border-top: 1px solid var(--code-line);
  background: #161b22;
  padding: 14px 22px;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.8;
  color: #8b949e; min-height: 118px;
}
.ed-term code { display: block; overflow-x: auto; white-space: pre; scrollbar-width: none; }
.ed-term code::-webkit-scrollbar { display: none; }
.ed-term .ed-term-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 1.2px; color: #6e7681;
  margin-bottom: 6px; text-transform: uppercase;
}
.ed-term .ed-term-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #28c840; display: inline-block;
}
.term-cursor {
  display: inline-block; width: 7px; height: 14px;
  background: #e6edf3; vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.c-cm { color: #8b949e; } .c-kw { color: #ff7b72; }
.c-str { color: #a5d6ff; } .c-fn { color: #d2a8ff; }
.c-key { color: #79c0ff; } .c-pl { color: #ffa657; }
.c-num { color: #79c0ff; }
.ed-j .jk { color: #7ee787; }
.ed-j .js { color: #a5d6ff; }
.ed-j .jn { color: #79c0ff; }
.ed-j .jp { color: #8b949e; }

/* ================= 数字条 ================= */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding-top: 36px; padding-bottom: 36px;
}
.stat { text-align: center; }
.stat b {
  display: block; font-size: 40px; line-height: 1.1; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  color: var(--ink);
}
.stat span { font-size: 14px; color: var(--ink-3); }

/* ================= 区块基座 ================= */
.section { padding: 112px 0; position: relative; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-ink { background: var(--code-bg); color: var(--code-text); }
.sec-head { max-width: var(--textw); margin-bottom: 56px; }
.sec-tag {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  color: var(--ink-3); letter-spacing: .06em;
  margin-bottom: 12px; display: block;
}
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 36px); font-weight: 600;
  line-height: 1.2; margin-bottom: 14px;
}
.sec-head p { color: var(--sub); font-size: 16px; max-width: min(42em, 100%); }
.sec-head p b { color: var(--ink-2); font-weight: 600; }
.inline-code {
  font-family: var(--mono); font-size: .85em;
  background: var(--bg-mute); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px; color: var(--ink-2);
}

/* 动效规范:无滚动触发入场;首屏揭幕(方案 A)+ 局部微交互(方案 C) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .hero-left, .hero-right { animation: none !important; opacity: 1 !important; transform: none !important; }
  .reveal, .reveal-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto !important; }
}

/* ================= 特性分组 ================= */
.feat-group + .feat-group { margin-top: 48px; }
.feat-group-title {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 20px; font-weight: 600; line-height: 1.4;
  margin-bottom: 20px;
}
.feat-group-title small {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--ink-3); letter-spacing: .06em;
}
.feat-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feat-list li {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  box-shadow: var(--shadow);
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.feat-list li:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lift); }
.feat-no { display: none; }
.fic {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.fic svg { width: 22px; height: 22px; }
.feat-list h3 {
  font-size: 16px; font-weight: 600; line-height: 1.4;
  margin-bottom: 12px; color: var(--ink);
}
.feat-list h3 .fic { display: none; }
.feat-list li .fic:first-child { display: grid; }
.feat-list p {
  font-size: 14px; line-height: 1.6; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.feat-list p b { color: var(--ink-2); font-weight: 600; }
.feat-list p .inline-code { font-size: .82em; }

/* ================= 架构 ================= */
.arch { display: flex; flex-direction: column; }
.arch-layer {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  box-shadow: var(--shadow);
}
.arch-mid { border-color: var(--accent-line); }
.arch-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.arch-label b { font-size: 17px; font-weight: 600; }
.arch-label span { font-size: 13px; color: var(--ink-3); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-soft);
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
}
.chip small { color: var(--ink-3); margin-left: 5px; font-size: 11px; }
.chip.hl { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.arch-flow { display: flex; align-items: center; gap: 10px; padding: 10px 0 10px 28px; color: var(--ink-4); }
.arch-flow svg { width: 15px; height: 15px; }
.arch-flow span { font-family: var(--mono); font-size: 11.5px; }
.arch-note { margin-top: 24px; font-size: 14px; color: var(--sub); max-width: min(var(--textw), 100%); }
.arch-note b { color: var(--ink-2); }

/* ================= 节点带(深色区) ================= */
/* 节点区:浅灰底 + 白卡片Diagram(深色代码块仅保留在快速开始区) */
.nodes-band { background: var(--bg-soft); color: var(--ink); padding: 128px 0; }
.nodes-band .sec-tag { color: var(--ink-3); }
.nodes-band .sec-head h2 { color: var(--ink); }
.nodes-band .sec-head p { color: var(--sub); }
.nodes-band .sec-head p b { color: var(--ink-2); }
.branchmap, .nodeflow {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 24px; box-shadow: var(--shadow);
}
.branchmap { margin-bottom: 20px; }
.nodeflow { margin-bottom: 28px; }
.branchmap svg, .nodeflow svg { width: 100%; height: auto; display: block; }
.bp-l { stroke: #d2d2d7; stroke-width: 1.6; fill: none; }
.bp-blue { stroke: var(--accent); }
.bp-n { fill: #fff; stroke: var(--border-strong); }
.bp-choice { stroke: var(--accent); }
.bp-endA { fill: var(--accent-soft); stroke: var(--accent); }
.bp-start { fill: var(--accent); }
.bp-txt text { fill: var(--ink-2); font-family: var(--mono); font-size: 13px; text-anchor: middle; }
.bp-txt .w { fill: var(--ink); }
.bp-note text { fill: var(--ink-3); font-size: 12px; }
.nf-box { fill: #fff; stroke: var(--border-strong); }
.nf-box-red { stroke: var(--accent); }
.nf-line { stroke: #d2d2d7; stroke-width: 1.6; }
.nf-line-red { stroke: var(--accent); }
.nf-txt { fill: var(--ink-2); font-family: var(--mono); font-size: 13px; text-anchor: middle; }
.nf-txt-red { fill: var(--accent); }
.nf-txt-dim { fill: var(--ink-3); }
.nf-cap { fill: var(--ink-3); font-size: 11.5px; }
.nodes-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.nodes-grid li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 15px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; box-shadow: var(--shadow);
}
.nodes-grid code { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; flex-shrink: 0; }
.nodes-grid span { font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.nodes-expr {
  padding: 16px 20px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; box-shadow: var(--shadow);
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
}
.nodes-expr b { color: var(--accent); }

/* ================= 快速开始(代码卡) ================= */
.quick-pm {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--code-bg); border-radius: 12px;
  padding: 10px 12px 10px 18px; margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.quick-pm .pm-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px;
  color: #6e7681; text-transform: uppercase; margin-right: 4px;
}
.pm-btn {
  border: 1px solid var(--code-line); background: transparent;
  color: #8b949e; padding: 5px 14px; border-radius: 7px;
  font-family: var(--mono); font-size: 12.5px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.pm-btn:hover { color: #e6edf3; }
.pm-btn.active { background: #21262d; color: #e6edf3; border-color: #30363d; }
.quick-pm code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; color: #e6edf3;
  scrollbar-width: none; padding: 6px 0;
  transition: opacity .1s ease-out;
}
.quick-pm code.fading { opacity: 0; }
.quick-pm code::-webkit-scrollbar { display: none; }
.quick-pm .copy-btn { flex-shrink: 0; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.code-card {
  background: var(--code-bg); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.code-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--code-line);
}
.code-card-head h3 {
  display: flex; align-items: center; gap: 9px;
  color: #e6edf3; font-size: 14px; font-weight: 600;
}
.code-card-head .mac-dots i { width: 10px; height: 10px; }
.code-card-head svg { width: 16px; height: 16px; color: #8b949e; }
.copy-btn {
  border: 1px solid #30363d; background: transparent;
  color: #8b949e; padding: 4px 12px; border-radius: 7px;
  font-size: 12px; cursor: pointer; font-family: inherit;
  transition: color .15s, border-color .15s;
}
.copy-btn:hover { color: #e6edf3; border-color: #4d6ef0; }
.copy-btn.ok { color: #3fb950; border-color: #3fb950; }
.code-card pre {
  flex: 1; padding: 18px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.75;
  color: var(--code-text);
}
.quick-list { list-style: none; padding: 12px 20px 16px; border-top: 1px solid var(--code-line); }
.quick-list li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; color: #8b949e; padding: 3px 0;
}
.quick-list svg { width: 14px; height: 14px; color: #3fb950; flex-shrink: 0; margin-top: 3px; }

/* ================= 给编剧 ================= */
.writer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.writer-title { font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.2; margin: 12px 0 16px; }
.writer-lead { color: var(--sub); font-size: 16px; margin-bottom: 32px; max-width: min(36em, 100%); }
.writer-points { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.writer-points li { display: flex; gap: 15px; }
.wp-no {
  flex-shrink: 0; width: 28px; height: 28px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-size: 13px; font-weight: 600;
  font-family: var(--mono);
}
.writer-points b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.writer-points p { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.script-paper {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
}
.script-paper-head {
  display: flex; justify-content: space-between;
  padding: 11px 16px; background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--ink-3); font-weight: 500;
}
.script-paper-body { padding: 24px 28px; font-size: 13.5px; line-height: 2; }
.sp-title { font-size: 19px; font-weight: 700; text-align: center; }
.sp-author { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-bottom: 12px; }
.sp-act { font-weight: 600; margin-top: 8px; }
.sp-scene { font-weight: 600; color: var(--ink-2); }
.sp-action { color: var(--ink-3); }
.sp-dialog { padding-left: 2em; }
.sp-name { font-weight: 600; }
.sp-hint { color: var(--ink-3); font-size: 12px; }
.sp-choice { padding-left: 3em; color: var(--accent); }
.sp-cond { color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; }
.sp-goto { color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; }
.sp-end { font-weight: 600; }

/* ================= 示例故事 ================= */
.stories-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.story-row {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.story-row:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lift); }
.story-form {
  display: inline-block; padding: 2px 10px; margin-bottom: 12px;
  border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 11px; color: var(--ink-3); font-weight: 500; letter-spacing: .04em;
}
.story-row h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.story-row p { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; line-height: 1.6; }
.story-meta { font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* ================= 动手区 ================= */
.try-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.try-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.try-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lift); }
.try-card h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.try-card h3 svg { width: 18px; height: 18px; color: var(--ink-3); }
.try-card p { font-size: 14px; color: var(--ink-3); flex: 1; line-height: 1.6; }
.try-card p b { color: var(--ink-2); font-weight: 600; }
.try-fig {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft); padding: 14px; overflow: hidden;
}
.try-fig svg { width: 100%; height: auto; display: block; }
.try-cards .btn { align-self: flex-start; height: 42px; padding: 0 20px; font-size: 14px; }

/* ================= 文档列表 ================= */
.docs-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; list-style: none; padding: 0; }
.docs-list li { display: flex; }
.doc-item {
  display: flex; flex-direction: column; gap: 6px; flex: 1;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.doc-item:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lift); }
/* 标题是整卡抬头,不是行内代码:覆盖 .acc-body code 的胶囊底(需更高特异性) */
.docs-list .doc-item code {
  font-family: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink);
  background: none; padding: 0; border-radius: 0;
}
.docs-list .doc-item span { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.repo-docs { margin-top: 4px; font-size: 14px; color: var(--sub); }
.repo-docs a { color: var(--accent); font-weight: 500; }
.repo-docs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ================= 现状与限制 ================= */
.limits {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 32px;
  box-shadow: var(--shadow);
}
.limits h3 { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.limits ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.limits li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
}
.limits li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--ink-4); }
.limits li b { color: var(--ink); font-weight: 600; }

/* ================= FAQ ================= */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open { border-color: var(--accent-line); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 24px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 600;
  color: var(--ink); text-align: left;
}
/* summary 内联箭头(architecture/stories/try/docs 折叠卡与 FAQ) */
.acc-btn svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--ink-3); transition: transform .25s ease-out;
}
.faq-item[open] > .acc-btn svg, .faq-item.open .acc-btn svg { transform: rotate(180deg); color: var(--accent); }
.faq-arrow {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-3);
  transition: transform .2s ease-out, color .2s;
}
.faq-item[open] .faq-arrow { transform: rotate(180deg); color: var(--accent); }

/* FAQ 折叠列表:去掉浏览器默认三角,统一摘要排版 */
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 22px;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary { color: var(--ink); }
.faq-body {
  padding: 0 22px 20px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.8;
  max-width: 660px;
}
.faq-body code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-mute); padding: 1px 6px; border-radius: 6px;
}
.faq-body b { color: var(--ink); font-weight: 600; }
.faq-head { margin-top: 56px; }
.final-note svg { width: 14px; height: 14px; vertical-align: -2px; }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease-out; }
.acc-body > div { overflow: hidden; }
/* 展开态:FAQ 用 .open;首页区块折叠(bootFold)用 section 去掉 .acc-closed */
.faq-item.open .acc-body, section:not(.acc-closed) .acc-body { grid-template-rows: 1fr; }
section:not(.acc-closed) .acc-btn svg { transform: rotate(180deg); color: var(--accent); }
.acc-body p { padding: 0 24px 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.8; max-width: 640px; }
.acc-body code {
  font-family: var(--mono); font-size: .9em;
  background: var(--bg-mute); padding: 1px 6px; border-radius: 6px;
}

/* ================= 社区 ================= */
.community { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 96px 0; }
.comm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.comm-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.comm-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lift); }
.comm-card .cic {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin: 0 auto 14px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
}
.comm-card .cic svg { width: 20px; height: 20px; }
.comm-card b {
  display: block; font-size: 30px; font-weight: 700;
  font-variant-numeric: tabular-nums; margin-bottom: 4px;
}
.comm-card span { font-size: 13.5px; color: var(--ink-3); }
.comm-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

/* ================= 终场 CTA ================= */
.final-cta { background: var(--bg); text-align: center; padding: 128px 0; }
.final-cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.final-cta h2 em { font-style: normal; color: var(--accent); }
.final-cta p { color: var(--sub); font-size: 16px; max-width: min(34em, 100%); margin: 0 auto 36px; }
.final-cta .hero-actions { justify-content: center; margin-bottom: 0; }
.final-note { margin-top: 24px; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }

/* ================= 页脚 ================= */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 44px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.foot-brand p { font-size: 13px; color: var(--ink-3); margin-top: 12px; max-width: 26em; }
.foot-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--ink-3); text-transform: uppercase; margin-bottom: 14px;
}
.foot-col a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--ink-2); }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 12.5px; color: var(--ink-3);
}
.foot-bottom span { display: inline-flex; align-items: center; }
.foot-bottom a { color: var(--ink-2); }
.foot-bottom a:hover { color: var(--accent); }

/* ================= 引导浮层(main.js) ================= */
.demo-lead { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.demo-wrap, .demo-steps { font-size: 13px; color: var(--ink-3); }
.tour-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(29, 29, 31, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 24px;
}
.tour-box {
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-lift);
  max-width: 520px; width: 100%; overflow: hidden;
}
.tour-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.tour-idx { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 600; }
.tour-tag { font-size: 13px; font-weight: 600; }
.tour-x { border: none; background: none; cursor: pointer; font-size: 18px; color: var(--ink-3); padding: 2px 8px; }
.tour-x:hover { color: var(--ink); }
.tour-text { padding: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.tour-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font-weight: 600; font-size: 14px; }
.tour-sp { padding: 0 18px 8px; }
.tour-choice { padding: 0 18px; display: flex; flex-direction: column; gap: 8px; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 18px; }
.tour-link { border: none; background: none; cursor: pointer; font-size: 13px; color: var(--ink-3); font-family: inherit; }
.tour-link:hover { color: var(--ink); }
.tour-link.primary { color: var(--accent); font-weight: 600; }
.tour-endcard .tour-choice { display: none; }

/* ================= 悬浮抽屉(main.js) ================= */
#sideFab {
  position: fixed; right: 22px; bottom: 22px; z-index: 390;
  height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(39, 66, 214, .5);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13.5px; font-weight: 600;
  transition: background .15s;
}
#sideFab:hover { background: var(--accent-hover); }
#sideFab svg { width: 17px; height: 17px; }
.fab-t { display: none; }
.side-drawer-open .docs-side { transform: translateX(0) !important; visibility: visible; }

/* ================= 404 ================= */
.nf-box-nf { max-width: 520px; margin: 0 auto; text-align: center; padding: 128px 0 104px; }
.nf-box-nf .code { font-family: var(--mono); font-size: 72px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.nf-box-nf .st { font-size: 22px; font-weight: 600; margin: 10px 0 8px; }
.nf-box-nf .desc { color: var(--sub); font-size: 15px; margin-bottom: 28px; }
.nf-box-nf .actions { display: flex; gap: 14px; justify-content: center; }

/* ================= 兜底旧类 ================= */
.card, .nf404 { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
/* 方案 A:首屏揭幕 —— 左栏 0ms / 右栏 100ms,400ms,cubic-bezier(0.16,1,0.3,1),透明度 0→1,只播放一次 */
.hero-left, .hero-right { animation: hero-in .4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-right { animation-delay: .1s; }
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }

/* 极微滚动:Section 标题与卡片 —— 透明度 0→1 + translateY(6px)→0,250ms,cubic-bezier(0.16,1,0.3,1),无缩放 */
.reveal { opacity: 0; transform: translateY(6px); transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), transform .25s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
/* 节点区 / 社区区:只做透明度渐显,不做任何位移 */
.reveal-fade { opacity: 0; transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-fade.in { opacity: 1; }
/* 特性卡错峰:每张 20ms 依次淡入(延迟只作用于入场属性,hover 边框/阴影零延迟响应) */
.feat-list li.reveal {
  opacity: 0; transform: translateY(6px);
  transition:
    opacity .25s cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0ms),
    transform .25s cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0ms),
    border-color .2s ease-out,
    box-shadow .2s ease-out;
}
.feat-list li.reveal:nth-child(2) { --rd: 20ms; }
.feat-list li.reveal:nth-child(3) { --rd: 40ms; }
.feat-list li.reveal:nth-child(4) { --rd: 60ms; }
/* .in 点亮态需保持更高特异性,否则会被上方 li.reveal 的 opacity:0 压住 */
.feat-list li.reveal.in { opacity: 1; transform: none; }
/* 社区卡:透明度渐显 + 保留 hover 边框/阴影过渡 */
.comm-card.reveal-fade {
  opacity: 0;
  transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s ease-out, box-shadow .2s ease-out;
}
.comm-card.reveal-fade.in { opacity: 1; }
/* try 卡:极微滚动 + 保留 hover 边框/阴影过渡 */
.try-card.reveal {
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), transform .25s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s ease-out, box-shadow .2s ease-out;
}
.try-card.reveal.in { opacity: 1; transform: none; }
.egg-hint { font-size: 12px; color: var(--ink-4); }
.wave { display: none; }
.tab-btn {
  border: 1px solid var(--border-strong); background: #fff;
  height: 38px; padding: 0 18px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: color .15s, background .15s, border-color .15s;
}
.tab-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-desc { font-size: 13px; color: var(--ink-3); }
.timeline { list-style: none; }
.tl-item { display: flex; gap: 16px; padding: 10px 0; }
.tl-ver { font-family: var(--mono); font-size: 12.5px; color: var(--accent); font-weight: 600; flex-shrink: 0; width: 64px; }
.tl-date { color: var(--ink-4); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .hero-grid { gap: 44px; }
  .feat-list { grid-template-columns: repeat(2, 1fr); }
  .docs-list { grid-template-columns: repeat(2, 1fr); }
  .try-cards { grid-template-columns: repeat(2, 1fr); }
  .nodes-grid { grid-template-columns: repeat(2, 1fr); }
  .comm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-ver { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { max-width: 580px; }
  .quick-grid, .writer-grid, .stories-list { grid-template-columns: 1fr; }
  .writer-grid { gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .nav-inner { gap: 12px; }
  .brand-name { font-size: 14.5px; }
  .brand-name small { display: none; }
  .nav-cta { height: 32px; padding: 0 12px; font-size: 12.5px; }
  /* 移动端导航:汉堡开关 + 下滑面板(transform + opacity,不用 display 切换) */
  .nav-toggle { display: inline-flex; }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 150;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .15s ease-out, visibility .15s ease-out;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px) saturate(1.5);
    backdrop-filter: blur(10px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.16);
    padding: 10px 24px 16px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-16px);
    transition:
      transform .3s cubic-bezier(0.16, 1, 0.3, 1),
      opacity .3s cubic-bezier(0.16, 1, 0.3, 1),
      visibility .3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  /* 三菜单项错峰入场:淡入 + 上浮 8px,延迟 50/80/110ms */
  .nav-links a {
    padding: 12px 6px; font-size: 15px; border-radius: 8px;
    opacity: 0; transform: translateY(8px);
    transition: color .15s, opacity .3s cubic-bezier(0.16, 1, 0.3, 1), transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open a { opacity: 1; transform: translateY(0); }
  .nav-links.open a:nth-child(1) { transition-delay: 50ms; }
  .nav-links.open a:nth-child(2) { transition-delay: 80ms; }
  .nav-links.open a:nth-child(3) { transition-delay: 110ms; }
  .hero .sub { font-size: 16px; }
  .hero-meta { gap: 6px; }
  .hero-meta span { padding: 3px 9px; font-size: 11px; }
  .hero-editor pre { white-space: pre-wrap; word-break: break-all; font-size: 11.5px; padding: 16px 14px; }
  .ed-tab { padding: 7px 12px; }
  .ed-term { padding: 12px 14px; font-size: 11.5px; }
  .quick-pm { padding: 10px 12px; }
  .quick-pm code { white-space: normal; word-break: break-all; padding: 8px 0; }
  .pm-btn { height: 36px; padding: 0 14px; }
  .quick-pm .copy-btn { height: 36px; padding: 0 14px; }
  .code-card .copy-btn { height: 36px; padding: 0 14px; }
  .foot-col a { padding: 8px 0; }
  .faq-item summary { padding: 15px 16px; font-size: 15px; }
  .faq-body { padding: 0 16px 16px; }
  .faq-head { margin-top: 44px; }
  /* 节点区示意图:viewBox 960/1040 缩到小屏后文字不可读,装饰性内容直接隐藏 */
  .branchmap, .nodeflow { display: none; }
  .repo-docs a { display: inline-block; padding: 6px 0; }
  .hero { padding: calc(var(--nav-h) + 44px) 0 64px; }
  .feat-list, .try-cards, .docs-list, .nodes-grid, .limits ul, .comm-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-actions .btn { flex: 1; }
  .foot-grid { grid-template-columns: 1fr; }
}
