/* ============================================================
   凉风Lab · 网站层样式（深化设计 v0.3）
   依赖：design-system/system/brand.css（tokens 与 .lf-* 组件）
   姿态：结果先行 / 状态诚实 / 720px 单栏 + 等宽侧注 /
         一屏一个承诺 / 密度克制（强调色每屏至多两次）
   ============================================================ */

/* ---------- 页面基础 ---------- */
html { scroll-behavior: smooth; }
body { font-size: 16px; }
::selection { background: var(--accent-bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 正文级链接对比度：#0090a9 在纸白上约 3.6:1，不达 WCAG AA。
   文字链接与小字眉标一律用深一档；小字号控件使用 brand.css 的独立可访问色。 */
a { color: var(--accent-active); }
a:hover { color: var(--accent-active); }
.theme-dark a:hover { color: var(--accent-hover); }
.lf-eyebrow { color: var(--accent-active); }

/* 上面的全局 a:hover 只该管行内文字链接；实心按钮与块级可点卡片必须保持自身文字色，
   否则按钮悬停时文字与背景同色（#007994 on #007994）而"消失"。 */
.lf-btn:not(.lf-btn--ghost):hover,
.lf-btn:not(.lf-btn--ghost):active { color: var(--bg); }
.entry:hover, .gate:hover { color: var(--fg); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.col { max-width: 720px; margin-inline: auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); font-family: var(--font-display);
  font-size: 19px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap;
}
.brand svg { width: 26px; height: 26px; display: block; }
.brand:hover { color: var(--fg); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--muted); font-size: 15px;
  padding: 4px 2px; border-bottom: 2px solid transparent;
  transition: color .15s ease;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] {
  color: var(--fg); font-weight: 500;
  border-bottom-color: var(--accent);
}
.header-cta { margin-left: 4px; }
.header-cta .lf-btn { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* 移动端：按 DOM 顺序自然重排，导航完整换行且无需横向滚动。 */
@media (max-width: 920px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-block: 10px 0; row-gap: 8px; }
  .header-cta { margin-left: auto; padding-bottom: 10px; }
  .header-cta .lf-btn { min-height: 34px; padding: 0 14px; }
  .nav {
    flex-basis: 100%; margin-left: 0;
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    padding: 6px 0 10px;
  }
  .nav a { white-space: nowrap; font-size: 14px; padding: 2px 0; }
}

/* ---------- 区块节奏 ---------- */
.sec { padding-block: clamp(56px, 9vw, 104px); }
.sec + .sec { border-top: 1px solid var(--border); }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700; letter-spacing: .01em;
}
.sec-head .sec-lead { margin: 0; color: var(--muted); max-width: 62ch; }
.sec-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.sec-more { font-size: 14px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(72px, 11vw, 140px) clamp(56px, 8vw, 96px); }
.hero .lf-eyebrow { display: block; margin-bottom: 18px; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 900; line-height: 1.12; letter-spacing: .02em;
}
.hero-lead {
  margin: 0 0 32px; color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.8; max-width: 40em;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-aside { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* 流程带：实验循环（等宽注记，品牌签名元素） */
.loop-strip {
  margin-top: clamp(40px, 6vw, 64px);
  padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
  letter-spacing: .02em;
}
.loop-strip b { color: var(--fg); font-weight: 600; }
.loop-strip .arr { color: var(--muted); }
.loop-strip .accent { color: var(--accent); font-weight: 600; }

/* Hero 双栏与循环装置（首屏视觉锚点，纯排版图形） */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 88px); align-items: center;
}
.hero-device {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); box-shadow: var(--shadow-2);
  padding: 22px 26px 20px;
}
.hero-device .device-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.device-step {
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px;
  align-items: baseline; padding: 13px 0;
}
.device-step + .device-step { border-top: 1px dashed var(--border); }
.device-step .d-no { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .08em; }
.device-step .d-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.device-step .d-note { grid-column: 2; margin: 0; font-size: 12.5px; color: var(--muted); }
.device-out {
  padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.device-loopback {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em;
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-device { max-width: 520px; }
}

/* ---------- 实验主卡（Current Experiment） ---------- */
.exp-feature {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); box-shadow: var(--shadow-1);
  display: grid; grid-template-columns: 200px 1fr; overflow: hidden;
}
.exp-feature-side {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  display: flex; flex-direction: column; gap: 14px;
}
.exp-feature-side .exp-no {
  font-size: 22px; font-weight: 600; color: var(--fg); letter-spacing: .04em;
}
.exp-feature-main { padding: clamp(22px, 3vw, 34px); }
.exp-feature-main h3 {
  margin: 10px 0 10px; font-size: clamp(21px, 2.4vw, 26px); font-weight: 700;
}
.exp-feature-main .exp-q { margin: 0 0 18px; color: var(--muted); max-width: 58ch; }
.exp-facts {
  margin: 0 0 22px; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.exp-facts li {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}
.exp-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.exp-cta .sub { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .exp-feature { grid-template-columns: 1fr; }
  .exp-feature-side {
    border-right: 0; border-bottom: 1px solid var(--border);
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  }
}

/* ---------- 三类内容入口 ---------- */
.gate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gate {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; background: var(--bg);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s ease;
}
.gate:hover { border-color: var(--muted); }
.gate .lf-eyebrow { color: var(--muted); }
.gate h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--fg); }
.gate p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.gate .gate-latest {
  margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.gate .gate-latest .lf-mono { color: var(--muted); display: block; margin-bottom: 3px; }
.gate .gate-latest a { color: var(--fg); }
.gate .gate-latest a:hover { color: var(--accent); }
.gate .gate-latest .none { color: var(--muted); }
@media (max-width: 880px) { .gate-grid { grid-template-columns: 1fr; } }

/* ---------- 归档条目（列表页） ---------- */
.entry-list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--border);
}
.entry-list > li { margin: 0; padding: 0; }
.entry {
  display: grid;
  grid-template-columns: 92px 1fr auto auto;
  gap: 8px 20px; align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.entry:hover { background: var(--surface); }
.entry .e-no { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.entry .e-title { font-weight: 500; }
.entry .e-sub { grid-column: 2; margin: 0; font-size: 13.5px; color: var(--muted); }
.entry .e-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
@media (max-width: 720px) {
  .entry { grid-template-columns: 1fr auto; }
  .entry .e-no { grid-column: 1 / -1; }
  .entry .e-sub { grid-column: 1; }
}

/* 筛选行（状态诚实：显示真实计数，包括 0） */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
html:not(.js) .filter-row,
html:not(.js) .theme-toggle { display: none; }
.filter-chip {
  font-family: var(--font-mono); font-size: 12.5px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; color: var(--muted); background: transparent;
  cursor: pointer;
}
.filter-chip:hover { color: var(--fg); border-color: var(--muted); }
.filter-chip.is-active { color: var(--fg); border-color: var(--fg); font-weight: 600; }
.filter-chip .n { margin-left: 4px; }

/* ---------- 诚实空状态 ---------- */
.empty {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  text-align: center; background: transparent;
}
.empty .lf-mono { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; letter-spacing: .08em; }
.empty p { margin: 0 auto; max-width: 44ch; color: var(--fg); }
.empty .why { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* ---------- 方法带 ---------- */
.method-strip {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .02em;
  margin-bottom: 18px;
}
.method-strip .stage {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); padding: 8px 14px; color: var(--fg); font-weight: 600;
}
.method-strip .stage small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.method-strip .arr { color: var(--muted); }

/* ---------- 详情页：720px 单栏 + 左侧等宽栏注 ---------- */
.doc { display: grid; grid-template-columns: 1fr min(720px, 100%) 1fr; position: relative; }
.doc > * { grid-column: 2; }
.doc-sec { position: relative; padding-block: clamp(34px, 5vw, 56px); scroll-margin-top: 84px; }
.doc-sec + .doc-sec { border-top: 1px solid var(--border); }
.sec-no {
  position: absolute; top: clamp(36px, 5vw, 58px);
  left: -84px; width: 60px; text-align: right;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em;
  color: var(--muted);
}
.doc-sec h2 { margin: 0 0 18px; font-size: 25px; font-weight: 700; letter-spacing: .01em; }
@media (max-width: 1180px) {
  .sec-no { position: static; width: auto; text-align: left; display: block; margin-bottom: 8px; }
}

/* ---------- 文章页目录（宽屏右侧悬浮 / 窄屏折叠抽屉） ---------- */
.doc-toc {
  position: absolute; top: 0; bottom: 0;
  left: calc(50% + 384px); width: 200px;
  display: none;
}
.doc-toc .toc-inner { position: sticky; top: 110px; }
.toc-title {
  margin: 0 0 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase;
}
.toc-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc-list a {
  display: block; padding: 5px 0 5px 14px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5;
  color: var(--muted);
  border-left: 2px solid transparent; margin-left: -1.5px;
}
.toc-list a:hover { color: var(--fg); }
.toc-list a.is-active { color: var(--fg); border-left-color: var(--accent); }
@media (min-width: 1320px) { .doc-toc { display: block; } }

.toc-mobile {
  margin: 0 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.toc-mobile summary {
  cursor: pointer; list-style: none;
  padding: 12px 16px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em;
  color: var(--fg);
  display: flex; justify-content: space-between; align-items: center;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; color: var(--muted); font-size: 15px; }
.toc-mobile[open] summary::after { content: "−"; }
.toc-mobile nav { padding: 2px 16px 12px; display: flex; flex-direction: column; }
.toc-mobile nav a { padding: 8px 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.toc-mobile nav a:hover { color: var(--fg); }
@media (min-width: 1320px) { .toc-mobile { display: none; } }

/* 面包屑与视频快捷入口：用达标的深链接色，可点性一目了然 */
.head-meta .crumb { color: var(--accent-active); }
.head-meta .crumb:hover { color: var(--accent-hover); }

/* 返回列表：页头独立一行 + 文章底部，链接色 */
.back-link {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--accent-active);
}
.back-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.pager-back {
  display: block; text-align: center; margin-top: 14px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .05em;
  color: var(--accent-active);
}
.pager-back:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* 详情页头 */
.page-head { padding-block: clamp(48px, 7vw, 80px) clamp(24px, 4vw, 40px); }
.page-head .head-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .04em;
}
.page-head h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; line-height: 1.2; letter-spacing: .01em;
}
.page-head .page-lead { margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.8; max-width: 40em; }

/* 正文排版 */
.prose { line-height: 1.9; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 600; }
.prose .lead-conclusion {
  font-size: 17px; font-weight: 500; color: var(--fg);
}
.prose pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  font-size: 13px; line-height: 1.7; overflow-x: auto; margin: 0 0 1.2em;
}
.prose code { font-size: .9em; background: var(--surface); border-radius: 4px; padding: .1em .35em; }
.prose pre code { background: none; padding: 0; }
p code, li code { overflow-wrap: anywhere; word-break: break-word; }

