/* =====================================================================
 *  八年五班 · 班报数字版
 *  版式严格依据编辑部手绘设计稿：
 *
 *    开本      21 × 29 cm （屏幕等比缩放，打印 1:1）
 *    留白      上/左/右 2cm ，下 1.5cm
 *    版心      17 cm
 *    栏距      0.4 cm
 *    正文      四号字（14pt ≈ 0.494cm）
 *    字体      GB2312 报宋系
 *
 *  ┌──────────────────── 2cm ────────────────────┐
 *  │                报头区（主题）                │
 *  ├──────────┬──────────────┬─────────┤
 *  │ 图片 13:9 │  文稿 四号字   │ 公告/班级 │  ← 第一栏行 7 : 6 : 3.2
 *  ├──────────┴──────────────┴─────────┤
 *  │  同上 文稿/图片  │  同上 文稿        │  ← 第二栏行 1:1
 *  ├─────────────────┼─────────────────┤
 *  │  同上 大字       │  同上 文稿/图片   │  ← 第三栏行 1:1
 *  ├─────────────────┴─────────────────┤
 *  │            编 后（通栏 2cm）         │
 *  └───────────────────────────────────┘
 *        ↑ 底部留白 1.5cm
 * ===================================================================== */

/* =====================================================================
 *  1. 版面度量 —— 所有尺寸都由 --cm 推导，保证任何屏幕上比例完全一致
 * ===================================================================== */
:root {
  /* —— 开本 —— */
  --ratio-w: 21;          /* 21 cm */
  --ratio-h: 29;          /* 29 cm */
  --margin: 2;            /* 四边留白 2cm */
  --margin-b: 1.5;        /* 下留白 1.5cm */

  /* —— 纸面宽度：桌面上限 1040px，屏幕上永远等比 —— */
  --w: min(94vw, 1040px);
  --cm: calc(var(--w) / var(--ratio-w));   /* 1cm 在当前屏幕上的实际像素 */
  --gap: calc(var(--cm) * 0.4);            /* 栏距 0.4cm */

  /* —— 字号阶梯（中文活字规格换算）—— */
  --fs-title: clamp(34px, calc(var(--cm) * 1.45), 76px);   /* 主题 · 特号 */
  --fs-lead:  clamp(26px, calc(var(--cm) * 0.92), 48px);   /* 头条 · 一号 */
  --fs-sub:   clamp(17px, calc(var(--cm) * 0.58), 30px);   /* 引题 · 三号 */
  --fs-head:  clamp(17px, calc(var(--cm) * 0.56), 29px);   /* 小标题 */
  --fs-big:   clamp(18px, calc(var(--cm) * 0.56), 29px);   /* 大字 · 二号 */
  --fs-body:  clamp(15px, calc(var(--cm) * 0.494), 20px);  /* 正文 · 四号 */
  --fs-note:  clamp(12.5px, calc(var(--cm) * 0.40), 17px); /* 说明 · 小五 */
  --fs-small: clamp(11px,  calc(var(--cm) * 0.33), 14px);  /* 六号 */

  --body-lh: 1.86;
  --col-gap: calc(var(--cm) * 0.4);

  /* —— 色 —— */
  --paper:     #f4f1e8;
  --paper-2:   #efebe0;
  --ink:       #17150f;
  --ink-2:     #3d3930;
  --ink-3:     #6b6558;
  --rule:      #c9c2b1;
  --rule-dark: #8e8778;
  --red:       #a8231c;
  --red-soft:  #c25b52;

  --serif: "Songti SC", "SimSun", "STSong", "Source Han Serif SC", "Noto Serif SC", "Georgia", serif;
  --sans:  "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --kai:   "Kaiti SC", "KaiTi", "STKaiti", "Songti SC", serif;
}

