/* Open Notes · 「声场」版样式：首页 / 清单页 / 文章页共用。
 * 维护于 site/assets/site.css，构建时带版本号复制到 public/assets/。
 * 设计令牌在文件顶部：纸色、墨色、朱砂（强调）、群青（交互）、金（标记）；深色模式跟随系统，也可手动切换。
 * 字体：Fraunces（变量衬线，拉丁字母与数字）+ 系统中文衬线；JetBrains Mono（时间戳与标签）。 */

/* ================= 字体 ================= */
@font-face {
  font-family: "Fraunces Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Fraunces Variable"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "JetBrains Mono Variable"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ================= 设计令牌 ================= */
/* 深色「录音棚」是默认主题；浅色「纸张」用顶栏按钮切换并记住（html[data-theme="light"]）。 */
:root {
  --paper: #0c0c0f;
  --paper-2: #141418;
  --paper-3: #1f1f26;
  --paper-glass: rgba(12, 12, 15, .78);
  --ink: #efeae0;
  --ink-2: #b9b2a4;
  --ink-3: #7f7a70;
  --line: rgba(239, 234, 224, .09);
  --line-2: rgba(239, 234, 224, .2);
  --accent: #ff5a36;
  --accent-ink: #ff8b6e;
  --accent-soft: rgba(255, 90, 54, .18);
  --heat-fill: rgba(255, 90, 54, .24);
  --blue: #7f8cff;
  --gold: #f0c052;
  --mark: rgba(240, 192, 82, .32);
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --glow: 0 0 48px rgba(255, 90, 54, .28);
  --display: "Fraunces Variable", "Noto Serif SC Variable", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --serif: "Fraunces Variable", "Noto Serif SC Variable", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --kai: "LXGW WenKai Screen", "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC Variable", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "JetBrains Mono Variable", "SF Mono", ui-monospace, Menlo, monospace;
  --bar-h: 56px;
  --grain: .09;
  --grain-blend: screen;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #f5f2eb; --paper-2: #ebe6da; --paper-3: #ddd6c4; --paper-glass: rgba(245, 242, 235, .84);
  --ink: #15140f; --ink-2: #4e4a40; --ink-3: #8a8474;
  --line: rgba(21, 20, 15, .12); --line-2: rgba(21, 20, 15, .26);
  --accent: #e4401e; --accent-ink: #b7300f; --accent-soft: rgba(228, 64, 30, .14); --heat-fill: rgba(228, 64, 30, .18);
  --blue: #2b3cf0; --gold: #d9a52c; --mark: rgba(217, 165, 44, .42);
  --shadow: 0 18px 50px rgba(21, 20, 15, .14);
  --glow: 0 0 40px rgba(228, 64, 30, .18);
  --grain: .06; --grain-blend: multiply;
  color-scheme: light;
}

/* ================= 基础 ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-optical-sizing: auto;
}
/* 纸张颗粒 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--grain); mix-blend-mode: var(--grain-blend);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 2px; }
img { display: block; }
code { font: .92em var(--mono); background: var(--paper-2); border-radius: 4px; padding: .05em .35em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--paper); }

html { scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; border: 3px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }

/* 跨页面视图过渡：列表里被点的封面与标题会飞到文稿页头（支持的浏览器渐进启用） */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
  ::view-transition-group(cover), ::view-transition-group(title) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .75, .2, 1); }
  ::view-transition-old(title), ::view-transition-new(title) { height: 100%; overflow: hidden; }
}

/* 文稿页顶部阅读进度条 */
.progress { position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--gold)); pointer-events: none; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); } 60% { box-shadow: 0 0 0 7px transparent; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 32px;
  background: var(--paper-glass);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.wordmark b {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 17px/1 var(--display); letter-spacing: .12em;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}
.wordmark b::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.6s ease-out infinite;
}
.wordmark span { font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.topbar-nav { display: flex; gap: 22px; }
.topbar-nav a { position: relative; padding: 6px 0; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.topbar-nav a:hover { color: var(--ink); }
.topbar-nav a[aria-current] { color: var(--ink); }
.topbar-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 18px; color: var(--ink-3); white-space: nowrap; }
.topbar-stats { font: 500 11px/1 var(--mono); letter-spacing: .1em; }

.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); transform: rotate(180deg); }
.icon-btn svg { width: 14px; height: 14px; }

.tag { font: 11px/1.4 var(--sans); color: var(--ink-3); white-space: nowrap; }
.tag + .tag::before { content: "·"; margin: 0 6px; color: var(--line-2); }

.kbd {
  font: 500 10px/1 var(--mono); color: var(--ink-3);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px;
}

/* 热度 / 时长小图 */
.spark { display: block; overflow: visible; }
.spark .area { fill: var(--heat-fill); }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.spark .base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark .dur { fill: var(--ink-3); opacity: .7; }
.spark .range { fill: var(--accent-soft); }

.text-link {
  color: var(--ink);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% 1px;
  transition: background-size .25s, color .2s;
}
.text-link:hover { color: var(--accent); background-size: 100% 2px; }
.eyebrow { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }

/* ================= 首页 / 清单页 ================= */

