/* ============================================================
   Postprint — COLUMN 编辑部
   ------------------------------------------------------------
   这站把 X 长文变成可排版的文档，所以整站是一次「排版房」：
   深墨蓝工作台 + 报纸白纸面 + 亮橙套色标记。纸面区域是主角，
   工具面板是配角 —— 与视频站的播放器结构完全不同。

   站群区隔：ClipDocky=衬线暖棕 / tweetvideosave=硬边电光橙青 /
   PinMosaic=画廊白紫大圆角 / SongFinder=蜜桃粉 /
   postprint=墨蓝工作台 + 报纸白纸面 + 亮橙套色。
   ============================================================ */

:root {
  /* 工作台：冷调墨蓝，让白纸面自然跳出来 */
  --paper: #eef1f7;
  --paper-2: #e3e8f2;
  --surface: #ffffff;
  --ink: #101a2e;
  --muted: #59637a;
  --line: #d3dae8;
  --line-strong: #b3bed3;
  --accent: #ff5c1a;
  --accent-deep: #e04304;
  --accent-ink: #fff6f1;
  --cyan: #0091b5;
  --ok: #0d7a5f;
  --warn: #9a6100;
  --err: #b42020;
  --shadow: 0 1px 2px rgba(16, 26, 46, 0.05), 0 10px 30px rgba(16, 26, 46, 0.08);
  --shadow-deep: 0 2px 6px rgba(16, 26, 46, 0.07), 0 22px 60px rgba(16, 26, 46, 0.13);
  /* 方形切角 + 小圆角：报纸裁切的直感，不是气泡感 */
  --radius: 6px;
  --radius-lg: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --grid-line: rgba(16, 26, 46, 0.07);
}

html[data-theme="dark"] {
  --paper: #0b101c;
  --paper-2: #111828;
  --surface: #161f31;
  --ink: #eef2fa;
  --muted: #96a2ba;
  --line: #26314a;
  --line-strong: #3a4763;
  --accent: #ff7a45;
  --accent-deep: #ff9166;
  --accent-ink: #180a03;
  --cyan: #35c3e6;
  --ok: #4ed3a6;
  --warn: #e0b055;
  --err: #ff8a80;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-deep: 0 2px 6px rgba(0, 0, 0, 0.55), 0 26px 64px rgba(0, 0, 0, 0.5);
  --grid-line: rgba(238, 242, 250, 0.06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 工作台的坐标纸底纹 —— 「我们在排版」的第一层暗示 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.4) 46%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.4) 46%, transparent 82%);
}

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
html[data-theme="dark"] a { color: var(--accent); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- 顶栏：一条橙线压顶，像报纸的套色标 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--accent);
}
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
/* 标记是一枚「套色方块」，带内白横线，像印刷色块 */
.brand .mark {
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 18px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .14s ease;
}
.brand:hover .mark { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.brand .bname { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.brand .btag {
  color: var(--muted); font-size: 12.5px;
  border-left: 2px solid var(--accent);
  padding-left: 11px; margin-left: 3px; max-width: 320px;
}

.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; padding: 9px 12px;
  border-radius: 4px; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .14s ease, border-color .14s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--accent-deep); border-bottom-color: var(--accent); font-weight: 600; }

/* 手机端折叠菜单（原生 details/summary，不依赖 JS） */
.navsm { display: none; position: relative; }
.navsm > summary {
  list-style: none; cursor: pointer; min-height: 40px; padding: 8px 13px;
  display: inline-flex; align-items: center; gap: 6px; border-radius: 4px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 13.5px;
}
.navsm > summary::-webkit-details-marker { display: none; }
.navsm > summary::after { content: "▾"; font-size: 11px; color: var(--muted); }
.navsm[open] > summary { border-color: var(--accent); }
.navsm-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 208px; padding: 6px; display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-deep);
}
.navsm-list a { padding: 10px 12px; border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 14px; }
.navsm-list a:hover { background: var(--paper-2); color: var(--accent-deep); }

.topactions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.langs {
  display: flex; gap: 2px; border: 1px solid var(--line-strong);
  border-radius: 4px; padding: 2px; background: var(--surface);
}
.langs a { font-size: 12.5px; padding: 6px 9px; border-radius: 3px; text-decoration: none; color: var(--muted); }
/* 缩写默认隐藏，只有窄屏才换上来（见 520px 断点） */
.lang-abbr { display: none; }
.langs a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.icon { font-size: 16px; line-height: 1; }