/* 纸色主题 */
body[data-theme="cream"] { --paper: #f7f0dd; --paper-2: #f2e9d2; --rule: #d3c8ab; }
body[data-theme="white"] { --paper: #fbfaf7; --paper-2: #f5f4f0; --rule: #ddd8cd; }
body[data-theme="night"] {
  --paper: #1b1a17; --paper-2: #232220; --ink: #e6e1d6; --ink-2: #c3bdb0;
  --ink-3: #948d7f; --rule: #3a3833; --rule-dark: #55524a; --red: #d4564a; --red-soft: #b8554a;
}

/* 正文字号微调（保持四号基准上的相对变化） */
body[data-font="s"] { --fs-body: clamp(14px, calc(var(--cm) * 0.44), 18px); }
body[data-font="l"] { --fs-body: clamp(17px, calc(var(--cm) * 0.56), 23px); }
body[data-dens="tight"] { --col-gap: calc(var(--cm) * 0.24); --gap: calc(var(--cm) * 0.26); }
body[data-dens="loose"] { --col-gap: calc(var(--cm) * 0.62); --gap: calc(var(--cm) * 0.58); }

/* =====================================================================
 *  2. 基础
 * ===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: #d8d3c6;
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: var(--body-lh);
  padding: 0 0 calc(var(--cm) * 1.2);
  transition: background .25s, color .25s;
}
body[data-theme="night"] { background: #100f0e; }

/* ---- 纸张本体：21 × 29 开本 ---- */
.paper {
  --w: min(94vw, 1040px);
  --cm: calc(var(--w) / 21);
  width: var(--w);
  margin: 0 auto;
  background: var(--paper);
  /* 四边留白 2cm（下 1.5cm），版心因此精确等于 17cm */
  padding: calc(var(--cm) * var(--margin)) calc(var(--cm) * var(--margin)) calc(var(--cm) * var(--margin-b));
  box-shadow: 0 2px 0 rgba(0,0,0,.12), 0 24px 60px rgba(0,0,0,.22);
  position: relative;
  transition: background .25s;
  opacity: 0; transform: translateY(6px);
}
body.ready .paper { opacity: 1; transform: none; }
.paper { transition: background .25s, opacity .5s ease, transform .5s ease; }

/* 裁切标记：让人一眼看出这是「一张纸」 */
.paper::after {
  content: ""; position: absolute; inset: calc(var(--cm) * 0.55);
  border: 1px dashed rgba(0,0,0,.13); pointer-events: none;
}
body[data-theme="night"] .paper::after { border-color: rgba(255,255,255,.1); }

/* 纸张纹理 */
.paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .30;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.025) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.02) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: multiply;
}
body[data-theme="night"] .paper::before { opacity: .5; mix-blend-mode: screen; }

/* =====================================================================
 *  3. 工具条
 * ===================================================================== */
