/* 评审补充材料站（2026-12-07）：只复用产品自己的 tokens / components 与演示录屏页的版式，
   不新造颜色与字号。这里只补三件事：页面底、左栏选中块的滑动、正文排版。 */

html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── 左栏：导航项 + 一块会滑动的选中底（与演示录屏页、与软件左栏同一套视觉） */
.rail .nav { position: relative; }
.rail .nav a {
  position: relative; z-index: 1;
  display: block; width: 100%; text-align: left; padding: 8px 12px;
  border: 0; border-radius: 8px; background: none; color: var(--muted);
  font: inherit; font-size: 13px; text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail .nav a[aria-current="page"] { color: var(--fg); font-weight: 500; }
.rail .nav a:active { transform: scale(.985); }
.rail .nav a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.nav-mark {
  position: absolute; left: 0; right: 0; top: 0; height: 0;
  border-radius: 8px;
  background: var(--rail-active);
  box-shadow: var(--shadow-nav);
  transition: transform var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.rail .nav.sub { border-top: 1px solid var(--line); padding-top: 8px; }

/* ── 主区 */
.workspace { padding: 16px; }
.sheet + .sheet { margin-top: 16px; }
.sheet .row { color: var(--fg); text-decoration: none; }
.sheet .row:hover .tail { color: var(--fg); }

.video-wrap { margin: 0; }
.video-wrap video { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; }

.note { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted); max-width: 760px; }
.finding { margin: 0; font-size: 15px; line-height: 1.8; }

.acts { justify-content: flex-end; }
.acts.start { justify-content: flex-start; }

/* ── 正文（四份文档与实验卡片共用） */
.prose {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 760px; min-width: 0;
  font-size: 15px; line-height: 1.78;
  /* 正文里会出现"域名/路径"这类长 ASCII 串（引用出处用），不许它把窄屏撑出横滑 */
  overflow-wrap: anywhere;
}
.prose > * { margin: 0; }
.prose.wide { max-width: none; }            /* 十列的排名表要地方，别压在 760 里 */
.prose td:first-child { min-width: 4.5em; }   /* 标签位给个下限：窄屏别把「版本」折成一字一行 */
.prose h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 8px; }
.prose h3 { font-size: 15px; font-weight: 600; margin-top: 4px; }
.prose h4 { font-size: 15px; font-weight: 600; color: var(--muted); }
.prose p { font-size: 15px; line-height: 1.78; }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; }
.prose li { line-height: 1.75; }
.prose strong { font-weight: 600; }
.prose code {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5;
  background: var(--fill); border-radius: 6px; padding: 1px 5px;
  word-break: break-word; overflow-wrap: anywhere;
}
.prose blockquote {
  padding: 2px 0 2px 14px; border-left: 2px solid var(--rule);
  color: var(--muted); font-size: 14px; line-height: 1.8;
  display: flex; flex-direction: column; gap: 10px;
}
.prose blockquote > * { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose pre.code {
  margin: 0; padding: 14px 16px;
  background: var(--fill); border-radius: 10px;
  overflow-x: auto; font-family: var(--font-mono);
  font-size: 12px; line-height: 1.65;
  /* 横滑要生效：flex 子项的 min-width 默认是 auto，不压回 0 就会把那行原样撑出页面 */
  max-width: 100%; min-width: 0; overflow-wrap: normal;
}
.prose pre.code code {
  display: block; background: none; padding: 0; font-size: inherit;
  border-radius: 0; overflow-wrap: normal; word-break: normal;
}

/* 表格：窄屏横向滚，标题不折行 */
.table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; }
.prose table, .body > .table-wrap table { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.7; }
.prose th, .body th {
  text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; white-space: nowrap;
}
.prose td, .body td {
  text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose tr:last-child td, .body tr:last-child td { border-bottom: 0; }

/* 折叠块：不能证明什么 */
details.more { max-width: 760px; }
details.more summary {
  cursor: pointer; list-style: none;
  font-size: 13px; color: var(--muted);
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "＋ "; }
details.more[open] summary::before { content: "－ "; }
details.more summary:hover { color: var(--fg); }
details.more ul { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
details.more li { font-size: 13px; line-height: 1.8; color: var(--muted); }

.fields { max-width: 760px; }
.field-row dd code { font-family: var(--font-mono); font-size: 12px; word-break: break-all; text-align: left; }

/* 覆盖清单的小药丸 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px;
  background: var(--fill); color: var(--muted);
}

/* ── 窄屏：左栏折到顶上 */
@media (max-width: 860px) {
  .shell { display: block; height: auto; overflow: visible; }
  .rail { width: auto; flex: none; gap: 12px; }
  .rail .nav { flex-direction: row; flex-wrap: wrap; }
  .rail .nav a { width: auto; }
  .rail .nav.sub { border-top: 0; padding-top: 0; }
  .workspace { overflow: visible; padding: 16px; }
  .nav-mark { display: none; }
  .prose { max-width: none; }
}