/* ---------- 按钮：切角 + 橙色按压 ---------- */
button, .btn {
  font: inherit; cursor: pointer;
  min-height: 44px; padding: 10px 17px; border-radius: var(--radius);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
button:hover, .btn:hover { border-color: var(--ink); transform: translateY(-1px); }
button:focus-visible, .btn:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
button.primary, .btn.primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--ink); font-weight: 650;
  box-shadow: 3px 3px 0 var(--ink);
}
button.primary:hover { background: var(--accent-deep); box-shadow: 4px 4px 0 var(--ink); }
button.primary:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
button[disabled] { opacity: .55; cursor: progress; }
.ghost { background: transparent; }

/* ---------- Hero：报纸头版 ---------- */
.hero {
  padding: 46px 0 30px;
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 7%, transparent) 0%,
    transparent 62%);
}
.hero-inner { display: grid; gap: 32px; grid-template-columns: 1fr; }
h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.8vw, 52px); line-height: 1.08;
  margin: 0 0 14px; letter-spacing: -.018em;
}
/* 首字下沉：报纸版的经典开场，直接给「排版房」定调 */
h1::first-letter {
  float: left;
  font-size: 3.05em;
  line-height: 0.84;
  padding: 0.06em 0.1em 0 0;
  color: var(--accent);
  font-weight: 700;
}
.lede {
  color: var(--muted); font-size: 17px; margin: 0 0 12px; max-width: 48ch;
  border-left: 3px solid var(--accent); padding-left: 14px;
}
.defaultfmt {
  color: var(--accent-deep); font-size: 13px; font-weight: 700; margin: 0;
  display: inline-flex; align-items: center; gap: 7px;
}
.defaultfmt::before { content: ''; width: 6px; height: 6px; background: var(--accent); flex: none; }
html[data-theme="dark"] .defaultfmt { color: var(--accent); }

