/* ==========================================================================
   Aegis Web — aegis.css
   设计基准：Aegis Design System v1 (Dark Enterprise) + 首页参考（近黑底 + 大字标）
   原则：纯色 surface · 无 gradient/glow · 单一 Aegis Blue · 细发丝分隔 · 大量留白
   ========================================================================== */

/* ---------- 字体（自托管，离线可用） ---------- */
@font-face { font-family: 'Aegis Sans'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Aegis Sans'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Aegis Sans'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Aegis Sans'; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Aegis Mono'; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Aegis Mono'; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  /* surface */
  --canvas: #07080a;
  --s01: #0e1013;
  --s02: #13161a;
  --s03: #191d22;
  /* hairline */
  --line: #1b1f25;
  --line-2: #262b32;
  --line-3: #333941;
  /* text */
  --t1: #f2f4f7;
  --t2: #c2c9d2;
  --t3: #98a1ad;
  --t4: #79828f;
  /* accent */
  --blue: #4785d8;
  --blue-dim: rgba(71, 133, 216, 0.45);
  --blue-faint: rgba(71, 133, 216, 0.12);
  /* semantic (极克制，只用于状态点) */
  --ok: #4f9d69;
  --warn: #b08340;
  --off: #5a616b;
  /* type */
  --sans: 'Aegis Sans', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'Aegis Mono', 'Cascadia Mono', Consolas, monospace;
  /* layout */
  --gut: clamp(20px, 4vw, 56px);
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(71, 133, 216, 0.32); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: #1f242b; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2b3138; }

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

/* ---------- 通用排版 ---------- */
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.idx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--t4); }
.rule { height: 1px; background: var(--line); border: 0; }
.rule-2 { height: 1px; background: var(--line-2); border: 0; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

/* 段落正文 */
.body { color: var(--t2); }
.body p + p { margin-top: 1.1em; }
.lede { font-size: 21px; line-height: 1.7; color: var(--t2); font-weight: 400; }
.small { font-size: 15px; color: var(--t3); }
.tiny { font-size: 13.5px; color: var(--t4); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { height: 26px; width: auto; }
.brand .brand-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.26em; color: var(--t2); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15px; color: var(--t3); padding: 7px 13px; border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--t1); background: rgba(255,255,255,0.035); }
.nav-links a.on { color: var(--t1); }
.nav-links a.on::after { content: ''; display: block; height: 1px; background: var(--blue); margin-top: 5px; }
.nav-status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--t4); }
.nav-status .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* ---------- Hero（首页） ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-field { position: absolute; inset: 0; pointer-events: none; }
.hero-field svg { width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 2; padding-top: 8vh; padding-bottom: 12vh; }
.hero-mark { width: clamp(300px, 52vw, 660px); }
.hero-mark svg { width: 100%; height: auto; }
.hero-tag { margin-top: 26px; font-size: 16.5px; color: var(--t3); letter-spacing: 0.06em; }
.hero-tag b { color: var(--t2); font-weight: 400; }
.hero-meta {
  margin-top: 54px; display: flex; flex-wrap: wrap; gap: 0 34px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--t4);
}
.hero-meta span { position: relative; padding-left: 14px; margin-bottom: 8px; }
.hero-meta span::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 1px; background: var(--line-3); }
.hero-scroll {
  position: absolute; bottom: 30px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center;
}
.hero-scroll .mono { font-size: 10px; letter-spacing: 0.24em; color: var(--t4); }
.scroll-line { width: 1px; height: 42px; background: linear-gradient(to bottom, var(--line-3), transparent); margin: 0 auto 12px; }

/* 子页 hero */
.phero { padding: 108px 0 62px; border-bottom: 1px solid var(--line); }
.phero .idx { margin-bottom: 22px; display: block; }
.phero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.02em; }
.phero .lede { margin-top: 22px; max-width: 720px; }
.phero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--t4); }

/* ---------- Section ---------- */
.sec { padding: 112px 0; border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 44px; }
.sec-head .idx { flex: none; padding-top: 4px; }
.sec-head h2 { font-size: clamp(33px, 3.7vw, 48px); font-weight: 600; }
.sec-head .sub { color: var(--t3); font-size: 15.5px; margin-left: auto; text-align: right; max-width: 420px; }
.sec-sub { color: var(--t3); font-size: 15px; margin-top: -26px; margin-bottom: 44px; max-width: 760px; }
.sec-q { font-size: clamp(24px, 2.7vw, 34px); font-weight: 500; line-height: 1.55; color: var(--t1); max-width: 900px; margin-bottom: 40px; }
.sec-q em { font-style: normal; color: var(--blue); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--canvas); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-2-3 { grid-template-columns: 1fr 1.6fr; }

.cell { padding: 26px 26px 30px; }
.cell h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.cell p { font-size: 16px; color: var(--t3); line-height: 1.7; }
.cell .cell-idx { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--t4); display: block; margin-bottom: 14px; }
.cell-blue { position: relative; }
.cell-blue::before { content: ''; position: absolute; top: 0; left: 0; width: 34px; height: 2px; background: var(--blue); }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--canvas); padding: 24px 24px 26px; }
.stat .v { font-family: var(--mono); font-size: 36px; font-weight: 500; color: var(--t1); letter-spacing: -0.01em; }
.stat .v small { font-size: 12px; color: var(--t3); margin-left: 3px; letter-spacing: 0; }
.stat .k { font-size: 14px; color: var(--t3); margin-top: 7px; }
.stat .src { font-family: var(--mono); font-size: 9.5px; color: var(--t4); margin-top: 12px; letter-spacing: 0.08em; }

