/* 智能风控与 AI 应用观察室 — 站点样式 */
:root {
  --bg: #f4f5f8;
  --bg-glow: radial-gradient(ellipse 85% 380px at 50% -130px, rgba(37, 99, 235, .06), transparent 72%);
  --panel: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #8391a5;
  --line: #e2e8f0;
  --line-2: #edf1f7;
  --navy: #162235;
  --navy-2: #24344d;
  --navy-3: #64748b;
  --gold: #c49d52;
  --focus: #2563eb;

  --a: #c0392b;  --a-bg: #fdf1ef;
  --b: #2563eb;  --b-bg: #eef4ff;
  --c: #b45309;  --c-bg: #fdf6ec;
  --d: #475569;  --d-bg: #f1f4f8;

  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -14px rgba(15, 23, 42, .12);
  --shadow-hover: 0 2px 6px rgba(15, 23, 42, .05), 0 12px 28px -14px rgba(15, 23, 42, .16);
  --topbar-h: 60px;
  --surface-sub: #f9fafc;
  --surface-hover: #f5f8fc;
  --surface-interp: #f7f9fc;
  --surface-lead: #fcfaf4;
  --border-lead: #ede4cf;
  --ink-lead: #3b3526;
  --ink-body: #2c3849;
  --cal-idle: #f3f5f8;
  --cal-has: #e9eef6;
  --cal-has-ink: #3c4d63;
  --cal-hover: #dbe5f4;
  --topbar-bg: rgba(255, 255, 255, .86);
  --sticky-date-bg: rgba(244, 245, 248, .88);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
          "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --bg-glow: radial-gradient(ellipse 85% 400px at 50% -130px, rgba(59, 130, 246, .11), transparent 72%);
    --panel: #131c2e;
    --ink: #eef3fa;
    --ink-2: #a3b3c9;
    --ink-3: #6e819c;
    --line: #213049;
    --line-2: #1a263b;
    --navy: #3b82f6;
    --navy-2: #2563eb;
    --navy-3: #94a3b8;
    --gold: #dab870;
    --a: #f87171;  --a-bg: rgba(248, 113, 113, .14);
    --b: #60a5fa;  --b-bg: rgba(96, 165, 250, .15);
    --c: #fbbf24;  --c-bg: rgba(251, 191, 36, .14);
    --d: #94a3b8;  --d-bg: rgba(148, 163, 184, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -16px rgba(0, 0, 0, .6);
    --shadow-hover: 0 2px 8px rgba(0, 0, 0, .35), 0 16px 32px -14px rgba(0, 0, 0, .7);
    --surface-sub: #18243a;
    --surface-hover: #1d2c46;
    --surface-interp: #162236;
    --surface-lead: #1f1d17;
    --border-lead: #3c3424;
    --ink-lead: #e6dcc7;
    --ink-body: #cfd9e6;
    --cal-idle: #172135;
    --cal-has: #202f49;
    --cal-has-ink: #cbd5e1;
    --cal-hover: #2c4063;
    --topbar-bg: rgba(11, 17, 32, .86);
    --sticky-date-bg: rgba(11, 17, 32, .88);
  }
}

:root[data-theme="dark"] {
  --bg: #0b1120;
  --bg-glow: radial-gradient(ellipse 85% 400px at 50% -130px, rgba(59, 130, 246, .11), transparent 72%);
  --panel: #131c2e;
  --ink: #eef3fa;
  --ink-2: #a3b3c9;
  --ink-3: #6e819c;
  --line: #213049;
  --line-2: #1a263b;
  --navy: #3b82f6;
  --navy-2: #2563eb;
  --navy-3: #94a3b8;
  --gold: #dab870;
  --a: #f87171;  --a-bg: rgba(248, 113, 113, .14);
  --b: #60a5fa;  --b-bg: rgba(96, 165, 250, .15);
  --c: #fbbf24;  --c-bg: rgba(251, 191, 36, .14);
  --d: #94a3b8;  --d-bg: rgba(148, 163, 184, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -16px rgba(0, 0, 0, .6);
  --shadow-hover: 0 2px 8px rgba(0, 0, 0, .35), 0 16px 32px -14px rgba(0, 0, 0, .7);
  --surface-sub: #18243a;
  --surface-hover: #1d2c46;
  --surface-interp: #162236;
  --surface-lead: #1f1d17;
  --border-lead: #3c3424;
  --ink-lead: #e6dcc7;
  --ink-body: #cfd9e6;
  --cal-idle: #172135;
  --cal-has: #202f49;
  --cal-has-ink: #cbd5e1;
  --cal-hover: #2c4063;
  --topbar-bg: rgba(11, 17, 32, .86);
  --sticky-date-bg: rgba(11, 17, 32, .88);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  background-image: var(--bg-glow);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.72;
  letter-spacing: .005em;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
}

a, button, input, select {
  -webkit-tap-highlight-color: rgba(37, 99, 235, .1);
  touch-action: manipulation;
}