/* 结果先行框（Result First / Verdict） */
.result-first {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin-bottom: 28px;
}
.result-first .lf-mono { display: block; font-size: 11.5px; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.result-first .big {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.55;
}
.result-first .sub { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }

/* 假设 / 反馈问题：等宽编号列表 */
.num-list { list-style: none; margin: 0; padding: 0; }
.num-list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.num-list li:first-child { border-top: 1px solid var(--border); }
.num-list .n { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .06em; padding-top: 3px; }

/* 适用 / 不适用双栏 */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-2 .half {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.split-2 h3 { margin: 0 0 10px; font-size: 15px; font-family: var(--font-body); font-weight: 600; }
.split-2 ul { margin: 0; padding: 0; list-style: none; }
.split-2 li { padding: 5px 0 5px 22px; position: relative; font-size: 14.5px; color: var(--muted); }
.split-2 li::before {
  position: absolute; left: 0; top: 5px;
  font-family: var(--font-mono); font-weight: 600;
}
.split-2 .yes li::before { content: "+"; color: var(--ok); }
.split-2 .no li::before { content: "−"; color: var(--err); }
@media (max-width: 680px) { .split-2 { grid-template-columns: 1fr; } }

/* Demo 前后对比示意 */
.demo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.demo-panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
}
.demo-panel .tag {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  background: color-mix(in srgb, var(--fg) 78%, transparent); color: var(--bg);
  border-radius: 4px; padding: 3px 8px;
}
.demo-panel--before { background: linear-gradient(160deg, #c8d4d9 0%, #9fb3bc 60%, #7e939d 100%); }
.demo-panel--after {
  background:
    repeating-conic-gradient(var(--surface-2) 0% 25%, var(--bg) 0% 50%)
    0 0 / 22px 22px;
}
.demo-subject {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 46%; height: 72%;
  background: var(--muted);
  border-radius: 46% 46% 6px 6px / 60% 60% 0 0;
}
.demo-panel--after .demo-subject { background: var(--fg); }
.demo-caption { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .03em; }
@media (max-width: 560px) { .demo-pair { grid-template-columns: 1fr; } }

/* 时间线 */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 108px 14px 1fr; gap: 12px;
  padding-block: 10px;
}
.timeline .t-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); padding-top: 3px; text-align: right; }
.timeline .t-dot { position: relative; }
.timeline .t-dot::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border);
}
.timeline li.is-done .t-dot::before { background: var(--fg); }
.timeline li.is-now .t-dot::before { background: var(--accent); }
.timeline .t-dot::after {
  content: ""; position: absolute; top: 18px; bottom: -12px; left: 50%; transform: translateX(-50%);
  width: 1px; background: var(--border);
}
.timeline li:last-child .t-dot::after { display: none; }
.timeline .t-body strong { font-weight: 600; }
.timeline .t-body .lf-mono { color: var(--muted); font-size: 12px; margin-left: 8px; }
.timeline .t-body p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 480px) {
  .timeline li { grid-template-columns: 64px 10px minmax(0, 1fr); gap: 8px; }
  .timeline .t-body { min-width: 0; overflow-wrap: anywhere; }
  .timeline .t-body .lf-mono { display: block; margin-left: 0; }
}