/* ---------- 表 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--t4); padding: 0 18px 12px 0; border-bottom: 1px solid var(--line-2); text-transform: uppercase;
}
.tbl td { padding: 15px 18px 15px 0; border-bottom: 1px solid var(--line); color: var(--t2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--t1); }
.tbl .k { font-family: var(--mono); font-size: 12.5px; color: var(--t1); }
.tbl-2 { font-size: 13px; }

/* 对照表（普通使用 → Aegis） */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.compare > div { padding: 15px 22px 15px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.compare .h { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--t4); padding-top: 0; }
.compare .l { color: var(--t3); }
.compare .r { color: var(--t1); padding-left: 22px; border-left: 1px solid var(--line); }

/* ---------- 卡片 / 案例 ---------- */
.cases { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case-card { background: var(--canvas); padding: 30px 32px 32px; display: block; transition: background 0.25s; position: relative; }
a.case-card:hover { background: var(--s01); }
a.case-card:hover .case-title { color: #fff; }
.case-top { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.case-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--blue); }
.case-title { font-size: 24px; font-weight: 600; margin-bottom: 12px; transition: color 0.2s; letter-spacing: -0.01em; }
.case-desc { font-size: 17px; color: var(--t3); max-width: 780px; }
.case-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--t4); border-top: 1px solid var(--line); padding-top: 16px; }
.case-foot .cf-blue { color: var(--blue-dim); }
.case-go { position: absolute; right: 32px; top: 30px; font-family: var(--mono); font-size: 11px; color: var(--t4); transition: color 0.2s, transform 0.2s; }
a.case-card:hover .case-go { color: var(--blue); transform: translateX(3px); }
a.case-card:hover::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--blue);
}

/* 标签 */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--t3);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 8px;
}
.tag-blue { color: var(--blue); border-color: var(--blue-dim); }

/* 状态点 */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t2); }
.st i { width: 6px; height: 6px; border-radius: 50%; background: var(--off); flex: none; }
.st.ok i { background: var(--ok); }
.st.part i { background: var(--warn); }
.st.plan i { background: transparent; border: 1px solid var(--line-3); }

/* ---------- 架构图 ---------- */
.arch { border: 1px solid var(--line); background: var(--s01); padding: 34px 30px; position: relative; }
.arch::before {
  content: ''; position: absolute; left: calc(30px + 92px); top: 40px; bottom: 40px;
  width: 1px; background: var(--line-2);
}
.arch-row { display: grid; grid-template-columns: 108px 1fr; gap: 24px; align-items: center; padding: 18px 0 18px 26px; border-bottom: 1px solid var(--line); position: relative; }
.arch-row::before {
  content: ''; position: absolute; left: -3px; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--s01); border: 1px solid var(--line-3);
  transform: translateY(-50%);
}
.arch-row.node-core-row::before { background: var(--blue); border-color: var(--blue); }
.arch-row:last-child { border-bottom: 0; }
.arch-row:first-child { padding-top: 4px; }
.arch-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--t4); text-align: right; }
.arch-nodes { display: flex; flex-wrap: wrap; gap: 10px; }
.node {
  border: 1px solid var(--line-2); border-radius: 5px; padding: 9px 14px; font-size: 13px; color: var(--t2);
  background: var(--canvas); display: flex; align-items: center; gap: 9px;
}
.node b { color: var(--t1); font-weight: 500; }
.node .v { font-family: var(--mono); font-size: 10px; color: var(--t4); }
.node-core { border-color: var(--line-3); background: var(--s02); }
.node-core::before { content: ''; width: 3px; height: 16px; background: var(--blue); border-radius: 1px; }
.node-ghost { border-style: dashed; border-color: var(--line-2); color: var(--t3); background: transparent; }

/* ---------- 时间线 ---------- */
.tl { border-left: 1px solid var(--line-2); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 34px 30px; }
.tl-item::before { content: ''; position: absolute; left: -3.5px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--line-3); }
.tl-item.on::before { background: var(--blue); border-color: var(--blue); }
.tl-when { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--t4); }
.tl-title { font-size: 15.5px; font-weight: 600; margin: 7px 0 8px; }
.tl-desc { font-size: 13.5px; color: var(--t3); max-width: 720px; }

/* ---------- 证据块 ---------- */
.ev { border-left: 2px solid var(--line-2); padding: 2px 0 2px 18px; margin: 22px 0; }
.ev-t { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--t4); margin-bottom: 10px; }
.ev ul { list-style: none; }
.ev li { font-size: 13px; color: var(--t3); padding-left: 16px; position: relative; margin-bottom: 6px; }
.ev li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--line-3); }
.ev li b { color: var(--t2); font-weight: 500; font-family: var(--mono); font-size: 12px; }

/* 引文/结论条 */
.note {
  border: 1px solid var(--line-2); border-left: 2px solid var(--blue);
  padding: 20px 24px; margin: 30px 0; background: var(--s01);
}
.note .note-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 9px; }
.note p { font-size: 14px; color: var(--t2); }