a { color: var(--b); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--topbar-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: var(--topbar-h); display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: baseline; gap: 10px; flex: none; }
.brand b {
  font-size: 16px; font-weight: 700; letter-spacing: .01em; color: var(--ink);
  white-space: nowrap;
}
.brand b::before {
  content: ""; display: inline-block; width: 4px; height: 14px;
  background: var(--gold); border-radius: 1px;
  margin-right: 9px; vertical-align: -1px;
}
.brand span {
  font-size: 10px; letter-spacing: .14em; color: var(--ink-3);
  font-family: var(--mono); white-space: nowrap;
}
.nav { display: flex; gap: 4px; flex: none; }
.nav a {
  padding: 6px 13px; border-radius: var(--r-sm); font-size: 13.5px;
  color: var(--ink-2); font-weight: 500; white-space: nowrap;
}
.nav a:hover { background: var(--line-2); text-decoration: none; color: var(--ink); }
.nav a.on { background: var(--navy); color: #fff; }

.tsearch { margin-left: auto; position: relative; display: flex; flex: none; }
.tsearch input {
  width: 240px; height: 34px; padding: 0 34px 0 32px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); font-size: 13px; font-family: var(--font);
  color: var(--ink); outline: none; transition: background .15s, border-color .15s;
}
.tsearch input:focus { background: #fff; border-color: #9db4d4; }
.tsearch input::placeholder { color: #a9b4c3; }
.tsearch::before {
  content: ""; position: absolute; left: 11px; top: 50%;
  width: 12px; height: 12px; margin-top: -8px;
  border: 1.8px solid var(--ink-3); border-radius: 50%;
  pointer-events: none;
}
.tsearch::after {
  content: ""; position: absolute; left: 21px; top: 50%;
  width: 5px; height: 1.8px; margin-top: 1px; background: var(--ink-3);
  transform: rotate(45deg); border-radius: 1px; pointer-events: none;
}
.tsearch .kbd-slash {
  position: absolute; right: 9px; top: 9px;
  font-family: var(--mono); font-size: 10.5px; color: #a9b4c3;
  border: 1px solid var(--line); border-radius: 4px; padding: 0 4px;
  line-height: 15px; pointer-events: none; background: #fff;
}
.tsearch input:focus ~ .kbd-slash { display: none; }
.theme-btn {
  flex: none; height: 32px; padding: 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  font-size: 12px; font-family: var(--font); cursor: pointer;
}
.theme-btn:hover { border-color: #9db4d4; color: var(--ink); }
.theme-btn.push-right { margin-left: auto; }

/* ---------- 通用 ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.sec-hd {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px;
  margin: 34px 0 14px;
}
.sec-hd h2 {
  font-size: 15px; font-weight: 700; margin: 0; letter-spacing: .02em;
}
.sec-hd .hint { font-size: 12.5px; color: var(--ink-3); }
.sec-hd .more { margin-left: auto; font-size: 12.5px; }

.tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap;
  border: 1px solid transparent;
}
.tag-a { color: var(--a); background: var(--a-bg); border-color: #f3d6d1; }
.tag-b { color: var(--b); background: var(--b-bg); border-color: #d5e3fb; }
.tag-c { color: var(--c); background: var(--c-bg); border-color: #f3e2c9; }
.tag-d { color: var(--d); background: var(--d-bg); border-color: #dde4ec; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code {
  font-family: var(--mono); font-size: 11.5px;
  background: #eef2f7; border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px; color: var(--ink-2);
  word-break: break-all;
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-sm); font-size: 12.5px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  cursor: pointer; font-family: var(--font); text-decoration: none;
}
.btn:hover { border-color: #b9c8dc; text-decoration: none; color: var(--ink); }
.btn.pri { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.pri:hover { background: var(--navy-2); color: #fff; }

/* ---------- 面包屑 ---------- */
.crumb {
  display: flex; align-items: center; gap: 7px;
  margin: 22px 0 14px; font-size: 12.5px; color: var(--ink-3);
  flex-wrap: wrap;
}
.crumb a { color: var(--ink-2); }
.crumb i { font-style: normal; color: #cbd3de; }
.crumb b { color: var(--ink); font-weight: 600; }
.jump-wrap { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.jump-wrap label { font-size: 11.5px; color: var(--ink-3); }
.jump-wrap select {
  height: 30px; max-width: 220px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font-size: 12.5px; font-family: var(--font);
  color: var(--ink-2); cursor: pointer; outline: none;
}
.jump-wrap select:hover { border-color: #b9c8dc; }

/* ---------- 首页 Hero ---------- */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 18px; margin-top: 18px; align-items: stretch;
}

.latest {
  margin-top: 18px; padding: 28px 30px;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: 32px;
  align-items: start;
}
.latest::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), #e5cb90);
}
.latest-main { min-width: 0; display: flex; flex-direction: column; }
.latest-side { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-self: stretch; }
.side-k {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3);
  margin-bottom: 10px; text-transform: uppercase;
}
.latest-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.latest-top .dt {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.latest-top .live {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #0f7a4d; background: #e9f8f0; padding: 2px 8px; border-radius: 999px;
  border: 1px solid #cdeadb;
}
.latest h1 {
  font-size: 21px; line-height: 1.42; font-weight: 700;
  margin: 0 0 12px; letter-spacing: -.015em; color: var(--ink);
}
.hero-lead-p {
  font-size: 14.5px; color: var(--ink-body); line-height: 1.85; margin: 0 0 14px;
}
.hero-pts {
  margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 9px;
}
.hero-pts li {
  position: relative; padding-left: 14px; font-size: 14px; line-height: 1.82;
  color: var(--ink-body);
}
.hero-pts li::before {
  content: ""; position: absolute; left: 1px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.latest-concl {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline;
  margin: 0 0 18px; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--surface-lead); border: 1px solid var(--border-lead);
}
.latest-concl .lc-k {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #9c7b38;
  padding: 1px 6px; border-radius: 4px; background: rgba(196, 157, 82, .14);
  white-space: nowrap;
}
.latest-concl p {
  margin: 0; font-size: 13px; line-height: 1.78; color: var(--ink-lead);
}
.mini { display: grid; gap: 12px; }
.mini-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--surface-sub); border: 1px solid var(--line-2);
  border-left: 3px solid var(--b);
  transition: border-color .16s, background .16s, transform .16s, box-shadow .16s;
}
.mini-item.mini-a { border-left-color: var(--a); }
.mini-item.mini-b { border-left-color: var(--b); }
.mini-item.mini-c { border-left-color: var(--c); }
.mini-item.mini-d { border-left-color: var(--d); }
.mini-item:hover {
  border-color: #c7d5e8; background: var(--surface-hover);
  text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow);
}
.mini-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-arr { font-size: 13px; color: var(--ink-3); transition: transform .16s, color .16s; }
.mini-item:hover .mini-arr { color: var(--b); transform: translateX(2px); }
.mini-item .tt {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.56;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-item:hover .tt { color: var(--b); }
.mini-item .sm {
  font-size: 12px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.latest-act {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
}

/* ---------- 数据块 ---------- */
.kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line-2); overflow: hidden;
}
.kpi {
  padding: 20px 18px; background: var(--panel);
  display: flex; flex-direction: column; justify-content: center;
  color: inherit; transition: background .15s;
}
.kpi:hover { background: var(--surface-hover); text-decoration: none; }
.kpi .v {
  font-family: var(--mono); font-size: 26px; font-weight: 700;
  line-height: 1.15; letter-spacing: -.025em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi .v i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.kpi .k { font-size: 12px; color: var(--ink-3); margin-top: 5px; letter-spacing: .02em; }
.kpi:hover .k { color: var(--b); }

/* ---------- 临近节点（横向条带） ---------- */
.cdband { margin-top: 18px; overflow: hidden; }
.cdband-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 20px 11px; border-bottom: 1px solid var(--line-2);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.cdband-hd .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a); flex: none; }
.cdband-hd .hint {
  margin-left: auto; font-weight: 400; font-size: 12px; color: var(--ink-3);
}
.cdband-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px; background: var(--line-2);
}
.cd {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px;
  padding: 16px 20px; align-items: start; color: inherit;
  background: var(--panel); transition: background .15s;
}
.cd:hover { background: var(--surface-hover); text-decoration: none; }
.cd .left {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: var(--ink-3); text-align: center; line-height: 1.35;
  padding: 7px 4px; border-radius: var(--r-sm);
  background: var(--surface-sub); border: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
}
.cd .left b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.cd .left.warn { background: var(--a-bg); border-color: rgba(192, 57, 43, .18); color: var(--a); }
.cd .left.warn b { color: var(--a); }
.cd .tt { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.cd:hover .tt { color: var(--b); }
.cd .nt { font-size: 12px; color: var(--ink-3); line-height: 1.55; margin-top: 3px; }

/* ---------- 分类分布 ---------- */
.catdist { padding: 14px 16px 15px; }
.catdist .ch {
  font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em;
  padding-bottom: 4px; border-bottom: 1px solid var(--line-2);
}
.cdrow {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) 34px; gap: 9px;
  align-items: center; margin-top: 9px; color: inherit;
}
.cdrow:hover { text-decoration: none; }
.cdrow:hover .lb { color: var(--b); }
.cdrow .lb { font-size: 11.5px; color: var(--ink-2); }
.cdrow .tr { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.cdrow .tr i { display: block; height: 100%; border-radius: 3px; }
.cdrow .vv { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); text-align: right; }