.toolbar {
  width: min(94vw, 1040px);
  margin: 0 auto calc(var(--cm) * 0.28);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 16px;
  background: rgba(23,21,15,.93);
  color: #d9d3c4;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: .08em;
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}
.tb-left { display: flex; align-items: baseline; gap: 12px; }
.tb-brand { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: .18em; color: #f2ead6; }
.tb-edition { color: #9c9585; }
.tb-right { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-btn {
  font-family: var(--sans); font-size: 12px; letter-spacing: .06em;
  color: #d9d3c4; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  padding: 5px 11px; cursor: pointer; transition: .15s;
  text-decoration: none; white-space: nowrap;
}
.tb-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.tb-btn b { color: #ffd9a8; font-weight: 600; }

/* =====================================================================
 *  4. 报头区 · 主题
 *     设计稿：顶部 2cm 高的通栏，中间是「主题」
 * ===================================================================== */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: calc(var(--cm) * 0.5);
  min-height: calc(var(--cm) * 2.6);
  padding: calc(var(--cm) * 0.35) 0 calc(var(--cm) * 0.55);
}
.mh-side { font-family: var(--sans); font-size: var(--fs-small); line-height: 1.8; color: var(--ink-3); letter-spacing: .06em; }
.mh-left { text-align: left; }
.mh-right { text-align: right; }
.mh-small { white-space: nowrap; }
.mh-vert {
  display: inline-block;
  writing-mode: vertical-rl; text-orientation: upright;
  letter-spacing: .16em;
  font-family: var(--serif);
  font-size: var(--fs-small);
  line-height: 1.1; color: var(--ink-2);
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  padding: 5px 4px; margin-bottom: 8px;
  max-height: calc(var(--cm) * 3.2);
  white-space: nowrap;
}
.mh-center { text-align: center; }
.mh-title {
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 900;
  letter-spacing: .14em; text-indent: .14em;
  line-height: 1.02;
  color: var(--ink);
}
.mh-en { font-family: var(--sans); font-size: var(--fs-small); letter-spacing: .5em; text-indent: .5em; color: var(--ink-3); margin-top: calc(var(--cm) * 0.14); }
.mh-motto { font-family: var(--serif); font-size: var(--fs-note); letter-spacing: .3em; text-indent: .3em; color: var(--red); margin-top: calc(var(--cm) * 0.12); }

/* =====================================================================
 *  5. 分隔线
 * ===================================================================== */
.rule-double { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); height: 5px; margin: 0 0 calc(var(--cm) * 0.26); }
.rule-thin { border-top: 1px solid var(--rule); margin: calc(var(--cm) * 0.34) 0; }
.rule-thin.red { border-top: 2px solid var(--red); margin: calc(var(--cm) * 0.3) 0; }
.rule-thick { border-top: 4px double var(--ink); margin: calc(var(--cm) * 0.55) 0 calc(var(--cm) * 0.4); }

/* =====================================================================
 *  6. 版面导航
 * ===================================================================== */
.sections {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px calc(var(--cm) * 0.6);
  font-family: var(--sans); font-size: var(--fs-note); letter-spacing: .14em;
  padding-bottom: calc(var(--cm) * 0.2);
}
.sec { color: var(--ink-2); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: .15s; }
.sec i { font-style: normal; font-size: .74em; color: var(--ink-3); vertical-align: super; margin-left: 2px; }
.sec:hover, .sec.active { color: var(--red); border-bottom-color: var(--red); }
.sec-spacer { flex: 1 1 auto; }
.sec-meta { font-size: var(--fs-small); color: var(--ink-3); letter-spacing: .1em; }

/* =====================================================================
 *  7. 第一栏行 —— 图片 13:9 ｜ 文稿 四号字 ｜ 公告 · 班级
 *     设计稿标注：三栏宽度比 ≈ 7 : 6 : 3.2（合计 17cm 版心）
 * ===================================================================== */
.front { display: block; }

.band { display: grid; gap: var(--gap); align-items: start; }
/* 第一栏行：图片 ｜ 文稿（四号字）｜ 公告 · 班级 —— 按设计稿标注的栏宽比 */
.band-1 { grid-template-columns: 5.6fr 7fr 4.4fr; }
/* 第二 / 第三栏行：同上 文稿·图片 ｜ 同上 文稿 */
.band-2 { grid-template-columns: 1fr 1fr; }
.band-3 { grid-template-columns: 1fr 1fr; }

/* 第二、三栏行之间的竖分隔线（报纸的「栏线」） */
.band-2 > .story + .story,
.band-3 > .story + .story {
  border-left: 1px solid var(--rule);
  padding-left: var(--gap);
}

/* ------------------------- 头条 ------------------------- */
.lead { padding: calc(var(--cm) * 0.3) 0 calc(var(--cm) * 0.1); }

.lead-kicker { display: flex; align-items: center; gap: calc(var(--cm) * 0.28); margin-bottom: calc(var(--cm) * 0.26); }
.badge {
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 700; letter-spacing: .28em; text-indent: .28em;
  color: #fff; background: var(--red); padding: 3px 10px; white-space: nowrap;
}
.kicker-text { font-family: var(--sans); font-size: var(--fs-note); letter-spacing: .16em; color: var(--red); font-weight: 600; }

.lead-headline {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  font-weight: 900; line-height: 1.08; letter-spacing: .02em;
  margin-bottom: 2px;
}
.lead-headline-sub {
  font-family: var(--serif);
  font-size: var(--fs-sub);
  font-weight: 700; line-height: 1.28; letter-spacing: .04em;
  color: var(--ink-2);
  margin-bottom: calc(var(--cm) * 0.3);
}
.lead-deck {
  font-family: var(--kai);
  font-size: var(--fs-note);
  line-height: 1.8; color: var(--ink-2);
  border-left: 3px solid var(--red);
  padding-left: calc(var(--cm) * 0.32);
  margin-bottom: calc(var(--cm) * 0.26);
}
.lead-byline {
  display: flex; flex-wrap: wrap; gap: 4px calc(var(--cm) * 0.5); justify-content: space-between;
  font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-3); letter-spacing: .05em;
}
.lead-byline b { color: var(--ink-2); }

/* =====================================================================
 *  8. 图片：13:9 半色调，模拟铅印网点
 *     设计稿标注「图片 13×9」= 图片按 13:9 比例裁切
 * ===================================================================== */
.lead-figure { margin: 0; }
.halftone {
  position: relative; overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--rule-dark);
  aspect-ratio: 13 / 9;                 /* ← 设计稿：图片 13×9 */
}
.halftone svg { display: block; width: 100%; height: 100%; filter: grayscale(1) contrast(1.14) brightness(1.02); }
body[data-theme="night"] .halftone { background: #14130f; }
body[data-theme="night"] .halftone svg { filter: grayscale(1) invert(1) contrast(1.05) brightness(.92); }
.halftone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,.55) .9px, transparent 1.05px);
  background-size: 3.4px 3.4px; opacity: .17; mix-blend-mode: multiply;
}
body[data-theme="night"] .halftone::after { background-image: radial-gradient(circle, rgba(255,255,255,.5) .9px, transparent 1.05px); mix-blend-mode: screen; opacity: .1; }
.halftone.wide-ratio { aspect-ratio: 16 / 9; }