/* 步骤/流程 */
.flow { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.flow-step { background: var(--canvas); padding: 22px 24px; }
.flow-step .n { font-family: var(--mono); font-size: 10.5px; color: var(--blue); letter-spacing: 0.12em; }
.flow-step h4 { font-size: 14px; margin: 9px 0 8px; }
.flow-step p { font-size: 13px; color: var(--t3); }

/* 详情页顶栏信息 */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: -1px; }
.dl > div { background: var(--canvas); padding: 18px 22px; }
.dl .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--t4); margin-bottom: 7px; }
.dl .v { font-size: 13.5px; color: var(--t2); }

/* 页脚 */
.foot { border-top: 1px solid var(--line); margin-top: 0; padding: 54px 0 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand svg { height: 20px; width: auto; margin-bottom: 16px; }
.foot p { font-size: 12.5px; color: var(--t4); max-width: 460px; }
.foot-nav { display: flex; gap: 46px; }
.foot-nav h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--t4); margin-bottom: 14px; font-weight: 500; }
.foot-nav a { display: block; font-size: 13px; color: var(--t3); margin-bottom: 9px; transition: color 0.2s; }
.foot-nav a:hover { color: var(--t1); }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--t4); }

/* ---------- 动效 ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
.pulse { transform-origin: center; transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.static) .pulse { animation: ag-pulse 5.5s ease-in-out infinite; }
  html:not(.static) .scan { animation: ag-scan 12s ease-in-out infinite alternate; }
  html:not(.static) .dash-run { animation: ag-dash 3.4s linear infinite; }
}
@keyframes ag-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.28); opacity: 0.62; } }
@keyframes ag-scan { from { transform: translateY(0); } to { transform: translateY(var(--scan-range, 220px)); } }
@keyframes ag-dash { to { stroke-dashoffset: -40; } }
html.static .pulse, html.static .scan, html.static .dash-run { animation: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .g4, .stats { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .g-2-3 { grid-template-columns: 1fr; }
  .arch-row { grid-template-columns: 1fr; gap: 12px; }
  .arch-label { text-align: left; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .g2, .g3, .g4, .stats, .dl { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare .r { border-left: 0; padding-left: 0; }
  .nav-links { display: none; }
  .sec { padding: 64px 0; }
  .sec-head { flex-direction: column; gap: 8px; }
  .sec-head .sub { margin-left: 0; text-align: left; }
  .hero-meta { gap: 0 22px; }
  .case-go { display: none; }
  .phero { padding: 68px 0 44px; }
}

.foot-brand a { display: inline-block; }
.foot-brand a svg { height: 20px; width: auto; display: block; margin-bottom: 16px; }

/* ==========================================================================
   第二轮：Hero 替换（按 Owner 已批准方案）· 移动导航 · 任务可视化 · 证据图
   ========================================================================== */

/* ---------- 移动端导航 ---------- */
.nav-burger {
  display: none; width: 38px; height: 34px; margin-left: 6px;
  background: none; border: 1px solid var(--line-2); border-radius: 5px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { display: block; width: 15px; height: 1px; background: var(--t2); transition: transform .2s, opacity .2s; }
.nav-burger span + span { margin-left: -15px; margin-top: 6px; }
.nav-burger.on span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.on span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-panel { display: none; border-top: 1px solid var(--line); background: rgba(7,8,10,.98); }
.nav-panel a { display: block; padding: 15px 0; font-size: 15px; color: var(--t2); border-bottom: 1px solid var(--line); }
.nav-panel a:last-child { border-bottom: 0; }
.nav-panel a.on { color: var(--t1); }
@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav-status-t { display: none; }
  .nav-panel.open { display: block; }
}

/* ---------- 任务链路可视化（真实日志实例） ---------- */
.task { border: 1px solid var(--line-2); background: var(--s01); }
.task-head {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
}
.task-head .tk { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--blue); }
.task-head h3 { font-size: 16.5px; font-weight: 600; }
.task-head .tm { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--t4); }
.task-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.task-step { background: var(--canvas); padding: 20px 20px 24px; position: relative; }
.task-step .no { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--t4); }
.task-step h4 { font-size: 13.5px; margin: 8px 0 10px; font-weight: 600; }
.task-step p { font-size: 12.5px; color: var(--t3); line-height: 1.75; }
.task-step .val { font-family: var(--mono); font-size: 11.5px; color: var(--blue); display: block; margin-top: 9px; }
.task-step:first-child { box-shadow: inset 2px 0 0 var(--blue); }
.task-foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 15px 26px;
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--t4);
}
@media (max-width: 1000px) { .task-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .task-steps { grid-template-columns: 1fr; } }

