/* site/assets/site.css
   ============================================================================
   Legion 官网样式。

   ## 这份样式表不是自由发挥的

   它逐条实现设计参考稿（`legion-website-design.html`）的视觉系统：暖白底 +
   墨蓝字 + 青绿重点，橙色**只用于"需要人工判断"的标记**，不是装饰色。
   排版与间距都照稿子：桌面内容宽 1104px（1160 - 2×28）、首屏标题 65px、
   正文段落 13–16px、圆角 5–11px、1px 边线、**阴影只给产品主视觉**。

   ## 科技感靠"角色 / 阶段 / 依赖 / 证据"承载，不靠发光

   稿子里这句话是关键：`以角色、阶段、依赖与证据体现科技感`。所以没有霓虹、
   没有玻璃拟态、没有渐变边框——那些会让它看起来像游戏启动器。
   深度来自：等宽字体只用在标签与编号上、产品窗口的真实截图、
   以及大量留白。

   ## 深色是**手动切换**（`html[data-theme=dark]`），不跟随系统

   稿子右上角有个 ◐ 按钮。这里照做，并把选择记进 localStorage，
   免得刷新就跳回浅色。
   ============================================================================ */

:root {
  --bg: #f9faf7;
  --surface: #fff;
  --soft: #f0f3ef;
  --ink: #152c36;
  --muted: #607079;
  --line: #dce4df;
  --accent: #087e83;
  --tint: #e6f2ee;
  --orange: #a45b21;
  --orange-bg: #fff0dc;
  --navy: #112b36;
  --shadow: 0 24px 70px #203d3810;
  --mono: 'Cascadia Code', Consolas, ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

html[data-theme=dark] {
  --bg: #0e1921;
  --surface: #15252e;
  --soft: #1a2c35;
  --ink: #e4eeeb;
  --muted: #a4b5b7;
  --line: #30454c;
  --accent: #74c9bd;
  --tint: #203f3e;
  --orange: #f1c68c;
  --orange-bg: #463629;
  --navy: #0b202c;
  --shadow: 0 24px 70px #0003;
  color-scheme: dark;
}

/* ── 基础 ─────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button:hover, a:hover { filter: brightness(.93); }
p { line-height: 1.85; }
h1, h2, h3, p { margin: 0; }
figure { margin: 0; }
img { max-width: 100%; }
section { scroll-margin-top: 80px; }

.wrap { max-width: 1160px; margin: auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.small { font-size: 12px; color: var(--muted); }
.eyebrow { font: 11px var(--mono); letter-spacing: 2px; color: var(--accent); margin-bottom: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 0 23px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; background: var(--surface); color: var(--ink); font-weight: 500;
}
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.dark .primary, html[data-theme=dark] .primary { background: var(--accent); color: #102c30; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.mark { width: 31px; height: 31px; display: block; border-radius: 7px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 650; letter-spacing: -.6px; }

/* 语言切换：稿子里没有这一件，但本站是双语的。做成与 .nav-links 同样的字号与色调，
   尽量不打扰稿子的节奏。 */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang a { font: 11px var(--mono); padding: 8px 11px; color: var(--muted); letter-spacing: .5px; }
.lang a[aria-current=page] { background: var(--tint); color: var(--accent); }

/* ── 顶栏 ─────────────────────────────────────────────────────────────────── */

.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.nav-links { display: flex; gap: 30px; font-size: 13px; color: var(--muted); }
.nav-end { display: flex; align-items: center; gap: 18px; }
.theme { border: 0; background: transparent; color: var(--muted); width: 40px; height: 40px; font-size: 20px; }
.nav .btn { min-height: 36px; padding: 0 17px; font-size: 12px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero { text-align: center; padding: 69px 0 0; position: relative; }
.hero:before {
  content: ''; position: absolute; inset: 10px 0 -220px; pointer-events: none; z-index: -1;
  background-image: radial-gradient(var(--line) .7px, transparent .7px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #0008, transparent 67%);
  mask-image: radial-gradient(ellipse at center, #0008, transparent 67%);
}
html[data-theme=dark] .hero:before { opacity: .6; }
.hero .eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; letter-spacing: 1.6px; }
.hero h1 { font-size: clamp(37px, 4.8vw, 65px); line-height: 1.23; font-weight: 600; letter-spacing: -2.5px; }
.hero h1 span { color: var(--accent); }
.hero .subtitle { font-size: 16px; color: var(--muted); max-width: 630px; margin: 23px auto 0; line-height: 1.9; }
.actions { display: flex; justify-content: center; gap: 12px; margin: 27px 0 15px; flex-wrap: wrap; }
.hero-note { font-size: 11px; letter-spacing: .3px; color: var(--muted); }
.hero-note span { margin: 0 9px; color: var(--line); }
/* 首屏那一句签名提醒。用 `--orange` —— 按设计，"人工判断/需要留意"才用橙。 */
.hero-warn { font-size: 11px; color: var(--muted); margin: 0 0 14px; }
.hero-warn .warn { color: var(--orange); }

/* ── 产品窗口（主视觉） ───────────────────────────────────────────────────── */

.product {
  margin-top: 45px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; box-shadow: var(--shadow); overflow: hidden; text-align: left;
}

/* ★ 这里**曾经**让产品窗口在大屏上突破文字列（满宽 1360px），想让截图少缩一点、
   看起来清一点。业主否了：产品窗口必须和文字**左右对齐、留白相同**。
   一条经验留在下面：
   「让图更大」与「让图更清」是两件事 —— 页面里的截图必然要缩（2880 宽的应用界面
   在任何列宽下都要缩到 0.4× 上下），把图撑大只是把这件事从"缩得多"变成"缩得少"，
   并没有让它变清。真正解决"看清"的是**放大预览按 1:1 显示**（见下面 #lightbox-image），
   那才是把原始像素交到用户手里。所以现在图回到文字列内，与页头、段落同一左边界。 */
.windowbar {
  height: 42px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding: 0 17px; background: var(--soft);
  font-size: 11px; color: var(--muted); gap: 12px;
}
.window-left { display: flex; align-items: center; gap: 7px; }
.window-left i { width: 7px; height: 7px; border-radius: 50%; background: #9cacaa; }
.window-left i:first-child { background: #d89d85; }
.window-left i:nth-child(2) { background: #d1bf84; }
.window-left i:last-of-type { background: #92b8a2; }
.window-left span { margin-left: 13px; }
.windowbar .mono { font-size: 10px; letter-spacing: .5px; }

.shot-tabs {
  display: flex; gap: 6px; align-items: center; padding: 13px 18px;
  border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap;
}
.shot-tabs button {
  border: 1px solid transparent; border-radius: 4px; padding: 8px 13px;
  background: transparent; color: var(--muted); font-size: 12px;
}
.shot-tabs button[aria-pressed=true] { background: var(--tint); border-color: var(--line); color: var(--accent); }
.shot-origin { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }

.shot-open {
  display: block; padding: 0; border: 0; background: #f4f6f8; position: relative;
  width: 100%; color: var(--ink); line-height: 0;
}
.shot-open img { display: block; width: 100%; height: auto; }
.shot-open:hover { filter: none; }

/* ★ 这里**曾经**是 `height:460px` + `object-fit:contain`（照抄设计稿）。
   实测（DPR=2、内容宽 1102）它有两个实打实的代价：
     · 宽图（首屏那张 2160×734，2.94:1）在 460px 高的盒子里只填 374px，
       上下各留 43px 空白；而盒子按 460px 算设备像素 ⇒ 源图**被放大 1.02×**；
     · `contain` 居中落在 42.5px 处 —— **半像素偏移**，浏览器要插值，画面发虚。
   现在让图片按自身比例铺满整宽：不再拉伸、不再有半像素偏移、也不再有空白。
   代价是切标签页时首屏高度会变（宽图 374、竖图 690）—— 这是"看清"换来的，
   比把一个可读的界面压进固定的框里更值。 */
.hero-shot { display: flex; align-items: center; justify-content: center; }
.zoom-hint {
  position: absolute; right: 16px; bottom: 14px; border: 1px solid #dce4df; border-radius: 4px;
  color: #315462; background: #fffffff0; padding: 9px 12px; font-size: 10px; line-height: 1.2;
}
.shot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  padding: 16px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink);
}
.shot-bottom .mono { font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.mock-caption { font-size: 10px; color: var(--muted); margin: 12px 0 0; text-align: center; }

.promise {
  display: flex; justify-content: center; gap: 44px; font-size: 12px; color: var(--muted);
  margin-top: 32px; padding-bottom: 41px; border-bottom: 1px solid var(--line);
}
.promise span { display: flex; gap: 9px; align-items: center; }
.promise i { color: var(--accent); font-style: normal; }

.live-shot-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.shot-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.shot-points b { font: 10px var(--mono); color: var(--accent); padding-right: 9px; }

/* 放大预览 */
#shot-lightbox {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 8px; padding: 17px; width: calc(100vw - 44px); max-width: 1600px; max-height: 94vh;
  overflow: auto;
}
#shot-lightbox::backdrop { background: #071b29c9; }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.lightbox-header span { font-size: 12px; color: var(--muted); }
.lightbox-header button { border: 1px solid var(--line); border-radius: 5px; background: var(--soft); color: var(--ink); min-width: 66px; min-height: 40px; font-size: 12px; }
#lightbox-image { display: block; width: auto; max-width: none; height: auto; }
/* ★ 灯箱按**原始像素**给图（1:1），而不是塞进容器宽度。
   页面里的截图必然要缩（2880 宽的应用界面在任何列宽下都要缩到 0.38–0.47×），
   所以"看清"这个需求只能由这个视图来满足 —— 缩在容器里再放大预览，
   等于把已经丢掉的像素再放大一遍。图大就让它滚动，那是诚实的代价。
   窄屏上仍限制在容器内，免得一屏放不下还得左右拖。 */
@media (max-width: 900px) { #lightbox-image { max-width: 100%; } }
.lightbox-hint { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
#lightbox-caption { font-size: 11px; line-height: 1.8; margin-top: 12px; color: var(--muted); }

/* ── 分节 ─────────────────────────────────────────────────────────────────── */

.section { padding-top: 89px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 34px; }
.section-head h2 { font-size: 34px; letter-spacing: -1.1px; line-height: 1.35; font-weight: 550; }
.section-head p { font-size: 13px; color: var(--muted); max-width: 350px; }
.section-head .eyebrow { margin-bottom: 15px; }

/* 能力：三栏，靠 1px 分隔线分区（不是卡片） */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 31px 28px 33px 0; position: relative; }
.feature + .feature { border-left: 1px solid var(--line); padding-left: 29px; }
.feature .index { font: 11px var(--mono); color: var(--accent); margin-bottom: 23px; }
.feature h3 { font-size: 18px; font-weight: 550; margin-bottom: 11px; }
.feature p { font-size: 13px; color: var(--muted); }
.feature-foot { margin-top: 22px; font: 10px var(--mono); color: var(--accent); letter-spacing: .6px; }

/* 交付产物 */
.artifacts {
  margin-top: 75px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  padding: 45px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.artifacts h2 { font-size: 28px; font-weight: 550; line-height: 1.5; letter-spacing: -.6px; }
.artifacts p { margin-top: 14px; font-size: 13px; color: var(--muted); }
.file-list { display: flex; flex-direction: column; gap: 11px; }
.file {
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 5px; display: flex; align-items: center; gap: 15px;
}
.file-ext { font: 10px var(--mono); color: var(--accent); width: 34px; }
.file-name { font-size: 12px; }
.file .small { margin-left: auto; font-size: 10px; }
.file-tail { font-size: 10px; color: var(--muted); padding: 0 2px; }

/* 深色 CTA */
.bottom {
  margin-top: 80px; padding: 55px 47px; border-radius: 9px; background: var(--navy);
  color: #f5f8f5; display: flex; align-items: center; justify-content: space-between;
  gap: 40px; position: relative; overflow: hidden;
}
.bottom:after { content: '+'; position: absolute; right: 19px; top: 12px; color: #4f7d7e; font: 19px var(--mono); }
.bottom .eyebrow { color: #8ababa; margin-bottom: 16px; }
.bottom h2 { font-size: 30px; font-weight: 500; letter-spacing: -.8px; }
.bottom p { font-size: 12px; color: #b0c5c9; margin-top: 14px; max-width: 570px; }
.bottom .btn { background: #edf5ec; color: #183937; border: 0; white-space: nowrap; }
.bottom .btn:hover { filter: brightness(.94); }

/* 开始使用（原「部署 / 下载」） */
.deploy { padding-top: 62px; }
.deploy h2 { font-size: 23px; font-weight: 550; }
.deploy-intro { font-size: 12px; color: var(--muted); margin-top: 10px; }
.deploy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin-top: 23px; }
.deploy-item { border-top: 1px solid var(--line); padding: 20px 0; }
.deploy-item h3 { font-size: 14px; font-weight: 550; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.deploy-item p { font-size: 12px; color: var(--muted); margin-top: 11px; }
/* ★ `:not(.btn)` 是**必须**的：这张卡片里同时有"文字链接"（GitHub 仓库）与
   "按钮"（打开就能用），两者都是 `<a>`。不加这个限制时，`.deploy-item a`（0,1,1）
   比 `.primary`（0,1,0）更具体，于是把按钮的文字也染成了 `--accent` —— 而按钮底色
   也是 `--accent`，结果**青绿字压青绿底，按钮上的字看不见**
   （2026-10-08 业主报的"按钮没有文字"）。

   > 一个"给卡片里的链接上色"的规则与一个"按钮自己上色"的规则，
   > 在它们恰好选了同一个 `a` 元素时，谁赢看的是选择器权重 —— 而这种事没有第二次机会：
   > 用户看到的就是一个空按钮。

   ⚠️ 2026-10-12：这个 bug 当时是在**下载按钮**上报出来的。下载卡片撤掉之后，
   这张卡片里**仍然是"一个按钮 + 一个文字链接"**（打开就能用 / GitHub 源码），
   所以 `:not(.btn)` 照样必须 —— 它防的不是那个按钮，是**这两者共存**这件事。 */
.deploy-item a:not(.btn) { display: inline-block; margin-top: 13px; color: var(--accent); font-size: 12px; }

.label { font-size: 10px; color: var(--accent); background: var(--tint); padding: 4px 8px; border-radius: 3px; white-space: nowrap; }
/* ★ 2026-10-12：`.label.human`（橙色徽标）随下载卡片一起撤掉了 —— 三个模板
   （`index.html` / `en/index.html` / `demo/index.html`）**都不再产出它**
   （它当时只用在 Windows 卡片那个"内部验证 · 未签名"徽标上）。
   留一条没有任何产出方的规则只有坏处：后来的人会以为某处在用它，于是不敢改，
   或者照着它再加一个徽标。`.pill.human` 是**另一个** class（演示页在用），不受影响。 */

/* 开始区第一张卡（Web 入口）的动作块。
   ★ 2026-10-12：它原先与下载卡的 `.dl-actions` **共用**同一份视觉，所以这里写的是
   `.dl-actions, .hub-actions { … }` 这样的双选择器。下载卡片撤掉之后 `.dl-actions`
   没有任何产出方了，双选择器收成单选择器。
   （`.dl-meta` / `.dl-lines` 以及那条 `.dl-actions .btn[aria-disabled=true]`
   —— "尚未发布"那个死按钮的样式 —— 一并删掉。）

   > 一个"共用同一份视觉"的双选择器，
   > 与一个"其中一个永远不匹配"的双选择器，在两条都在用的时候是同一个东西。 */
.hub-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.hub-actions .btn { min-height: 40px; padding: 0 18px; font-size: 13px; }

.hub-line { margin-top: 16px; font-size: 11px; color: var(--muted); line-height: 1.9; }
.hub-line a { color: var(--accent); }

/* ── 页脚 ─────────────────────────────────────────────────────────────────── */

.footer {
  display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line);
  padding: 27px 0; margin-top: 40px; font-size: 11px; color: var(--muted); gap: 20px;
}
.footer .brand { font-size: 16px; }
.footer .mark { width: 25px; height: 25px; }
.footer-links { display: flex; gap: 20px; }

/* ── 响应式（与稿子一致） ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav-links { gap: 18px; }
  .features { gap: 0; }
  .section-head { gap: 30px; }
  .bottom { padding: 38px 30px; }
  .artifacts { gap: 35px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .nav { height: 68px; gap: 10px; }
  .nav-links { display: none; }
  .nav-end { gap: 7px; }
  .brand { font-size: 18px; }
  .nav .btn { font-size: 11px; padding: 0 12px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 39px; letter-spacing: -1.6px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .hero .subtitle { font-size: 13px; margin-top: 20px; max-width: 340px; }
  .actions { gap: 9px; margin-top: 25px; }
  .btn { padding: 0 17px; font-size: 12px; min-height: 44px; }
  .hero-note { font-size: 10px; }
  .hero-note span { margin: 0 4px; }
  .product { margin-top: 31px; }
  .windowbar { height: 36px; padding: 0 10px; }
  .windowbar .mono { display: none; }
  .window-left span { margin-left: 4px; font-size: 10px; }
  .shot-tabs { padding: 10px; gap: 3px; }
  .shot-tabs button { font-size: 10px; padding: 9px 8px; min-height: 38px; }
  .shot-origin { display: none; }
  .hero-shot { height: 235px; }
  .shot-bottom { padding: 12px 13px; font-size: 10px; line-height: 1.7; }
  .shot-bottom .mono { display: none; }
  .zoom-hint { font-size: 9px; right: 9px; bottom: 8px; padding: 7px 9px; }
  .shot-points { grid-template-columns: 1fr; gap: 12px; font-size: 11px; margin-top: 20px; }
  .mock-caption { font-size: 9px; line-height: 1.7; }
  .promise { gap: 16px; font-size: 10px; margin-top: 25px; padding-bottom: 31px; flex-wrap: wrap; }
  .promise span { gap: 5px; }
  .section { padding-top: 58px; }
  .section-head { display: block; margin-bottom: 24px; }
  .section-head h2 { font-size: 27px; }
  .section-head p { margin-top: 17px; font-size: 12px; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 25px 0; display: grid; grid-template-columns: 30px 1fr; gap: 8px 15px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0; }
  .feature .index { grid-row: 1 / 4; margin: 3px 0; }
  .feature h3 { font-size: 17px; margin-bottom: 3px; }
  .feature p { font-size: 12px; }
  .feature-foot { margin-top: 8px; }
  .artifacts { grid-template-columns: 1fr; gap: 27px; margin-top: 49px; padding: 30px 0; }
  .artifacts h2 { font-size: 25px; }
  .bottom { display: block; padding: 33px 25px; margin-top: 49px; }
  .bottom h2 { font-size: 25px; }
  .bottom .btn { margin-top: 24px; }
  .deploy { padding-top: 43px; }
  .deploy-grid { grid-template-columns: 1fr; gap: 6px; }
  .deploy h2 { font-size: 21px; }
  .footer { flex-wrap: wrap; margin-top: 21px; padding: 24px 0; }
  .footer-links { gap: 17px; }
  #shot-lightbox { padding: 12px; width: calc(100vw - 20px); }
  .lightbox-header span { font-size: 11px; }
  .lightbox-header button { min-height: 44px; }
}

@media (min-width: 1600px) { .hero { padding-top: 85px; } .hero h1 { font-size: 68px; } }

/* 只给屏幕阅读器 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════════════════
   在线试用（`/demo`）—— 只读演示

   一个**可点击的产品演示**：左侧是目标拆出的阶段链，点任一阶段，
   右侧显示它的描述、验收标准、证据与验收记录。全部是**示例数据**，
   静态快照，不连任何在线实例。

   为什么用可点击的演示而不是再放几张截图：截图只能证明"界面长这样"，
   而这个产品的主张是"**看证据，再确认交付**" —— 那件事只有让人点进去、
   自己看到补丁与测试输出挂在任务上，才算演示过。
   ══════════════════════════════════════════════════════════════════════════ */

.demo-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--line); background: var(--orange-bg);
  border-radius: 8px; padding: 11px 15px; margin: 30px 0 0;
  font-size: 12px; color: var(--ink);
}
.demo-banner b { color: var(--orange); }
.demo-banner .mono { font-size: 10px; color: var(--muted); margin-left: auto; }

.demo-shell { display: grid; grid-template-columns: 300px 1fr; gap: 30px; margin-top: 26px; align-items: start; }
@media (max-width: 900px) { .demo-shell { grid-template-columns: 1fr; gap: 20px; } }

.demo-goal {
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  padding: 16px; margin-bottom: 14px;
}
.demo-goal .k { font: 10px var(--mono); letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }
.demo-goal .t { font-size: 15px; font-weight: 600; margin-top: 7px; line-height: 1.5; }
.demo-goal .m { margin-top: 11px; font: 10px var(--mono); color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.demo-goal .bar { height: 4px; border-radius: 2px; background: var(--soft); margin-top: 12px; overflow: hidden; }
.demo-goal .bar i { display: block; height: 100%; background: var(--accent); }

.demo-chain { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); }
.demo-chain li + li { border-top: 1px solid var(--line); }
.demo-step {
  width: 100%; text-align: left; border: 0; background: transparent; color: inherit;
  display: flex; gap: 11px; align-items: center; padding: 12px 14px; font: inherit;
}
.demo-step:hover { filter: none; background: var(--soft); }
.demo-step[aria-current="true"] { background: var(--tint); }
.demo-step .n { font: 10px var(--mono); color: var(--muted); width: 16px; flex: none; }
.demo-step .who { font-size: 12.5px; font-weight: 550; }
.demo-step .what { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.demo-step .st { margin-left: auto; flex: none; }

.pill { font: 10px var(--mono); padding: 3px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.pill.done { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--tint); }
.pill.human { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 40%, transparent); background: var(--orange-bg); }

.demo-panel { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 24px; min-height: 420px; }
.demo-panel .ph { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.demo-panel h3 { font-size: 19px; font-weight: 600; }
.demo-panel .crumb { font: 10px var(--mono); color: var(--muted); margin-top: 8px; }
.demo-panel h4 {
  font: 10px var(--mono); letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); margin: 26px 0 10px; font-weight: 500;
}
.demo-panel p { font-size: 13px; color: var(--muted); }
.demo-panel ul { margin: 0; padding-left: 18px; }
.demo-panel li { font-size: 13px; color: var(--muted); line-height: 1.8; }
.demo-panel pre {
  margin: 0; padding: 13px 15px; background: var(--soft); border: 1px solid var(--line);
  border-radius: 6px; overflow-x: auto; font: 11.5px/1.7 var(--mono); color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.demo-panel .rec {
  margin-top: 8px; border-left: 2px solid var(--accent); padding-left: 12px;
  font-size: 12.5px; color: var(--muted);
}
.demo-panel .gate {
  margin-top: 8px; border-left: 2px solid var(--orange); padding-left: 12px;
  font-size: 12.5px; color: var(--ink);
}
.demo-legend { font-size: 11px; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════════════════
   点-流相连的底纹（星链 / 星座）

   借鉴 towow.ai 与 anet.sh 的做法：底色上浮着一层"点 + 相连的线"的网络纹样。
   它与"一支 Agent 编队互相连着"同构 —— 所以不是装饰，是**隐喻**。

   做法：一张**不规则**的 SVG 瓦片平铺（点位置刻意不规整，免得一眼看出重复），
   配一次极慢的位移。浅色下压到几乎看不见（设计稿的调子是安静的），
   深色与深色 CTA 段里才明显起来 —— 星链在暗底上才读得出来。

   `prefers-reduced-motion` 下**不动**：会动的背景对前庭敏感的人是实打实的难受，
   而这条纹样静止时同样是完整的。
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* 瓦片 260×260：11 个点 + 6 条线，位置刻意不规则。
     `%23` 是 `#`（URL 里必须编码），其余字符在 data URI 里可直接出现。 */
  --net: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg stroke='%238b95a8' stroke-width='0.7' fill='none' opacity='0.5'%3E%3Cpath d='M22 44 L96 18 L178 62 L242 132'/%3E%3Cpath d='M96 18 L132 96 L74 168'/%3E%3Cpath d='M178 62 L132 96 L206 210'/%3E%3Cpath d='M74 168 L22 236 L128 244'/%3E%3Cpath d='M242 132 L206 210 L128 244'/%3E%3Cpath d='M196 26 L228 44'/%3E%3C/g%3E%3Cg fill='%238b95a8' opacity='0.75'%3E%3Ccircle cx='22' cy='44' r='1.9'/%3E%3Ccircle cx='96' cy='18' r='2.6'/%3E%3Ccircle cx='178' cy='62' r='1.7'/%3E%3Ccircle cx='242' cy='132' r='2.3'/%3E%3Ccircle cx='132' cy='96' r='2.9'/%3E%3Ccircle cx='74' cy='168' r='1.8'/%3E%3Ccircle cx='206' cy='210' r='2.2'/%3E%3Ccircle cx='22' cy='236' r='1.6'/%3E%3Ccircle cx='128' cy='244' r='2.4'/%3E%3Ccircle cx='196' cy='26' r='1.5'/%3E%3Ccircle cx='228' cy='44' r='1.7'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-theme=dark] {
  --net: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg stroke='%2374c9bd' stroke-width='0.7' fill='none' opacity='0.42'%3E%3Cpath d='M22 44 L96 18 L178 62 L242 132'/%3E%3Cpath d='M96 18 L132 96 L74 168'/%3E%3Cpath d='M178 62 L132 96 L206 210'/%3E%3Cpath d='M74 168 L22 236 L128 244'/%3E%3Cpath d='M242 132 L206 210 L128 244'/%3E%3Cpath d='M196 26 L228 44'/%3E%3C/g%3E%3Cg fill='%239ad9cd' opacity='0.8'%3E%3Ccircle cx='22' cy='44' r='1.9'/%3E%3Ccircle cx='96' cy='18' r='2.6'/%3E%3Ccircle cx='178' cy='62' r='1.7'/%3E%3Ccircle cx='242' cy='132' r='2.3'/%3E%3Ccircle cx='132' cy='96' r='2.9'/%3E%3Ccircle cx='74' cy='168' r='1.8'/%3E%3Ccircle cx='206' cy='210' r='2.2'/%3E%3Ccircle cx='22' cy='236' r='1.6'/%3E%3Ccircle cx='128' cy='244' r='2.4'/%3E%3Ccircle cx='196' cy='26' r='1.5'/%3E%3Ccircle cx='228' cy='44' r='1.7'/%3E%3C/g%3E%3C/svg%3E");
}

/* 首屏：铺一层，向下淡出。浅色下 opacity 很低 —— 只是"空气里有点东西"。 */
.hero:after {
  content: ''; position: absolute; inset: -60px 0 -160px; z-index: -1; pointer-events: none;
  background-image: var(--net); background-size: 260px 260px;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 22%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 62% at 50% 22%, #000 0%, transparent 78%);
  opacity: .28;
  animation: net-drift 90s linear infinite;
}
html[data-theme=dark] .hero:after { opacity: .72; }

@keyframes net-drift {
  from { background-position: 0 0; }
  to { background-position: 260px 130px; }
}

/* 深色 CTA 段：星链在这里最明显 —— 暗底上点与线才读得出来。 */
.bottom { isolation: isolate; }
.bottom:before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--net); background-size: 260px 260px;
  -webkit-mask-image: radial-gradient(ellipse 92% 120% at 78% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 92% 120% at 78% 30%, #000 0%, transparent 72%);
  opacity: .5;
  animation: net-drift 120s linear infinite reverse;
}
/* 纹样在最底层，文字与按钮在其上。 */
.bottom > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero:after, .bottom:before { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   数字人：编队的可见状态

   工作台的 3D 场景里，每个岗位是一个"数字人"，**四个状态各有自己的颜色与姿态**。
   这一节的四个色值、四个标签、以及"受阻时举手"这件事，全部取自
   `workbench/src/components/Employee3D.tsx` 的真实实现：

       const STATUS = { idle:'#5b8cff', busy:'#40ffa0', review:'#ffd54a', blocked:'#ff5c5c' }
       const LABEL  = { idle:'待命',   busy:'进行中',   review:'待验收',   blocked:'受阻' }

   姿态也照抄：`idle` 手臂自然下垂、`busy` 手臂前后摆、`blocked` **右臂抬起**。
   并且 `idle → busy` 的切换会先播一段 750ms 的**走路**动画（同上文件）。

   图是 **2D 简化示意**，不是 3D 场景的截图 —— 所以图注里写明了。
   ══════════════════════════════════════════════════════════════════════════ */

/* 3D 团队场景：**真实截图**（等距办公室 + 八个岗位各有其位），不是自绘图。
   底衬用深色 —— 场景本身是深蓝底，放在暖白页面上需要一层"照片"的边框。 */
.scene {
  margin: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  background: #0b1a24; box-shadow: var(--shadow);
}
.scene img { display: block; width: 100%; height: auto; }

/* 四个状态的图例：照产品里场景底部那一条做成一条细带。
   色值与 `Employee3D.tsx` 的 STATUS 一致（浅色主题用同色相压暗的可读值）。 */
.legend {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
@media (max-width: 860px) { .legend { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .legend { grid-template-columns: 1fr; } }
.legend li { display: grid; grid-template-columns: auto 1fr; gap: 4px 9px; align-items: center; }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--state-color); grid-row: 1 / 3; }
.legend b { font-size: 13.5px; font-weight: 600; }
.legend span { font-size: 12px; color: var(--muted); grid-column: 2; }

.legend .l-idle { --state-color: #5b8cff; }
.legend .l-busy { --state-color: #22c55e; }
.legend .l-review { --state-color: #e0a80c; }
.legend .l-blocked { --state-color: #e5484d; }
html[data-theme=dark] .legend .l-busy { --state-color: #40ffa0; }
html[data-theme=dark] .legend .l-review { --state-color: #ffd54a; }
html[data-theme=dark] .legend .l-blocked { --state-color: #ff5c5c; }
html[data-theme=dark] .legend .l-idle { --state-color: #5b8cff; }