/* 决定四态 */
.decision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.decision-cell {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; text-align: center;
}
.decision-cell .lf-mono { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; margin-bottom: 4px; }
.decision-cell small { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .decision-grid { grid-template-columns: 1fr 1fr; } }

/* 视频位 */
.video-slot {
  border: 1px dashed var(--border); border-radius: var(--radius);
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  color: var(--muted); font-family: var(--font-mono); font-size: 13px; letter-spacing: .05em;
  background: var(--surface);
}

/* 表格补充 */
.lf-table tbody th[scope="row"] {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--fg);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}
.lf-table th.t-key {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .lf-table { display: block; max-width: 100%; overflow-x: auto; }
}

/* Radar 内容级别徽章（扩展：与状态徽章同构） */
.lf-badge--flash    { background: var(--surface-2); color: var(--status-neutral-fg); }
.lf-badge--firsttest{ background: var(--accent-bg); color: var(--accent-active); }
.lf-badge--fullreview{ background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--status-ok-fg); }
/* 状态扩展：已发布（视频已发出，等待反馈） */
.lf-badge--published { background: var(--surface-2); color: var(--fg); }

/* ---------- 最近更新（首页时间流） ---------- */
.latest-list { border-top: 1px solid var(--border); }
.latest-list a {
  display: grid; grid-template-columns: 56px 64px 1fr; gap: 16px;
  align-items: baseline; padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.latest-list a:hover { background: var(--surface); }
.latest-list .l-date, .latest-list .l-type {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em;
}
.latest-list .l-title { font-size: 15px; }
@media (max-width: 560px) {
  .latest-list a { grid-template-columns: 56px 1fr; }
  .latest-list .l-type { display: none; }
}

/* 读数格可点击 */
a.status-cell { color: inherit; transition: background .15s ease; }
a.status-cell:hover { background: var(--surface); }
a.status-cell:hover .s-num { color: var(--accent); }

/* ---------- Founder Note ---------- */
.sec--tint { background: var(--surface); }
.founder-grid {
  display: grid; grid-template-columns: 230px 1fr;
  gap: clamp(28px, 4vw, 52px); align-items: start;
  max-width: 980px;
}
.founder-photo {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); overflow: hidden;
}
.founder-photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.founder-quote {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; line-height: 1.6;
  margin: 14px 0 16px;
}
.founder-text p { margin: 0 0 12px; line-height: 1.85; }
.founder-sign { font-family: var(--font-mono); font-size: 13px; margin-top: 16px; }
@media (max-width: 720px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 200px; margin-inline: auto; }
}

