/* ============================================================
   设计变量
   品牌三色取自 AI 讨论组海报：Claude 赭红、Codex 青绿、Antigravity 钴蓝
   只在“代表三家模型”的位置使用，其余界面由墨色与共识青绿承担
   ============================================================ */
@font-face { font-family: "Instrument Serif"; src: url("/static/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("/static/fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #f2f3ef;
  --bg-2: #eaece7;
  --surface: #ffffff;
  --surface-2: #f1f3ef;
  --ink: #19212a;
  --ink-2: #38424c;
  --muted: #646e78;
  --faint: #8a939b;
  --line: #dde1dc;
  --line-strong: #c4cac4;
  --accent: #1f6b5c;
  --accent-soft: #e2eeea;
  --accent-ink: #ffffff;
  --claude: #b5532f;
  --codex: #2f6b5e;
  --agy: #3a5a9a;
  --amber: #a8660b;
  --amber-soft: #f6ebd8;
  --danger: #b3261e;
  --danger-soft: #f8e2df;
  --focus: #2266cc;
  --code-bg: #f0f2ee;
  --blend: multiply;
  --grain: url("/static/img/grain.svg");
  --shadow-sm: 0 1px 1px rgba(25, 33, 42, .04), 0 2px 6px rgba(25, 33, 42, .05);
  --shadow-md: 0 1px 2px rgba(25, 33, 42, .05), 0 8px 24px -6px rgba(25, 33, 42, .12);
  --shadow-lg: 0 2px 4px rgba(25, 33, 42, .04), 0 22px 48px -14px rgba(25, 33, 42, .22);
  --shadow: var(--shadow-md);

  --font-serif: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  /* 拉丁数字与英文标注：Instrument Serif；中文回落到宋体 */
  --font-latin: "Instrument Serif", var(--font-serif);

  --fs-xs: .8rem;
  --fs-sm: .9rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5625rem;
  --fs-2xl: 1.953rem;
  --fs-3xl: 2.441rem;

  --gutter: 16px;
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1200px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #101315;
  --bg-2: #14181b;
  --surface: #171c1f;
  --surface-2: #1d2327;
  --ink: #dde3e0;
  --ink-2: #b7c1bc;
  --muted: #8b9792;
  --faint: #6a7571;
  --line: #262e32;
  --line-strong: #36403f;
  --accent: #62c6b0;
  --accent-soft: #15302b;
  --accent-ink: #0c1d19;
  --claude: #e58b64;
  --codex: #56c4a6;
  --agy: #8aa5ee;
  --amber: #e2a650;
  --amber-soft: #36291a;
  --danger: #f08378;
  --danger-soft: #3b1f1c;
  --focus: #7fb0ff;
  --code-bg: #1a2024;
  --blend: screen;
  --shadow-sm: 0 1px 1px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 26px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 52px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101315; --bg-2: #14181b; --surface: #171c1f; --surface-2: #1d2327;
    --ink: #dde3e0; --ink-2: #b7c1bc; --muted: #8b9792; --faint: #6a7571;
    --line: #262e32; --line-strong: #36403f; --accent: #62c6b0; --accent-soft: #15302b; --accent-ink: #0c1d19;
    --claude: #e58b64; --codex: #56c4a6; --agy: #8aa5ee;
    --amber: #e2a650; --amber-soft: #36291a; --danger: #f08378; --danger-soft: #3b1f1c;
    --focus: #7fb0ff; --code-bg: #1a2024; --blend: screen;
    color-scheme: dark;
  }
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ============================================================
   基础
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
/* 横向裁切统一由根元素处理，避免 body 建立滚动容器影响吸附。 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--grain) repeat, var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] body { background-blend-mode: soft-light, normal; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.latin { font-family: var(--font-latin); }

/* ============================================================
   标志
   ============================================================ */
.logo-mark { flex: none; display: block; overflow: visible; }
.logo-mark .mk-rim { fill: none; stroke: var(--ink); stroke-width: 1.25; opacity: .88; }
.logo-mark .mk-ticks { stroke: var(--ink); stroke-width: 1; opacity: .5; stroke-linecap: round; }
.logo-mark .mk-rings circle { stroke-width: 1.35; fill-opacity: .17; mix-blend-mode: var(--blend); }
.logo-mark .mk-claude { stroke: var(--claude); fill: var(--claude); }
.logo-mark .mk-codex { stroke: var(--codex); fill: var(--codex); }
.logo-mark .mk-agy { stroke: var(--agy); fill: var(--agy); }
.logo-mark .mk-seat { fill-opacity: 1; stroke: var(--bg); stroke-width: 1.3; }
.logo-mark .mk-cross path { stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; fill: none; }
.logo-mark .mk-cross circle { fill: var(--ink); }
.logo-mark .mk-cross circle.halo { fill: var(--bg); fill-opacity: .85; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-text { display: grid; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--font-serif); font-weight: 900; font-size: 1.14rem; letter-spacing: .06em; white-space: nowrap; }
.brand-sub { font-family: var(--font-latin); font-style: italic; font-size: .92rem; color: var(--muted); letter-spacing: .01em; white-space: nowrap; margin-top: 3px; }
.brand:hover .brand-name { color: var(--accent); }
.brand:hover .logo-mark .mk-rings { transform: rotate(120deg); }
.feature .logo-mark .mk-cross circle.halo, .doc-end .logo-mark .mk-cross circle.halo, .badge-consensus .logo-mark .mk-cross circle.halo { fill: var(--surface); }
.logo-mark .mk-rings { transform-origin: 20px 20px; transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .logo-mark .mk-rings { transition: none; } }

/* ============================================================
   顶栏
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.topbar .wrap { display: flex; align-items: center; gap: 10px; height: 64px; }
.topbar .spacer { flex: 1; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 6px 12px; border-radius: 999px; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2);
  cursor: pointer; box-shadow: var(--shadow-sm); text-decoration: none;
}
.icon-btn:hover { color: var(--accent); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.read-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--claude), var(--codex) 55%, var(--agy));
  transform-origin: 0 50%; transform: scaleX(0);
}
@media (max-width: 640px) {
  .nav .hide-sm, .topbar .hide-sm { display: none; }
  .brand-sub { display: none; }
}

/* ============================================================
   按钮、标签、提示
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: var(--fs-sm); line-height: 1; font-weight: 500;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s, background .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.lg { height: 44px; padding: 0 22px; font-size: var(--fs-md); }
.btn svg { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 1px 10px; border-radius: 999px; font-size: var(--fs-xs); line-height: 1.9;
  border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; background: var(--surface);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip small { color: inherit; opacity: .6; font-size: 1em; font-variant-numeric: tabular-nums; }

/* 分类图标：描边随文字色；讨论组共识图标的三个测距圆使用品牌三色 */
.cat-ico { flex: none; display: inline-block; vertical-align: -3px; }
.cat-ico .ci-claude { stroke: var(--claude); }
.cat-ico .ci-codex { stroke: var(--codex); }
.cat-ico .ci-agy { stroke: var(--agy); }
.cat .meta-ico, .badge-research .meta-ico { margin-right: 1px; }
.att-list .c .cat-ico { vertical-align: -2px; }
/* 宽屏：图标悬挂在标题左侧的留白中，文字仍与页面左缘对齐；信息行不再重复显示图标 */
.row-main { position: relative; }
.hang-ico { display: none; position: absolute; left: -36px; top: 5px; color: var(--faint); line-height: 0; }
.entry.is-discussion .hang-ico { color: var(--accent); }
@media (min-width: 1240px) {
  .hang-ico { display: block; }
  .entry .meta .cat .meta-ico { display: none; }
}

/* 三色小点：标注“讨论组共识” */
.triad { display: inline-flex; gap: 2px; align-items: center; }
.triad i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.triad i:nth-child(1) { background: var(--claude); }
.triad i:nth-child(2) { background: var(--codex); }
.triad i:nth-child(3) { background: var(--agy); }

.tip-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.tip-btn {
  display: inline-grid; place-items: center; height: 24px; padding: 0 7px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: help; font: 600 .7rem/1 var(--font-sans);
}
.tip-btn { position: relative; }
.tip-btn::after { content: ""; position: absolute; inset: -10px; }
.tip-btn:hover, .tip-btn:focus-visible { color: var(--accent); border-color: var(--accent); }
.tip {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 40; width: min(320px, calc(100vw - 32px));
  padding: 14px 16px; border-radius: 12px; background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: .86rem; line-height: 1.7; font-weight: 400; text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; transform: translate(var(--dx, 0px), -4px); transition: opacity .14s, transform .14s, visibility .14s;
}
.tip::before {
  content: ""; position: absolute; top: -6px; left: calc(22px - var(--dx, 0px)); width: 10px; height: 10px; transform: rotate(45deg);
  background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.tip strong { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .92rem; margin-bottom: 4px; }
.tip a { display: inline-block; margin-top: 6px; font-weight: 600; }
.tip-wrap:hover .tip, .tip-wrap:focus-within .tip, .tip-wrap.open .tip { opacity: 1; visibility: visible; transform: translate(var(--dx, 0px), 0); transition-delay: .08s; }
.tip-wrap.closed .tip { opacity: 0; visibility: hidden; }
.tip-wrap:not(:hover):not(:focus-within):not(.open) .tip { max-width: 0; overflow: hidden; padding: 0; border-width: 0; transition: opacity .14s, transform .14s, visibility .14s, max-width 0s .14s, padding 0s .14s, border-width 0s .14s; }
.tip.right { left: auto; right: -8px; }
.tip.right::before { left: auto; right: calc(22px + var(--dx, 0px)); }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

/* ============================================================
   首页：刊头
   ============================================================ */
.hero { position: relative; padding: 56px 0 44px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px; align-items: center; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 900; margin: 0;
  font-size: clamp(2rem, 1.15rem + 3.1vw, 3.45rem); line-height: 1.2; letter-spacing: .02em;
  text-wrap: balance; max-width: 13em;
}
/* 大标题按标点分句换行，避免把词语拆到两行 */
.hero h1 .hl-seg { display: inline-block; max-width: 100%; }
.hero h1 .hl-line { display: block; }
.hero .lead { margin: 18px 0 0; color: var(--ink-2); font-size: 1.12rem; line-height: 1.8; max-width: 34em; }
.legend { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 28px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend li::before { content: ""; width: 5px; height: 14px; border-radius: 1px; background: var(--c, var(--ink)); }
.legend b { color: var(--ink); font-weight: 600; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0 0; padding: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; padding: 2px 24px 2px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; margin-right: 0; }
.hero-stats dt { font-size: var(--fs-xs); color: var(--muted); }
.hero-stats dd { margin: 0; font-family: var(--font-latin); font-size: 2.3rem; line-height: 1.05; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.hero-stats dd small { font-size: 1.1rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% 8%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--surface) 90%, transparent), transparent);
}
.hero-art svg { position: relative; width: 100%; max-width: 440px; height: auto; }
.hero-art svg.flow { max-width: 520px; }

@media (max-width: 900px) {
  .hero { padding: 28px 0 28px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 260px; }
  .hero-art svg.flow { max-width: 300px; }
  .hero-art .fl-lb { display: none; }
}
@media (max-width: 480px) {
  .legend { grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: .88rem; }
  .hero-stats div { padding-right: 14px; margin-right: 14px; }
  .hero-stats dd { font-size: 1.9rem; }
}
@media (max-width: 640px) {
  .hero { padding: 22px 0 18px; overflow: hidden; }
  .hero .wrap { display: block; }
  .hero .wrap > div:first-child { position: relative; z-index: 1; }
  .hero-art { position: absolute; right: -54px; top: -32px; width: 210px; opacity: .12; pointer-events: none; }
  .hero-art svg { max-width: none; }
  .hero h1 { font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.1rem); max-width: 15em; }
  .hero .lead { margin-top: 12px; font-size: .95rem; line-height: 1.65; }
  .hero .legend { display: none; }
  .hero-stats { margin-top: 16px; }
  .hero-stats div { padding-right: 12px; margin-right: 12px; }
  .hero-stats dd { font-size: 1.65rem; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn.lg { height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
}

/* 刻度盘 */
.dial .dl-orbit { fill: none; stroke: var(--faint); stroke-width: .8; stroke-dasharray: 1 6; }
.dial .dl-rim { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: .8; }
.dial .dl-tick { stroke: var(--ink); stroke-width: .7; opacity: .35; }
.dial .dl-tick.major { stroke-width: 1.1; opacity: .7; }
.dial .dl-src { mix-blend-mode: var(--blend); }
.dial .dl-field { fill: var(--c); fill-opacity: .08; stroke: none; }
.dial .dl-ring { fill: none; stroke: var(--c); stroke-width: .75; opacity: var(--o); }
.dial .dl-ring.outer { stroke-width: 1.6; opacity: .95; }
.dial .dl-ray { stroke: var(--c); stroke-width: 1; stroke-dasharray: 3 4; }
.dial .dl-core { fill: var(--c); }
.dial .dl-claude { --c: var(--claude); }
.dial .dl-codex { --c: var(--codex); }
.dial .dl-agy { --c: var(--agy); }
.dial .dl-cross path, .dial .dl-cross .ring { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.dial .dl-cross .dot { fill: var(--ink); }
.dial .dl-seat { stroke: var(--c); stroke-width: 2; }
.dial .dl-seat.filled { fill: var(--c); }
.dial .dl-seat.hollow { fill: var(--bg); }
.dial text { font-family: var(--font-sans); }
.dial .dl-lb { font-size: 17px; font-weight: 600; fill: var(--ink); }
.dial .dl-lb.muted { font-size: 14px; font-weight: 400; fill: var(--muted); }
.dial .dl-claude-t { fill: var(--claude); }
.dial .dl-codex-t { fill: var(--codex); }
.dial .dl-agy-t { fill: var(--agy); }
.dial .dl-tag { font-family: var(--font-latin); font-size: 16px; font-weight: 700; }
.dial .dl-num { font-family: var(--font-latin); font-size: 17px; fill: var(--ink); }
.dial .halo { paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }

/* 刻度盘加载动画：测距环依次展开，准星最后出现（仅一次） */
.dial.animate .dl-src { animation: dl-in 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * .16s + .1s); transform-box: fill-box; transform-origin: center; }
.dial.animate .dl-cross { animation: dl-fade .6s ease-out .75s both; }
.dial.animate .dl-seat { animation: dl-fade .5s ease-out .9s both; }
@keyframes dl-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes dl-fade { from { opacity: 0; } to { opacity: 1; } }
/* 首页外圈六站闭环：静止时即终态（整圈亮弧、六站可见），动画只播一轮 */
.dial .fl-track { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.dial .fl-arc { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.dial .fl-head { opacity: 0; }
.dial .fl-head circle { fill: var(--accent); }
.dial .fl-node { fill: var(--surface); stroke: var(--accent); stroke-width: 1.8; }
.dial .fl-no { font-family: var(--font-latin); font-size: 15px; fill: var(--accent); }
.dial .fl-lb { font-size: 17px; font-weight: 600; fill: var(--ink-2); }
.dial.flow.animate .fl-arc { animation: fl-draw 3s linear 1.3s both; }
.dial.flow.animate .fl-head { animation: fl-spin 3s linear 1.3s both, fl-blink 3.2s linear 1.2s both; }
.dial.flow.animate .fl-st { animation: fl-pop .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * .5s + 1.25s); transform-box: fill-box; transform-origin: center; }
.dial.flow.animate .dl-cross { animation: dl-fade .6s ease-out .75s both, fl-pulse .8s ease-in-out 2.3s; transform-box: fill-box; transform-origin: center; }
@keyframes fl-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes fl-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fl-blink { 0%, 100% { opacity: 0; } 3%, 97% { opacity: 1; } }
@keyframes fl-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes fl-pulse { 0%, 100% { transform: none; } 45% { transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .dial.animate * { animation: none !important; } }

#reports { scroll-margin-top: 80px; }
.list-end { height: 56px; }
.page-intro { padding: 40px 0 26px; }
.page-intro h1 { display: flex; align-items: center; gap: 14px; margin: 0; font-family: var(--font-serif); font-weight: 900; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1.25; }
.page-intro p { margin: 12px 0 0; color: var(--ink-2); max-width: 44em; font-size: 1.05rem; }
.page-intro:empty { padding: 20px 0 0; }

/* ============================================================
   首页：最新共识
   ============================================================ */
.feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: end;
  padding: 30px 32px 28px; margin-bottom: 40px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); overflow: hidden;
  text-decoration: none; color: inherit;
}
.feature::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--claude) 0 33.3%, var(--codex) 33.3% 66.6%, var(--agy) 66.6%);
}
.feature .kicker { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); grid-column: 1 / -1; }
.feature .kicker b { color: var(--ink); font-weight: 600; }
.feature h2 { margin: 4px 0 0; font-family: var(--font-serif); font-weight: 900; font-size: clamp(1.4rem, 1rem + 1.4vw, 1.95rem); line-height: 1.3; color: var(--ink); }
.feature p { margin: 10px 0 0; color: var(--ink-2); max-width: 48em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature .fmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); }
.feature .big-ver { font-family: var(--font-latin); font-size: clamp(3rem, 2rem + 4vw, 5.2rem); line-height: .9; color: var(--accent); font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.feature:hover h2 { color: var(--accent); }
.feature:hover { border-color: var(--line-strong); }
@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; padding: 14px 16px 16px; margin-bottom: 18px; gap: 3px; }
  .feature .big-ver { display: none; }
  .feature .kicker { font-size: var(--fs-xs); }
  .feature h2 { font-size: 1.16rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .feature p, .feature .fmeta { display: none; }
}