.lead-figure figcaption,
.story-figure figcaption {
  font-family: var(--kai);
  font-size: var(--fs-small); line-height: 1.7; color: var(--ink-3);
  margin-top: calc(var(--cm) * 0.16); padding-top: calc(var(--cm) * 0.14);
  border-top: 1px solid var(--rule);
  text-align: justify;
}
.lead-figure figcaption b, .story-figure figcaption b { color: var(--red); font-family: var(--sans); font-size: .95em; letter-spacing: .06em; }

/* =====================================================================
 *  9. 正文分栏 —— 中文报纸单栏 13~17 字，绝不能更窄
 *     技巧：column-width 给出「一栏至少 13 字」的下限，
 *     同时写 column-count 时浏览器取两者中较小的栏数，
 *     于是窄栏自动降为 1 栏、宽栏才分成 2/3 栏。
 * ===================================================================== */
.cols {
  column-width: 13em;              /* 一栏最少 13 个汉字 */
  column-gap: var(--col-gap);
  column-rule: 1px solid var(--rule);
}
.cols[data-cols="1"] { column-count: 1; column-rule: none; }
.cols[data-cols="2"] { column-count: 2; }
.cols[data-cols="3"] { column-count: 3; column-width: 11em; }
.cols > p { margin-bottom: .58em; text-align: justify; text-justify: inter-ideograph; text-indent: 2em; }
.cols > p:last-child { margin-bottom: 0; }

.lead-text { font-size: var(--fs-body); line-height: var(--body-lh); }
.lead-text b, .story-body b { font-weight: 700; }

/* 首字下沉 */
.dropcap {
  float: left;
  font-family: var(--serif);
  font-size: 3.05em; line-height: .88; font-weight: 900;
  color: var(--red); margin: .04em .1em 0 0; text-indent: 0;
}

/* 小标题 */
.subhead {
  font-family: var(--sans);
  font-size: var(--fs-note); font-weight: 700; letter-spacing: .08em;
  color: var(--ink);
  margin: .55em 0 .35em; padding-left: calc(var(--cm) * 0.2);
  border-left: 3px solid var(--red);
  break-after: avoid; text-indent: 0;
}

/* 引语 */
.pullquote {
  break-inside: avoid;
  margin: .7em 0 .8em; padding: calc(var(--cm) * 0.24) 0 calc(var(--cm) * 0.24) calc(var(--cm) * 0.3);
  border-top: 2px solid var(--red); border-bottom: 1px solid var(--rule);
  font-family: var(--kai); font-size: 1.12em; line-height: 1.7;
  color: var(--ink); text-indent: 0;
}
.pullquote cite { display: block; margin-top: 6px; font-family: var(--sans); font-size: .72em; font-style: normal; color: var(--ink-3); letter-spacing: .05em; }