/* ---------- 顶栏搜索 ---------- */
.search {
  flex: 0 1 460px; min-width: 0; display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  transition: border-color .2s, box-shadow .25s, background .2s;
}
.search:focus-within { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 13.5px var(--sans); color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- 调频台（声场 + 电台） ---------- */
.studio {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(1100px 520px at 12% 0%, var(--accent-soft), transparent 60%);
}
.studio .field {
  position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair;
  /* 文字所在的左上角渐隐，往下到调频台处淡出 */
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .5) 42%, #000 70%), linear-gradient(#000 30%, rgba(0, 0, 0, .35) 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .5) 42%, #000 70%), linear-gradient(#000 30%, rgba(0, 0, 0, .35) 62%, transparent 100%);
  mask-composite: intersect;
}
.field-label {
  position: absolute; z-index: 3; pointer-events: none;
  max-width: min(460px, 70vw); padding: 7px 11px; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  font: 500 13px/1.4 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: var(--shadow);
}
.field-label[hidden] { display: none; }
.studio-inner {
  position: relative; z-index: 2; pointer-events: none;
  max-width: 1520px; margin: 0 auto; padding: 60px 32px 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end;
}
.masthead-copy { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.masthead-title {
  margin: 0;
  font: 600 clamp(48px, 8.5vw, 124px)/.92 var(--display);
  letter-spacing: -.04em; text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.masthead-title em { font-style: italic; font-weight: 500; color: var(--accent); }
:root[data-theme="dark"] .masthead-title, :root:not([data-theme="light"]) .masthead-title { text-shadow: 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent); }
:root[data-theme="light"] .masthead-title { text-shadow: none; }
.masthead-sub { margin: 18px 0 0; max-width: 580px; font: 16px/1.75 var(--kai); color: var(--ink-2); }
.masthead-stats { margin: 0; display: flex; gap: 34px; animation: rise .7s .12s cubic-bezier(.2, .7, .2, 1) both; }
.masthead-stats div { display: flex; flex-direction: column; gap: 6px; }
.masthead-stats dt { order: 2; font: 500 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.masthead-stats dd { margin: 0; font: 500 44px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 96, "SOFT" 60; }
.ticker {
  position: relative; z-index: 2; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ticker-track { display: inline-flex; animation: ticker 70s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 24px; font: 13px/1 var(--serif); color: var(--ink-2); border-right: 1px solid var(--line); }
.ticker a .mono { font-size: 10.5px; letter-spacing: .08em; color: var(--accent); }
.ticker a:hover { color: var(--ink); }

/* ---------- 布局：左索引 + 右舞台 ---------- */
.desk {
  max-width: 1520px; margin: 0 auto;
  display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: auto 1fr;
}
.filterbar { grid-column: 2; grid-row: 1; }
.facets { grid-column: 1; grid-row: 1 / span 2; }
.stage { grid-column: 2; grid-row: 2; padding: 0 32px 72px; min-width: 0; }

/* ---------- 左侧索引 ---------- */
.facets {
  position: sticky; top: var(--bar-h); align-self: start;
  max-height: calc(100vh - var(--bar-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 22px 56px 32px; border-right: 1px solid var(--line);
  scrollbar-width: thin;
}
.facet + .facet { margin-top: 26px; }
.facet h3 {
  margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline;
  font: 500 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
}
.facet h3 button { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--accent); font-size: 11px; }
.facet-item {
  position: relative; width: 100%; display: flex; align-items: baseline; gap: 8px;
  padding: 5px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 6px;
  text-align: left; font-size: 13px; color: var(--ink-2);
  background: linear-gradient(90deg, var(--paper-3) var(--w, 0%), transparent 0) no-repeat 8px 100% / calc(100% - 16px) 2px;
  transition: color .15s, background .2s;
}
.facet-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet-item .n { font: 11px var(--mono); color: var(--ink-3); }
.facet-item:hover { color: var(--ink); background-color: var(--paper-2); }
.facet-item[aria-pressed="true"] { color: var(--ink); font-weight: 600; background-image: linear-gradient(90deg, var(--accent) var(--w, 0%), transparent 0); }
.facet-item[aria-pressed="true"] .name::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0;
  background: var(--accent); border-radius: 50%;
}
.facet-item.zero { opacity: .38; }
.facet-more { margin-top: 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.facet-more:hover { color: var(--accent); }
.dur-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 6px; }
.dur-scale .facet-item {
  flex-direction: column; align-items: stretch; gap: 4px; padding: 7px 6px 6px; margin: 0; width: auto;
  border: 1px solid var(--line); border-radius: 8px; font-size: 11px; text-align: center; background: none;
}
.dur-scale .facet-item:hover { background: var(--paper-2); }
.dur-scale .facet-item[aria-pressed="true"] { border-color: var(--ink); background: var(--paper-2); }
.dur-scale .facet-item[aria-pressed="true"] .name::before { display: none; }
.dur-bar { height: 20px; display: flex; align-items: flex-end; justify-content: center; }
.dur-bar i { display: block; width: 100%; background: var(--paper-3); border-radius: 2px 2px 0 0; }
.dur-scale .facet-item[aria-pressed="true"] .dur-bar i { background: var(--accent); }

/* ---------- 筛选条 ---------- */
.filterbar {
  position: sticky; top: var(--bar-h); z-index: 20;
  display: flex; align-items: center; gap: 12px; min-height: 48px;
  padding: 0 32px; background: var(--paper-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filters-toggle { display: none; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex: 1; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  font-size: 12px; border-radius: 999px; background: var(--ink); color: var(--paper);
  transition: background .2s;
}
.chip small { color: var(--paper-3); font-size: 10px; letter-spacing: .06em; }
.chip span[aria-hidden] { color: var(--paper-3); }
.chip:hover { background: var(--accent); }
.chip:hover small, .chip:hover span[aria-hidden] { color: var(--paper); }
.bar-title { font: 600 15px/1 var(--display); font-variation-settings: "opsz" 48; }
.bar-title small { margin-left: 10px; font: 11px var(--sans); color: var(--ink-3); }
.chip-clear { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.chip-clear:hover { color: var(--accent); }
.result-count { font: 11.5px var(--mono); color: var(--ink-3); white-space: nowrap; letter-spacing: .02em; }
.result-count b { font: 600 13px var(--display); color: var(--ink); }
.sort { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.sort button { height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.sort button:hover { color: var(--ink); }
.sort button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- 顶部编辑区：编辑推荐 · 回放最热 · 一句 ---------- */
.recent { padding: 22px 0 18px; border-bottom: 1px solid var(--line-2); }
.recent[hidden] { display: none; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font: 500 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.section-head span { font-size: 11.5px; color: var(--ink-3); }
.hot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 40px; }
.hot-grid.with-picks { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(240px, 300px); gap: 36px; }
.hot-grid.no-hot { grid-template-columns: minmax(0, 1fr); }
.hot-grid.with-picks.no-hot { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); }
.with-picks .hot-list { grid-template-columns: minmax(0, 1fr); }
.with-picks .hot-list li:nth-child(n+4) { display: none; }
.picks { padding-right: 36px; margin-right: -36px; border-right: 1px solid var(--line); }
.pick { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.pick + .pick { margin-top: 14px; }
.pick .thumb { grid-row: span 2; }
.pick b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 500 15px/1.4 var(--display); }
.pick small { font: 11px var(--mono); color: var(--ink-3); }
.pick:hover b { color: var(--accent); }
.hot-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.hot-list a {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 8px 12px; margin: 0 -12px; border-radius: 10px; transition: background .2s, transform .25s;
}
.hot-list a:hover { background: var(--paper-2); transform: translateX(3px); }
.hot-list .spark { width: 72px; height: 24px; }
.hot-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 15px/1.4 var(--display); }
.hot-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--ink-3); }
.hot-text small .mono { color: var(--accent); font-size: 10.5px; }
.hot-list a:hover b { color: var(--accent); }
.qod { margin: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.qod blockquote { margin: 0; font: 400 clamp(18px, 1.6vw, 23px)/1.65 var(--kai); color: var(--ink); text-wrap: balance; }
.qod blockquote::before { content: "“"; display: block; margin-bottom: -10px; font: 400 64px/1 Georgia, var(--serif); color: var(--accent); }
.qod figcaption { margin-top: 10px; font: 11.5px var(--sans); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px;
  background: var(--paper-3); filter: saturate(.9); box-shadow: 0 1px 0 var(--line-2);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), filter .3s;
}

/* ---------- 列表 ---------- */
#list { counter-reset: row; }
.group-head {
  position: sticky; top: calc(var(--bar-h) + 48px); z-index: 10;
  display: flex; align-items: baseline; gap: 14px;
  padding: 28px 0 10px; background: var(--paper); border-bottom: 1px solid var(--ink);
}
.group-head h3 { margin: 0; font: 500 26px/1 var(--display); letter-spacing: -.02em; font-variation-settings: "opsz" 96, "SOFT" 30; }
.group-head span { font: 11px var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.row {
  counter-increment: row;
  display: grid;
  grid-template-columns: 30px 46px 96px minmax(0, 1fr) 120px 150px 62px;
  column-gap: 18px; align-items: center;
  padding: 14px 12px; margin: 0 -12px;
  border-bottom: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: background .2s, transform .3s cubic-bezier(.2, .7, .2, 1);
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.row:nth-child(2) { animation-delay: 30ms; } .row:nth-child(3) { animation-delay: 60ms; } .row:nth-child(4) { animation-delay: 90ms; }
.row:nth-child(5) { animation-delay: 120ms; } .row:nth-child(6) { animation-delay: 150ms; } .row:nth-child(7) { animation-delay: 180ms; }
.row:nth-child(8) { animation-delay: 210ms; } .row:nth-child(n+14) { animation: none; }
.row::before { content: counter(row, decimal-leading-zero); font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.row:hover { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--paper-3), var(--paper-2) 72%); transform: translateX(4px); }
.row:hover .thumb { transform: scale(1.05); filter: saturate(1.05); }
.row:focus-visible { outline-offset: -2px; }
.row.open { background: var(--paper-2); border-bottom-color: transparent; margin-bottom: 8px; cursor: default; transform: none; box-shadow: var(--shadow); }
.row-date { font: 11px var(--mono); color: var(--ink-3); }
.row-main { min-width: 0; }
.row-title {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 17px/1.4 var(--display); color: var(--ink); font-variation-settings: "opsz" 48;
  transition: color .2s;
}
a.row-title:hover { color: var(--accent); }
.row-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.row-meta .ch { color: var(--ink-2); }
.row-snip { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.row-snip .k { font-family: var(--mono); color: var(--accent); margin-right: 5px; }
.row-topics { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row-dur { font: 12px var(--mono); color: var(--ink-2); text-align: right; }
.row.open .row-title { white-space: normal; }

/* 新鲜度墨点：按 addedAt 的半衰期透明度（site.js 运行时写入 --freshness-opacity） */
.freshness-mark {
  display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; vertical-align: middle;
  border-radius: 50%; background: var(--accent); opacity: var(--freshness-opacity, 0.12);
}

/* 原位展开 */
.detail {
  grid-column: 4 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px; padding: 18px 0 8px; cursor: auto;
  animation: rise .4s cubic-bezier(.2, .7, .2, 1) both;
}
.detail-summary { margin: 0; font: 14.5px/1.9 var(--serif); color: var(--ink-2); }
.detail-summary .auto, .summary .auto { font: 11px var(--mono); color: var(--ink-3); }
.hot-badge { margin-left: 6px; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; color: var(--accent); border: 1px solid currentColor; border-radius: 3px; padding: 2px 4px; vertical-align: 1px; }
.quotes { margin: 16px 0 0; padding: 0; list-style: none; }
.quotes li { padding: 2px 0 2px 14px; border-left: 2px solid var(--accent); font: 16px/1.7 var(--kai); color: var(--ink); }
.quotes li + li { margin-top: 12px; }
.quotes small { display: block; margin-top: 2px; font: 11px var(--sans); color: var(--ink-3); }
.quotes small a:hover { color: var(--accent); }
.detail-tax { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tax button { font-size: 11.5px; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.detail-tax button:hover { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.detail-tax button small { color: inherit; opacity: .6; margin-right: 4px; }

.timeline { position: relative; }
.timeline-svg { width: 100%; height: 60px; margin-top: 16px; display: block; overflow: visible; }
.timeline-svg .seg { fill: transparent; }
.timeline-svg .seg.hot { fill: var(--accent-soft); }
.timeline-svg .bound { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.timeline-svg .floor { stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.timeline-axis { display: flex; justify-content: space-between; margin-top: 5px; font: 10.5px var(--mono); color: var(--ink-3); }
.timeline-label { position: absolute; top: 0; left: 0; font: 500 10px/1 var(--mono); color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.chapters { margin: 12px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.chapters li { break-inside: avoid; }
.chapters a {
  display: flex; gap: 8px; padding: 3px 6px; margin: 0 -6px; border-radius: 5px;
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2); transition: background .15s, color .15s;
}
.chapters a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapters a .mono { font-size: 10.5px; color: var(--ink-3); padding-top: 2px; min-width: 44px; }
.chapters .cont { color: var(--ink-3); }
.chapters a.hot, .chapters a:hover { background: var(--accent-soft); color: var(--ink); }
.chapters-more { margin-top: 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.chapters-more:hover { color: var(--accent); }
.detail-actions { grid-column: 1 / -1; display: flex; gap: 22px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.read-btn {
  flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 18px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 13px/1 var(--display);
  transition: background .2s, transform .25s, box-shadow .25s;
}
.read-btn:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 24px var(--accent-soft); }
.detail-actions .hint { margin-left: auto; color: var(--ink-3); font-size: 11.5px; }

.empty { padding: 72px 0; text-align: center; font: 15px/1.6 var(--display); color: var(--ink-3); }
.empty button { color: var(--accent); }

/* 清单页标题行 */
.list-heading { max-width: 1520px; margin: 0 auto; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 36px 32px 18px; border-bottom: 1px solid var(--line); }
.list-heading .eyebrow { flex-basis: 100%; margin: 0; }
.list-heading h1 { margin: 0; font: 600 clamp(28px, 4vw, 48px)/1.1 var(--display); letter-spacing: -.03em; font-variation-settings: "opsz" 144, "SOFT" 80; }
.list-heading span { font-size: 12.5px; color: var(--ink-3); }

/* 页脚 */
.site-foot {
  max-width: 1520px; margin: 0 auto; padding: 36px 32px 64px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--line); font: 500 10.5px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.site-foot .text-link { color: var(--ink-2); }

/* ---------- 中等宽度 ---------- */
@media (max-width: 1180px) {
  .row { grid-template-columns: 30px 46px 96px minmax(0, 1fr) 120px 62px; }
  .row-topics { display: none; }
  .hot-list { grid-template-columns: 1fr; }
  .hot-grid.with-picks { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .hot-grid.with-picks .qod { grid-column: 1 / -1; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .topbar-stats { display: none; }
  .studio-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .masthead-stats { gap: 26px; }
  .masthead-stats dd { font-size: 36px; }
}
@media (max-width: 960px) {
  .desk { grid-template-columns: 1fr; grid-template-rows: auto; }
  .filterbar, .facets, .stage { grid-column: 1; grid-row: auto; }
  .filterbar { padding: 0 16px; flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .filters-toggle { display: inline-block; }
  .facets {
    display: none; position: static; max-height: none; overflow: visible;
    border-right: 0; border-bottom: 1px solid var(--line-2);
    padding: 16px 16px 20px; background: var(--paper-2);
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px;
  }
  .desk.facets-open .facets { display: grid; }
  .facet + .facet { margin-top: 0; }
  .stage { padding: 0 16px 56px; }
  .group-head { position: static; }
  .topbar { padding: 0 16px; gap: 14px; }
  .topbar-nav { display: none; }
  .search { flex: 1; }
  .sort { order: 3; }
  .result-count { order: 2; margin-left: auto; }
  .chips { order: 4; flex-basis: 100%; }
  .chips:empty { display: none; }
  .list-heading { padding: 24px 16px 14px; }
  .studio-inner { padding: 44px 16px 22px; }
  .site-foot { padding: 28px 16px 48px; }
}
@media (max-width: 760px) {
  .wordmark span { display: none; }
  .hot-grid, .hot-grid.with-picks { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .picks { border-right: 0; padding-right: 0; margin-right: 0; }
  .bar-title { display: none; }
  .chips:has(.bar-title:only-child) { display: none; }
  .filterbar { gap: 8px 10px; }
  .qod { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hot-list li:nth-child(n+3) { display: none; }
  .row { grid-template-columns: 76px minmax(0, 1fr) 48px; column-gap: 12px; padding: 12px 8px; margin: 0 -8px; }
  .row::before, .row-date, .row-spark, .row-topics { display: none; }
  .row:hover { transform: none; }
  .row-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15.5px; }
  .detail { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 18px; }
  .chapters { columns: 1; }
  .detail-actions .hint, .detail-actions .tag { display: none; }
  .facets { grid-template-columns: 1fr; }
  .masthead-title { font-size: clamp(40px, 13vw, 64px); }
  .studio .field { -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .4) 35%, rgba(0, 0, 0, .06) 100%); -webkit-mask-composite: source-over; mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .4) 35%, rgba(0, 0, 0, .06) 100%); mask-composite: add; }
  .masthead-sub { font-size: 14px; }
  .masthead-stats { gap: 18px; flex-wrap: wrap; }
  .masthead-stats dd { font-size: 30px; }
  .ticker a { padding: 9px 16px; font-size: 12px; }
}

/* ================= 文章页 ================= */
:root { --size: 17px; --measure: 660px; --gutter: 120px; }
.page-article .topbar { position: static; }
.crumb { font: 11.5px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--accent); }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ---------- 页头 ---------- */
.head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding: 40px 0 28px; animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
/* 封面主色环境光：article.js 取封面平均色写入 --ambient */
.has-ambient .head::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -140px; right: -120px; width: 720px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ambient, var(--accent)) 38%, transparent), transparent);
  filter: blur(40px); opacity: .9; animation: fadein 1.2s ease both;
}
@keyframes fadein { from { opacity: 0; } to { opacity: .9; } }
.page-article main { position: relative; isolation: isolate; overflow: clip; }
.page-article h1 { view-transition-name: title; }
.head-aside img { view-transition-name: cover; }
.kicker { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font: 11.5px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.kicker b { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.kicker .mono { font-size: 11.5px; color: var(--ink-2); }
.page-article h1 {
  margin: 16px 0 10px;
  font: 600 clamp(30px, 4.3vw, 58px)/1.14 var(--display); letter-spacing: -.03em; text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.subtitle { margin: -2px 0 10px; font: 400 clamp(16px, 1.6vw, 20px)/1.5 var(--display); font-style: italic; color: var(--ink-2); }
.byline { font-size: 13px; color: var(--ink-2); }
.byline span + span::before { content: "·"; margin: 0 8px; color: var(--ink-3); }
.byline em { font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; }
.summary { position: relative; margin: 18px 0 0; max-width: 820px; padding-left: 18px; border-left: 2px solid var(--accent); font: 15.5px/1.85 var(--kai); color: var(--ink-2); }
.summary.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.summary-toggle { margin: 6px 0 0 20px; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--accent); }
.summary-toggle[hidden] { display: none; }
.tax { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tax a { font-size: 11.5px; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.tax a small { color: inherit; opacity: .6; margin-right: 4px; }
.tax a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.head-aside { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.head-aside img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px;
  filter: saturate(.9); background: var(--paper-3); box-shadow: var(--shadow);
  transform: rotate(-1.2deg); transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.head-aside img:hover { transform: rotate(0) scale(1.02); }
.head-aside .links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 12px; }
.peak { font: 500 10.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.peak a { display: block; margin-top: 4px; color: var(--ink); font: 500 14px/1.5 var(--display); letter-spacing: 0; text-transform: none; }
.peak a:hover { color: var(--accent); }
.peak .mono { color: var(--accent); font-size: 11px; margin-right: 8px; }

/* ---------- 时间轴带 ---------- */
.band { position: sticky; top: 0; z-index: 30; background: var(--paper-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line-2); }
.band-row { display: flex; align-items: stretch; gap: 16px; }
.band-btn { display: none; align-self: center; flex: none; height: 28px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; color: var(--ink-2); }
.band-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band-mark { display: none; align-self: center; font: 700 11px/1 var(--display); letter-spacing: .2em; white-space: nowrap; font-variation-settings: "opsz" 144, "WONK" 1; }
.track { position: relative; flex: 1; min-width: 0; height: 68px; cursor: pointer; transition: height .2s ease; }
.track svg { position: absolute; left: 0; right: 0; top: 10px; width: 100%; height: 38px; overflow: visible; transition: top .2s, height .2s; }
.track .area { fill: var(--paper-3); }
.track .line { fill: none; stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.track .read .area { fill: url(#readgrad); }
.track .read .line { stroke: var(--accent); stroke-width: 1.4; }
.track .bars rect { fill: var(--paper-3); }
.track .read .bars rect { fill: url(#readgrad); }
.track .bound { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.track .floor { stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.track .hover { fill: var(--accent-soft); }
.cursor { position: absolute; top: 6px; height: 46px; width: 0; border-left: 1.5px solid var(--ink); pointer-events: none; transition: top .2s, height .2s; }
.cursor::before { content: ""; position: absolute; top: -5px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ticks { position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; pointer-events: none; transition: opacity .15s; }
.ticks span { position: absolute; transform: translateX(-50%); font: 10px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }
.band-legend { display: block; margin-top: 4px; font: 10px/1.2 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.tip {
  position: absolute; top: 100%; margin-top: 8px; z-index: 5; pointer-events: none;
  max-width: 360px; padding: 7px 11px; border-radius: 7px;
  background: var(--ink); color: var(--paper); font: 12.5px/1.45 var(--display);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .12s;
  box-shadow: var(--shadow);
}
.tip.on { opacity: 1; }
.tip .mono { opacity: .7; margin-right: 8px; font-size: 11px; }
.band-meta { align-self: center; flex: none; font: 11px var(--mono); color: var(--ink-3); white-space: nowrap; min-width: 128px; text-align: right; }
.band-meta b { color: var(--ink); font: 600 15px/1 var(--display); font-variant-numeric: tabular-nums; }

.band.compact .track { height: 34px; }
.band.compact .track svg { top: 5px; height: 24px; }
.band.compact .cursor { top: 2px; height: 30px; }
.band.compact .ticks, .band.compact .band-legend { opacity: 0; }
.band.compact .band-mark { display: block; }

.band-panel { border-top: 1px solid var(--line); padding: 10px 0 12px; }
.band-panel[hidden] { display: none; }
.band-panel .toc { max-height: 60vh; }
.band-settings { display: flex; gap: 24px; flex-wrap: wrap; }
.band-settings .setting { margin: 0; min-width: 180px; }

/* ---------- 主体三栏：目录 / 正文 / 工具 ---------- */
.body { display: grid; grid-template-columns: 256px minmax(0, 1fr) 216px; gap: 44px; padding-top: 32px; }
.rail { position: sticky; top: 52px; align-self: start; max-height: calc(100vh - 62px); display: flex; flex-direction: column; }
.rail-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.rail-head h2 { margin: 0; font: 500 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.rail-head h2 .mono { letter-spacing: 0; margin-left: 6px; color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 7px; font: 11px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.switch i { width: 26px; height: 15px; border-radius: 8px; background: var(--paper-3); position: relative; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 .5px var(--line-2); transition: transform .2s; }
.switch[aria-pressed="true"] { color: var(--ink); }
.switch[aria-pressed="true"] i { background: var(--accent); }
.switch[aria-pressed="true"] i::after { transform: translateX(11px); }
.toc { margin: 0; padding: 8px 0 24px; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.toc a {
  display: grid; grid-template-columns: 3px 48px minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 5px 8px 5px 0; border-radius: 5px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.toc a i { align-self: stretch; border-radius: 2px; background: var(--accent); }
.toc a .mono { font-size: 10.5px; color: var(--ink-3); }
.toc a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc .cont { color: var(--ink-3); }
.toc a:hover { color: var(--ink); background: var(--paper-2); }
.toc a.active { color: var(--ink); background: var(--paper-2); font-weight: 600; }
.toc a.active .mono { color: var(--accent); }
.toc.focus-hot a.cold { opacity: .3; }

/* 正文 */
.text { min-width: 0; max-width: calc(var(--measure) + var(--gutter)); padding-left: var(--gutter); }
.chapter { position: relative; padding: 6px 0 48px; scroll-margin-top: 84px; }
.chapter + .chapter { padding-top: 44px; border-top: 1px solid var(--line); }
.ch-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ch-no {
  position: absolute; left: calc(-1 * var(--gutter)); top: -4px; pointer-events: none; user-select: none;
  font: 500 92px/1 var(--display); letter-spacing: -.05em; color: var(--accent); opacity: .16;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.chapter + .chapter .ch-no { top: 36px; }
@supports (animation-timeline: view()) {
  @keyframes numeral-drift { from { transform: translateY(70px); } to { transform: translateY(-70px); } }
  .ch-no { animation: numeral-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
}
.ts {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px;
  border: 1px solid var(--line-2); border-radius: 999px; font: 500 11px/1 var(--mono); color: var(--ink-2);
  transition: border-color .2s, color .2s, background .2s;
}
.ts svg { width: 7px; height: 8px; }
a.ts:hover { border-color: var(--accent); color: var(--paper); background: var(--accent); }
.ch-heat { font: 11px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.ch-heat.hot { color: var(--accent); }
.chapter h2 { margin: 0 0 24px; font: 600 clamp(22px, 2.2vw, 30px)/1.35 var(--display); letter-spacing: -.015em; text-wrap: balance; font-variation-settings: "opsz" 96, "SOFT" 40; }
.turn { position: relative; margin-bottom: 1.2em; }
.who {
  position: absolute; left: calc(-1 * var(--gutter)); width: calc(var(--gutter) - 22px); top: .55em; text-align: right;
  font: 600 10.5px/1.45 var(--mono); letter-spacing: .06em; color: var(--ink-3);
}
.turn.guest .who { color: var(--accent); }
.turn p { margin: 0 0 .95em; font: var(--size)/1.95 var(--serif); color: var(--ink); text-align: justify; text-justify: inter-character; hanging-punctuation: allow-end; }
.turn.host p { color: var(--ink-2); }
.turn p:last-child { margin-bottom: 0; }
.ad { margin: 0 0 1.2em; border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 14px; font: 12px/1.5 var(--mono); color: var(--ink-3); }
.ad summary { cursor: pointer; list-style: none; }
.ad summary::-webkit-details-marker { display: none; }
.ad summary::after { content: "展开"; margin-left: 10px; color: var(--accent); }
.ad[open] summary::after { content: "收起"; }
.ad p { margin: 10px 0 0; font: 14px/1.8 var(--serif); color: var(--ink-2); }
.end { padding: 28px 0 100px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 16px; font: 500 10.5px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* 右侧工具 */
.tools { position: sticky; top: 52px; align-self: start; display: flex; flex-direction: column; gap: 26px; font-size: 12px; }
.tools h3 { margin: 0 0 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.seg-ctl { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.seg-ctl button { flex: 1; height: 28px; font: 12px var(--sans); color: var(--ink-2); transition: background .2s, color .2s; }
.seg-ctl button + button { border-left: 1px solid var(--line-2); }
.seg-ctl button:hover { background: var(--paper-2); }
.seg-ctl button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg-ctl output { flex: 1.2; display: grid; place-items: center; font: 11px var(--mono); color: var(--ink); border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.setting + .setting { margin-top: 10px; }
.setting label { display: block; margin-bottom: 5px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.now-title { font: 500 14px/1.5 var(--display); margin: 0 0 10px; }
.share { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--paper-3); }
.share i { display: block; height: 100%; }
.share-legend { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; color: var(--ink-2); }
.share-legend span { display: flex; justify-content: space-between; gap: 8px; }
.share-legend span b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-legend span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; margin-top: 5px; background: var(--c); }
.share-legend .mono { color: var(--ink-3); font-size: 10.5px; margin-left: auto; }
.now-meta { margin-top: 8px; color: var(--ink-3); font: 11px var(--mono); }
.top-list { margin: 0; padding: 0; list-style: none; }
.top-list a { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--ink-2); transition: color .15s; }
.top-list a:hover { color: var(--accent); }
.top-list .mono { color: var(--accent); font-size: 10.5px; margin-right: 7px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1279px) {
  .body { grid-template-columns: 236px minmax(0, 1fr); }
  .tools { display: none; }
  .band-btn.set { display: block; }
  :root { --gutter: 104px; }
  .ch-no { font-size: 76px; }
}
@media (max-width: 899px) {
  .wrap { padding: 0 16px; }
  .page-article .topbar { padding: 0 16px; }
  .head { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; }
  .head-aside { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: start; }
  .head-aside img { transform: none; }
  .head-aside .links { grid-column: 2; flex-direction: column; gap: 6px; }
  .head-aside .peak { grid-column: 1 / -1; }
  .page-article h1 { font-size: clamp(26px, 7vw, 34px); }
  .body { grid-template-columns: minmax(0, 1fr); padding-top: 22px; }
  .rail { display: none; }
  .band-btn.toc-btn { display: block; }
  .band-meta { min-width: 0; }
  .band-legend { display: none; }
  .ticks span:not(:first-child):not(:last-child) { display: none; }
  :root { --gutter: 0px; }
  .ch-no { position: static; font: 500 11px/1 var(--mono); letter-spacing: .08em; opacity: 1; }
  .who { position: static; width: auto; text-align: left; display: block; margin-bottom: 4px; }
  .turn p { text-align: left; }
}
@media (max-width: 520px) {
  .band-meta .total, .crumb .t { display: none; }
  .head-aside { grid-template-columns: 100px minmax(0, 1fr); }
}


/* ---------- 调频台：电台 / 信号波形 / 频段 ---------- */
.tuner { position: relative; z-index: 2; max-width: 1520px; margin: 0 auto; padding: 6px 32px 26px; outline: none; }
.tuner:focus-visible .dial { box-shadow: inset 0 0 0 2px var(--blue); border-radius: 10px; }
.station { position: relative; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px 36px; align-items: start; padding: 24px 0 6px; border-top: 1px solid var(--line); }
.station-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--paper-3); box-shadow: var(--shadow), var(--glow); isolation: isolate; }
.station-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.station-cover:hover img { transform: scale(1.05); }
.station-cover.blank::after { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; font: 600 96px/1 var(--display); color: var(--ink-3); opacity: .5; }
.station-no { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10.5px; letter-spacing: .14em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.station-info { min-width: 0; }
.station-kicker { margin: 0; font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.station-title { margin: 8px 0; font: 600 clamp(22px, 2.6vw, 38px)/1.22 var(--display); letter-spacing: -.02em; text-wrap: balance; font-variation-settings: "opsz" 96, "SOFT" 50; }
.station-title a:hover { color: var(--accent); }
.station-meta { margin: 0 0 10px; font: 12.5px/1.5 var(--sans); color: var(--ink-2); }
.station-summary { margin: 0 0 12px; max-width: 680px; font: 15px/1.8 var(--kai); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.station-tags { margin: 0 0 16px; }
.station-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tune-btn { height: 32px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.tune-btn:hover { border-color: var(--ink); color: var(--ink); }
.tune-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tune-btn[aria-pressed="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-out infinite; vertical-align: 1px; }
.tune-hint { font-size: 11.5px; color: var(--ink-3); }
.scope { grid-column: 1 / -1; width: 100%; height: 76px; display: block; }
.station.swap .station-info { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.station.swap .station-cover img { animation: fadein .5s ease both; }
.dial {
  position: relative; height: 64px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.dial.dragging { cursor: grabbing; }
.dial-track { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: flex-end; gap: 4px; padding-bottom: 18px; will-change: transform; transition: transform .5s cubic-bezier(.2, .75, .2, 1); }
.dial.dragging .dial-track { transition: none; }
.mark { flex: none; width: 10px; height: var(--h, 10px); border-radius: 2px 2px 0 0; background: var(--line-2); transform-origin: bottom; transition: background .2s, height .3s, transform .2s; }
.mark.heat { background: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.mark:hover { background: var(--ink-2); transform: scaleY(1.15); }
.mark.on { background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.dial-label { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); pointer-events: none; }
.needle { position: absolute; left: 50%; top: 0; bottom: 14px; width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 12px var(--accent); pointer-events: none; }
.needle::before { content: ""; position: absolute; top: -1px; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--accent); }

/* ---------- 视图切换 + 封面墙 ---------- */
.view { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.view button { width: 30px; height: 26px; border-radius: 999px; display: grid; place-items: center; color: var(--ink-3); transition: background .2s, color .2s; }
.view button svg { width: 14px; height: 14px; }
.view button:hover { color: var(--ink); }
.view button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 22px 18px; padding: 18px 0 8px; }
.card {
  position: relative; display: block; border-radius: 14px; padding: 10px;
  background: var(--paper-2); border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease, box-shadow .3s, border-color .3s;
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.cards .card:nth-child(n+13) { animation: none; }
.card:hover { border-color: var(--line-2); z-index: 2; box-shadow: var(--shadow), 0 24px 60px color-mix(in srgb, var(--ambient, var(--accent)) 38%, transparent); }
.card-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; background: var(--paper-3); box-shadow: 0 10px 30px color-mix(in srgb, var(--ambient, transparent) 45%, transparent); transition: box-shadow .4s; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-cover img { transform: scale(1.06); }
.card-blank { display: grid; place-items: center; width: 100%; height: 100%; font: 600 56px/1 var(--display); color: var(--ink-3); }
.card-dur { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 10.5px; }
.card-heat { position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.card-body { display: block; padding: 12px 4px 4px; }
.card-body b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; font: 500 15px/1.45 var(--display); color: var(--ink); transition: color .2s; }
.card:hover .card-body b { color: var(--accent); }
.card-body small { display: block; margin: 6px 0 8px; font: 11.5px var(--sans); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body .spark { width: 100%; height: 16px; }

/* ---------- 跟随光标的光环 ---------- */
.cursor-ring {
  position: fixed; left: -18px; top: -18px; width: 36px; height: 36px; z-index: 2000; pointer-events: none;
  border: 1.5px solid var(--accent); border-radius: 50%; opacity: 0;
  transition: width .25s, height .25s, left .25s, top .25s, opacity .4s, background .25s, border-color .25s;
}
.cursor-ring.on { width: 58px; height: 58px; left: -29px; top: -29px; border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }

/* ---------- 入场：站名浮现 + 一道扫频线（每个会话只播一次） ---------- */
.intro { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: var(--paper); pointer-events: none; animation: intro-out .55s 1.05s cubic-bezier(.4, 0, .2, 1) forwards; }
.intro-mark { font: 600 clamp(64px, 14vw, 180px)/1 var(--display); letter-spacing: -.04em; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; animation: intro-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.intro-mark em { font-style: italic; font-weight: 500; color: var(--accent); }
.intro-sweep { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--gold), transparent); transform-origin: left; animation: sweep 1s .15s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes intro-in { from { opacity: 0; transform: translateY(24px) scale(.94); letter-spacing: .12em; } }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
html.no-intro .intro { display: none; }

/* ---------- 文稿页：封面铺底 + 深色下的信号发光 ---------- */
.head[style*="--cover"]::after {
  content: ""; position: absolute; z-index: -2; left: -24vw; right: -24vw; top: -140px; height: 680px; pointer-events: none;
  background: var(--cover) center / cover no-repeat; filter: blur(70px) saturate(1.25); opacity: .26;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 96%); mask-image: linear-gradient(#000 30%, transparent 96%);
}
:root[data-theme="light"] .head[style*="--cover"]::after { opacity: .16; }
:root[data-theme="dark"] .track .read .line, :root[data-theme="dark"] .timeline-svg .line { filter: drop-shadow(0 0 6px var(--accent)); }
:root[data-theme="dark"] .cursor::before { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px var(--accent); }

/* ---------- 调频台 / 封面墙的响应式 ---------- */
@media (max-width: 1180px) {
  .studio-inner { grid-template-columns: 1fr; padding-top: 52px; }
}
@media (max-width: 960px) {
  .studio-inner { padding: 44px 16px 14px; }
  .tuner { padding: 4px 16px 20px; }
  .station { grid-template-columns: 220px minmax(0, 1fr); gap: 16px 20px; }
  .station-summary { -webkit-line-clamp: 2; }
  .view { order: 3; }
}
@media (max-width: 760px) {
  .station { grid-template-columns: 1fr; }
  .station-cover { max-width: 360px; }
  .station-title { font-size: 22px; }
  .tune-hint { display: none; }
  .scope, .dial { height: 56px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px 12px; }
  .card { padding: 8px; }
  .card-body b { font-size: 13.5px; }
}

/* 打印：去掉交互元素，正文满宽 */
@media print {
  body::before, .progress, .topbar, .band, .rail, .tools, .filterbar, .facets, .studio, .ticker, .site-foot, .intro, .cursor-ring, .end a { display: none !important; }
  .body { display: block; }
  .text { max-width: none; padding-left: 0; }
  .who, .ch-no { position: static; display: block; text-align: left; opacity: 1; font-size: 11px; }
}