/* 输入板：一台「录入台」，左上角橙色套色角标 */
.board {
  position: relative;
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--ink);
  padding: 22px;
}
.field {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.field::before { content: ''; width: 16px; height: 3px; background: var(--accent); flex: none; }
textarea {
  width: 100%; min-height: 100px; resize: vertical; padding: 14px 15px; border-radius: var(--radius);
  border: 1.5px solid var(--line-strong); background: var(--paper-2); color: var(--ink);
  font-family: var(--mono); font-size: 15px; line-height: 1.55;
}
textarea:focus { background: var(--surface); border-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin: 9px 0 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.actions .primary { margin-left: auto; min-width: 190px; }

.status {
  margin: 15px 0 0; padding: 11px 14px; border-radius: var(--radius);
  font-size: 14px; border: 1.5px dashed var(--line-strong);
  background: var(--paper-2); font-weight: 500;
}
.status[data-state="ok"] { border-color: var(--ok); color: var(--ok); border-style: solid; }
.status[data-state="partial"] { border-color: var(--warn); color: var(--warn); border-style: solid; }
.status[data-state="error"] { border-color: var(--err); color: var(--err); border-style: solid; }
.status .mini { min-height: 32px; padding: 4px 12px; font-size: 13px; margin-left: 10px; }
.spin {
  display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite;
  vertical-align: -1px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 工作台 ---------- */
.deck { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 34px 0 12px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card {
  position: relative;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow);
}
/* 每张卡的顶边留一段橙色套色标，像打印机的色标条 */
.card::before {
  content: ''; position: absolute; top: 0; left: 20px;
  width: 44px; height: 4px; background: var(--accent); border-radius: 0 0 2px 2px;
}
.card.export::before { background: var(--cyan); }
.card h2 {
  font-family: var(--serif); font-size: 17px; margin: 0 0 13px;
  letter-spacing: .01em; display: flex; align-items: center; gap: 9px;
}

.meta { display: grid; grid-template-columns: auto 1fr; gap: 7px 15px; margin: 0; font-size: 14px; }
.meta dt {
  color: var(--muted); font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding-top: 3px;
}
.meta dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.meta dd:has(a) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.meta dd a { word-break: break-all; }
.meta dd .mini { margin-left: auto; flex: 0 0 auto; padding: 4px 10px; font-size: 12.5px; min-height: 30px; }
.warn {
  margin: 13px 0 0; padding: 11px 13px; border-radius: var(--radius);
  background: var(--paper-2); border: 1.5px dashed var(--warn);
  color: var(--warn); font-size: 13.5px;
}

.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 10px; font-size: 14.5px; min-height: 44px; }
.opt input { width: 18px; height: 18px; accent-color: var(--accent); }

/* 图片挑选 */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 9px; }
.rev {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper-2); aspect-ratio: 1 / 1; cursor: pointer;
  transition: border-color .14s ease;
}
.rev:hover { border-color: var(--accent); }
.rev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rev input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; accent-color: var(--accent); }
.rev.is-off { opacity: .3; }
.rev .n {
  position: absolute; bottom: 4px; right: 6px; font-size: 11px; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8); font-variant-numeric: tabular-nums;
}
.rev-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 2px; }
.rev-actions button { min-height: 36px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.rev-actions .hint { margin: 0; font-variant-numeric: tabular-nums; }

/* 导出格式 */
.formats { display: grid; gap: 11px; }
.fmt {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 13px; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; background: var(--paper-2);
  transition: border-color .14s ease, background .14s ease;
}
.fmt .fl { font-weight: 700; font-size: 15px; }
.fmt .fd { color: var(--muted); font-size: 13px; grid-column: 1 / 2; }
.fmt button { grid-row: 1 / 3; grid-column: 2 / 3; min-width: 108px; }
.fmt.is-default { border-color: var(--accent); background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.fmt.is-busy { opacity: .7; }

/* ---------- 预览纸面：真正的「排版成品」 ----------
   这是本站的主角。白纸 + 深墨栏 + 橙色套色标，与工作台形成强对比。 */
.paper {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  padding: 34px 32px 44px;
  box-shadow: var(--shadow-deep);
  min-height: 240px;
}
/* 纸面顶部的胶条 + 套色标，做成「贴在稿纸上」的样机 */
.paper::before {
  content: '';
  position: absolute; top: -1px; left: 28px; right: 28px; height: 7px;
  background: linear-gradient(90deg, var(--accent) 0 34%, var(--cyan) 34% 58%, var(--line-strong) 58% 100%);
  border-radius: 0 0 3px 3px;
}
.pv-head {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  margin: 0 0 20px; font-family: var(--sans); font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.pv-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.empty {
  color: var(--muted); font-size: 14.5px; padding: 34px 20px; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--paper-2);
}
/* 排版正文：报头双细线 + 小节橙色竖线，像一份排好的稿子 */
.pv { max-width: 70ch; font-size: 16.5px; line-height: 1.78; overflow-wrap: anywhere; }
.pv h1, .pv h2, .pv h3 { font-family: var(--serif); line-height: 1.24; margin: 1.5em 0 .5em; letter-spacing: -.01em; }
.pv h1 {
  font-size: 29px; padding-bottom: 10px; border-bottom: 3px double var(--ink);
}
.pv h2 { font-size: 22px; padding-left: 13px; border-left: 5px solid var(--accent); }
.pv h3 { font-size: 18.5px; }
.pv p { margin: 0 0 1em; }
.pv blockquote {
  margin: 1.2em 0; padding: 3px 0 3px 18px;
  border-left: 4px solid var(--accent);
  color: var(--muted); font-style: italic;
  background: var(--paper-2);
}
.pv-fig { margin: 20px 0; }
.pv-fig img {
  max-width: 100%; height: auto; border-radius: var(--radius);
  border: 1.5px solid var(--line-strong); display: block;
  box-shadow: var(--shadow);
}
.pv-code {
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px;
  border-left: 4px solid var(--cyan);
}
.pv-postmeta {
  font-size: 11.5px; font-weight: 800; color: var(--accent-deep);
  letter-spacing: .12em; text-transform: uppercase;
  margin: 28px 0 8px; padding-top: 12px; border-top: 1px solid var(--line);
}
.pv-note { font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: 13px; }
.pv-list { padding-left: 22px; }
.pv-missing { color: var(--muted); font-size: 13px; font-style: italic; }
.pv-hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---------- 广告位 ---------- */
.ad { padding: 28px 0 6px; }
.ad-box {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  min-height: 92px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: 12.5px; background: var(--paper-2);
}
.ad-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 1px 5px;
  background: var(--surface);
}
.card .ad { padding: 16px 0 0; }

/* ---------- 说明区：四张「样张」 ---------- */
.blocks { padding: 52px 0 34px; }
.block-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.block {
  position: relative;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
}
/* 每张块左上角一个编号，像校样上的序号 */
.block::after {
  content: attr(data-n);
  position: absolute; top: 14px; right: 16px;
  font-family: var(--serif); font-size: 34px; font-weight: 700;
  color: var(--line); line-height: 1; pointer-events: none;
}
.block h2 {
  font-family: var(--serif); font-size: 20px; margin: 0 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
  display: inline-block;
}
.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.steps li::marker { color: var(--accent); font-weight: 700; font-family: var(--serif); }
.ticks, .dots { list-style: none; margin: 0; padding: 0; }
.ticks li, .dots li { position: relative; padding-left: 27px; margin-bottom: 11px; font-size: 15px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800;
}
.dots li::before {
  content: ""; position: absolute; left: 6px; top: 10px;
  width: 7px; height: 7px; background: var(--accent);
}
.faq { margin-top: 24px; }
.qa {
  border-top: 1px solid var(--line); padding: 0;
  transition: background .14s ease;
}
.qa[open] { background: var(--paper-2); }
.qa summary {
  cursor: pointer; font-weight: 650; font-size: 15.5px;
  padding: 16px 40px 16px 2px; position: relative; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 21px; font-weight: 400; color: var(--accent); line-height: 1;
}
.qa[open] summary::after { content: '\2212'; }
.qa p { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; max-width: 72ch; }

/* ---------- 法律页 ---------- */
.legalwrap { padding: 38px 0 64px; }
.narrow { max-width: 760px; }
.crumb { margin: 0 0 18px; font-size: 14px; }
.notice {
  background: var(--paper-2); border: 1.5px dashed var(--warn);
  border-radius: var(--radius); padding: 13px 15px; color: var(--warn); font-size: 14px;
}
.prose p { margin: 0 0 17px; font-size: 16.5px; line-height: 1.78; max-width: 72ch; }
.prose .mailto { word-break: break-all; font-weight: 600; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 3px double var(--ink); background: var(--surface);
  margin-top: 34px; padding: 38px 0 44px;
}
.footgrid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.fbrand {
  font-family: var(--serif); font-weight: 700; font-size: 19px; margin-bottom: 9px;
  display: flex; align-items: center; gap: 9px;
}
.fbrand::before { content: ''; width: 12px; height: 12px; background: var(--accent); border-radius: 2px; }
.fnote { color: var(--muted); font-size: 13px; max-width: 52ch; margin: 0 0 6px; }
.fhead {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  margin-bottom: 11px; font-weight: 700;
}
.footgrid a {
  display: block; color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 5px 0; min-height: 32px;
}
.footgrid a:hover { color: var(--accent-deep); }
.footbottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 40;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: var(--radius);
  font-size: 14px; box-shadow: var(--shadow-deep); opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
  border-left: 4px solid var(--accent);
}
.toast.on { opacity: 1; }

