/* 研究台 · 每日简报 v2
   版式：封面区 + 编号章节 + 右侧粘性目录；证据等级用徽章；分类用堆叠条。 */

:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-2: #F4F1EA;
  --surface-3: #EFEBE1;
  --ink: #16181C;
  --ink-2: #33373D;
  --sub: #61666D;
  --faint: #979DA4;
  --line: #E6E0D3;
  --line-2: #D8CFBC;
  --accent: #9E3B1F;
  --accent-2: #C25A38;
  --accent-soft: #F6E7DF;

  --c1: #2E6F8E;
  --c2: #6B5B95;
  --c3: #A6603A;
  --c4: #5E7A3A;
  --c5: #2F7D6B;
  --c6: #8A6A2F;

  --g-a: #2F7D6B;
  --g-b: #4C7A9E;
  --g-c: #A6603A;
  --g-d: #8A8F96;

  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --col: 720px;
  --rail: 252px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131519; --surface: #1A1D22; --surface-2: #20242A; --surface-3: #262B32;
    --ink: #EAE7DF; --ink-2: #D2CFC7; --sub: #A2A8B0; --faint: #737A82;
    --line: #2A2F37; --line-2: #3A404A;
    --accent: #E0805A; --accent-2: #C96B47; --accent-soft: #3A2A23;
    --c1: #6FA8C4; --c2: #9E8FC4; --c3: #CE8A62; --c4: #96B06A; --c5: #5FAE97; --c6: #C4A05F;
    --g-a: #5FAE97; --g-b: #7FA8C6; --g-c: #CE8A62; --g-d: #8A9099;
  }
}
:root[data-theme="dark"] {
  --bg: #131519; --surface: #1A1D22; --surface-2: #20242A; --surface-3: #262B32;
  --ink: #EAE7DF; --ink-2: #D2CFC7; --sub: #A2A8B0; --faint: #737A82;
  --line: #2A2F37; --line-2: #3A404A;
  --accent: #E0805A; --accent-2: #C96B47; --accent-soft: #3A2A23;
  --c1: #6FA8C4; --c2: #9E8FC4; --c3: #CE8A62; --c4: #96B06A; --c5: #5FAE97; --c6: #C4A05F;
  --g-a: #5FAE97; --g-b: #7FA8C6; --g-c: #CE8A62; --g-d: #8A9099;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
::selection { background: var(--accent-soft); }

/* ---------- 顶栏 ---------- */

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 80; transition: width .1s linear;
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex; align-items: center; gap: 0;
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  letter-spacing: .02em; white-space: nowrap;
}
.brand::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg); margin-right: 9px;
}
.brand span { color: var(--accent); }

.dater { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.dater .tdate { color: var(--sub); letter-spacing: .02em; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 12px; color: var(--sub); }
.step:hover { background: var(--surface-2); color: var(--ink); }
.step.off { opacity: .2; pointer-events: none; }

.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { padding: 5px 13px; border-radius: 999px; font-size: 13px; color: var(--sub); }
.topnav a:hover { background: var(--surface-2); color: var(--ink); }
.topnav a.on { background: var(--ink); color: var(--bg); }

.iconbtn {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--sub); cursor: pointer; font-size: 13px;
}
.iconbtn:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- 移动端目录 ---------- */

.subnav {
  display: none;
  position: sticky; top: 60px; z-index: 45;
  gap: 4px; padding: 8px 16px; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 4px 10px; font-size: 12px; color: var(--sub);
  border-radius: 999px; white-space: nowrap; border: 1px solid var(--line);
}
.subnav a.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 布局 ---------- */

.shell {
  display: grid;
  grid-template-columns: minmax(0, var(--col)) var(--rail);
  gap: 64px;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

.content { min-width: 0; }

.rail {
  position: sticky; top: 88px;
  align-self: start;
  padding-top: 52px;
  font-size: 12.5px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.rail-block + .rail-block { margin-top: 30px; }

.rail h4 {
  margin: 0 0 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint);
}

.toc a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 3.5px 0;
  color: var(--sub); line-height: 1.5;
  border-left: 2px solid transparent;
  padding-left: 10px; margin-left: -12px;
}
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc a i { font-style: normal; font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; min-width: 14px; }
.toc a.on i { color: var(--accent); }

.mini-stack { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 1px; margin-bottom: 12px; }
.mini-stack b { display: block; height: 100%; }