/* ============================================================
   首页：清单
   ============================================================ */
.list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.list-head h2 { margin: 0; font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 900; line-height: 1.3; }
.list-head h2 small { font-family: var(--font-latin); font-weight: 400; font-size: 1.15rem; color: var(--muted); margin-left: 8px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--surface); box-shadow: var(--shadow-sm); }
.seg > a, .seg .tip-wrap > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); white-space: nowrap;
}
.seg a small { font-family: var(--font-latin); font-size: .95rem; color: var(--faint); }
.seg a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.seg a[aria-current="true"] small { color: inherit; opacity: .65; }
.seg .tip-wrap { gap: 0; }
.seg .tip-btn { margin-right: 6px; }
.search { display: flex; min-width: 0; flex: 1 1 220px; }
.search input {
  width: 100%; min-width: 0; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-right: 0;
  border-radius: 999px 0 0 999px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.search input:focus { outline: none; border-color: var(--accent); }
.search button {
  height: 40px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 0 999px 999px 0;
  background: var(--ink); color: var(--bg); cursor: pointer; white-space: nowrap;
}
.search button:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 6px; }
@media (max-width: 720px) { .tags-row { flex-wrap: wrap; overflow: visible; } }
.tags-row::-webkit-scrollbar { display: none; }

.ledger { list-style: none; margin: 8px 0 0; padding: 0; }
.entry { position: relative; border-bottom: 1px solid var(--line); }
/* 悬停卡片画在整个条目上（含依附的同组报告），左右各外扩 18px，文字仍与页面左缘对齐 */
.entry::before {
  content: ""; position: absolute; inset: 0 -18px; border-radius: 12px; pointer-events: none;
  transition: background .18s, box-shadow .18s;
}
.entry:hover::before { background: var(--surface); box-shadow: var(--shadow-md); }
.entry > * { position: relative; }
.entry > a.row {
  display: grid; grid-template-columns: minmax(0, 1fr) 6rem; gap: 0 24px;
  padding: 26px 0 24px; color: inherit; text-decoration: none;
}
.entry > a.row:focus-visible { outline-offset: 4px; border-radius: 6px; }
.folio { order: 2; text-align: right; padding-top: 2px; }
.folio .ver {
  display: block; font-family: var(--font-latin); font-size: 2.35rem; line-height: .95;
  font-variant-numeric: tabular-nums lining-nums; color: var(--faint); letter-spacing: -.01em;
}
.entry.is-discussion .folio .ver { color: var(--accent); }
.folio .ver.none { font-size: 1.6rem; opacity: .6; }
.folio time { display: block; margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.entry h3 { margin: 0; font-family: var(--font-serif); font-size: 1.36rem; line-height: 1.4; font-weight: 700; color: var(--ink); }
.entry > a.row:hover h3 { color: var(--accent); }
.entry .summary {
  margin: 8px 0 0; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.entry .hit { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.entry .hit mark { background: var(--amber-soft); color: inherit; padding: 0 2px; border-radius: 2px; }
.entry :is(h3, .summary) mark, .att-list .t mark { background: var(--amber-soft); color: var(--ink); padding: 0 2px; border-radius: 2px; }
.hit-label { display: inline-block; margin-right: 8px; color: var(--accent); font-weight: 600; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.cat { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-2); }
.entry.is-discussion .cat { color: var(--accent); }
.meta .tag { color: var(--muted); }
.meta .tag::before { content: "#"; opacity: .55; margin-right: 1px; }
.pin { color: var(--amber); font-weight: 600; }
.meta-date, .meta-ver, .meta-part { display: none; font-variant-numeric: tabular-nums; }
.meta-part { color: var(--accent); font-weight: 600; }
.meta-ver { font-family: var(--font-latin); font-size: 1.05rem; color: var(--ink-2); }
.entry.is-discussion .meta-ver { color: var(--accent); }
.empty { padding: 72px 0; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: var(--fs-lg); margin-bottom: 6px; font-family: var(--font-serif); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; font-size: var(--fs-sm); color: var(--muted); }
.pager a { padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }

@media (max-width: 720px) {
  .list-head { align-items: stretch; }
  .controls { width: 100%; }
  .seg { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; border-radius: 16px; }
  .seg > a, .seg .tip-wrap { justify-content: center; border-radius: 13px; }
  .seg .tip-wrap > a, .seg > a { justify-content: center; padding: 6px 8px; border-radius: 13px; flex: 1; }
  .seg .tip-wrap { display: flex; }
}
@media (max-width: 640px) {
  .entry::before { inset: 0 -12px; }
  .entry > a.row { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 20px 0 18px; }
  .entry > a.row > .folio { display: none; }
  .meta-date, .meta-ver, .meta-part { display: inline; }
  .entry h3 { font-size: 1.14rem; }
  .entry .summary { font-size: .95rem; }
  .view-toggle a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 11px; }
  .chip { min-height: 44px; padding: 5px 11px; }
  .seg a { min-height: 44px; }
}

/* ============================================================
   关联分组：主报告与其他报告同样呈现，同组报告依附其下
   ============================================================ */
.lh-left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.view-toggle { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.view-toggle a { padding: 2px 11px; border-radius: 999px; font-size: var(--fs-xs); line-height: 1.8; color: var(--muted); text-decoration: none; white-space: nowrap; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.active-filters span { background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; }
.active-filters a { font-weight: 600; }
.tag-filters { margin: 10px 0 0; }
.tag-filters summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 38px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); cursor: pointer; font-size: var(--fs-sm); list-style: none; }
.tag-filters summary::-webkit-details-marker { display: none; }
.tag-filters summary::after { content: '⌄'; font-size: 1.2em; line-height: 1; }
.tag-filters[open] summary::after { transform: rotate(180deg); }
.tag-filters summary span { color: var(--muted); font-size: var(--fs-xs); }
.tag-filters .tags-row { padding-top: 10px; }
.sort-note { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 720px) { .tag-filters summary { min-height: 44px; } }
.view-toggle a:hover { color: var(--ink); }
.view-toggle a[aria-current="true"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }

.entry.has-attached > a.row { padding-bottom: 12px; }
.attached { padding: 0 calc(6rem + 24px) 22px 0; }
.att-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 6px; font-size: var(--fs-sm); color: var(--muted); }
.att-head a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.att-head a:hover { color: var(--accent); text-decoration: underline; }
.att-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.att-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: baseline;
  padding: 5px 12px 5px 14px; border-radius: 0 8px 8px 0; color: var(--ink-2); text-decoration: none; transition: background .15s;
}
.att-list a:hover { background: var(--surface-2); }
.att-list .t { font-size: .96rem; line-height: 1.55; min-width: 0; }
.att-list a:hover .t { color: var(--accent); }
.att-list .c { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.att-list li.is-discussion .c { color: var(--accent); }
.att-list .v { font-family: var(--font-latin); font-size: 1rem; color: var(--faint); white-space: nowrap; min-width: 2.4em; text-align: right; }
.att-list .hit { margin: 0 0 4px 14px; font-size: var(--fs-sm); color: var(--muted); }
.att-list .hit mark { background: var(--amber-soft); color: inherit; padding: 0 2px; border-radius: 2px; }
.meta .grp-tag { color: var(--muted); }
.primary-mark { margin-left: 8px; padding: 0 6px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); font-size: var(--fs-xs); font-style: normal; font-weight: 500; white-space: nowrap; }