/* 任务书摘录 */
.quote {
  border-left: 2px solid var(--line-3); padding: 4px 0 4px 18px; margin: 18px 0 0;
  font-family: var(--mono); font-size: 12px; line-height: 1.85; color: var(--t3);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.quote b { color: var(--t2); font-weight: 500; }

/* ---------- 证据：事件时间线 ---------- */
.tl2 { border: 1px solid var(--line-2); background: var(--s01); }
.tl2-row {
  display: grid; grid-template-columns: 92px 158px 1fr; gap: 14px; align-items: baseline;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--t2);
}
.tl2-row:last-child { border-bottom: 0; }
.tl2-row .t { font-family: var(--mono); font-size: 11px; color: var(--t4); }
.tl2-row .e { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--t3); overflow-wrap: anywhere; }
.tl2-row .d { color: var(--t3); }
.tl2-row.hot { background: var(--s02); }
.tl2-row.hot .e { color: var(--blue); }
.tl2-row.ok .e { color: #6fb183; }
@media (max-width: 640px) {
  .tl2-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
}

/* ---------- 证据：日志分布条 ---------- */
.bar { display: flex; height: 26px; width: 100%; border: 1px solid var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar .b-done { background: #2f4a3a; }
.bar .b-err { background: #4a3a2c; }
.bar .b-ni { background: #3a4250; }
.bar-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--t3); }
.bar-key b { font-weight: 500; color: var(--t2); }

/* ---------- 证据：字段契约表 ---------- */
.fields { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fields th { text-align: left; padding: 0 14px 10px 0; border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--t4); font-weight: 500; }
.fields td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: var(--t3); vertical-align: top; }
.fields td.h { color: var(--t1); font-family: var(--mono); font-size: 12px; }
.fields .no { color: #c08457; }
.fields .yes { color: #6fb183; }

/* ---------- DL 信息网格（统一） ---------- */
.dl { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- 证据编号（案例页内小标题） ---------- */
.ev-h {
  display: flex; align-items: baseline; gap: 12px; margin: 34px 0 16px;
}
.ev-h .n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--blue); }
.ev-h h3 { font-size: 17px; font-weight: 600; }

/* ==========================================================================
   角色展示（第二轮结构修订）
   ========================================================================== */

/* ---------- 角色总览 ---------- */
.rmap {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0;
  border: 1px solid var(--line); background: var(--s01);
}
.rmap-col { padding: 30px 30px 34px; }
.rmap-owner { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.rmap-k {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--t4); margin-bottom: 18px;
}
.rmap-node {
  border: 1px solid var(--line-2); border-radius: 5px; background: var(--canvas);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.rmap-node .rn-name { font-size: 14.5px; font-weight: 600; color: var(--t1); }
.rmap-node .rn-sub { font-size: 12px; color: var(--t3); line-height: 1.6; }
.rmap-node-owner { border-color: var(--line-3); }
.rmap-node-core { position: relative; }
.rmap-node-core::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--blue);
}
.rmap-link-v { flex: 1; min-height: 46px; position: relative; margin: 0 0 0 16px; }
.rmap-link-v::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-3);
}
.rmap-link-v span {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--t4);
  background: var(--s01); padding: 2px 0;
}
.rmap-spine { border-left: 1px solid var(--line-3); margin-left: 6px; padding-left: 22px; }
.rmap-item { position: relative; padding-bottom: 16px; }
.rmap-item::before {
  content: ''; position: absolute; left: -22px; top: 22px; width: 22px; height: 1px; background: var(--line-2);
}
.rmap-item:last-child { padding-bottom: 0; }
.rmap-item .rmap-edge {
  position: absolute; right: 0; bottom: 18px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .08em; color: var(--t4);
}
.rmap-item-dash::before { background: transparent; border-top: 1px dashed var(--line-3); }
.rmap-item-dash .rmap-node { border-style: dashed; }
.rmap-note { margin-top: 16px; max-width: 760px; line-height: 1.9; }
@media (max-width: 900px) {
  .rmap { grid-template-columns: 1fr; }
  .rmap-owner { border-right: 0; border-bottom: 1px solid var(--line); }
  .rmap-item .rmap-edge { position: static; display: block; margin-top: 7px; }
  .rmap-item { padding-bottom: 22px; }
}

/* ---------- 单个角色的全屏章节 ---------- */
.role {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  border-top: 1px solid var(--line); padding: 8vh 0;
}
.role-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: 46% 1fr; gap: clamp(32px, 5vw, 84px); align-items: center;
}
.role-left .role-inner { grid-template-columns: 1fr 46%; }
.role-left .role-portrait { order: 2; }
.role-left .role-copy { order: 1; }

.role-portrait { margin: 0; position: relative; border: 1px solid var(--line-2); background: var(--s01); padding: 10px; }
.role-portrait img {
  width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 12%;
  display: block; filter: contrast(1.04) brightness(.88);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%),
                      linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.role-portrait::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7,8,10,.55) 0%, rgba(7,8,10,0) 18%);
}
.plate-dark::after { background: linear-gradient(to top, rgba(7,8,10,.5) 0%, rgba(7,8,10,0) 14%); }
.role-portrait figcaption {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--t4);
}

.role-copy { max-width: 560px; }
.role-top { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.role-no { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--blue); }
.role-en { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--t4); }
.role-name { font-size: clamp(46px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.role-role { margin-top: 16px; font-size: 18px; color: var(--t2); letter-spacing: .04em; }
.role-blurb { margin-top: 26px; font-size: 17.5px; line-height: 1.9; color: var(--t3); }
.role-duties { list-style: none; margin: 26px 0 0; border-top: 1px solid var(--line); }
.role-duties li {
  font-size: 16.5px; color: var(--t2); padding: 11px 0 11px 18px; position: relative;
  border-bottom: 1px solid var(--line);
}
.role-duties li::before {
  content: ''; position: absolute; left: 0; top: 20px; width: 7px; height: 1px; background: var(--line-3);
}
.role-proof { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line-2); border-left: 2px solid var(--blue); background: var(--s01); }
.role-proof .rp-k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--blue); display: block; margin-bottom: 9px; }
.role-proof p { font-size: 16px; line-height: 1.85; color: var(--t2); }