.mini-list { display: flex; flex-direction: column; gap: 7px; }
.mini-list div { display: flex; align-items: center; gap: 8px; color: var(--sub); }
.mini-list i { width: 8px; height: 8px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.mini-list span { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- 封面区 ---------- */

.hero { padding: 60px 0 40px; border-bottom: 1px solid var(--line); }

.kicker {
  margin: 0 0 18px;
  font-size: 11px; font-weight: 650;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--accent-soft); }

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 700;
}
.hero h1 .yr {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: .16em;
  color: var(--faint);
}

.lede {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.82;
  color: var(--ink-2);
  max-width: 34em;
}

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.kpi { background: var(--surface); padding: 16px 18px 14px; }
.kpi b {
  display: block;
  font-family: var(--serif);
  font-size: 28px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.kpi span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--faint); letter-spacing: .06em; }
.kpi.warn b { color: var(--accent); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin-top: 18px; font-size: 12px; color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- 章节 ---------- */

.block { padding: 46px 0 10px; }
.block + .block { border-top: 1px solid var(--line); scroll-margin-top: 84px; }

.sec-head {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 26px;
}
.sec-head .num {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  padding: 3px 7px;
  border: 1px solid var(--accent-soft);
  border-radius: 5px;
  background: var(--accent-soft);
  transform: translateY(-3px);
}
.sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px; font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.005em;
}
.sec-head .hint { margin-left: auto; font-size: 11.5px; color: var(--faint); }

/* ---------- 正文 ---------- */

.block h3 {
  margin: 34px 0 12px;
  padding-left: 12px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em;
  color: var(--sub);
}
.block h3:first-child { margin-top: 0; }
.block h4 { margin: 22px 0 8px; font-size: 14px; font-weight: 650; color: var(--sub); }
.block p { margin: 0 0 16px; color: var(--ink-2); }
.block ul, .block ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.block ol { counter-reset: item; }
.block li {
  position: relative;
  padding-left: 22px;
  margin: 10px 0;
  color: var(--ink-2);
}
.block ul > li::before {
  content: ""; position: absolute; left: 3px; top: .78em;
  width: 5px; height: 5px; border-radius: 1px;
  background: var(--line-2);
}
.block ol > li { counter-increment: item; }
.block ol > li::before {
  content: counter(item);
  position: absolute; left: 0; top: .18em;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: var(--accent);
}
.block strong { font-weight: 650; color: var(--ink); }
.block a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.block code { font-family: var(--mono); font-size: .87em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.block hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.block blockquote {
  margin: 0 0 18px; padding: 12px 16px;
  background: var(--surface-2); border-radius: 8px;
  color: var(--sub); font-size: 13.5px; line-height: 1.7;
}

.table-wrap { overflow-x: auto; margin: 6px 0 24px; border: 1px solid var(--line); border-radius: 10px; }
.block table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.block th {
  text-align: left; font-weight: 650; font-size: 11px;
  letter-spacing: .06em; color: var(--faint);
  padding: 10px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.block td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.block tr:last-child td { border-bottom: 0; }
.block tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 42%, transparent); }
.block td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

.grade {
  display: inline-block; min-width: 20px; text-align: center;
  padding: 1px 5px; border-radius: 4px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .02em;
}
.g-a { color: var(--g-a); background: color-mix(in srgb, var(--g-a) 14%, transparent); }
.g-b { color: var(--g-b); background: color-mix(in srgb, var(--g-b) 14%, transparent); }
.g-c { color: var(--g-c); background: color-mix(in srgb, var(--g-c) 14%, transparent); }
.g-d { color: var(--g-d); background: color-mix(in srgb, var(--g-d) 14%, transparent); }
.grade + .grade, .grade + .sep, .sep + .grade { margin-left: 2px; }
.sep { color: var(--faint); font-size: 10px; }

/* ---------- 分类 ---------- */

.stack {
  display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px;
  margin: 4px 0 22px;
}
.stack b { display: block; height: 100%; min-width: 2px; }

.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.legend-cell { background: var(--surface); padding: 14px 16px; }
.legend-cell .top { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--sub); }
.legend-cell .top i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.legend-cell .n {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1.2; margin: 6px 0 2px;
}
.legend-cell .n em { font-style: normal; font-size: 12px; color: var(--faint); font-weight: 500; margin-left: 6px; }
.legend-cell .hint { font-size: 11px; color: var(--faint); }