/* ---------- 热门内容：栏目页 ---------- */
.hero.slim { padding: 30px 0 24px; }
.sechead {
  font-family: var(--serif); font-size: 23px; margin: 38px 0 18px;
  padding-bottom: 11px; border-bottom: 3px double var(--ink);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.tgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.tcard {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tcard:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow-deep); }
.tbadge {
  align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 3px; padding: 3px 9px;
}
.ttitle {
  font-family: var(--serif); font-size: 19px; line-height: 1.32; margin: 0;
  letter-spacing: -.005em; overflow-wrap: anywhere;
}
.tcard:hover .ttitle { color: var(--accent-deep); }
.tintro { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.tmeta {
  margin: auto 0 0; padding-top: 11px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.empty-note {
  grid-column: 1 / -1; margin: 0; padding: 34px 0; text-align: center;
  color: var(--muted); font-size: 14.5px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
}
.scope-note { max-width: 76ch; margin-top: 11px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 30px 0 6px; flex-wrap: wrap; }
.pager-btn {
  text-decoration: none; font-size: 14.5px; padding: 9px 15px; border-radius: var(--radius);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  min-height: 40px; display: inline-flex; align-items: center;
}
.pager-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.pager-info { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ---------- 热门内容：详情页 ---------- */
.prefilled { margin: 9px 0 0; font-size: 13px; color: var(--ok); font-weight: 600; }
.block.wide { grid-column: 1 / -1; }
.prose-p { margin: 0; font-size: 16.5px; line-height: 1.78; max-width: 78ch; }
h3.sub {
  font-family: var(--serif); font-size: 15px; margin: 22px 0 11px;
  color: var(--muted); font-weight: 700;
  display: flex; align-items: center; gap: 9px;
}
h3.sub::before { content: ''; width: 14px; height: 2px; background: var(--accent); flex: none; }
.dlist { margin: 0; display: grid; gap: 0; }
.drow {
  display: grid; grid-template-columns: 1fr; gap: 3px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.drow:first-child { border-top: 0; padding-top: 0; }
.drow dt {
  color: var(--muted); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 700;
}
.drow dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 5px 12px;
  font-size: 13px; color: var(--muted); background: var(--paper-2);
  font-variant-numeric: tabular-nums;
}
.chip b { color: var(--ink); font-weight: 700; }
.chipnote { margin: 11px 0 0; font-size: 12.5px; color: var(--muted); }
.rellist { list-style: none; margin: 0; padding: 0; }
.rellist li {
  display: flex; gap: 13px; align-items: baseline; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px;
}
.rellist li:first-child { border-top: 0; }
.rellist a { overflow-wrap: anywhere; }
.rmeta { color: var(--muted); font-size: 12.5px; flex: 0 0 auto; white-space: nowrap; }
.faq > p:last-child { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }

/* ---------- 响应式 ---------- */
@media (min-width: 780px) {
  .block-grid { grid-template-columns: repeat(3, 1fr); }
  .footgrid { grid-template-columns: 1.6fr 1fr 1fr; }
  .drow { grid-template-columns: minmax(96px, auto) 1fr; gap: 4px 16px; align-items: baseline; }
  .drow dt { text-transform: none; font-size: 13px; }
}
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 44px; }
  .deck { grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); }
  .col.left { position: sticky; top: 82px; }
  .paper { padding: 46px 52px 56px; }
  /* 纸面保持单栏。CSS 多栏会把段落切成两半、左右串行读，读文档时体验比
     单栏差得多（实测右侧栏还常剩半截空白）。要「像报纸」靠版式细节，
     不靠分栏。 */
  .pv { max-width: 70ch; }
}
@media (max-width: 999px) {
  .brand .btag { display: none; }
  .bar { gap: 10px; }
  .nav {
    order: 3; flex-basis: 100%; margin: 0; padding-bottom: 2px;
    flex-wrap: wrap; overflow: visible; row-gap: 2px;
  }
  .bar { flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; }
  .topactions { margin-left: auto; }
}
@media (max-width: 520px) {
  .actions .primary { min-width: 0; width: 100%; order: -1; }
  .fmt { grid-template-columns: 1fr; }
  .fmt button { grid-row: 3; grid-column: 1; width: 100%; }
  .paper { padding: 24px 18px 28px; }
  .paper::before { left: 18px; right: 18px; }
  /* 五种语言全名在 300px 视口里必然撑破顶栏 —— 换成 ISO 缩写（EN/中/ES/PT/ID）。
     完整名称仍在 title 里，桌面端不受影响。 */
  .langs { gap: 0; }
  .langs a { padding: 6px 7px; font-size: 12px; }
  .lang-full { display: none; }
  .lang-abbr { display: inline; font-weight: 700; }
  .nav { display: none; }
  .navsm { display: block; margin-left: auto; }
  .topactions { margin-left: 6px; gap: 6px; }
  .bar { min-height: 58px; gap: 8px; }
  .icon { padding: 8px 10px; }
  /* 手机上纸面不做双栏，且让首字下沉别太大 */
  h1::first-letter { font-size: 2.5em; }
  .board { padding: 17px; box-shadow: 4px 4px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .foot, .ad, .blocks, .hero-copy, .actions, .toast { display: none !important; }
  .deck { display: block; }
  .paper { border: 0; box-shadow: none; }
}