/* ---------- 实验室读数（首页合并空状态） ---------- */
.status-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg);
}
.status-cell { padding: 20px 22px; display: flex; flex-direction: column; gap: 5px; }
.status-cell + .status-cell { border-left: 1px solid var(--border); }
.status-cell .s-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.status-cell .s-num { font-family: var(--font-mono); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--fg); }
.status-cell.is-live .s-num { color: var(--accent); }
.status-cell .s-note { font-size: 12.5px; color: var(--muted); }
.status-promise { margin: 18px 0 8px; color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.status-method { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 640px) {
  .status-grid { grid-template-columns: 1fr 1fr; }
  .status-cell + .status-cell { border-left: 0; }
  .status-cell:nth-child(even) { border-left: 1px solid var(--border); }
  .status-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- 上一篇 / 下一篇 ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.pager a, .pager .pager-empty {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; min-height: 64px;
}
.pager a { color: var(--fg); transition: border-color .15s ease; }
.pager a:hover { border-color: var(--muted); }
.pager .p-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.pager .p-title { font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.pager .pager-next { text-align: right; align-items: flex-end; }
.pager .pager-empty {
  border-style: dashed; justify-content: center; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .05em;
}
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .pager-next { text-align: left; align-items: flex-start; } }

/* 决定四态：已选中的决定 */
.decision-cell.is-chosen { border-color: var(--accent); background: var(--accent-bg); }
.decision-cell.is-chosen .lf-mono { color: var(--accent-active); }

/* 列表条目的工具/难度元信息行 */
.entry .e-meta {
  grid-column: 2; margin: 2px 0 0;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .03em;
}
@media (max-width: 720px) { .entry .e-meta { grid-column: 1; } }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); margin-top: clamp(56px, 9vw, 104px); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  padding-block: clamp(40px, 6vw, 56px);
}
.footer-grid .f-brand p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); max-width: 34ch; }
.footer-grid h4 {
  margin: 0 0 12px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .12em; color: var(--muted); font-weight: 600; text-transform: uppercase;
}
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav a,
.footer-grid nav .is-pending { color: var(--muted); font-size: 14px; }
.footer-grid nav a:hover { color: var(--fg); }
.footer-signoff {
  border-top: 1px solid var(--border);
  padding-block: 22px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.footer-signoff .signoff {
  font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--fg);
}
.footer-signoff .fineprint { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* 示例稿脚注（仅用于评审版式的虚构内容页） */
.mock-footnote {
  margin-top: 40px; padding-top: 14px; border-top: 1px dashed var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .03em;
}

/* ============================================================
   v0.2 提升层：动效 · 深色 · 排印精修 · 仪器延伸
   原则：像仪表，不像烟花；全部尊重 prefers-reduced-motion；
   无 JS 时页面完整可用（渐进增强）。
   ============================================================ */

/* ---------- 排印精修 ---------- */
.hero h1, .page-head h1, .sec-head h2, .doc-sec h2, .founder-quote { text-wrap: balance; }
.prose, .hero-lead, .page-lead { hanging-punctuation: first allow-end; }
.latest-list .l-date, .entry .e-date, .entry .e-no,
.status-cell .s-num, .fb-band { font-variant-numeric: tabular-nums; }

/* ---------- 主题切换按钮 ---------- */
.header-cta { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; padding: 0; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--muted); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: none; }
.theme-dark .theme-toggle .icon-sun { display: none; }
.theme-dark .theme-toggle .icon-moon { display: block; }