/* 组内导航沿用的竖线列表基础样式 */
.rail { list-style: none; margin: 14px 0 0; padding: 0; position: relative; max-width: 46em; }
.rail::before { content: ""; position: absolute; left: calc(.575rem - .5px); top: 14px; bottom: 14px; width: 1px; background: var(--line-strong); }
.rail li { position: relative; }
.rail a, .rail .row-in {
  display: grid; grid-template-columns: 1.15rem minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 7px 10px 7px 0; border-radius: 8px; color: var(--ink-2); text-decoration: none;
}
.rail .n {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-strong); font: 600 .66rem/1 var(--font-sans); color: var(--muted);
  font-variant-numeric: tabular-nums; transition: border-color .15s, color .15s; margin-top: .2rem;
}
.rail .t { min-width: 0; }
.rail a:hover .t { color: var(--accent); }
.rail a:hover .n { border-color: var(--accent); color: var(--accent); }
.rail .v { font-family: var(--font-latin); line-height: 1.5; color: var(--faint); white-space: nowrap; }

@media (max-width: 640px) {
  .attached { padding: 0 0 18px; }
  .att-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-left: 12px; }
  .att-list .c { display: none; }
}

/* 报告页：组内导航（紧凑版竖线列表） */
.group-nav { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 46rem; }
.group-nav summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; min-height: 38px; cursor: pointer; font-size: var(--fs-sm); color: var(--muted); list-style: none; }
.group-nav summary::-webkit-details-marker { display: none; }
.group-nav summary strong { color: var(--ink); }
.group-nav summary::after { content: '展开组内文章 ⌄'; margin-left: auto; color: var(--accent); font-size: var(--fs-xs); }
.group-nav[open] summary::after { content: '收起组内文章 ⌃'; }
.group-page-link { display: inline-block; margin-top: 8px; font-size: var(--fs-sm); }
.gn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; font-size: var(--fs-sm); color: var(--muted); }
.gn-head a { font-weight: 600; color: var(--ink); text-decoration: none; }
.gn-head a:hover { color: var(--accent); text-decoration: underline; }
.rail.compact { margin-top: 6px; }
.rail.compact a, .rail.compact .row-in { padding: 4px 8px 4px 0; }
.rail.compact .n { margin-top: .12rem; }
.rail.compact .t { font-family: var(--font-sans); font-weight: 400; font-size: .93rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail.compact .v { font-size: .95rem; }
.rail li.current .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rail li.current .t { color: var(--ink); font-weight: 600; }
.rail li.current .v { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--accent); }