/* ---------- 日历 ---------- */
.cal-wrap { padding: 20px 24px 22px; }
.cal-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cal-months > div { min-width: 0; }
.cm-title {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--ink-2); letter-spacing: .06em; margin-bottom: 10px;
  display: flex; align-items: baseline; gap: 6px;
}
.cm-title em { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.cm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cm-wd { font-size: 10px; color: var(--ink-3); text-align: center; padding-bottom: 3px; }
.d {
  aspect-ratio: 1 / 1; min-width: 0; border-radius: 6px; background: var(--cal-idle);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-family: var(--mono); color: var(--ink-3);
  border: 1px solid transparent; transition: background .14s, transform .12s; position: relative;
}
.d.pad { background: transparent; }
.d.has {
  background: var(--cal-has); color: var(--cal-has-ink); cursor: pointer;
  padding-bottom: 5px;
}
.d.has::after {
  content: ""; position: absolute; left: 3px; right: 3px; bottom: 2.5px;
  height: 3px; border-radius: 2px; background: var(--bar, var(--b));
}
.d.silent { background: var(--panel); border: 1px dashed #c2cede; color: var(--ink-3); cursor: pointer; }
.d.has:hover, .d.silent:hover {
  background: var(--cal-hover); text-decoration: none; color: var(--ink);
}
.d.today { box-shadow: inset 0 0 0 1.5px var(--navy); }
.d.today:not(.has):not(.silent) { color: var(--navy); font-weight: 700; }

.legend {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--ink-3);
}
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.legend .grp { display: flex; align-items: center; gap: 3px; }
.legend .lg-sep { margin-left: 6px; }
.legend i.lg-silent { background: var(--panel); border: 1px dashed #c2cede; }
.legend i.lg-idle { background: var(--cal-idle); }
.legend i.lg-today { background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--navy); }
.legend .catdot { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.legend .catdot u { width: 11px; height: 3px; border-radius: 2px; display: inline-block; }

/* ---------- 归档流 ---------- */
.feed { display: grid; gap: 8px; }
.feed-m {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--ink-3); letter-spacing: .04em; margin: 15px 0 1px;
}
.feed-m:first-child { margin-top: 0; }

/* 可展开列表项 */
.feed-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .14s, box-shadow .14s;
}
.feed-item:hover { border-color: #ccd7e6; box-shadow: 0 2px 10px -4px rgba(22,32,46,.12); }
.feed-item:has([aria-expanded="true"]) { border-color: #b9c8dc; }

.row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto 14px; gap: 16px;
  align-items: center; width: 100%; padding: 13px 18px;
  background: none; border: 0; font: inherit; text-align: left;
  color: inherit; cursor: pointer;
}
.row:hover { text-decoration: none; }
.row .rd { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); letter-spacing: .02em; }
.row .rd em { font-style: normal; color: var(--ink-3); font-size: 11px; display: block; }
.row .rt { display: -webkit-box; font-size: 13.5px; color: var(--ink); line-height: 1.6;
  -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.feed-item:hover .rt { color: var(--b); }
.row .rc { display: flex; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.rc-chip {
  width: 22px; height: 22px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
}
.rc-chip.rc-a { color: var(--a); background: var(--a-bg); }
.rc-chip.rc-b { color: var(--b); background: var(--b-bg); }
.rc-chip.rc-c { color: var(--c); background: var(--c-bg); }
.rc-chip.rc-d { color: var(--d); background: var(--d-bg); }
.rc-empty {
  padding: 2px 7px; border-radius: 5px; font-family: var(--font);
  font-size: 11px; font-weight: 500; color: var(--ink-3); background: var(--surface-sub);
}

.chev {
  width: 7px; height: 7px; margin-right: 3px;
  border-right: 1.8px solid #a6b3c3;
  border-bottom: 1.8px solid #a6b3c3;
  transform: rotate(45deg);
  transition: transform .2s ease, border-color .2s ease;
  justify-self: center; flex: none;
}
[aria-expanded="true"] > .chev { transform: rotate(-135deg); border-color: var(--navy-2); }

.panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.panel > .panel-in { overflow: hidden; min-height: 0; padding: 0; }
.panel.open { grid-template-rows: 1fr; }
.panel.open > .panel-in { border-top: 1px solid var(--line-2); }
.feed-item .panel-body { padding: 12px 18px 16px; }
.a-item .panel-body { padding: 10px 20px 16px; }
.feed-item:has(> .row[aria-expanded="true"]) > .row { background: var(--surface-sub); }
.a-item:has(> .a-head[aria-expanded="true"]) > .a-head { background: var(--surface-sub); }

/* ---------- 详情页 ---------- */
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 26px; align-items: start; }
.layout > * { min-width: 0; }
.aside { position: sticky; top: calc(var(--topbar-h) + 16px); }
.aside-box { padding: 6px 0; margin-bottom: 16px; }
.aside-hd {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3);
  padding: 10px 16px 6px; text-transform: uppercase;
}
.aside a.dl {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; font-size: 12.5px; color: var(--ink-2);
  border-left: 2px solid transparent; font-family: var(--mono);
}
.aside a.dl:hover { background: var(--line-2); text-decoration: none; color: var(--ink); }
.aside a.dl.on {
  background: #f2f6fb; border-left-color: var(--navy); color: var(--ink);
  font-weight: 600;
}
.aside a.dl i { width: 5px; height: 5px; border-radius: 50%; background: #cfd8e4; flex: none; }
.aside a.dl.on i { background: var(--navy); }
.aside a.dl em { font-style: normal; margin-left: auto; font-family: var(--font); font-size: 10.5px; color: var(--ink-3); }
.kbd-hint { padding: 4px 16px 8px; font-size: 11.5px; color: var(--ink-3); }
kbd {
  display: inline-block; min-width: 18px; text-align: center;
  padding: 0 5px; font-family: var(--mono); font-size: 10.5px; line-height: 17px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
  background: #fbfcfe; color: var(--ink-2); margin-right: 2px;
}

.doc { padding: 36px 46px 40px; overflow-wrap: break-word; }
.doc-hd { padding-bottom: 22px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.doc-hd .kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--ink-3); text-transform: uppercase;
}
.doc-hd h1 {
  font-size: 26px; font-weight: 700; margin: 8px 0 8px; letter-spacing: -.018em;
  line-height: 1.38;
}
.doc-hd .sub { font-size: 13px; color: var(--ink-3); }
.doc-hd .sub span + span::before { content: "·"; margin: 0 8px; color: #cbd3de; }

.lead-box {
  margin: 22px 0 14px; padding: 16px 18px;
  background: var(--surface-lead); border: 1px solid var(--border-lead); border-radius: var(--r-sm);
  border-left: 3px solid var(--gold);
}
.lead-box .lb-k {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: #a8894f;
  margin-bottom: 5px; text-transform: uppercase;
}
.lead-box p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-lead); }