/* 主题切换瞬间的过渡（JS 临时加 .theme-anim，避免常驻 transition） */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .22s ease, color .22s ease,
              border-color .22s ease, box-shadow .22s ease !important;
}

/* ---------- 深色补丁：卡片层次从 bg 抬到 surface（与 .lf-card 同构） ---------- */
.theme-dark .gate, .theme-dark .exp-feature, .theme-dark .hero-device,
.theme-dark .status-grid, .theme-dark .pager a, .theme-dark .split-2 .half,
.theme-dark .decision-cell, .theme-dark .toc-mobile { background: var(--surface); }
.theme-dark .exp-feature-side { background: var(--surface-2); }
.theme-dark .device-step.is-now { background: var(--surface-2); }
.theme-dark .demo-panel--before {
  background: linear-gradient(160deg, #3a4650 0%, #2b343d 60%, #1f262d 100%);
}

/* ---------- 动效：可点卡片的悬停上浮（须声明在 data-reveal 之前，显现期由后者接管） ---------- */
.gate, .pager a {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.gate:hover, .pager a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* ---------- 动效：入场显现（data-reveal 由 JS 注入，播完后由 JS 移除，交还悬停过渡） ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .6, .2, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 动效：进行中状态的呼吸点（仪器信号，不是装饰） ---------- */
@keyframes lf-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }
.lf-badge--building::before, .lf-badge--testing::before {
  animation: lf-pulse 2.4s ease-in-out infinite;
}

/* ---------- 动效：正文链接下划线淡入 ---------- */
.prose a, .status-method a, .founder-sign a, .status-promise a {
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  transition: text-decoration-color .15s ease, color .15s ease;
}
.prose a:hover, .status-method a:hover, .founder-sign a:hover, .status-promise a:hover {
  text-decoration-color: currentColor;
}

/* ---------- 循环装置：阶段轮转高亮（JS 驱动 .is-now） ---------- */
.device-step {
  margin-inline: -8px; padding-inline: 8px; border-radius: var(--radius-sm);
  transition: background .3s ease, box-shadow .3s ease;
}
.device-step.is-now { background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
.device-step.is-now .d-no { color: var(--accent-active); }
.theme-dark .device-step.is-now .d-no { color: var(--accent); }

/* ---------- 仪器延伸：读数格迷你趋势线 ---------- */
.status-cell .s-spark { display: block; margin-top: 7px; }
.status-cell .s-spark polyline {
  fill: none; stroke: var(--muted); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; opacity: .5;
}
.status-cell .s-spark circle { fill: var(--muted); opacity: .7; }
.status-cell.is-live .s-spark polyline { stroke: var(--accent); opacity: .95; }
.status-cell.is-live .s-spark circle { fill: var(--accent); opacity: 1; }

/* ---------- 仪器延伸：72 小时反馈时间带 ---------- */
.fb-band { margin: 4px 0 24px; }
.fb-track { position: relative; height: 2px; background: var(--border); border-radius: 2px; margin: 16px 4px 10px; }
.fb-fill {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 0%);
  background: var(--accent); border-radius: 2px;
}
.fb-band[data-tone="err"] .fb-fill { background: var(--err); }
.fb-tick {
  position: absolute; top: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  transform: translate(-50%, -50%);
}
.fb-tick.is-hit { border-color: var(--accent); background: var(--accent); }
.fb-band[data-tone="err"] .fb-tick.is-hit { border-color: var(--err); background: var(--err); }
.fb-scale {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em;
}
.fb-note { margin: 8px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---------- 减少动态：全部动效关闭，内容完整 ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lf-badge--building::before, .lf-badge--testing::before { animation: none; }
  .gate, .pager a { transition: border-color .16s ease; }
  .gate:hover, .pager a:hover { transform: none; box-shadow: none; }
  .skip-link, .theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- 可访问性：跳到主要内容（仅键盘聚焦时可见） ---------- */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--fg); color: var(--bg);
  font-size: 14px; font-weight: 500;
  transform: translateY(-64px); transition: transform .18s ease;
}
.skip-link:focus-visible { transform: none; color: var(--bg); }