.tail { font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-3); text-indent: 0; }

/* =====================================================================
 * 10. 公告 · 班级（第一栏行右栏）
 * ===================================================================== */
.lead-aside { display: flex; flex-direction: column; gap: calc(var(--cm) * 0.34); }
.panel { border: 1px solid var(--rule); background: var(--paper-2); padding: calc(var(--cm) * 0.26) calc(var(--cm) * 0.3) calc(var(--cm) * 0.28); }
.panel-title {
  font-family: var(--sans); font-size: var(--fs-note); font-weight: 700; letter-spacing: .2em;
  color: var(--ink); padding-bottom: calc(var(--cm) * 0.15); margin-bottom: calc(var(--cm) * 0.2);
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.panel-title::before { content: ""; width: .62em; height: .62em; background: var(--red); display: inline-block; flex: none; }

.briefs { list-style: none; }
.briefs li {
  font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2);
  padding: calc(var(--cm) * 0.15) 0 calc(var(--cm) * 0.15) calc(var(--cm) * 0.3);
  border-bottom: 1px dotted var(--rule);
  text-align: justify; position: relative;
}
.briefs li:last-child { border-bottom: none; padding-bottom: 0; }
.briefs li::before { content: "▪"; position: absolute; left: 0; color: var(--red); }
.briefs b { color: var(--ink); font-weight: 700; }

/* 天气 */
.wx-main { display: flex; align-items: center; gap: calc(var(--cm) * 0.26); padding: 2px 0 calc(var(--cm) * 0.2); }
.wx-icon { font-size: 2.3em; line-height: 1; }
.wx-temp { font-family: var(--sans); font-size: 2em; font-weight: 800; line-height: 1; color: var(--ink); }
.wx-temp span { font-size: .5em; font-weight: 400; color: var(--ink-3); }
.wx-desc { font-size: var(--fs-small); color: var(--ink-3); margin-top: 5px; letter-spacing: .03em; }
.wx-rows > div, .stats > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: var(--fs-small); padding: calc(var(--cm) * 0.1) 0; border-bottom: 1px dotted var(--rule);
}
.wx-rows > div:last-child, .stats > div:last-child { border-bottom: none; }
.wx-rows span, .stats span { color: var(--ink-3); }
.wx-rows b, .stats b { color: var(--ink); font-family: var(--sans); }
.stats i { font-style: normal; font-size: .86em; color: #2f7d4f; font-family: var(--sans); }
.stats i.down { color: var(--red); }

/* =====================================================================
 * 11. 第二 / 第三栏行的稿件
 * ===================================================================== */
.story { min-width: 0; }
.story-tag {
  display: inline-block;
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 700; letter-spacing: .24em; text-indent: .24em;
  color: #fff; background: var(--ink); padding: 2px 9px; margin-bottom: calc(var(--cm) * 0.18);
}
.story-head {
  font-family: var(--serif); font-size: var(--fs-head);
  font-weight: 800; line-height: 1.3; letter-spacing: .02em;
  margin-bottom: calc(var(--cm) * 0.14);
}
.story-deck { font-family: var(--kai); font-size: var(--fs-small); line-height: 1.72; color: var(--ink-3); margin-bottom: calc(var(--cm) * 0.1); }
.story-body { font-size: var(--fs-body); line-height: 1.88; }
.story-figure { margin: calc(var(--cm) * 0.22) 0 calc(var(--cm) * 0.26); }

/* ---- 「大字」栏：设计稿标注的「同上 大字」，用特大字号做评论/人物 ---- */
.story.big-type .story-body { font-size: var(--fs-big); line-height: 1.66; }
.story.big-type .story-body > p { text-indent: 2em; }
.story.big-type .story-head { font-size: calc(var(--fs-head) * 1.18); }
.story.big-type .story-body .dropcap { font-size: 2.5em; }
.story.wide .story-head { font-size: var(--fs-lead); }

/* ---- 公告栏里的「通知」框 ---- */
.side-head {
  font-family: var(--serif); font-size: var(--fs-note); font-weight: 700;
  line-height: 1.34; color: var(--ink); margin-bottom: calc(var(--cm) * 0.1);
}
.side-deck {
  font-family: var(--kai); font-size: var(--fs-small); line-height: 1.6;
  color: var(--ink-3); margin-bottom: calc(var(--cm) * 0.14);
}
.side-body { font-size: var(--fs-small); line-height: 1.76; color: var(--ink-2); }
.side-body > p { margin-bottom: .5em; text-align: justify; text-indent: 2em; }
.side-body > p:last-child { margin-bottom: 0; }

/* ---- 栏底小框：天气 ｜ 留言 ｜ 金句 ---- */
.rail-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--cm) * 3.1), 1fr));
  gap: var(--gap);
  margin-top: calc(var(--cm) * 0.45);
}
.rail-strip:empty { display: none; }
.letter p { font-family: var(--kai); font-size: var(--fs-small); line-height: 1.78; color: var(--ink-2); text-align: justify; }
.letter-from { display: block; text-align: right; font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-3); margin-top: calc(var(--cm) * 0.1); }
.panel-foot { font-size: var(--fs-small); color: var(--ink-3); margin-top: calc(var(--cm) * 0.16); padding-top: calc(var(--cm) * 0.12); border-top: 1px dotted var(--rule); }
.quote-day { font-family: var(--serif); font-size: var(--fs-note); line-height: 1.62; font-weight: 700; color: var(--ink); letter-spacing: .03em; }