/* 页内目录 */
.toc { display: grid; gap: 6px; margin: 0 0 6px; }
.toc a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-sub);
  font-size: 12.5px; color: var(--ink-2); min-width: 0;
}
.toc a:hover { border-color: #cfdaeb; text-decoration: none; color: var(--ink); }
.toc .toc-n {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 3px; background: var(--line-2);
  display: flex; align-items: center; justify-content: center; flex: none;
  color: var(--ink-3);
}
.toc .toc-c { font-family: var(--mono); font-size: 10.5px; font-weight: 700; flex: none; }
.toc .toc-t {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.item { padding: 26px 0 24px; border-bottom: 1px solid var(--line-2); scroll-margin-top: 74px; }
.item:last-of-type { border-bottom: 0; }
.item-hd { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 9px; }
.item-hd-main { flex: 1; min-width: 0; }
.item-hd-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.item-copy {
  margin-left: auto; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-sub);
  font-size: 11.5px; color: var(--ink-3); cursor: pointer; font-family: var(--font);
}
.item-copy:hover { border-color: #9db4d4; color: var(--ink); }
.item-hd .n {
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: #fff;
  background: var(--navy); width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex: none;
  margin-top: 2px; letter-spacing: -.02em;
}
.item-hd h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.56; letter-spacing: -.01em; }
.item-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  font-size: 12px; color: var(--ink-3); margin: 0 0 16px 35px;
}
.item-meta a { color: var(--b); }
.item-meta .k { color: #a8b2bf; }

.blk-l {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3);
  margin: 15px 0 6px; text-transform: uppercase;
  display: flex; align-items: center; gap: 7px;
}
.blk-l::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.item p.tx { margin: 0; font-size: 14.5px; line-height: 1.92; color: var(--ink-body); }
.item p.tx + p.tx { margin-top: 8px; }
.item ul.pt { margin: 0; padding: 0; list-style: none; }
.item ul.pt li {
  position: relative; padding-left: 15px; font-size: 14.5px; line-height: 1.88;
  color: var(--ink-body); margin-bottom: 7px;
}
.item ul.pt li:last-child { margin-bottom: 0; }
.item ul.pt li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3);
}
.pt-k { font-weight: 700; color: var(--ink); }
.interp {
  background: var(--surface-interp); border-radius: var(--r-sm); padding: 14px 16px;
  border: 1px solid var(--line-2);
}
.interp p.tx { font-size: 14px; line-height: 1.9; }
.interp p.tx + p.tx, .interp .interp-pt + p.tx, .interp p.tx + .interp-pt { margin-top: 8px; }
.interp ul.interp-pt li { font-size: 14px; line-height: 1.88; margin-bottom: 8px; }
.interp ul.interp-pt li:last-child { margin-bottom: 0; }