@media (max-width: 640px) {
  .rail .v { display: none; }
  .rail.compact .t { white-space: normal; }
}

/* 报告页：同组上一篇 / 下一篇 */
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 28px; }
.dp { display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: border-color .15s; }
.dp:hover { border-color: var(--accent); }
.dp .dir { font-size: var(--fs-xs); color: var(--muted); }
.dp .t { font-family: var(--font-serif); font-weight: 700; color: var(--ink); line-height: 1.45; }
.dp:hover .t { color: var(--accent); }
.dp.next { text-align: right; }
@media (max-width: 640px) { .doc-pager { grid-template-columns: 1fr; } .dp.next { text-align: left; } }

/* 关联分组页 */
.group-intro { padding: 36px 0 20px; }
.group-intro .crumbs { font-size: var(--fs-sm); color: var(--muted); display: flex; gap: 10px; margin-bottom: 12px; }
.group-intro .crumbs a { color: inherit; text-decoration: none; }
.group-intro .crumbs a:hover { color: var(--accent); }
.group-intro .muted-line { color: var(--muted); font-size: var(--fs-sm); }
.part-no { color: var(--accent) !important; }

/* ============================================================
   报告页
   ============================================================ */
body.is-doc #main { scroll-margin-top: var(--reading-top, 80px); }
.doc-band { position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.doc-band .band-art {
  position: absolute; right: -150px; top: -90px; width: 440px; opacity: .42; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%); mask-image: linear-gradient(to right, transparent 0, #000 45%);
}
.doc-head h1, .doc-head .spec { position: relative; }
.doc-band .band-art svg { width: 100%; height: auto; }
.doc-layout {
  --toc-width: 250px; --reading-width: 48rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.doc-main { min-width: 0; width: 100%; max-width: var(--reading-width); margin: 0 auto; }
.doc-layout.wide { max-width: 1440px; --reading-width: 100%; }
@media (min-width: 1100px) {
  .doc-layout { grid-template-columns: var(--toc-width) minmax(0, 1fr); }
  .doc-layout > .toc-panel { grid-column: 1; }
  .doc-layout > .doc-main { grid-column: 2; }
  .doc-layout.no-toc, .doc-layout.toc-hidden { grid-template-columns: minmax(0, 1fr); }
  .doc-layout.no-toc > .doc-main, .doc-layout.toc-hidden > .doc-main { grid-column: 1; }
  .doc-layout.toc-hidden > .toc-panel { display: none; }
  .doc-layout.toc-hidden + .toc-fab { display: inline-flex; }
}
.doc-head { position: relative; padding: 30px 0 24px; }
.doc-head h1 { max-width: 64rem; }
.doc-head .group-nav { max-width: none; }
.doc-info-row { margin-top: 18px; }
.doc-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.doc-meta-row .spec { margin-top: 0; }
.doc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px; }
.reading-tools, .doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.doc-toolbar .doc-actions { margin-left: auto; }
.reading-tools[hidden], .toc-tools[hidden], .toc-branch[hidden], .toc-resize[hidden], .toc-scroll-hint[hidden] { display: none; }
.doc-head .crumbs { font-size: var(--fs-sm); color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.doc-head .crumbs a { color: inherit; text-decoration: none; }
.doc-head .crumbs a:hover { color: var(--accent); }
.badge-consensus {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
}
.badge-consensus .cat-ico { color: var(--accent); }
.badge-research { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.doc-head h1 {
  font-family: var(--font-serif); font-weight: 900; margin: 16px 0 0;
  font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.65rem); line-height: 1.28; letter-spacing: .01em; text-wrap: balance;
}
.doc-summary { max-width: 60rem; margin: 12px 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.doc-dates { display: none; }
.spec {
  display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 0; margin: 24px 0 0; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); width: fit-content; max-width: 100%;
}
.spec div { padding: 10px 20px 11px; border-right: 1px solid var(--line); min-width: 0; }
.spec div:last-child { border-right: 0; }
.spec dt { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.spec dd { margin: 3px 0 0; font-size: .95rem; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec dd.ver { font-family: var(--font-latin); font-weight: 400; font-size: 1.55rem; line-height: 1; color: var(--accent); margin-top: 2px; }
.doc-head .meta { margin-top: 16px; }
.ver-select { height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 12px; font-size: var(--fs-sm); box-shadow: var(--shadow-sm); }
@media (min-width: 1200px) {
  .doc-info-row { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); align-items: center; column-gap: 24px; }
  .doc-meta-row { display: contents; }
  .doc-meta-row .spec { grid-area: 1 / 1; }
  .doc-meta-row .ver-select { grid-area: 2 / 1; justify-self: start; max-width: 100%; margin-top: 12px; }
  .doc-toolbar { grid-area: 1 / 2; justify-self: end; justify-content: flex-end; gap: 12px 16px; margin-top: 0; }
  .doc-toolbar .doc-actions { margin-left: 0; }
  .doc-info-row > .meta, .doc-info-row > .doc-dates { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .doc-head { padding: 20px 0 14px; }
  .doc-head h1 { margin-top: 12px; }
  .doc-summary { margin-top: 10px; font-size: .93rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-top: 14px; }
  .spec div { padding: 8px 12px; }
  .spec div:nth-child(2), .spec div:nth-child(3) { display: none; }
  .spec div:first-child { border-right: 1px solid var(--line); }
  .spec div:last-child { border-right: 0; }
  .spec dd { white-space: normal; }
  .doc-dates { display: block; margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
  .doc-dates summary { cursor: pointer; width: fit-content; }
  .doc-dates dl { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 0; }
  .doc-dates dl div { display: flex; gap: 5px; }
  .doc-dates dd { margin: 0; color: var(--ink-2); }
  .doc-head .meta { margin-top: 10px; }
  .doc-info-row { margin-top: 14px; }
  .doc-meta-row { gap: 10px; }
  .doc-toolbar .doc-actions { margin-left: 0; width: 100%; }
  .group-nav { margin-top: 14px; padding-top: 12px; }
  .doc-band .band-art { width: 300px; right: -120px; top: -60px; opacity: .35; }
}

.notice {
  margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius); font-size: var(--fs-sm);
  background: var(--amber-soft); color: var(--ink); border-left: 3px solid var(--amber);
}
.notice.info { background: var(--accent-soft); border-left-color: var(--accent); }

/* 目录 */
.toc-panel { position: sticky; align-self: start; top: var(--reading-top, 80px); margin-top: 24px; min-width: 0; }
.toc-inner { display: flex; flex-direction: column; max-height: var(--toc-max-height, calc(100dvh - var(--reading-top, 80px) - 16px)); padding: 8px 0; }
.toc-scroll { min-height: 0; overflow: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.toc-title, .toc-tools, .toc-meter, .toc-scroll-hint { flex-shrink: 0; }
.toc-tools { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 8px; }
.toc-tools button { min-height: 32px; padding: 3px 5px; border: 0; border-radius: 4px; color: var(--accent); background: transparent; font-size: var(--fs-xs); cursor: pointer; }
.toc-tools button:hover { background: var(--accent-soft); }
.toc-scroll-hint { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.toc-resize { position: absolute; top: 0; right: -24px; bottom: 0; width: 16px; cursor: col-resize; touch-action: none; }
.toc-resize::before { content: ''; position: absolute; left: 7px; width: 2px; height: 100%; background: var(--line); }
.toc-resize:hover::before, .toc-resize:focus-visible::before { background: var(--accent); width: 3px; }
body.toc-resizing { cursor: col-resize; user-select: none; }
.toc-title { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-serif); font-weight: 900; font-size: 1.02rem; margin: 0 0 6px; color: var(--ink); }
.toc-title span { font-family: var(--font-latin); font-weight: 400; font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc-meter { height: 2px; background: var(--line); border-radius: 2px; margin: 0 0 14px; overflow: hidden; }
.toc-meter i { display: block; height: 100%; width: 0; background: var(--accent); }
.toc { list-style: none; margin: 0; padding: 0; font-size: .875rem; line-height: 1.5; border-left: 1px solid var(--line); }
.toc-children { list-style: none; margin: 0; padding: 0; }
.toc-row { display: flex; align-items: start; }
.toc-row > a { flex: 1; min-width: 0; }
.toc-branch { flex: none; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.toc-branch[aria-expanded="false"] { transform: rotate(-90deg); }
.toc li a {
  display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; transition: color .12s;
}
.toc li.l2 a { padding-left: 28px; font-size: .84rem; }
.toc li a:hover { color: var(--ink); }
.toc li a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-fab {
  display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  height: 46px; padding: 0 18px; border-radius: 999px; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg); border: 0; box-shadow: var(--shadow-lg); cursor: pointer; font-size: var(--fs-sm);
}
.toc-fab svg { width: 18px; height: 18px; }

@media (max-width: 1400px) { .doc-band .band-art { right: -220px; } }
@media (max-width: 1099.98px) {
  .toc-panel {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); height: 100dvh; z-index: 50;
    background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
    margin-top: 0; visibility: hidden; transform: translateX(105%); transition: transform .24s cubic-bezier(.3, .7, .2, 1), visibility .24s;
  }
  .toc-panel.open { visibility: visible; transform: none; transition-property: transform; }
  .toc-inner { max-height: 100%; height: 100%; padding: 22px 20px 24px; }
  .toc-title { padding-right: 44px; }
  .toc-fab { display: inline-flex; }
  .toc-resize, [data-toc-reset], [data-toc-hide] { display: none; }
  .toc-tools button, .toc-branch { min-height: 44px; }
  .scrim { position: fixed; inset: 0; background: rgba(8, 12, 14, .38); backdrop-filter: blur(2px); z-index: 45; }
  .scrim[hidden] { display: none; }
  .toc-close { position: absolute; top: 14px; right: 14px; }
}
@media (min-width: 1100px) { .scrim, .toc-close { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .toc-panel { transition: none; } }

/* ============================================================
   正文排版
   ============================================================ */
.prose { font-size: 1.0625rem; line-height: 1.9; color: var(--ink); overflow-wrap: break-word; padding-bottom: 40px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .table-wrap, .prose pre, .prose figure, .prose dl, .prose details { margin: 0 0 1.2em; }
.prose > :first-child { margin-top: 24px; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { position: relative; line-height: 1.4; margin: 1.5em 0 .65em; scroll-margin-top: var(--reading-top, 80px); color: var(--ink); }
.prose h1 { font-family: var(--font-serif); font-size: var(--fs-2xl); font-weight: 900; padding-top: 1.2em; border-top: 1px solid var(--line-strong); }
.prose h2 { font-family: var(--font-serif); font-size: 1.62rem; font-weight: 900; letter-spacing: .01em; }
.prose h3 { font-size: 1.22rem; font-weight: 700; }
.prose h4 { font-size: 1.06rem; font-weight: 700; }
.prose h5 { font-size: var(--fs-md); font-weight: 700; color: var(--ink-2); }
.prose h6 { position: relative; margin: 1.8em 0 .6em; font-size: .95rem; font-weight: 700; color: var(--muted); line-height: 1.5; }
.prose .h-anchor { margin-left: .35em; color: var(--line-strong); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity .12s; }
.prose :is(h1, h2, h3, h4):hover .h-anchor, .prose .h-anchor:focus { opacity: 1; }
.prose strong, .prose b { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--faint); }
.prose li > p { margin: .35em 0; }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 2.6em 0; }
.prose blockquote {
  position: relative; padding: .85em 1.2em .85em 1.35em; border-radius: 0 10px 10px 0;
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote blockquote { background: var(--surface-2); box-shadow: none; }
.prose :not(pre) > code {
  font-family: var(--font-mono); font-size: .84em; padding: .14em .4em; border-radius: 5px;
  background: var(--code-bg); border: 1px solid var(--line); overflow-wrap: anywhere; color: var(--ink);
}
.prose pre.code {
  position: relative; font-family: var(--font-mono); font-size: .835rem; line-height: 1.65;
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 38px 18px 16px; overflow-x: auto; tab-size: 4;
}
.prose pre.code::before {
  content: attr(data-lang); position: absolute; top: 0; left: 0; right: 0; height: 28px; padding: 0 14px;
  display: flex; align-items: center; font: 500 .72rem/1 var(--font-sans); color: var(--muted);
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.copy-btn {
  position: absolute; top: 3px; right: 6px; height: 22px; padding: 0 9px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: .72rem/1 var(--font-sans); cursor: pointer;
}
/* 触屏设备加大复制按钮与代码块标题栏 */
@media (hover: none) {
  .prose pre.code { padding-top: 46px; }
  .prose pre.code::before { height: 36px; }
  .copy-btn { top: 4px; height: 28px; padding: 0 12px; font-size: .78rem; }
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.65; }
.prose th, .prose td { padding: 9px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; text-align: left; min-width: 5em; }
.prose .compact-col { min-width: 0; width: 1%; white-space: nowrap; }
.table-scroll-hint { margin: 0 0 6px; color: var(--muted); font-size: var(--fs-xs); }
.prose th:last-child, .prose td:last-child { border-right: 0; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose thead th { background: var(--surface-2); font-weight: 700; white-space: nowrap; color: var(--ink); }
.prose tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
@media (max-width: 640px) {
  .prose { font-size: 1rem; line-height: 1.85; }
  .prose th, .prose td { min-width: 6.5em; padding: 8px 12px; }
  .prose h2 { font-size: 1.4rem; }
}

.prose figure.diagram {
  position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-sm); overflow-x: auto; text-align: center;
}
.prose figure.diagram pre.mermaid-src { margin: 0; text-align: left; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); white-space: pre-wrap; }
.prose figure.diagram svg { height: auto; }
.prose figure.diagram.rendered pre.mermaid-src { display: none; }
.diagram-zoom { position: absolute; top: 10px; right: 10px; }
.diagram-error { color: var(--danger); font-size: .8rem; text-align: left; margin-bottom: 6px; }
.prose .footnotes { font-size: .9rem; color: var(--ink-2); }
.prose sup.footnote-ref a { text-decoration: none; }

/* 文末：报告来源说明 */
.doc-end {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start;
  margin: 8px 0 96px; padding: 22px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.doc-end h2 { margin: 0; font-family: var(--font-serif); font-size: 1.1rem; font-weight: 900; }
.doc-end p { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.75; }
.doc-end .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.doc-end.plain { grid-template-columns: 1fr; }

/* 图表放大层 */
.lightbox { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.lightbox-tools { display: flex; gap: 8px; }
.lightbox-body { flex: 1; overflow: auto; padding: 24px; display: grid; place-items: start center; touch-action: pan-x pan-y pinch-zoom; }
.lightbox-body svg { max-width: none !important; }

/* hljs 代码配色（随主题） */
.hljs-comment, .hljs-quote { color: var(--muted); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-name, .hljs-tag { color: #8a3ffc; }
.hljs-string, .hljs-attr, .hljs-symbol, .hljs-bullet, .hljs-addition, .hljs-template-variable { color: #0f7b3f; }
.hljs-number, .hljs-literal, .hljs-type, .hljs-params { color: #b35a00; }
.hljs-title, .hljs-section, .hljs-function .hljs-title { color: #1f5fbf; }
.hljs-meta, .hljs-variable, .hljs-selector-id, .hljs-selector-class { color: #a4285d; }
.hljs-deletion { color: var(--danger); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }
:root[data-theme="dark"] .hljs-keyword, :root[data-theme="dark"] .hljs-selector-tag, :root[data-theme="dark"] .hljs-built_in, :root[data-theme="dark"] .hljs-name, :root[data-theme="dark"] .hljs-tag { color: #c4a5ff; }
:root[data-theme="dark"] .hljs-string, :root[data-theme="dark"] .hljs-attr, :root[data-theme="dark"] .hljs-symbol, :root[data-theme="dark"] .hljs-bullet, :root[data-theme="dark"] .hljs-addition, :root[data-theme="dark"] .hljs-template-variable { color: #7fd6a2; }
:root[data-theme="dark"] .hljs-number, :root[data-theme="dark"] .hljs-literal, :root[data-theme="dark"] .hljs-type, :root[data-theme="dark"] .hljs-params { color: #f0b36b; }
:root[data-theme="dark"] .hljs-title, :root[data-theme="dark"] .hljs-section { color: #8ab8ff; }
:root[data-theme="dark"] .hljs-meta, :root[data-theme="dark"] .hljs-variable, :root[data-theme="dark"] .hljs-selector-id, :root[data-theme="dark"] .hljs-selector-class { color: #f28bb8; }

/* ============================================================
   关于讨论组
   ============================================================ */
.about-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.about-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about-hero h1 { margin: 0; font-family: var(--font-serif); font-weight: 900; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.8rem); line-height: 1.1; letter-spacing: .03em; }
.about-hero h1 span { font-family: var(--font-sans); font-weight: 200; letter-spacing: 0; }
.motto { margin: 16px 0 0; font-family: var(--font-latin); font-style: italic; font-size: 1.45rem; line-height: 1.35; color: var(--ink-2); max-width: 22em; }
.about-hero .lead { margin: 18px 0 0; color: var(--ink-2); font-size: 1.05rem; max-width: 34em; }
.about-hero .dial { width: 100%; max-width: 500px; height: auto; margin: 0 auto; display: block; }
.section { padding: 48px 0 8px; }
.sec-h { display: flex; align-items: baseline; gap: 14px; border-top: 2px solid var(--ink); padding-top: 16px; margin-bottom: 26px; }
.sec-h h2 { margin: 0; font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 900; letter-spacing: .04em; }
.sec-h p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
#video .sec-h { flex-wrap: wrap; row-gap: 4px; }
.promo { margin: 0; max-width: 960px; }
.promo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: #101315; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.promo-tx { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-sm); }
.promo-tx summary { width: fit-content; color: var(--accent); cursor: pointer; }
.promo-tx ol { margin: 10px 0 0; padding-left: 1.6em; line-height: 1.8; }
.members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.member {
  position: relative; padding: 24px 22px 22px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-md); overflow: hidden;
}
.member::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.member .who { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.member .name { font-family: var(--font-latin); font-size: 2.3rem; line-height: 1; color: var(--ink); }
.member .model { font-size: var(--fs-xs); color: var(--c); font-family: var(--font-mono); white-space: nowrap; }
.member .seat { margin-top: 14px; font-weight: 700; color: var(--c); }
.member p { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.75; }
.flow { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.st { position: relative; padding: 0 0 28px 40px; }
.st::before { content: ""; position: absolute; left: 8px; top: 22px; bottom: 0; border-left: 2px solid var(--ink); }
.st:last-child { padding-bottom: 0; }
.st:last-child::before { display: none; }
.st.pre::before, .st.cap::before { border-left-style: dashed; border-left-color: var(--faint); }
.st::after { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.st.cap::after { background: var(--bg); border: 2px solid var(--faint); }
.st.fin::after { background: var(--codex); }
.st .h { display: flex; align-items: baseline; gap: 14px; }
.st .k { font-family: var(--font-latin); font-size: 1.25rem; color: var(--muted); min-width: 3.2em; }
.st .t { font-size: 1.15rem; font-weight: 700; }
.st .d { color: var(--ink-2); margin-top: 2px; padding-left: 4.4rem; }
.st .rule { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; padding-left: 4.4rem; font-weight: 500; color: var(--ink); }
.st .rule .tag { flex: none; font-size: .75rem; font-weight: 600; color: var(--c); border: 1.5px solid currentColor; border-radius: 5px; padding: 1px 7px; }
.st .rule-fold { margin-top: 8px; }
.st .rule-fold summary { padding-left: 4.4rem; width: fit-content; color: var(--accent); font-size: var(--fs-sm); cursor: pointer; }
.about-foot { margin: 40px 0 0; padding: 18px 0 72px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
@media (max-width: 900px) {
  .about-hero .wrap { grid-template-columns: 1fr; }
  .about-hero .dial { max-width: 380px; }
  .members { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .st .d, .st .rule, .st .rule-fold summary { padding-left: 0; }
  .st .rule { flex-wrap: wrap; }
}

/* ============================================================
   表单与小页面（口令、登录、404）
   ============================================================ */
.narrow { max-width: 440px; margin: 72px auto; padding: 0 var(--gutter); }
.narrow h1 { font-family: var(--font-serif); font-weight: 900; font-size: var(--fs-2xl); margin: 18px 0 8px; line-height: 1.3; }
.narrow p { color: var(--muted); margin: 0 0 20px; }
.card-form { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface);
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.error-msg { padding: 10px 14px; border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); font-size: var(--fs-sm); margin-bottom: 16px; }

/* ============================================================
   讨论议题（列表、申请、校验、详情）
   ============================================================ */
.topic-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.topic-intro > div:first-child { flex: 1 1 520px; }
.topic-intro-actions { flex: none; }
.muted-line { color: var(--muted); font-size: var(--fs-sm); }
.topic-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topic-item { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.topic-item h3 { margin: 0 0 6px; font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-lg); line-height: 1.45; overflow-wrap: anywhere; }
.ti-main { min-width: 0; }
.ti-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: var(--fs-sm); color: var(--muted); }
.ti-actions { display: flex; gap: 8px; flex: none; }
.topic-pending { margin-top: 16px; }
.topic-status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.topic-status.st-queued, .topic-status.st-pending { background: var(--amber-soft); color: var(--amber); }
.topic-status.st-discussing { background: var(--accent-soft); color: var(--accent); }
.topic-status.st-discussing::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: topic-pulse 1.6s ease-in-out infinite; }
.topic-status.st-completed, .topic-status.st-published { background: var(--accent-soft); color: var(--accent); }
.topic-status.st-failed, .topic-status.st-rejected { background: var(--danger-soft); color: var(--danger); }
@keyframes topic-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .topic-status.st-discussing::before { animation: none; } }
@media (max-width: 640px) {
  .topic-item { flex-direction: column; align-items: stretch; }
  .ti-actions .btn { flex: 1; justify-content: center; }
}

.topic-form { max-width: 560px; }
.topic-form .topic-summary { margin: -4px 0 16px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice-msg { padding: 10px 14px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); font-size: var(--fs-sm); margin-bottom: 16px; border-left: 3px solid var(--accent); }
.notice-msg.is-wait { background: var(--amber-soft); border-left-color: var(--amber); }
.access-once { margin: 0 0 20px; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px dashed var(--accent); background: var(--accent-soft); font-size: var(--fs-sm); }
.access-once strong { display: block; color: var(--ink); }
.narrow .access-once p { margin: 4px 0 10px; }
.access-once dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.access-once dt { color: var(--muted); }
.access-once dd { margin: 0; min-width: 0; }
.access-once code { font-family: var(--font-mono); overflow-wrap: anywhere; }
.access-once .access-code { font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.resend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin-top: 16px; font-size: var(--fs-sm); color: var(--muted); }
.resend .hint { font-size: var(--fs-xs); }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: .22em; }

/* 报告页：订阅更新（折叠表单） */
.subscribe-box { margin-top: 12px; font-size: var(--fs-sm); }
.subscribe-box summary { width: fit-content; color: var(--accent); cursor: pointer; }
.subscribe-box form { max-width: 34rem; margin-top: 10px; }
.subscribe-box .hint { margin: 0 0 8px; color: var(--muted); }
.subscribe-row { display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe-row input[type="email"] {
  flex: 1 1 14rem; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit;
}
.tag-admin { color: var(--muted); font-size: var(--fs-xs); }
@media (min-width: 1200px) { .doc-info-row > .subscribe-box { grid-column: 1 / -1; } }

/* 报告页：分享卡片。原生 popover 在顶层居中显示；不支持 popover 的浏览器由脚本切换 .open。
   两条显示规则须分开写：不认识 :popover-open 的浏览器会丢弃整条选择器列表 */
.share-pop {
  display: none; width: min(22rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 16px 20px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.share-pop:popover-open { display: block; }
.share-pop.open { display: block; position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 90; }
.share-pop::backdrop { background: rgba(8, 12, 14, .32); }
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-head h2 { margin: 0; font-size: var(--fs-md); }
.share-title {
  margin: 4px 0 14px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 链接独占一行，完整显示短码；复制按钮在下方 */
.share-row { display: grid; gap: 10px; }
.share-url {
  width: 100%; min-width: 0; height: 38px; text-align: center; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface-2); color: var(--ink); font-family: var(--font-mono); font-size: var(--fs-sm);
}
.share-row .btn[hidden] { display: none; }
.share-qr { margin: 18px 0 0; text-align: center; }
.share-qr svg { display: block; margin: 0 auto; border-radius: 8px; }
.share-qr figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.share-pop .hint { margin: 14px 0 0; font-size: var(--fs-xs); color: var(--muted); }

.page-intro .crumbs { font-size: var(--fs-sm); color: var(--muted); display: flex; gap: 10px; margin-bottom: 12px; }
.page-intro .crumbs a { color: inherit; text-decoration: none; }
.page-intro .crumbs a:hover { color: var(--accent); }
.page-intro .topic-summary { margin-top: 14px; }
.topic-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px; align-items: start; padding-bottom: 56px; }
.topic-detail > .topic-notice { grid-column: 1 / -1; margin: 0; }
.topic-col, .topic-side { display: grid; gap: 20px; min-width: 0; }
.topic-card { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.topic-card h2 { margin: 0 0 12px; font-size: var(--fs-md); font-weight: 700; }
.topic-card > p:last-child { margin-bottom: 0; }
.topic-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.topic-reject { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.topic-reject .muted-line { margin: 10px 0 0; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.topic-withdraw summary { cursor: pointer; font-size: var(--fs-sm); color: var(--muted); }
.topic-withdraw summary:hover { color: var(--danger); }
.topic-withdraw details[open] summary { margin-bottom: 8px; }
.topic-withdraw .muted-line { margin: 0 0 12px; }
.topic-result .prose { padding-bottom: 0; }
.topic-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.topic-stages li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; font-size: var(--fs-sm); }
.topic-stages strong { font-weight: 600; margin-right: 8px; }
.topic-stages .ts-state { color: var(--muted); font-size: var(--fs-xs); }
.topic-stages p { margin: 4px 0 0; color: var(--ink-2); line-height: 1.65; }
.ts-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.ts-done .ts-dot { background: var(--accent); border-color: var(--accent); }
.ts-running .ts-dot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ts-waiting .ts-dot, .ts-paused .ts-dot { border-color: var(--amber); background: var(--amber-soft); }
.ts-failed .ts-dot { border-color: var(--danger); background: var(--danger-soft); }
.ts-skipped { opacity: .55; }
.topic-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-sm); max-height: 480px; overflow: auto; }
.topic-events time { display: block; color: var(--faint); font-size: var(--fs-xs); }
.topic-events p { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.topic-events .te-wait p { color: var(--amber); }
@media (max-width: 960px) {
  .topic-detail { grid-template-columns: minmax(0, 1fr); }
  .topic-side { order: -1; }
  .topic-detail > .topic-notice { order: -2; }
}
@media (max-width: 420px) {
  .nav a { padding: 6px 8px; }
  .nav-long { display: none; }
  .topic-card { padding: 16px; }
}

/* ============================================================
   页脚
   ============================================================ */
.site-foot { margin-top: 24px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: var(--fs-sm); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .6fr)); gap: 28px 40px; padding-top: 40px; padding-bottom: 28px; }
.site-foot .about p { margin: 14px 0 0; max-width: 30em; line-height: 1.75; }
.site-foot h2 { margin: 0 0 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.site-foot .base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--faint); }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }

@media print {
  .topbar, .toc-panel, .toc-fab, .doc-toolbar, .ver-select, .table-scroll-hint, .site-foot, .copy-btn, .diagram-zoom, .scrim, .band-art, .doc-end, .share-pop { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-layout { display: block; }
  .doc-main { max-width: none; }
  .prose { padding: 0; }
  .prose pre.code, .table-wrap { overflow: visible; box-shadow: none; }
  .prose a { color: inherit; }
}

/* 超窄屏（≤360px，如 iPhone SE 与部分安卓机）：收紧标题与统计数字 */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.7rem; letter-spacing: 0; }
  .hero-stats { flex-wrap: nowrap; }
  .hero-stats div { padding-right: 10px; margin-right: 10px; }
  .hero-stats dd { font-size: 1.6rem; }
  .hero-stats dt { font-size: .72rem; }
}

/* 独立科技资讯列表与阅读页 */
.briefing-public { max-width: 1050px; padding-top: 44px; padding-bottom: 64px; }
.briefing-heading { margin-bottom: 20px; }
.briefing-heading h1 { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; margin: 10px 0 20px; }
.briefing-heading > p { max-width: 780px; color: var(--muted); line-height: 1.8; }
/* 筛选：常用条件一行排开，日期与标签收进“更多条件” */
.briefing-filters { display: grid; gap: 8px; }
.briefing-filter-main { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.briefing-filter-main > label { flex: 0 1 180px; min-width: 0; }
.briefing-filter-main > .briefing-filter-q { flex: 1 1 240px; }
.briefing-filters input, .briefing-filters select { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-sm); }
.briefing-filters input:focus, .briefing-filters select:focus { outline: none; border-color: var(--accent); }
.briefing-filter-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.briefing-filter-actions .btn { height: 38px; padding: 0 16px; }
.briefing-filter-more > summary { cursor: pointer; width: fit-content; color: var(--muted); font-size: var(--fs-sm); padding: 2px 0; }
.briefing-filter-extra { display: flex; flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; }
.briefing-filter-extra label { display: flex; align-items: center; gap: 6px; flex: 0 1 220px; min-width: 0; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.briefing-result-count { color: var(--muted); font-size: var(--fs-sm); margin: 14px 0 10px; }
.briefing-list { list-style: none; margin: 0; padding: 0; }
.briefing-card { border-top: 1px solid var(--line); padding: 25px 0; }
.briefing-card h2 { margin: 12px 0; font-size: var(--fs-xl); line-height: 1.45; }
.briefing-card h2 a { text-decoration: none; }
.briefing-card > p { color: var(--muted); line-height: 1.8; }
.briefing-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: var(--fs-sm); }
.briefing-method { padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line); }
.briefing-method.auto { color: var(--ink); background: var(--surface); }
.briefing-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.briefing-tags a { color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; font-size: var(--fs-sm); text-decoration: none; }
.briefing-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px; margin: 32px 0 0; }
.briefing-empty { border-top: 1px solid var(--line); padding: 52px 0; color: var(--muted); text-align: center; }
.briefing-back { display: inline-block; margin-bottom: 24px; }
.briefing-article { max-width: 900px; }
.briefing-heading .briefing-disclosure { padding: 12px 16px; border-left: 3px solid var(--line); font-size: var(--fs-sm); margin: 20px 0; }
.briefing-time { font-size: var(--fs-sm); color: var(--muted); }
.briefing-timeline { display: grid; gap: 6px; margin: 18px 0; font-size: var(--fs-sm); color: var(--muted); }
.briefing-heading .briefing-lead { color: var(--ink); font-size: var(--fs-lg); }
.briefing-prose { overflow-wrap: anywhere; }
.briefing-prose table { display: block; max-width: 100%; overflow-x: auto; }
.briefing-sources { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 34px; }
.briefing-sources h2 { font-size: var(--fs-lg); }
.briefing-sources li { margin: 10px 0; }
.briefing-card .briefing-card-series { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 8px; font-size: var(--fs-md); font-weight: 600; line-height: 1.5; }
.briefing-card-series a { text-decoration: none; color: var(--muted); }
.briefing-card-series a:hover { color: var(--accent); }
.briefing-item-count { color: var(--muted); font-size: var(--fs-sm); font-weight: 400; }
/* 条目标题单行显示、超出省略，标记不缩；5 条长标题时卡片高度仍可控 */
.briefing-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.briefing-items li { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.briefing-items li::before { content: ''; flex: 0 0 5px; height: 5px; border-radius: 50%; background: var(--line-strong); transform: translateY(-3px); }
.briefing-items a { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-lg); line-height: 1.6; color: var(--ink); text-decoration: none; }
.briefing-items a:hover { color: var(--accent); text-decoration: underline; }
/* 来源名原样展示（不限语言），限宽省略，标题优先 */
.briefing-item-source { flex: 0 1 auto; max-width: 11em; min-width: 2.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: var(--fs-sm); }
.briefing-item-source::before { content: '· '; }
.briefing-item-flag { flex: 0 0 auto; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; white-space: nowrap; }
.briefing-items .briefing-items-more a { font-size: var(--fs-sm); color: var(--muted); }
.briefing-card.has-items > .briefing-card-summary { margin: 12px 0 0; font-size: var(--fs-sm); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.briefing-prose .briefing-item-topic { margin: -.3em 0 1em; font-size: var(--fs-sm); }
.briefing-prose .briefing-item-topic a { color: var(--accent); }
@media (max-width: 700px) { .briefing-filter-main > label { flex: 1 1 calc(50% - 4px); } .briefing-filter-main > .briefing-filter-q { flex-basis: 100%; } .briefing-filter-extra label { flex: 1 1 100%; } .briefing-public { padding-top: 30px; } .briefing-items a { font-size: var(--fs-md); }
  /* 窄屏：标题独占一行，来源与标记换到下方小字行，来源名不被挤成省略号 */
  .briefing-items li { flex-wrap: wrap; row-gap: 0; } .briefing-items a { flex: 1 1 calc(100% - 11px); } .briefing-items a + * { margin-left: 11px; } .briefing-item-source { max-width: calc(100% - 11px); } .briefing-item-source::before { content: none; } }