/* ---------- 循环装置：当前实验位置标记 ---------- */
.d-cur {
  margin-left: 8px; font-family: var(--font-mono); font-size: 11px;
  font-weight: 400; letter-spacing: .06em; color: var(--accent-active);
}
.theme-dark .d-cur { color: var(--accent); }

/* ---------- 打印兜底：显现元素在纸上永远可见 ---------- */
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- 计时带：进行中（0~72h 心跳态）填充末端呼吸 ---------- */
@keyframes fb-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.fb-band[data-state="running"] .fb-fill {
  animation: fb-breathe 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .fb-band[data-state="running"] .fb-fill { animation: none; }
}

/* 手动切深色时，表单控件/滚动条同步深色（meta color-scheme 只跟系统偏好） */
.theme-dark { color-scheme: dark; }

/* ---------- 列表筛选：hidden 条目让 author display 生效 ---------- */
.entry[hidden] { display: none; }
.entry-list > li[hidden] { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.filter-empty {
  margin: 18px 0 0; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--muted); letter-spacing: .05em;
}

/* ============================================================
   v0.3 读数层：滚动/数据驱动的仪表动效
   ============================================================ */

/* ---------- 阅读进度尺（doc 页，JS 注入；粘在头部下缘） ---------- */
.read-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  pointer-events: none; z-index: 41;
}
.read-progress span {
  display: block; height: 100%; background: var(--accent);
  transform-origin: left center; transform: scaleX(var(--p, 0));
}

/* ---------- 计时带：进入视口时填充充到读数 ---------- */
.fb-fill { transition: width .6s cubic-bezier(.2, .6, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  .fb-fill { transition: none; }
}

/* ---------- 列表筛选：淡出淡入 ---------- */
.entry-list .entry:not([data-reveal]) { transition: opacity .12s ease; }
.entry-list.is-switching .entry { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .entry-list .entry { transition: none; }
}

/* ---------- 按压反馈 ---------- */
.lf-btn { transition: background .15s ease, box-shadow .15s ease, transform .1s ease; }
.lf-btn:active { transform: scale(.97); }
.filter-chip, .theme-toggle { transition: color .15s ease, border-color .15s ease, transform .1s ease; }
.filter-chip:active, .theme-toggle:active { transform: scale(.95); }
@media (prefers-reduced-motion: reduce) {
  .lf-btn:active, .filter-chip:active, .theme-toggle:active { transform: none; }
}