.attach { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.attach a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; font-size: 12px; color: var(--ink-2);
  background: var(--surface-sub); border: 1px solid var(--line); border-radius: 999px;
}
.attach a:hover { border-color: #b9c8dc; text-decoration: none; color: var(--b); }

.qr { padding: 4px 0 0; }
.qr-row {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.qr-row:last-child { border-bottom: 0; }
.qr-row .q { font-family: var(--mono); font-size: 11px; color: #b3bdc9; padding-top: 3px; }
.qr-row .qt { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.qr-row .qc { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin-top: 2px; }

.concl {
  margin-top: 22px; padding: 20px 22px;
  background: linear-gradient(135deg, #162235 0%, #1e2d44 100%);
  color: #e8edf4; border-radius: var(--r-sm);
  border-top: 2px solid var(--gold);
}
.concl .ck {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--gold);
  margin-bottom: 7px; text-transform: uppercase;
}
.concl p { margin: 0; font-size: 14px; line-height: 1.95; }

.doc-foot {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 12px; color: var(--ink-3);
}
.foot-note { margin-left: auto; }

/* 空窗日 */
.silent-box { padding: 34px 0 22px; text-align: center; }
.silent-box .big { font-size: 17px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.silent-box .sm { font-size: 13px; color: var(--ink-3); }
.empty-note { white-space: pre-line; color: var(--ink-2); font-size: 13px; }

/* ---------- 档案页 ---------- */
.tools {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; margin-top: 22px;
}
.tools input[type=search] {
  flex: 1; min-width: 200px; height: 36px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13.5px; font-family: var(--font); background: var(--bg);
  outline: none;
}
.tools input[type=search]:focus { background: #fff; border-color: #9db4d4; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chips.is-hidden { display: none; }
.chip {
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  font-family: var(--font); transition: border-color .12s, background .12s;
}
.chip:hover { border-color: #b9c8dc; background: var(--surface-sub); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 18px; }
.tab {
  padding: 9px 15px; font-size: 13px; color: var(--ink-3); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500;
  background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: var(--font);
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--navy); font-weight: 700; }

.res-hd {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 12px;
  font-size: 12.5px; color: var(--ink-3);
}
.res-hd b { color: var(--ink); font-family: var(--mono); font-size: 14px; }
.res-hd .clear {
  margin-left: auto; font-size: 12px; color: var(--ink-3);
  background: none; border: 0; cursor: pointer; font-family: var(--font);
  text-decoration: underline; text-underline-offset: 3px; padding: 2px 4px;
}
.res-hd .clear:hover { color: var(--b); }

.a-group { margin-bottom: 6px; }
.a-date {
  position: sticky; top: var(--topbar-h); z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px 7px; margin-bottom: 6px;
  background: var(--sticky-date-bg);
  backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--ink-2); letter-spacing: .03em;
  border-bottom: 1px solid var(--line);
}
.a-date a { color: var(--ink-2); }
.a-date a:hover { color: var(--b); text-decoration: none; }
.a-date span {
  font-family: var(--font); font-size: 11px; font-weight: 500;
  color: var(--ink-3); margin-left: auto;
}

.a-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 8px; overflow: hidden;
  transition: border-color .14s, box-shadow .14s;
}
.a-item:hover { border-color: #ccd7e6; box-shadow: 0 2px 10px -4px rgba(22,32,46,.12); }
.a-item:has([aria-expanded="true"]) { border-color: #b9c8dc; }
.a-head {
  display: block; width: 100%; padding: 15px 46px 15px 20px;
  position: relative; background: none; border: 0;
  font: inherit; text-align: left; color: inherit; cursor: pointer;
}
.a-head > .chev { position: absolute; right: 22px; top: 21px; }
.a-item .ah { display: flex; gap: 9px; align-items: baseline; margin-bottom: 4px; }
.a-item .a-t {
  display: block; font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--ink);
}
.a-item:hover .a-t { color: var(--b); }
.a-item .am { display: flex; font-size: 11.5px; color: var(--ink-3); gap: 14px; flex-wrap: wrap; }
.a-item .ax {
  display: -webkit-box; font-size: 12.5px; color: var(--ink-2); line-height: 1.75;
  margin-top: 6px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 预览面板内容 */
.panel-in .pn-empty { margin: 0; font-size: 13px; color: var(--ink-3); }
.panel-in .pn-item { padding: 13px 0; border-top: 1px solid var(--line-2); }
.panel-in .pn-item:first-of-type { border-top: 0; padding-top: 2px; }
.panel-in .pn-h { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.panel-in .pn-t { font-size: 13.5px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.panel-in .pn-m { font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; }
.panel-in .pn-s { margin: 0; font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }
.panel-in .pn-q { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2);
  font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.panel-in .pn-act { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.panel-in .blk-l { margin-top: 14px; }
.panel-in p.tx { margin: 0; font-size: 13.5px; line-height: 1.88; color: var(--ink-body); }
.panel-in p.tx + p.tx { margin-top: 7px; }
.panel-in ul.pt { margin: 0; padding: 0; list-style: none; }
.panel-in ul.pt li {
  position: relative; padding-left: 15px; font-size: 13.5px; line-height: 1.82;
  color: var(--ink-body); margin-bottom: 6px;
}
.panel-in ul.pt li:last-child { margin-bottom: 0; }
.panel-in ul.pt li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3);
}
.feed-item .panel-in .pn-item:first-of-type { padding-top: 2px; }
mark { background: #fff2b0; color: #16202e; padding: 0 2px; border-radius: 2px; }
.empty-res { padding: 52px 0; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.empty-act { margin-top: 16px; display: flex; gap: 8px; justify-content: center; }

/* ---------- 关于 ---------- */
.about { margin-top: 2px; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.about-i { border-top: 1px solid var(--line); padding-top: 13px; }
.about-i .ai-k {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: #9aa7b6; margin-bottom: 7px;
}
.about-i p { margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }

.foot {
  margin-top: 26px; padding: 20px 0 40px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.foot .r { margin-left: auto; font-family: var(--mono); font-size: 11px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .brand span { display: none; }
}
@media (max-width: 960px) {
  .tsearch input { width: 190px; }
}
@media (max-width: 900px) {
  .latest { grid-template-columns: 1fr; gap: 18px; }
  .latest-side { justify-content: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; display: none; }
  .doc { padding: 24px 22px 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .topbar-in {
    padding: 8px 14px 10px; height: auto; flex-wrap: wrap; gap: 8px 10px;
  }
  .brand { order: 1; }
  .brand b { font-size: 15px; }
  .brand span { display: none; }
  .theme-btn { order: 2; margin-left: auto; height: 30px; padding: 0 10px; }
  .lock-top-btn { order: 3; height: 30px; padding: 0 10px; }
  .tsearch { display: none; }
  .nav {
    order: 4; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px; padding: 3px; border-radius: var(--r-sm);
    background: var(--bg); border: 1px solid var(--line);
  }
  .nav a {
    padding: 7px 6px; font-size: 13px; text-align: center; border-radius: 6px;
  }

  .tools input[type=search], .jump-wrap select, .lock-field input {
    font-size: 16px; min-height: 40px;
  }

  .sec-hd { margin: 24px 0 12px; gap: 6px 10px; align-items: center; }
  .sec-hd .hint { order: 3; width: 100%; font-size: 12px; line-height: 1.5; }

  .latest { margin-top: 16px; padding: 18px 16px; gap: 16px; }
  .latest h1 { font-size: 18px; line-height: 1.42; }
  .hero-pts li, .hero-lead-p { font-size: 13.5px; line-height: 1.78; }
  .latest-concl { grid-template-columns: 1fr; gap: 6px; padding: 10px 12px; }
  .latest-concl .lc-k { justify-self: start; }
  .latest-act .btn { flex: 1; justify-content: center; min-height: 40px; font-size: 13px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px 14px; }
  .kpi .v { font-size: 22px; }

  .cdband-hd { padding: 11px 14px 10px; flex-wrap: wrap; gap: 4px 8px; }
  .cdband-hd .hint { margin-left: 0; width: 100%; }
  .cd { padding: 13px 14px; gap: 12px; grid-template-columns: 52px minmax(0, 1fr); }

  .cal-wrap { padding: 14px 14px 16px; }
  .cal-months { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .row { grid-template-columns: 62px minmax(0, 1fr) 14px; gap: 10px; padding: 13px 14px; }
  .row .rc { display: none; }
  .row .rt { -webkit-line-clamp: 2; font-size: 13.5px; line-height: 1.55; }
  .feed-item .panel-body { padding: 12px 14px 14px; }

  .tools { padding: 12px 14px; margin-top: 14px; gap: 10px; }
  .tools input[type=search] { min-width: 100%; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; width: 100%;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: none; padding: 6px 12px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 1; text-align: center; white-space: nowrap; padding: 10px 10px; }
  .a-date { position: static; }
  .a-head { padding: 13px 34px 13px 14px; }
  .a-head > .chev { right: 14px; top: 18px; }
  .a-item .ah { flex-direction: column; gap: 5px; }
  .a-item .panel-body { padding: 10px 14px 14px; }

  .crumb { font-size: 12px; gap: 5px; margin: 14px 0 12px; }
  .jump-wrap { margin-left: 0; width: 100%; }
  .jump-wrap select { max-width: none; flex: 1; }
  .doc { padding: 18px 16px 24px; }
  .doc-hd { padding-bottom: 16px; }
  .doc-hd h1 { font-size: 20px; }
  .doc-hd .sub { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 12px; }
  .item { padding: 20px 0; scroll-margin-top: 104px; }
  .item-hd { gap: 9px; }
  .item-hd h3 { font-size: 16px; line-height: 1.5; }
  .item-meta { margin: 0 0 14px 0; gap: 4px 12px; }
  .item p.tx, .item ul.pt li { font-size: 14.5px; line-height: 1.85; }
  .interp { padding: 12px 14px; }
  .concl { padding: 16px 16px; }
  .doc-foot { gap: 8px; }
  .doc-foot .btn { min-height: 38px; justify-content: center; }
  .foot-note { margin-left: 0; width: 100%; }
  .foot { padding: 18px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
  .foot .r { margin-left: 0; }
  .lock-card { padding: 24px 20px 20px; }
}

/* ---------- 深色局部适配 ---------- */
:root[data-theme="dark"] .tsearch input:focus,
:root[data-theme="dark"] .tools input[type=search]:focus,
:root[data-theme="dark"] .jump-wrap select,
:root[data-theme="dark"] .cal-jump,
:root[data-theme="dark"] .tsearch .kbd-slash,
:root[data-theme="dark"] kbd { background: var(--panel); color: var(--ink); }
:root[data-theme="dark"] .feed-item:has(> .row[aria-expanded="true"]) > .row,
:root[data-theme="dark"] .a-item:has(> .a-head[aria-expanded="true"]) > .a-head,
:root[data-theme="dark"] .kpi:hover,
:root[data-theme="dark"] .cd:hover { background: var(--surface-hover); }
:root[data-theme="dark"] .aside a.dl.on { background: var(--surface-sub); }
:root[data-theme="dark"] .concl { background: #1e293b; border: 1px solid var(--line); }
:root[data-theme="dark"] .tag-a { border-color: rgba(248, 113, 113, .3); }
:root[data-theme="dark"] .tag-b { border-color: rgba(96, 165, 250, .3); }
:root[data-theme="dark"] .tag-c { border-color: rgba(251, 191, 36, .3); }
:root[data-theme="dark"] .tag-d { border-color: rgba(148, 163, 184, .3); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tsearch input:focus,
  :root:not([data-theme="light"]) .tools input[type=search]:focus,
  :root:not([data-theme="light"]) .jump-wrap select,
  :root:not([data-theme="light"]) .cal-jump,
  :root:not([data-theme="light"]) .tsearch .kbd-slash,
  :root:not([data-theme="light"]) kbd { background: var(--panel); color: var(--ink); }
  :root:not([data-theme="light"]) .feed-item:has(> .row[aria-expanded="true"]) > .row,
  :root:not([data-theme="light"]) .a-item:has(> .a-head[aria-expanded="true"]) > .a-head,
  :root:not([data-theme="light"]) .kpi:hover,
  :root:not([data-theme="light"]) .cd:hover { background: var(--surface-hover); }
  :root:not([data-theme="light"]) .aside a.dl.on { background: var(--surface-sub); }
  :root:not([data-theme="light"]) .concl { background: #1e293b; border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .tag-a { border-color: rgba(248, 113, 113, .3); }
  :root:not([data-theme="light"]) .tag-b { border-color: rgba(96, 165, 250, .3); }
  :root:not([data-theme="light"]) .tag-c { border-color: rgba(251, 191, 36, .3); }
  :root:not([data-theme="light"]) .tag-d { border-color: rgba(148, 163, 184, .3); }
}

/* ---------- 打印 / 导出 PDF ---------- */
@media print {
  body { background: #fff; color: #111; }
  .topbar, .subnav, .back-top, .aside, .crumb, .doc-foot, .item-copy, .attach, .toc, .lock-screen { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .layout { display: block; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  .concl { background: #f5f7fa !important; color: #111 !important; border: 1px solid #cbd5e1; }
  .concl .ck { color: #1e293b !important; }
}

/* ---------- 静态加密访问口令页 ---------- */
body.is-locked > header,
body.is-locked > main,
body.is-locked > .back-top { display: none !important; }
.lock-screen {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background: var(--bg);
}
.lock-card {
  width: 100%; max-width: 396px; padding: 30px 28px 26px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.lock-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), #e3c98d);
}
.lock-brand { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.lock-sub { font-size: 13px; color: var(--ink-3); margin: 0 0 22px; }
.lock-lbl { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.lock-field { position: relative; }
.lock-field input {
  width: 100%; height: 42px; padding: 0 58px 0 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font-size: 14px; font-family: var(--font);
  outline: none; transition: border-color .15s, background .15s;
}
.lock-field input:focus { border-color: var(--focus); background: var(--panel); }
.lock-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--ink-3); font-size: 12px;
  cursor: pointer; padding: 4px 6px; font-family: var(--font);
}
.lock-eye:hover { color: var(--ink); }
.lock-opts {
  display: flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; user-select: none;
}
.lock-opts input { accent-color: var(--navy); cursor: pointer; }
.lock-btn {
  width: 100%; height: 42px; margin-top: 16px; border: 0; border-radius: var(--r-sm);
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: background .15s, opacity .15s;
}
.lock-btn:hover { background: var(--navy-2); }
.lock-btn:disabled { opacity: .65; cursor: wait; }
.lock-err { margin-top: 12px; font-size: 12.5px; color: var(--a); min-height: 18px; }
.lock-note { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.lock-top-btn {
  flex: none; height: 32px; padding: 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  font-size: 12px; font-family: var(--font); cursor: pointer;
}
.lock-top-btn:hover { border-color: #9db4d4; color: var(--ink); }

/* ---------- 首页：核心脉络速览 & 日历折叠 ---------- */
.story-preview {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.sp-card {
  display: flex; flex-direction: column; padding: 18px 20px; color: inherit;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.sp-card:hover {
  border-color: #bfd0e6; transform: translateY(-1px);
  box-shadow: var(--shadow-hover); text-decoration: none;
}
.sp-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sp-dom {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 999px;
  background: var(--surface-sub); border: 1px solid var(--line); color: var(--ink-2);
}
.sp-st {
  font-size: 11px; font-weight: 600; color: #9c7b38;
  background: rgba(196, 157, 82, .14); padding: 2px 8px; border-radius: 999px;
}
.sp-tt { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 6px; }
.sp-card:hover .sp-tt { color: var(--b); }
.sp-th {
  margin: 0 0 12px; font-size: 12.5px; color: var(--ink-2); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-ft {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--ink-3);
}
.sp-go { color: var(--b); font-weight: 600; }
.cal-nav {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cal-nav[hidden] { display: none; }
.cal-pager {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px; border-radius: var(--r-sm);
  background: var(--panel); border: 1px solid var(--line);
}
.cal-btn {
  width: 26px; height: 26px; border: 0; border-radius: 6px;
  background: transparent; color: var(--ink-2); font-size: 15px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .14s, color .14s;
}
.cal-btn:hover:not(:disabled) { background: var(--surface-hover); color: var(--ink); }
.cal-btn:disabled { opacity: .32; cursor: default; }
.cal-range {
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  padding: 0 6px; white-space: nowrap;
}
.cal-jump {
  height: 32px; padding: 0 8px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  font-size: 12px; font-family: var(--font); cursor: pointer; outline: none;
}
.cal-jump:hover { border-color: #9db4d4; color: var(--ink); }
.cal-latest {
  height: 32px; padding: 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-sub); color: var(--b);
  font-size: 12px; font-weight: 600; font-family: var(--font); cursor: pointer;
}
.cal-latest:hover { border-color: #9db4d4; background: var(--surface-hover); }
.cal-pills { display: none; }
.cal-pill {
  flex: none; display: inline-flex; align-items: baseline; gap: 5px;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-sub); color: var(--ink-2);
  font-size: 12px; font-family: var(--font); cursor: pointer;
}
.cal-pill em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.cal-pill.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.cal-pill.on em { color: rgba(255, 255, 255, .72); }

/* ---------- 详情页 & 档案页：脉络反向串联 ---------- */
.item-threads {
  margin-top: 16px; display: grid; gap: 7px;
  padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--surface-sub); border: 1px solid var(--line-2);
}
.it-tr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.it-tr-k {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #9c7b38;
  background: rgba(196, 157, 82, .14); padding: 1px 6px; border-radius: 4px;
}
.it-tr-main { font-weight: 600; color: var(--ink); }
.it-tr-main em { font-style: normal; font-weight: 400; color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; }
.it-tr-nav { margin-left: auto; display: flex; gap: 12px; font-size: 12px; }
.am-th {
  font-size: 11px; color: #9c7b38; background: rgba(196, 157, 82, .12);
  padding: 0 7px; border-radius: 999px; font-weight: 500;
}

/* ---------- 演进脉络页 ---------- */
.tl-top-hd { margin-top: 18px; }
.reg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px;
}
.reg-card { padding: 18px 20px 14px; display: flex; flex-direction: column; }
.rg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rg-jur {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  background: var(--surface-sub); border: 1px solid var(--line); color: var(--ink-2);
}
.rg-st { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.rg-st-signal { color: var(--d); background: var(--d-bg); }
.rg-st-consultation { color: var(--c); background: var(--c-bg); }
.rg-st-published { color: var(--b); background: var(--b-bg); }
.rg-st-effective { color: #0f7a4d; background: #e9f8f0; }
.rg-tt { margin: 0 0 12px; font-size: 15px; font-weight: 700; line-height: 1.48; color: var(--ink); }

.rg-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-bottom: 12px; position: relative;
}
.rg-step { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.rg-step::before {
  content: ""; position: absolute; top: 5px; left: -50%; right: 50%;
  height: 2px; background: var(--line); z-index: 0;
}
.rg-step:first-child::before { display: none; }
.rg-step.done::before, .rg-step.now::before { background: var(--navy); }
.rg-step i {
  width: 11px; height: 11px; border-radius: 50%; z-index: 1;
  background: var(--panel); border: 2px solid var(--line);
}
.rg-step.done i { background: var(--navy); border-color: var(--navy); }
.rg-step.now i {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 157, 82, .24);
}
.rg-step span { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.rg-step.done span { color: var(--ink-2); }
.rg-step.now span { color: var(--ink); font-weight: 700; }

.rg-sum { margin: 0 0 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.rg-next {
  font-size: 12px; color: var(--ink-2); line-height: 1.6;
  padding: 8px 11px; border-radius: var(--r-sm);
  background: var(--surface-lead); border: 1px solid var(--border-lead);
  margin-bottom: 10px;
}
.rg-nk {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: #9c7b38;
  margin-right: 6px;
}
.rg-acc { margin-top: auto; border-top: 1px solid var(--line-2); padding-top: 6px; }
.rg-acc-wrap { border: 0; }
.rg-acc-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 6px 2px; border: 0; background: none;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--b); cursor: pointer;
}
.rg-acc-wrap .panel-body { padding: 8px 0 4px; }
.rg-ev-list { display: grid; gap: 6px; }
.rg-ev {
  display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; align-items: baseline;
  padding: 7px 10px; border-radius: var(--r-sm); background: var(--surface-sub);
  border: 1px solid var(--line-2); font-size: 12px; color: var(--ink);
}
.rg-ev:hover { border-color: #bfd0e6; text-decoration: none; color: var(--b); }
.rg-ev .mono { color: var(--ink-3); font-size: 11.5px; }
.rg-ev-t { font-weight: 500; line-height: 1.5; }
.rg-ev-s { grid-column: 2; font-size: 11px; color: var(--ink-3); margin-top: -4px; }
.rg-ev-act { margin-top: 10px; }

.domain-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.thread-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px;
}
.th-card {
  text-align: left; font: inherit; cursor: pointer;
  padding: 14px 16px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.th-card:hover { border-color: #b7c8df; box-shadow: var(--shadow); }
.th-card.on {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: var(--shadow-hover);
}
.th-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.th-dom { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.th-st { font-size: 10.5px; color: #9c7b38; background: rgba(196, 157, 82, .16); padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.th-tt { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 6px; }
.th-meta { font-size: 11.5px; color: var(--ink-3); }
.th-card.on .th-dom { color: rgba(255, 255, 255, .72); }
.th-card.on .th-st { color: #f4d898; background: rgba(244, 216, 152, .18); }
.th-card.on .th-tt { color: #fff; }
.th-card.on .th-meta { color: rgba(255, 255, 255, .68); }

.thread-hero { padding: 22px 26px; margin-bottom: 22px; position: relative; overflow: hidden; scroll-margin-top: 76px; }
.thread-hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold);
}
.th-hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.th-hero-span { font-size: 12px; color: var(--ink-3); }
.tl-order { margin-left: auto; display: inline-flex; gap: 4px; background: var(--bg); padding: 3px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.tl-ord-btn {
  border: 0; background: none; color: var(--ink-2); font-size: 12px; font-family: var(--font);
  padding: 4px 10px; border-radius: 5px; cursor: pointer;
}
.tl-ord-btn.on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.thread-hero h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -.012em; }
.th-thesis {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 12px 15px; border-radius: var(--r-sm);
  background: var(--surface-lead); border: 1px solid var(--border-lead);
}
.th-thesis p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-lead); }

.tl-stream { position: relative; display: grid; gap: 14px; }
.tl-row {
  display: grid; grid-template-columns: 104px 24px minmax(0, 1fr); gap: 12px; align-items: stretch;
}
.tl-date { text-align: right; padding-top: 16px; }
.tl-date a, .tl-date > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.tl-date em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before {
  content: ""; position: absolute; top: 0; bottom: -14px; width: 2px; background: var(--line);
}
.tl-row.is-future .tl-rail::before { background: none; border-left: 2px dashed var(--gold); width: 0; }
.tl-row:last-child .tl-rail::before { bottom: 50%; }
.tl-dot {
  width: 11px; height: 11px; border-radius: 50%; margin-top: 20px; z-index: 1;
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-dot.future {
  background: var(--panel); border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-card-wrap { min-width: 0; }
.tl-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s;
}
.tl-card:hover { border-color: #bfd0e6; }
.tl-card.future {
  padding: 15px 18px; border-style: dashed; border-color: rgba(196, 157, 82, .6);
  background: var(--surface-lead);
}
.tl-head {
  display: block; width: 100%; padding: 15px 44px 15px 18px;
  position: relative; background: none; border: 0; font: inherit; text-align: left;
  color: inherit; cursor: pointer;
}
.tl-head > .chev { position: absolute; right: 20px; top: 21px; }
.tl-card .panel-body { padding: 12px 18px 16px; }
.tl-c-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-stage {
  font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 4px;
  background: var(--navy); color: #fff;
}
.tl-stage.future { background: var(--gold); color: #fff; }
.tl-stage.auto { background: var(--b-bg); color: var(--b); }
.tl-src { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.tl-c-tt { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.5; margin-bottom: 7px; }
.tl-card:hover .tl-c-tt { color: var(--b); }
.tl-delta-box {
  font-size: 13px; color: var(--ink-2); line-height: 1.75;
  padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--surface-sub); border-left: 2.5px solid var(--gold);
}
.tl-delta { margin: 4px 0 0; font-size: 13px; color: var(--ink-lead); line-height: 1.75; }
.tl-now {
  display: flex; align-items: center; gap: 12px; margin: 4px 0;
  color: #9c7b38; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
}
.tl-now::before, .tl-now::after {
  content: ""; flex: 1; height: 1px; border-top: 1px dashed var(--gold);
}

@media (max-width: 900px) {
  .story-preview { grid-template-columns: 1fr; }
  .thread-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tl-top-hd { margin-top: 16px; }
  .reg-grid { grid-template-columns: 1fr; gap: 12px; }
  .reg-card { padding: 15px 15px 12px; }
  .rg-step span { font-size: 10.5px; }
  .rg-ev { grid-template-columns: 1fr; gap: 2px; padding: 9px 11px; }
  .rg-ev-s { grid-column: 1; margin-top: 0; }
  .domain-bar {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .domain-bar::-webkit-scrollbar { display: none; }
  .domain-bar .chip { flex: none; padding: 6px 12px; }
  .thread-grid {
    display: flex; overflow-x: auto; gap: 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px 14px;
  }
  .thread-grid::-webkit-scrollbar { display: none; }
  .th-card { flex: 0 0 min(78vw, 260px); scroll-snap-align: start; padding: 13px 14px; }
  .thread-hero { padding: 16px 16px 16px 18px; margin-bottom: 16px; scroll-margin-top: 104px; }
  .thread-hero h3 { font-size: 17px; line-height: 1.45; }
  .th-thesis { grid-template-columns: 1fr; gap: 6px; padding: 10px 12px; }
  .th-thesis .lc-k { justify-self: start; }
  .tl-order { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tl-ord-btn { padding: 7px 8px; }
  .tl-row { grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
  .tl-date { grid-column: 2; text-align: left; padding-top: 0; margin-bottom: -4px; display: flex; gap: 8px; align-items: baseline; }
  .tl-rail { grid-row: 1 / span 2; }
  .tl-card-wrap, .tl-card.future { grid-column: 2; }
  .tl-head { padding: 13px 34px 13px 14px; }
  .tl-head > .chev { right: 14px; top: 18px; }
  .tl-card .panel-body { padding: 10px 14px 14px; }
  .tl-c-tt { font-size: 14.5px; }
  .tl-src { margin-left: 0; width: 100%; font-size: 11px; }
  .it-tr-nav { margin-left: 0; width: 100%; padding-top: 4px; border-top: 1px dashed var(--line-2); }
}
@media (max-width: 560px) {
  .cal-nav { width: 100%; margin-left: 0; order: 4; justify-content: space-between; }
  .cal-pager { flex: 1; justify-content: space-between; padding: 3px; }
  .cal-btn { width: 34px; height: 32px; font-size: 17px; }
  .cal-range { font-size: 13px; }
  .cal-jump { display: none; }
  .cal-latest { height: 38px; padding: 0 12px; }
  .cal-pills {
    display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px;
  }
  .cal-pills[hidden] { display: none; }
  .cal-pills::-webkit-scrollbar { display: none; }
  .cal-months { grid-template-columns: 1fr; gap: 18px; }
  .d { font-size: 12.5px; border-radius: 7px; }
  .d.has::after { left: 5px; right: 5px; bottom: 4px; height: 3.5px; }
  .cm-wd { font-size: 11px; padding-bottom: 4px; }
  .panel-in .pn-act .btn { flex: 1; justify-content: center; min-height: 38px; }
}

/* ---------- 页内吸顶二级目录与回到顶部 ---------- */
.subnav {
  position: sticky; top: var(--topbar-h); z-index: 30;
  margin: 0 -24px; padding: 0 24px;
  background: var(--topbar-bg);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.subnav-in {
  display: flex; align-items: center; gap: 6px;
  min-height: 40px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.subnav-in::-webkit-scrollbar { display: none; }
.sn-lbl {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--ink-3); margin-right: 6px; padding-right: 10px;
  border-right: 1px solid var(--line);
}
.sn-link {
  flex: none; border: 0; background: none; cursor: pointer;
  padding: 9px 10px; margin-bottom: -1px;
  font-family: var(--font); font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .14s, border-color .14s;
}
.sn-link[hidden] { display: none; }
.sn-link em {
  font-style: normal; font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); margin-left: 2px;
}
.sn-link:hover { color: var(--ink); }
.sn-link.on {
  color: var(--ink); font-weight: 700;
  border-bottom-color: var(--gold);
}
.sn-link.on em { color: var(--b); }

.back-top {
  position: fixed; right: 24px; bottom: 28px; z-index: 35;
  display: inline-flex; align-items: center; gap: 5px;
  height: 38px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--topbar-bg); color: var(--ink-2);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-hover);
  font-family: var(--font); font-size: 12.5px; font-weight: 600;
  cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, border-color .14s, color .14s;
}
.back-top span { font-family: var(--mono); font-size: 14px; line-height: 1; }
.back-top em { font-style: normal; }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { border-color: #9db4d4; color: var(--ink); }

@media (max-width: 760px) {
  .subnav {
    position: static; margin: 10px -14px 0; padding: 4px 14px;
    background: transparent; backdrop-filter: none; border-bottom: 0;
  }
  .subnav-in { min-height: 0; gap: 6px; padding: 2px 0; }
  .sn-lbl { display: none; }
  .sn-link {
    padding: 5px 11px; margin-bottom: 0; border-radius: 999px;
    border: 1px solid var(--line); background: var(--panel);
    font-size: 12px;
  }
  .sn-link.on {
    background: var(--navy); border-color: var(--navy); color: #fff;
  }
  .sn-link.on em { color: rgba(255, 255, 255, .75); }
  .back-top {
    right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 40px; height: 40px; padding: 0; justify-content: center;
  }
  .back-top em { display: none; }
}
@media (max-width: 420px) {
  .brand b { font-size: 14px; }
}