/* 广告位 */
.ad { padding: 0; border: 2px solid var(--ink); background: var(--paper); }
.ad-label { font-family: var(--sans); font-size: var(--fs-small); letter-spacing: .28em; text-indent: .28em; color: var(--ink-3); border-bottom: 1px solid var(--rule); padding: 3px 0; text-align: center; }
.ad-box { padding: calc(var(--cm) * 0.34) calc(var(--cm) * 0.28); text-align: center; }
.ad-title { font-family: var(--serif); font-size: var(--fs-sub); font-weight: 900; letter-spacing: .1em; color: var(--ink); }
.ad-line { font-family: var(--sans); font-size: var(--fs-note); color: var(--red); margin-top: calc(var(--cm) * 0.16); letter-spacing: .06em; font-weight: 600; }
.ad-line.small { font-size: var(--fs-small); color: var(--ink-3); font-weight: 400; margin-top: calc(var(--cm) * 0.1); }

/* =====================================================================
 * 12. 报尾「编 后」—— 设计稿底部的通栏 2cm 条
 * ===================================================================== */
.postscript {
  margin-top: calc(var(--cm) * 0.5);
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: calc(var(--cm) * 0.24) 0 calc(var(--cm) * 0.26);
  min-height: calc(var(--cm) * 1.1);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(var(--cm) * 0.4);
  align-items: start;
}
.ps-label {
  font-family: var(--serif); font-size: var(--fs-sub); font-weight: 900;
  letter-spacing: .3em; text-indent: .3em; color: var(--red);
  writing-mode: vertical-rl; text-orientation: upright;
  line-height: 1.05; padding-top: 2px;
}
.ps-text { font-family: var(--kai); font-size: var(--fs-note); line-height: 1.88; color: var(--ink); text-align: justify; }
.ps-text b { color: var(--red); }
.ps-sign { display: block; text-align: right; font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-3); margin-top: calc(var(--cm) * 0.1); }

/* =====================================================================
 * 13. 分类信息
 * ===================================================================== */
.classifieds { padding-top: 2px; }
.cls-title { font-family: var(--sans); font-size: var(--fs-note); letter-spacing: .24em; text-indent: .24em; color: var(--ink); margin-bottom: calc(var(--cm) * 0.24); }
.cls-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.cls-col { border-top: 1px solid var(--rule); padding-top: calc(var(--cm) * 0.18); }
.cls-head { font-family: var(--sans); font-size: var(--fs-small); font-weight: 700; letter-spacing: .18em; color: var(--red); margin-bottom: calc(var(--cm) * 0.14); }
.cls-col p { font-size: var(--fs-small); line-height: 1.76; color: var(--ink-2); margin-bottom: calc(var(--cm) * 0.14); text-align: justify; }

/* =====================================================================
 * 14. 报尾版权
 * ===================================================================== */