/* ---------- 知识星球 ---------- */

.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 20px 16px;
  overflow: hidden;
}
.pcard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--pc, var(--accent));
}
.pcard h3 {
  margin: 0 0 3px; padding: 0; border: 0;
  font-family: var(--serif); font-size: 15.5px; font-weight: 700;
  letter-spacing: 0; color: var(--ink);
}
.pstats { margin: 0 0 12px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; line-height: 1.5; }

.ptopics { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; }
.ptopics span {
  font-size: 10.5px; padding: 2px 7px; border-radius: 4px;
  background: var(--surface-2); color: var(--sub);
}
.ptopics span b { color: var(--ink); font-weight: 700; margin-left: 3px; font-family: var(--mono); font-size: 10px; }

.pinfo { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pinfo li { padding: 0; margin: 0; border: 0; }
.pinfo li::before { display: none; }
.pinfo b { display: block; font-size: 12px; font-weight: 650; color: var(--ink); margin-bottom: 1px; line-height: 1.55; }
.pinfo span {
  font-size: 12px; color: var(--sub); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.pnote {
  margin: 0; padding: 10px 12px;
  background: var(--surface-2); border-radius: 8px;
  font-size: 11.5px; color: var(--sub); line-height: 1.6;
}
.pnote + .pnote { margin-top: 6px; }
.pnote b { display: block; font-size: 10px; letter-spacing: .1em; color: var(--faint); font-weight: 700; margin-bottom: 2px; }

/* ---------- 归档 ---------- */

.archive-title { font-family: var(--serif); font-size: 40px; margin: 0 0 8px; letter-spacing: -.02em; }
.month { margin-top: 40px; }
.month h2 {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; margin: 0 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.arow {
  display: grid; grid-template-columns: 108px 44px minmax(0, 1fr) 22px;
  align-items: center; gap: 14px;
  padding: 12px 6px; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.arow:hover { background: var(--surface-2); }
.adate { font-variant-numeric: tabular-nums; font-weight: 650; font-family: var(--mono); font-size: 12.5px; }
.awd { font-size: 12px; color: var(--faint); }
.abds { display: flex; gap: 6px; flex-wrap: wrap; }
.bd { font-size: 10.5px; padding: 1px 7px; border-radius: 4px; color: var(--faint); border: 1px solid var(--line); }
.bd.ok { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.ago { color: var(--faint); text-align: right; }

/* ---------- 其他 ---------- */

.muted { color: var(--faint); font-size: 13.5px; }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 64px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--faint);
}
.foot a { border-bottom: 1px solid var(--line); }

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .shell { grid-template-columns: minmax(0, var(--col)); padding: 0 28px 100px; }
  .rail { display: none; }
  .subnav { display: flex; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; line-height: 1.8; }
  .topbar { padding: 0 16px; gap: 10px; height: 54px; }
  .dater { display: none; }
  .subnav { top: 54px; }
  .shell { padding: 0 18px 80px; }
  .hero { padding: 34px 0 26px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 17px; line-height: 1.78; margin-bottom: 26px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 13px 14px 11px; }
  .kpi b { font-size: 23px; }
  .block { padding: 34px 0 6px; }
  .sec-head h2 { font-size: 21px; }
  .sec-head .hint { display: none; }
  .legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: 1fr; }
  .arow { grid-template-columns: 96px 36px 1fr; }
  .ago { display: none; }
  .block table { font-size: 12px; }
  .block th, .block td { padding: 8px 10px; }
}

@media print {
  .topbar, .subnav, .rail, .foot, .progress { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.7; }
  .shell { display: block; max-width: none; padding: 0; }
  .hero { padding-top: 0; }
  .block { break-inside: auto; }
  .sec-head h2, .block h3 { break-after: avoid; }
  .table-wrap, .pcard, .legend-grid { break-inside: avoid; }
  @page { margin: 14mm 12mm; }
}

/* ---------- 归档单栏 ---------- */

.shell.solo { grid-template-columns: minmax(0, 880px); }
@media (max-width: 1180px) { .shell.solo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 类别色块 ---------- */

.c1 { background: var(--c1); }
.c2 { background: var(--c2); }
.c3 { background: var(--c3); }
.c4 { background: var(--c4); }
.c5 { background: var(--c5); }
.c6 { background: var(--c6); }

.stack { height: 14px; }

/* ---------- 高价值资料 ---------- */

.hlist { display: flex; flex-direction: column; }

.hl-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.hl-row:first-child { border-top: 0; padding-top: 2px; }

.hl-num {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  color: var(--faint);
  letter-spacing: .06em;
  padding-top: 4px;
}

.hl-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.hl-cat { font-size: 10.5px; color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 4px; }
.hl-imp { font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.hl-title {
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--serif);
  font-size: 16.5px !important;
  font-weight: 700 !important;
  line-height: 1.55;
  letter-spacing: 0 !important;
  color: var(--ink) !important;
}

.hl-desc { margin: 0; font-size: 13px; line-height: 1.72; color: var(--sub); }

/* ---------- 今日小作文 ---------- */

.rlist { display: flex; flex-direction: column; }

.rrow {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.rrow:first-child { border-top: 0; }
.rrow[hidden] { display: none; }

.rrow time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
  letter-spacing: .02em;
}

.rbody b {
  display: block;
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 2px;
}

.rbody p {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
  color: var(--sub);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rk {
  font-size: 10px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  padding: 1px 0;
  margin-top: 2px;
}

.rmore { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.rmore summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--accent);
  list-style: none;
}
.rmore summary::-webkit-details-marker { display: none; }
.rmore summary::before { content: "▸ "; }
.rmore[open] summary::before { content: "▾ "; }

.rnote { margin: 14px 0 0; font-size: 11.5px; color: var(--faint); line-height: 1.6; }

/* ---------- 小作文图片 ---------- */

.rrow.is-img { align-items: start; }

.rimg {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0 0 6px;
  max-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: zoom-in;
}
.rimg img { display: block; width: 480px; max-width: 100%; height: auto; }
.rimg::after {
  content: "点击查看完整图片";
  position: absolute; right: 8px; bottom: 8px;
  font-size: 10px; color: #fff;
  background: rgba(0, 0, 0, .55);
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: .02em;
}
.rcap {
  margin: 0 !important;
  font-size: 11.5px;
  color: var(--faint) !important;
  line-height: 1.5;
  -webkit-line-clamp: 2 !important;
}

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: none;
  padding: 32px 24px 48px;
  background: rgba(8, 9, 11, .93);
  overflow: auto;
  cursor: zoom-out;
}
.lightbox.on { display: block; }
.lightbox img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: min(92vw, 760px);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.lightbox .hint {
  display: block;
  margin: 18px auto 0;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
}

@media (max-width: 720px) {
  .rrow { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
  .rrow .rk { display: none; }
  .rimg { max-height: 300px; }
}

/* ---------- 双报卡片 ---------- */

.digest {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.dtabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.dtab {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, background .15s;
}
.dtab em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}
.dtab:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.dtab.on {
  color: var(--ink);
  font-weight: 650;
  background: var(--surface);
  border-bottom-color: var(--accent);
}
.dtab.on em { color: var(--accent); }

.dpanel { display: none; padding: 26px 28px 30px; }
.dpanel.on { display: block; }
.dpanel h2 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 26px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.dpanel h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.dpanel h3 { margin: 20px 0 8px; font-size: 14px; }
.dpanel p { font-size: 14px; line-height: 1.8; }

@media (max-width: 720px) {
  .dpanel { padding: 18px 16px 22px; }
  .dtab { padding: 11px 8px; font-size: 12.5px; flex-direction: column; gap: 2px; }
}

/* ---------- 九栏组件 ---------- */

/* 宏观 */
.mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 8px; }
.mcard { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); }
.mhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11px; color: var(--faint); }
.mflag { color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 4px; font-weight: 650; }
.mstars { color: var(--accent-2); letter-spacing: 1px; font-size: 10px; }
.mhead time { margin-left: auto; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mcard h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 650; line-height: 1.5; }
.mkv { margin: 0 0 4px !important; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mseg { margin: 0 0 4px !important; font-size: 11.5px; color: var(--sub); }
.mai { margin: 0 !important; font-size: 11.5px; color: var(--faint); line-height: 1.6; }

.nlist { margin-top: 6px; }
.nlist li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.nlist li::before { display: none; }
.nlist time { font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 3px; }
.nlist b { font-size: 14px; font-weight: 650; display: block; margin-bottom: 2px; }
.nlist span { display: block; font-size: 12.5px; color: var(--sub); line-height: 1.6; }

/* 科技 */
.tlist { display: flex; flex-direction: column; }
.titem { padding: 13px 0; border-top: 1px solid var(--line); }
.titem:first-child { border-top: 0; }
.titem:first-child { padding-top: 2px; }
.tmeta { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; font-size: 11px; color: var(--faint); }
.tsrc { color: var(--c1); font-weight: 600; }
.tmeta time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.titem h4 { margin: 0 0 3px; font-size: 14.5px; font-weight: 650; line-height: 1.55; }
.titem p { margin: 0 !important; font-size: 12.5px; color: var(--sub); line-height: 1.65; }

/* 卖方 */
.slist { display: flex; flex-direction: column; }
.sitem { padding: 12px 0; border-top: 1px solid var(--line); }
.sitem:first-child { border-top: 0; padding-top: 2px; }
.shead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 11px; }
.sorg { color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 4px; font-weight: 650; }
.sgrp { color: var(--faint); }
.shead time { margin-left: auto; font-family: var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.sitem p { margin: 0 !important; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* 财报 */
.egrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.ecard { border: 1px solid var(--line); border-radius: 10px; padding: 15px 16px; background: var(--surface); }
.ecard h4 { margin: 0 0 5px; font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.45; }
.emeta { display: flex; gap: 10px; font-size: 11px; color: var(--faint); margin-bottom: 7px; }
.ecard p { margin: 0 !important; font-size: 12.5px; color: var(--sub); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* 情绪 */
.stiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.stile { background: var(--surface); padding: 12px 14px; }
.stile b { display: block; font-family: var(--serif); font-size: 19px; font-variant-numeric: tabular-nums; }
.stile span { font-size: 11px; color: var(--faint); }
.stable { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.stable th { text-align: left; font-size: 11px; color: var(--faint); font-weight: 650;
  padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.stable td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.stable td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.stable td:last-child { color: var(--faint); font-size: 11.5px; }

/* 周报 */
.weekly { border-left: 2px solid var(--accent-soft); padding-left: 18px; }
.weekly h2 { font-family: var(--serif); font-size: 19px; margin: 26px 0 10px; }
.weekly h2:first-child { margin-top: 0; }
.weekly h3 { font-size: 13px; margin: 18px 0 6px; color: var(--sub); }
.weekly p, .weekly li { font-size: 13.5px; line-height: 1.75; }

@media (max-width: 720px) {
  .stiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mgrid, .egrid { grid-template-columns: 1fr; }
  .nlist li { grid-template-columns: 38px 1fr; gap: 6px; }
}

/* ---------- 研报表格 / 财报卡 ---------- */

.rtable { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.rtable th { text-align: left; font-size: 11px; color: var(--faint); font-weight: 650;
  padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.rtable td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.65; }
.rtable td:first-child { font-weight: 650; color: var(--ink); white-space: nowrap; }
.rtable td:nth-child(2) { color: var(--ink-2); }
.rtable td:nth-child(3) { color: var(--sub); font-size: 12.5px; }
.rtable td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }

.ecode { font-family: var(--mono); font-size: 10.5px; color: var(--faint); font-weight: 400; margin-left: 8px; }
.esum { margin-bottom: 8px !important; }
.ekv { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ekv li { font-size: 12px; color: var(--sub); padding-left: 12px; position: relative; line-height: 1.6; }
.ekv li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 4px; height: 4px;
  border-radius: 1px; background: var(--accent); }
@media (max-width: 720px) { .rtable { font-size: 12px; } .rtable td, .rtable th { padding: 8px 8px; } }

/* ---------- 网格布局（替代瀑布流） ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.cell { min-width: 0; }
.cell.span2 { grid-column: span 2; }

.cell > .block {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px 22px 18px;
  height: 100%;
}
.cell > .block + .block { border-top: 1px solid var(--line); }
.cell > .block .sec-head { margin-bottom: 16px; }
.cell > .block .sec-head h2 { font-size: 20px; }
.cell > .block .sec-head .num { transform: translateY(-2px); }
.cell > .block table, .cell > .block .table-wrap { margin-bottom: 0; }
.cell > .block .egrid { grid-template-columns: 1fr; }

@media (max-width: 980px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cell.span2 { grid-column: auto; }
  .cell > .block { padding: 16px 16px 14px; border-radius: 12px; }
}

/* ---------- 顶部二级菜单 ---------- */

.navmenu { position: relative; display: inline-flex; }
.navmenu > a {
  padding: 5px 13px; border-radius: 999px; font-size: 13px; color: var(--sub);
  display: inline-flex; align-items: center; gap: 5px;
}
.navmenu > a::after { content: "▾"; font-size: 9px; opacity: .6; }
.navmenu:hover > a { background: var(--surface-2); color: var(--ink); }
.drop {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 250px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.navmenu:hover .drop, .navmenu:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 10px; border-radius: 6px;
  font-size: 13px; color: var(--ink-2);
}
.drop a:hover { background: var(--surface-2); color: var(--ink); }
.drop a span { color: var(--faint); font-family: var(--mono); font-size: 10.5px; }

/* 研究列表页 */
.rlist2 { display: grid; gap: 14px; }
.rcard {
  display: block; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px; background: var(--surface);
}
.rcard:hover { border-color: var(--line-2); }
.rcard h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; }
.rcard p { margin: 0; font-size: 13px; color: var(--sub); }
.rcard .rmeta { margin-top: 10px; font-size: 11.5px; color: var(--faint); font-family: var(--mono); }

/* 半宽卡片排版收敛 */
.cell:not(.span2) .sec-head .hint { display: none; }
.cell:not(.span2) .sec-head h2 { font-size: 18px; white-space: nowrap; }
.cell:not(.span2) .sec-head { margin-bottom: 14px; }
.cell:not(.span2) .mcard { padding: 12px 13px; }
.cell:not(.span2) .mcard h4 { font-size: 13.5px; }
.cell:not(.span2) .titem h4 { font-size: 13.5px; }
.cell:not(.span2) .titem p { font-size: 12px; }

/* 双报卡片限高，避免单卡占满多屏 */
@media (min-width: 981px) {
  .dpanel { max-height: 62vh; overflow: auto; }
  .dpanel::-webkit-scrollbar { width: 8px; }
  .dpanel::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
}

/* ---------- 监控台 ---------- */

.monitor {
  margin: 14px 0 16px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.mhead-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.mhead-row h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.mhead-row time { font-size: 11.5px; color: var(--faint); font-family: var(--mono); }

.mgrid-mon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.mtile { background: var(--surface); padding: 11px 13px; }
.mtile span { display: block; font-size: 10.5px; color: var(--faint); margin-bottom: 3px; letter-spacing: .04em; }
.mtile b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mtile b.up { color: #B93A2B; }
.mtile b.down { color: #2E7D53; }

.mheads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mheads li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.mheads i {
  flex: none; width: 17px; height: 17px; border-radius: 5px;
  display: grid; place-items: center;
  font-style: normal; font-family: var(--mono); font-size: 10px;
  background: var(--accent-soft); color: var(--accent);
  transform: translateY(2px);
}

/* ---------- 手机优先调整 ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.82; }
  .monitor { margin: 10px 0 14px; padding: 15px 15px 13px; border-radius: 14px; }
  .mhead-row h2 { font-size: 18px; }
  .mgrid-mon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtile { padding: 10px 12px; }
  .mtile b { font-size: 16px; }
  .mheads li { font-size: 14px; }
  .grid { gap: 12px; }
  .cell > .block { padding: 15px 15px 13px; border-radius: 14px; }
  .cell > .block .sec-head h2 { font-size: 19px; }
  .ldigest .dpanel { max-height: 66vh; }
  .stable { display: block; overflow-x: auto; }
  .table-wrap { margin-left: -2px; margin-right: -2px; }
  .foot { margin-top: 36px; }
  .shell { padding-bottom: 56px; }
}

@media (max-width: 720px) {
  .dpanel { max-height: 66vh; overflow: auto; }
}

.navmenu > a { white-space: nowrap; }
@media (max-width: 720px) {
  .topnav a, .navmenu > a { padding: 6px 10px; font-size: 13px; }
  .topnav { gap: 2px; }
}

/* ==========================================================
   v5 排版：手机优先 · 单列卡片 · 统一节奏
   ========================================================== */

:root { --card-pad: 18px; }

body { font-size: 16px; line-height: 1.8; }

/* 单列：桌面也不再两栏挤压 */
.grid { display: block; }
.cell { margin-bottom: 14px; }
.cell.span2 { grid-column: auto; }
.cell > .block {
  padding: var(--card-pad) var(--card-pad) calc(var(--card-pad) - 4px);
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.cell:last-child { margin-bottom: 0; }

/* 卡片内的字号与行距 */
.cell > .block p,
.cell > .block li { font-size: 15px; line-height: 1.8; }
.cell > .block h2 { font-size: 20px; }
.cell > .block h3 { font-size: 14.5px; margin: 22px 0 10px; }
.cell > .block .sec-head { margin-bottom: 16px; }
.cell > .block .sec-head h2 { white-space: normal; }

/* 双报：不再卡内滚动，改为默认折叠 */
.dpanel { padding: 18px 0 4px; }
.dpanel:not(.capped) { max-height: none; overflow: visible; }
.dfold > summary {
  cursor: pointer; list-style: none; margin: 14px 0 0;
  padding: 9px 0; font-size: 13px; color: var(--accent);
  border-top: 1px dashed var(--line);
}
.dfold > summary::-webkit-details-marker { display: none; }
.dfold > summary::before { content: "▾ "; }
.dfold:not([open]) > summary::before { content: "▸ "; }
.dbody { padding-top: 6px; }

/* 监控台 */
.monitor { padding: 16px 16px 14px; border-radius: 14px; margin: 12px 0 14px; }
.mhead-row h2 { font-size: 19px; }
.mgrid-mon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mtile { padding: 10px 12px; }
.mtile b { font-size: 18px; }
.mheads li { font-size: 14px; }

/* 表格：手机可横滑，字号统一 */
.stable, .rtable { font-size: 13px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 100%; }
.stable th, .stable td { padding: 9px 10px; }

/* 手机 */
@media (max-width: 720px) {
  :root { --card-pad: 16px; }
  body { font-size: 16px; }
  .monitor { padding: 14px 14px 12px; }
  .mgrid-mon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtile b { font-size: 17px; }
  .cell > .block p, .cell > .block li { font-size: 15.5px; }
  .cell > .block h2 { font-size: 19px; }
  .dpanel { padding: 14px 0 2px; }
  .table-wrap { margin: 0 -4px; }
  .shell { padding-bottom: 44px; }
}

/* 桌面：单列 + 右侧目录 */
@media (min-width: 981px) {
  .shell { grid-template-columns: minmax(0, 760px) 220px; gap: 48px; }
  .dpanel { max-height: none; overflow: visible; }
}

/* 双报：折叠态 + 展开按钮 */
.cell .digest { border: 0; background: transparent; border-radius: 0; }
.dpanel.capped {
  max-height: 58vh !important; overflow: hidden !important; position: relative; padding-bottom: 8px;
}
.dpanel.capped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 34px; height: 72px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}
.dmore {
  display: block; width: 100%; margin-top: 10px; padding: 9px 0;
  background: transparent; border: 0; border-top: 1px dashed var(--line);
  color: var(--accent); font: inherit; font-size: 13px; cursor: pointer;
}
@media (max-width: 720px) { .dpanel.capped { max-height: 56vh !important; } }

.dpanel.capped .dmore {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; z-index: 2;
  background: var(--surface); padding: 10px 0 6px;
}
.dpanel.capped::after { bottom: 40px; }

/* 卖方 5 列表 */
.rtable5 td { vertical-align: top; }
.rtable5 .rname { margin-top: 3px; font-size: 11.5px; color: var(--faint); line-height: 1.5; font-weight: 400; }
.rtable5 .rcomp { font-size: 12px; line-height: 1.7; color: var(--sub); }
.rtable5 td:nth-child(2) { font-size: 12.5px; line-height: 1.7; }

/* ---------- 暖黄护眼底色 ---------- */
:root {
  --bg: #F6EFDD;
  --surface: #FDFAF0;
  --surface-2: #EFE7D3;
  --surface-3: #E8DEC6;
  --ink: #2A2620;
  --ink-2: #3E3830;
  --sub: #6B6255;
  --faint: #9A9080;
  --line: #E2D7BF;
  --line-2: #D2C4A6;
}

/* 宽表横滑，不压缩 */
.rtable5 { min-width: 720px; table-layout: fixed; }
.rtable { min-width: 620px; table-layout: fixed; }
@media (max-width: 720px) {
  .rtable5 { min-width: 700px; }
  .table-wrap { margin-left: 0; margin-right: 0; padding-bottom: 4px; }
}

.rtable, .rtable5 { width: 100%; }
.rtable5 { min-width: 720px; }
.rtable { min-width: 560px; }

/* 覆盖 .table-wrap table 的 min-width:100% */
.table-wrap table.rtable5 { width: 100%; min-width: 720px; table-layout: fixed; }
.table-wrap table.rtable  { width: 100%; min-width: 560px; table-layout: fixed; }

.table-wrap table.rtable5 {
  table-layout: auto; width: auto; min-width: 780px;
}
.table-wrap table.rtable5 td, .table-wrap table.rtable5 th { word-break: break-word; }
.table-wrap table.rtable5 td:nth-child(1) { min-width: 150px; }
.table-wrap table.rtable5 td:nth-child(3) { min-width: 180px; }

/* 04 双形态：桌面表格 / 手机卡片 */
.only-mobile { display: none; }
@media (max-width: 860px) {
  .only-desktop { display: none; }
  .only-mobile { display: block; }
}
.rep { padding: 14px 0; border-top: 1px solid var(--line); }
.rep:first-child { border-top: 0; padding-top: 2px; }
.rep-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rep-h b { font-size: 13px; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 4px; }
.rep-h span { font-size: 11px; color: var(--faint); white-space: nowrap; }
.rep h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 650; line-height: 1.5; }
.rep p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.rep-c { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rep-c li { font-size: 12px; color: var(--sub); line-height: 1.6; padding-left: 10px; position: relative; }
.rep-c li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 1px; background: var(--line-2); }
.rep-c i { font-style: normal; color: var(--ink); font-weight: 600; margin-right: 4px; }

@media (min-width: 900px) { .mgrid-mon { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 通用折叠 ---------- */
.fold { position: relative; }
.fold.capped { max-height: 46vh; overflow: hidden; padding-bottom: 30px; }
.fold.capped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 34px; height: 64px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}
.fold.capped .dmore { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; z-index: 2; background: var(--surface); }

/* ---------- 05 财报：整篇 ---------- */
.egrid-1 { grid-template-columns: 1fr; }
.ecard { padding: 16px 18px 14px; }
.ecard-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ecard-h h4 { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 700; }
.ecard .ecode { margin-left: 0; }
.ebody h2 { font-size: 17px; margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.ebody h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ebody h3 { font-size: 14px; margin: 16px 0 6px; }
.ebody p, .ebody li { font-size: 14px; line-height: 1.75; }
.ebody table { font-size: 12.5px; }
.ecard { max-height: none; }
.ecard.fold.capped { max-height: 46vh; }

@media (max-width: 720px) {
  .fold.capped, .ecard.fold.capped { max-height: 52vh; }
}

/* ---------- v6 质感：去掉过黄，改暖灰白 ---------- */
:root {
  --bg: #F8F6F1;
  --surface: #FFFFFF;
  --surface-2: #F3F0E9;
  --surface-3: #EBE7DE;
  --ink: #211F1C;
  --ink-2: #3B3833;
  --sub: #6C665E;
  --faint: #9C958B;
  --line: #E8E3D9;
  --line-2: #D9D2C5;
  --accent: #9A4A2C;
  --accent-soft: #F3E6DE;
  --shadow: 0 1px 2px rgba(35, 33, 29, .04), 0 8px 24px rgba(35, 33, 29, .05);
}

body { background: var(--bg); }

/* 卡片：白面 + 极轻投影，提升层次 */
.cell > .block, .monitor {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.cell > .block { border-radius: 16px; }
.monitor { border-radius: 16px; }

.tile, .mtile { background: var(--surface); }

/* 表格：列宽按内容分配，字号与行距更舒展 */
.table-wrap table.rtable5 {
  table-layout: fixed; width: 100%; min-width: 0;
}
.table-wrap table.rtable5 th { padding: 10px 14px; }
.table-wrap table.rtable5 td { padding: 13px 14px; line-height: 1.7; }
.table-wrap table.rtable5 td:nth-child(2) { font-size: 13px; color: var(--ink-2); }
.table-wrap table.rtable5 td:nth-child(3) { font-size: 12.5px; }
.table-wrap table.rtable5 td:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }

/* 章节标题：字距收紧，层次更清楚 */
.sec-head h2 { letter-spacing: -.01em; }
.monitor .mhead-row h2 { letter-spacing: .01em; }

/* 表格单元格防溢出 */
.table-wrap table.rtable5 td { overflow-wrap: anywhere; word-break: break-word; }
.table-wrap table.rtable5 .rname {
  white-space: normal; overflow-wrap: anywhere; font-size: 11px; line-height: 1.45;
}
.table-wrap table.rtable5 td:nth-child(1) { padding-right: 16px; }