@media (max-width: 900px) {
  .role { min-height: 0; padding: 64px 0; }
  .role-inner, .role-left .role-inner { grid-template-columns: 1fr; gap: 26px; }
  .role-left .role-portrait, .role-left .role-copy { order: initial; }
  .role-portrait { max-width: 340px; }
  .role-portrait img { aspect-ratio: 4/5; object-position: 50% 8%; }
  .role-blurb { margin-top: 16px; }
  .role-name { font-size: clamp(34px, 9vw, 44px); }
}

/* ==========================================================================
   第一屏（Hero）专项：书法书写动画 + 单图背景
   ========================================================================== */
.cover {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden;
  background-color: #050506;
  background-image:
    radial-gradient(46% 34% at 52% 43%, rgba(163, 184, 212, 0.10) 0%, rgba(5, 5, 6, 0) 72%),
    radial-gradient(78% 62% at 50% 26%, #0b0c10 0%, #07080a 48%, #040405 100%);
}
.cover::before {          /* 细颗粒：整屏一层，边缘由 mask 淡出，不会出现平铺边界 */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='320' height='320' filter='url(%23n)'/></svg>");
  opacity: .05;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 44%, #000 30%, transparent 100%);
  mask-image: radial-gradient(72% 62% at 50% 44%, #000 30%, transparent 100%);
}
.cover::after {           /* 暗角 */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 52% 44%, rgba(0,0,0,0) 30%, rgba(0,0,0,.66) 100%);
}
.cover-grid {             /* 极淡工程网格，只在中心可见 */
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,.055) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.045) 0 1px, transparent 1px 96px);
  -webkit-mask-image: radial-gradient(46% 40% at 52% 44%, #000 0%, transparent 78%);
  mask-image: radial-gradient(46% 40% at 52% 44%, #000 0%, transparent 78%);
}
.cover-inner {
  position: relative; z-index: 3; width: 100%;
  padding: 0 17vw 0 17vw;          /* 左右等边距，字标墨迹实测居中 */
}
.cover-mark { position: relative; width: 100%; }
.cover-mark canvas, .cover-fallback { width: 100%; height: auto; display: block; }
.cover-mark canvas { display: none; }              /* JS 接管后显示 */
.cover-fallback { visibility: hidden; }            /* 无 JS 时由 noscript 打开 */
.cover-tag {
  margin: 1.2vw 0 0 auto; width: 100%; padding-right: 8%;
  text-align: right; color: #dfe3e9; font-size: clamp(12px, 1.05vw, 16px);
  letter-spacing: .06em; font-weight: 400;
  opacity: 0; transform: translateY(10px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
}
html.hero-done .cover-tag { opacity: 1; transform: none; transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  .cover-tag { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 1100px) {
  .cover-inner { padding: 0 8vw; }
  .cover-tag { padding-right: 0; margin-top: 2.2vw; }
}
@media (max-width: 720px) {
  .cover { align-items: center; }
  .cover-inner { padding: 0 22px; }
  .cover-tag { text-align: left; margin-top: 18px; font-size: 13.5px; letter-spacing: .04em; }
}

/* 导航：书法 A + 字距拉开的 AEGIS */
.brand { gap: 10px; }
.brand .brand-wordmark { height: 26px; width: auto; display: block; }
.brand .brand-word {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em;
  color: var(--t2); margin-left: 2px;
}
@media (max-width: 720px) {
  .brand .brand-wordmark { height: 22px; }
  .brand .brand-word { font-size: 9.5px; letter-spacing: .26em; }
}

/* ---------- 角色总览（宏观，卡片网格） ---------- */
.rover {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.rover-card {
  background: var(--canvas); padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 7px;
  transition: background .2s; min-height: 132px;
}
a.rover-card:hover { background: var(--s01); }
.rover-en { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--blue); }
.rover-cn { font-size: 17px; color: var(--t1); font-weight: 500; }
.rover-line { font-size: 15px; color: var(--t3); line-height: 1.7; margin-top: auto; }
.rover-card-owner { border-left: 2px solid var(--line-3); }
.rover-note { margin-top: 18px; font-size: 12.5px; color: var(--t3); }
.rover-note b { color: var(--t2); font-weight: 500; }
@media (max-width: 900px) { .rover { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rover { grid-template-columns: 1fr; } .rover-card { min-height: 0; } }

/* ==========================================================================
   架构总览（第二屏大图）+ 角色图版
   ========================================================================== */
.archsec { padding: clamp(56px, 7vh, 92px) 0; border-top: 1px solid var(--line); }
.archmap { width: 100%; height: auto; display: block; }
.archmap text { font-family: var(--sans); }
.an-owner rect { fill: #0e1013; stroke: #3a4149; }
.an-core rect { fill: #15181d; stroke: var(--blue); stroke-width: 1.3; }
.an-agent rect { fill: #0d0f12; stroke: #2b3138; }
.an-side rect { fill: none; stroke: #3a4149; stroke-dasharray: 5 5; }
.an-name { fill: #f2f4f7; text-anchor: middle; font-weight: 600; letter-spacing: .02em; }
.an-sub { fill: #98a1ad; text-anchor: middle; }
.an-link { stroke: #3b424b; stroke-width: 1.2; fill: none; }
.an-link-strong { stroke: var(--blue); stroke-width: 1.6; fill: none; marker-end: url(#arrow); }
.an-link-side { stroke: #4a525c; stroke-width: 1.2; fill: none; }
.an-edge { fill: #98a1ad; font-family: var(--mono); letter-spacing: .05em; }
.an-edge-side { fill: #79828f; font-family: var(--mono); }
.an-note { fill: #79828f; text-anchor: middle; }
.arch-cap { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 22px; font-size: 14px; color: var(--t3); }
.arch-cap b { color: var(--t2); font-weight: 500; }

/* 图版：统一外框，内部三种介质 */
.role-portrait {
  margin: 0; position: relative; border: 1px solid var(--line-2);
  aspect-ratio: 3 / 4; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
}
.plate-dark { background: radial-gradient(72% 58% at 50% 34%, #15181d 0%, #08090b 78%); padding: 0; }
.plate-dark img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block;
  /* 立绘要完整露出：取消通用图版的底部/两侧渐隐遮罩，并去掉通用 0.88 压暗 */
  -webkit-mask-image: none; mask-image: none; -webkit-mask-composite: none; mask-composite: none;
  filter: none;
}
.plate-paper { background: #fff; border-color: #2b2926; padding: 14px; align-items: center; }
.plate-paper img { width: 100%; height: 100%; object-fit: contain; filter: contrast(1.06); }
/* 纸白图版不吃暗角：否则底部会被压成灰色 */
.plate-paper::after { display: none; }
.plate-glyph { background: #08090b; align-items: center; padding: 16%; }
.plate-glyph img { width: 74%; height: auto; }
.plate-portrait { background: var(--s01); }
.plate-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.92); }
.role-portrait figcaption {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--t4);
}
.plate-paper figcaption { color: #5b5750; }

.arch-panel {
  border: 1px solid var(--line); background:
    radial-gradient(60% 55% at 50% 40%, #0d0f13 0%, #08090b 72%);
  padding: clamp(20px, 3vw, 44px);
}
.archsec .sec-head { margin-bottom: 30px; }

.arch-m { display: none; }
@media (max-width: 860px) {
  .archmap:not(.archmap-m) { display: none; }
  .arch-m { display: block; }
}

/* ==========================================================================
   02 / AGENT NETWORK —— 交互式角色网络
   ========================================================================== */
.netsec { padding: clamp(64px, 8vh, 104px) 0 clamp(48px, 6vh, 76px); border-top: 1px solid var(--line); }
.net-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.net-head .idx { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--t3); }
.net-head h2 { margin: 14px 0 0; font-size: clamp(33px, 3.7vw, 48px); font-weight: 600; letter-spacing: -.02em; }
.net-lede { margin: 18px 0 0; max-width: 620px; color: var(--t2); font-size: 19px; line-height: 1.75; }

.net-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.net-tab {
  appearance: none; border: 0; background: transparent; color: var(--t3);
  font: inherit; font-size: 14px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}
.net-tab:hover { color: var(--t1); }
.net-tab.is-on { background: #16191e; color: #eef2f7; }
.net-tab:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; }

.net-stage {
  position: relative; margin-top: 30px; height: clamp(620px, 74vh, 790px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.net-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nl { fill: none; stroke: #3c444e; stroke-width: 1.35; transition: stroke .35s ease, opacity .35s ease, stroke-width .35s ease; }
.nl-core { stroke: #57636f; stroke-width: 2; }
.nl-manual { stroke: #4a535d; stroke-dasharray: 6 7; }
.nl.is-lit { stroke: var(--blue); stroke-width: 2; }
.nl.is-dim { opacity: .18; }
.nl-label {
  fill: #96a0ac; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em;
  transition: fill .3s ease, opacity .3s ease;
}
.nl-label.is-lit { fill: #9fc2ee; }
.nl-label.is-dim { opacity: .2; }

.net-node {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 14px; width: 260px;
  text-decoration: none; color: inherit; text-align: center;
  padding: 6px; border-radius: 16px;
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,.61,.36,1);
  opacity: 0;
}
.net-stage.in .net-node { opacity: 1; }
.net-stage.in .net-node:nth-of-type(2) { transition-delay: .05s; }
.net-stage.in .net-node:nth-of-type(3) { transition-delay: .1s; }
.net-stage.in .net-node:nth-of-type(4) { transition-delay: .15s; }
.net-stage.in .net-node:nth-of-type(5) { transition-delay: .2s; }
.net-stage.in .net-node:nth-of-type(6) { transition-delay: .25s; }

.nn-face {
  display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%;
  overflow: hidden; background: #0d0f13; border: 1px solid #2c333c;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.nn-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nn-xl .nn-face { width: 148px; height: 148px; border-color: #3a4553; }
.nn-lg .nn-face { width: 132px; height: 132px; }
.nn-glyph { font-family: var(--sans); font-size: 34px; color: #dfe5ee; letter-spacing: .02em; }
.nn-xl .nn-glyph { font-size: 44px; }
.net-node:hover .nn-face, .net-node:focus-visible .nn-face, .net-node.is-lit .nn-face {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(71,133,216,.10);
}
.net-node:focus-visible { outline: none; }
.nn-meta { display: grid; gap: 6px; }
.nn-en { font-family: var(--mono); font-size: 13.5px; letter-spacing: .16em; color: #c8d0da; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.nn-zh { font-size: 18px; color: #e8edf3; line-height: 1.45; }
.nn-sub { font-size: 15px; color: var(--t3); line-height: 1.65; max-width: 250px; margin-top: -2px; }
.nn-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: #8b949f;
  border: 1px dashed #3a424c; border-radius: 999px; padding: 2px 7px;
}
.nn-xl .nn-zh { font-size: 20px; }
.net-node.is-dim { opacity: .3; }
.net-node.is-lit .nn-zh { color: #fff; }

.net-foot { display: flex; flex-wrap: wrap; gap: 8px 34px; margin-top: 22px; }
.net-note { margin: 0; font-size: 14px; color: var(--t3); letter-spacing: .02em; }
.net-note-dim { color: #6f7885; }

/* 视图高亮（由 JS 打 class，CSS 只负责收尾） */
.net-stage[data-view="delegate"] .nl-manual,
.net-stage[data-view="research"] .nl-flow,
.net-stage[data-view="research"] .nl-core { opacity: .12; }

/* 移动端：竖排，不用缩放桌面图 */
@media (max-width: 860px) {
  .net-head { flex-direction: column; align-items: flex-start; }
  .net-tabs { align-self: stretch; justify-content: space-between; }
  .net-tab { flex: 1; padding: 9px 10px; font-size: 13.5px; }
  .net-stage {
    height: auto; display: flex; flex-direction: column; gap: 26px;
    padding: 30px 0 30px 26px; border: 0; border-left: 1px solid #262c34; margin-left: 12px;
  }
  .net-links { display: none; }
  .net-node {
    position: static; transform: none; width: 100%;
    grid-template-columns: 64px 1fr; justify-items: start; text-align: left; gap: 14px;
    opacity: 1; align-items: center;
  }
  .nn-face, .nn-xl .nn-face, .nn-lg .nn-face { width: 64px; height: 64px; }
  .nn-glyph, .nn-xl .nn-glyph { font-size: 22px; }
  .nn-meta { gap: 4px; }
  .nn-zh, .nn-xl .nn-zh { font-size: 15px; }
  .nn-sub { grid-column: 2; font-size: 13px; max-width: none; }
  .net-node[data-slug="owner"] { order: 1; }
  .net-node[data-slug="hermes"] { order: 2; }
  .net-node[data-slug="claude"] { order: 3; }
  .net-node[data-slug="pi"] { order: 4; }
  .net-node[data-slug="codex"] { order: 5; }
  .net-node[data-slug="chatgpt"] { order: 6; }
}
@media (prefers-reduced-motion: reduce) {
  .net-node { transition: none; opacity: 1; }
  .nl { transition: none; }
}

.role { scroll-margin-top: 84px; }

/* ==========================================================================
   arch-ext v2 —— 第二屏加法层（左：物理接触面 / 右：模型池）
   回滚 = 删除本区块 + components_network.py 里的 .arch-ext-grid 包裹。
   命名前缀：.arch-ext-* / .ext-*，不与既有 net-* 规则冲突。
   ========================================================================== */

/* 本屏容器放宽：只影响 #arch，其余页面沿用 --maxw。
   .netsec 的 padding 简写会把 .wrap 的左右留白清成 0，这里补回横向 gutter。 */
#arch.wrap {
  max-width: min(1740px, 100%);
  padding-left: clamp(18px, 2.4vw, 46px);
  padding-right: clamp(18px, 2.4vw, 46px);
}

.arch-ext-grid {
  display: grid;
  grid-template-columns: minmax(180px, 214px) minmax(0, 1fr) minmax(190px, 218px);
  gap: clamp(12px, 1.2vw, 30px);
  margin-top: 30px;
  align-items: start;
}
.arch-ext-grid > .net-stage { margin-top: 0; }

/* ---------- 侧栏骨架 ---------- */
.arch-ext { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; }
.ext-kicker { display: grid; gap: 5px; margin: 0; }
.ext-kicker span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: #6f7885; }
.ext-kicker em { font-style: normal; font-size: 13px; color: #66707c; }
.ext-caveat { margin: 2px 0 0; font-size: 12px; line-height: 1.62; color: #616a75; }
.arch-ext-right { text-align: right; }

/* ---------- 左侧：物理设备 ---------- */
.arch-ext-item { outline: none; }
.ext-dev {
  display: grid; gap: 11px; margin: 0; padding: 13px 13px 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: #0b0e11;
  transition: border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.ext-dev.is-phone { justify-items: center; }
.ext-art { display: flex; align-items: center; justify-content: center; }
.ext-dev .ext-svg { transition: filter .45s ease; }
.ext-dev .ext-svg-esp { margin: -4px 0 -6px; }
.ext-body { display: grid; gap: 6px; }
.ext-name {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: #cfd6df;
}
.ext-badge {
  font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em;
  color: #8b949f; border: 1px solid #2d333b; border-radius: 999px; padding: 1px 7px;
}
.ext-line { font-size: 13px; line-height: 1.6; color: var(--t3); }
.ext-sub { font-size: 12px; line-height: 1.6; color: #737d89; }
.ext-dev .ext-state { margin-top: 2px; }
.ext-dev .ext-state i {
  font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  color: #9aa7b5; border: 1px solid #2f353d; border-radius: 999px; padding: 2px 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.ext-dev .ext-state i::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ok); opacity: .85; }

/* ---------- 右侧：模型资源 ---------- */
.ext-models { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ext-stone {
  display: grid; grid-template-columns: 1fr 46px; gap: 10px; align-items: center;
  padding: 9px 10px 9px 12px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #0b0e11; text-align: right;
  transition: border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.ext-stone-art { order: 2; display: flex; justify-content: flex-end; }
.ext-stone-body { order: 1; display: grid; gap: 3px; }
.ext-stone .ext-name { justify-content: flex-end; font-size: 11px; }
.ext-stone .ext-svg { transition: filter .45s ease; }
.ext-spec { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; color: #757f8b; }
.ext-stone .ext-sub { font-size: 11px; line-height: 1.5; }
.ext-state {
  font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  border: 1px solid #2f353d; border-radius: 999px; padding: 1px 6px; color: #8b949f;
  white-space: nowrap;
}
.ext-state.is-current { color: #9fc2ee; border-color: rgba(71, 133, 216, .45); }
.ext-state.is-standby { color: #8b949f; border-style: dashed; }
.ext-state.is-active { color: #a5aebb; border-color: #333941; }

/* ---------- 悬停 / 聚焦：轻微高亮 ---------- */
.ext-dev:hover, .ext-dev:focus-visible, .ext-dev.is-lit {
  border-color: rgba(71, 133, 216, .45);
  background: #10141a;
  box-shadow: 0 0 0 3px rgba(71, 133, 216, .06);
}
.ext-dev:hover .ext-svg, .ext-dev:focus-visible .ext-svg, .ext-dev.is-lit .ext-svg {
  filter: drop-shadow(0 0 9px rgba(71, 133, 216, .30));
}
.ext-dev:hover .ext-line, .ext-dev.is-lit .ext-line { color: #d3dae3; }

.ext-stone:hover, .ext-stone:focus-visible, .ext-stone.is-lit {
  border-color: rgba(71, 133, 216, .40);
  background: #10141a;
  box-shadow: 0 0 0 3px rgba(71, 133, 216, .06);
}
.ext-stone:hover .ext-svg, .ext-stone:focus-visible .ext-svg, .ext-stone.is-lit .ext-svg {
  filter: drop-shadow(0 0 8px rgba(71, 133, 216, .26));
}

/* ---------- 辅助连线（由 arch-ext.js 绘制） ---------- */
.nl-aux {
  stroke: #333c47; stroke-width: 1; stroke-dasharray: 1 6; stroke-linecap: round;
  transition: stroke .3s ease, stroke-width .3s ease, opacity .3s ease;
}
.nl-aux.is-lit { stroke: rgba(71, 133, 216, .68); stroke-width: 1.4; stroke-dasharray: 1 5; }

/* ---------- 克制的入场 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .arch-ext-grid .arch-ext { animation: arch-ext-in 900ms cubic-bezier(.22, .61, .36, 1) both; }
  .arch-ext-grid .arch-ext-right { animation-delay: 120ms; }
  @keyframes arch-ext-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .arch-ext-grid .arch-ext { animation: none; }
}

/* ---------- 窄屏：左右收进纵向流 ---------- */
@media (max-width: 1280px) {
  .arch-ext-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .arch-ext { padding-top: 0; }
  .arch-ext-left { order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .arch-ext-grid > .net-stage { order: 2; }
  .arch-ext-right { order: 3; }
  .arch-ext-left .ext-kicker, .arch-ext-left .ext-caveat { grid-column: 1 / -1; }
  .arch-ext-right .ext-kicker, .arch-ext-right .ext-caveat { text-align: left; }
  .ext-models { grid-template-columns: 1fr 1fr; }
  .ext-stone { text-align: left; grid-template-columns: 46px 1fr; }
  .ext-stone-art { order: 1; justify-content: flex-start; }
  .ext-stone-body { order: 2; }
  .ext-stone .ext-name { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .arch-ext-left { grid-template-columns: 1fr; }
  .ext-models { grid-template-columns: 1fr; }
  .ext-dev { grid-template-columns: 84px 1fr; align-items: center; justify-items: stretch; gap: 14px; padding: 13px 14px; }
  .ext-dev.is-phone { grid-template-columns: 84px 1fr; }
  .ext-dev .ext-svg-phone { width: 54px; height: auto; }
  .ext-dev .ext-svg-esp { width: 82px; height: auto; margin: 0; }
  .ext-kicker em { font-size: 12px; }
}

/* ==========================================================================
   影片（系统页 · Aegis AI Squad V6）—— 沿用 Dark Enterprise：细发丝描边、无 glow
   ========================================================================== */
.film { margin: 0; }
.film-frame {
  position: relative;
  border: 1px solid var(--line-2);
  background: #000;
  line-height: 0;
}
.film-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.film-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  outline: none;
}
.film-frame video:focus-visible { box-shadow: inset 0 0 0 1px var(--blue); }
.film-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  margin-top: 18px;
}
.film-title { font-size: 16px; color: var(--t1); }
.film-spec { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--t4); }
.film-note { font-size: 13.5px; color: var(--t4); margin-top: 8px; max-width: 820px; }
@media (max-width: 720px) {
  .film-bar { gap: 4px 14px; }
  .film-title { font-size: 14.5px; }
  .film-spec { font-size: 10px; }
  .film-note { font-size: 13px; }
}