.colophon { margin-top: calc(var(--cm) * 0.4); }
.cp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--cm) * 0.4);
  font-family: var(--sans); font-size: var(--fs-small); line-height: 1.92; color: var(--ink-3);
  padding-top: 4px;
}
.cp-grid b { color: var(--ink-2); }
.cp-note { margin-top: calc(var(--cm) * 0.28); padding-top: calc(var(--cm) * 0.18); border-top: 1px solid var(--rule); font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-3); text-align: center; letter-spacing: .03em; }

/* =====================================================================
 * 15. 手机：不再等比缩小（会看不清），改为放大重排
 *     保留同样的留白节奏、栏线、字号阶梯
 * ===================================================================== */
@media (max-width: 780px) {
  .paper {
    --w: 100vw;
    --cm: calc(100vw / 11.4);   /* 放大到手机可读的比例 */
    width: 100vw;
    padding: calc(var(--cm) * 0.72) calc(var(--cm) * 0.66) calc(var(--cm) * 0.9);
    box-shadow: none;
  }
  body { padding-bottom: 40px; }
  .paper::after { display: none; }
  .toolbar { width: 100vw; margin-bottom: 0; border-radius: 0; }

  .masthead { grid-template-columns: 1fr; gap: calc(var(--cm) * 0.3); text-align: center; min-height: 0; }
  .mh-left, .mh-right { text-align: center; }
  .mh-vert { writing-mode: horizontal-tb; max-height: none; border: none; padding: 0; letter-spacing: .28em; margin-bottom: 2px; }
  .mh-side { display: flex; flex-direction: column; gap: 2px; }
  .mh-left { order: 3; } .mh-center { order: 1; } .mh-right { order: 2; }
  .sections { gap: 4px calc(var(--cm) * 0.4); }
  .sec-meta { display: none; }

  /* 三栏 → 单栏堆叠 */
  .band-1, .band-2, .band-3 { grid-template-columns: 1fr; }
  .band-2 > .story + .story,
  .band-3 > .story + .story {
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--rule); padding-top: calc(var(--cm) * 0.5);
  }
  .cols { column-count: 1 !important; column-rule: none; }
  .halftone { aspect-ratio: 16 / 10; }

  .cls-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-grid { grid-template-columns: 1fr; }
  .rail-strip { grid-template-columns: 1fr; }
  .postscript { grid-template-columns: 1fr; }
  .ps-label { writing-mode: horizontal-tb; letter-spacing: .3em; }
}
@media (max-width: 430px) {
  .cls-grid { grid-template-columns: 1fr; }
  .tb-right { width: 100%; justify-content: space-between; }
  .toolbar { padding: 8px 12px; gap: 8px; }
}

/* =====================================================================
 * 16. 阅读进度条
 * ===================================================================== */
.read-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--red); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 60; transition: transform .08s linear;
}

/* =====================================================================
 * 17. 打印：真·21 × 29 开本，1:1 输出
 * ===================================================================== */
@media print {
  @page { size: 21cm 29cm; margin: 0; }
  html, body { background: #fff; padding: 0; margin: 0; }
  body[data-theme] { --paper: #fff; --paper-2: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --rule: #999; --red: #000; }

  /* 打印时把 --cm 钉死成物理 1cm */
  .paper {
    --w: 21cm;
    --cm: 1cm;
    --fs-title: 1.45cm; --fs-lead: .92cm; --fs-sub: .58cm; --fs-head: .56cm;
    --fs-big: .56cm; --fs-body: .494cm; --fs-note: .40cm; --fs-small: .30cm;
    --gap: .4cm; --col-gap: .4cm;
    width: 21cm !important;
    padding: 2cm 2cm 1.5cm !important;
    box-shadow: none; background: #fff;
    opacity: 1 !important; transform: none !important;
  }
  .paper::after, .paper::before { display: none; }
  .no-print, .toolbar, .read-progress { display: none !important; }
  .halftone::after { opacity: .1; }
  .cols { column-rule-color: #999; }
  a { color: inherit; text-decoration: none; }
  .story, .panel, .postscript, .cls-col, .halftone { break-inside: avoid; }
}
