/* ultraleonis.com · 副刊风（2026-10 改版）
   用到这份样式的页面：<head> 里依次引用 /assets/serif.css、/assets/ul.css、/assets/theme.js。
   还没改版的页面继续用 site.css，两份互不影响。
   配色：四套，默认纯白墨绿；访客点报头右上角的小圆点切换，theme.js 记在浏览器里。
   字体：标题和正文用思源宋体子集（tools/build_serif.py 生成 serif.css），小字用系统黑体。 */

/* ---------- 配色 ---------- */
:root, [data-p="green"] { --paper: #FFFFFF; --paper2: #FFFFFF; --ink: #141414; --soft: #45484A; --muted: #8C8F8E; --rule: #141414; --hair: #E6E6E3; --red: #24493B; --kick: #24493B; --hi: #B0883F; --block: #1F3A30; --block-ink: #F2F0EA; --block-soft: #B6C2BB; --block-kick: #9DB0A6; }
[data-p="ivory"] { --paper: #F6F4EF; --paper2: #FFFFFF; --ink: #16161A; --soft: #44454B; --muted: #8A8A8F; --rule: #16161A; --hair: #E1DED6; --red: #9C2F22; --kick: #8A8A8F; --hi: #9C2F22; --block: #24262B; --block-ink: #F3F1EC; --block-soft: #B9B8B3; --block-kick: #8E8D88; }
[data-p="navy"] { --paper: #EDECE8; --paper2: #F7F6F3; --ink: #1B1D22; --soft: #474A52; --muted: #868891; --rule: #1B1D22; --hair: #D6D4CE; --red: #22304D; --kick: #22304D; --hi: #A9833F; --block: #22304D; --block-ink: #F1EFEA; --block-soft: #B4BACB; --block-kick: #8F98AE; }
[data-p="dark"] { --paper: #141416; --paper2: #1C1C1F; --ink: #ECEAE4; --soft: #B5B3AD; --muted: #7D7C78; --rule: #ECEAE4; --hair: #2E2E32; --red: #C9A46A; --kick: #C9A46A; --hi: #C9A46A; --block: #1F1F23; --block-ink: #ECEAE4; --block-soft: #A9A7A1; --block-kick: #C9A46A; color-scheme: dark; }
:root {
  --tint: color-mix(in srgb, var(--block) 6%, var(--paper));
  --serif: "UL Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
[data-p="dark"] { --tint: #1C1C1F; }

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 48px 48px; }
.kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; color: var(--kick); font-weight: 600; }
.sys { font-family: var(--sans); } /* 访客写的、实时读出来的字不在子集里，用系统字体 */
.fun { font-family: "UL Fun", var(--serif); font-weight: 400; } /* 站酷快乐体，只在玩具箱：页面另外引用 /assets/fun.css */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seal { display: inline-flex; flex: none; align-items: center; justify-content: center; background: var(--red); color: #fff; letter-spacing: 0; border-radius: 3px; }

/* ---------- 配色小圆点 ---------- */
.theme { display: inline-flex; align-items: center; gap: 7px; }
.theme button { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 1px solid var(--hair); cursor: pointer; background: linear-gradient(135deg, var(--sw-a) 50%, var(--sw-b) 50%); }
.theme button[aria-pressed="true"] { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.theme button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.theme [data-v="green"] { --sw-a: #FFFFFF; --sw-b: #24493B; }
.theme [data-v="ivory"] { --sw-a: #F6F4EF; --sw-b: #9C2F22; }
.theme [data-v="navy"]  { --sw-a: #EDECE8; --sw-b: #22304D; }
.theme [data-v="dark"]  { --sw-a: #141416; --sw-b: #C9A46A; }

/* ---------- 首页报头 ---------- */
.mast { padding-top: 28px; text-align: center; }
.mast .line { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .06em; padding-bottom: 14px; }
.mast .line .r { display: flex; align-items: center; gap: 14px; }
.mast h1 { margin: 6px 0 4px; font-size: 76px; font-weight: 900; letter-spacing: .12em; line-height: 1.1; display: inline-flex; align-items: center; gap: 22px; }
.mast h1 .seal { width: 46px; height: 46px; font-size: 28px; transform: translateY(-4px); }
.mast .sub { font-size: 16px; color: var(--soft); letter-spacing: .3em; margin-bottom: 18px; }
.rule2 { border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); height: 6px; }
.mast nav { display: flex; justify-content: center; gap: 36px; padding: 12px 0; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .1em; border-bottom: 1px solid var(--rule); }

/* ---------- 内页顶栏 ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 14px; }
.bar .brand { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 900; letter-spacing: .1em; }
.bar .brand .seal { width: 30px; height: 30px; font-size: 18px; border-radius: 2px; }
.bar nav { display: flex; gap: 28px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.bar nav a[aria-current] { color: var(--red); }

/* ---------- 页脚 ---------- */
.foot { margin-top: 64px; padding-top: 14px; border-top: 3px double var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 区块标题 ---------- */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 28px 0 14px; border-bottom: 1px solid var(--rule); }
.sec-h h2 { font-size: 26px; font-weight: 900; letter-spacing: .12em; }
.sec-h a, .sec-h span { font-family: var(--sans); font-size: 13px; font-weight: 600; }
.sec-h span { color: var(--muted); font-weight: 400; }

/* ---------- 首页 ---------- */
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.intro p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--soft); }
.now-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--block); color: var(--block-ink); font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.now-btn:hover { color: var(--block-ink); background: var(--red); }
[data-p="dark"] .now-btn { box-shadow: inset 0 0 0 1px var(--hair); }
.now-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hi); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .now-btn .dot { animation: none; } }
.now-btn .fresh { position: absolute; top: -10px; right: -10px; background: var(--hi); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 1px 7px; border-radius: 2px; white-space: nowrap; }

.lead { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); padding: 36px 0; border-bottom: 1px solid var(--rule); }
.lead .story { padding-right: 40px; border-right: 1px solid var(--hair); }
.lead h2 { margin: 12px 0 18px; font-size: 64px; font-weight: 900; line-height: 1.12; letter-spacing: .02em; }
.lead .dek { font-size: 22px; line-height: 1.7; color: var(--soft); margin: 0 0 20px; }
.lead .by { font-family: var(--sans); font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.lead .by b { color: var(--ink); font-weight: 600; }
.lead .read { display: inline-block; margin-top: 22px; font-family: var(--sans); font-size: 14px; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.lead .toc { padding-left: 36px; }
.lead .toc h3 { margin: 0 0 14px; font-family: var(--sans); font-size: 12px; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.lead .toc ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.lead .toc li { counter-increment: c; display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--hair); font-size: 18px; }
.lead .toc li::before { content: counter(c, decimal-leading-zero); font-family: var(--sans); font-size: 12px; color: var(--red); font-weight: 600; }
.lead .toc .also { margin-top: 26px; }
.lead .toc .also a { display: block; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 16px; line-height: 1.5; }
.lead .toc .also a span { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); }
/* 同一天发两篇：两篇并排，不带目录 */
.lead.pair { grid-template-columns: 1fr 1fr; }
.lead.pair .story + .story { padding: 0 0 0 40px; border-right: 0; }
.lead.pair h2 { font-size: 44px; }
.lead.pair .dek { font-size: 19px; }

.cols2 { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.col2 { padding: 32px 0 34px 36px; display: flex; flex-direction: column; gap: 12px; }
.col2 h2 { font-size: 40px; font-weight: 900; letter-spacing: .04em; }
.col2 p { margin: 0; font-size: 17px; line-height: 1.85; color: var(--soft); }
.col2.dark { background: var(--block); color: var(--block-ink); padding: 32px; margin: 0 36px 0 0; }
.col2.dark:hover { color: var(--block-ink); }
.col2.dark p { color: var(--block-soft); }
.col2.dark .kicker { color: var(--block-kick); }
[data-p="dark"] .col2.dark { box-shadow: inset 0 0 0 1px var(--hair); }
.col2 .nums { display: flex; gap: 30px; margin-top: 6px; }
.col2 .nums div { display: flex; flex-direction: column; }
.col2 .nums strong { font-size: 34px; font-weight: 400; line-height: 1.1; }
.col2 .nums span { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.col2.dark .nums span { color: var(--block-kick); }
.col2 .go { margin-top: auto; padding-top: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; }

.toys { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.toys a { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.toys a + a { border-left: 1px solid var(--hair); }
.toys .n { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 600; }
.toys b { font-size: 22px; font-weight: 900; }
.toys span:last-child { font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.6; }

.lower { display: grid; grid-template-columns: 1.25fr 1fr 1fr; }
.lower > section { padding: 0 28px 10px; border-left: 1px solid var(--hair); }
.lower > section:first-child { padding-left: 0; border-left: 0; }
.lower > section:last-child { padding-right: 0; }
.lower .sec-h { border-bottom: 2px solid var(--rule); }
.lower .sec-h h2 { font-size: 20px; }
.list a.item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px dotted var(--hair); }
.list .item b { font-size: 17px; font-weight: 900; }
.list .item .st { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 600; align-self: center; grid-column: 2; grid-row: 1; }
.list .item .st.on { color: var(--ink); }
.list .item span:not(.st) { grid-column: 1 / -1; font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.6; }
.list a.item:hover b { color: var(--red); }
/* 碎碎念、书影音、简报：内容实时读取，用系统字体 */
.ssl a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dotted var(--hair); }
.ssl .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ssl time { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.ssl p { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ssl a:hover p { color: var(--red); }
.ssl img { flex: none; width: 48px; height: 48px; object-fit: cover; display: block; }
.syl a { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dotted var(--hair); }
.syl .k { flex: none; font-family: var(--sans); font-size: 11px; color: var(--muted); border: 1px solid var(--hair); padding: 0 6px; border-radius: 2px; line-height: 1.7; }
.syl b { flex: 1; min-width: 0; font-family: var(--sans); font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.syl a:hover b { color: var(--red); }
.syl .r { flex: none; font-family: var(--sans); font-size: 12px; color: var(--hi); letter-spacing: 1px; }
.syl .r.on { color: var(--red); letter-spacing: 0; }
.ssl .ph, .syl .ph { display: block; padding: 12px 0; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.more { display: inline-block; margin-top: 10px; font-family: var(--sans); font-size: 13px; font-weight: 600; }

/* ---------- 列表页（博客等） ---------- */
.page-head { padding: 56px 0 30px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.page-head h1 { margin: 12px 0 14px; font-size: 64px; font-weight: 900; letter-spacing: .08em; line-height: 1.1; }
.page-head p { margin: 0; font-size: 19px; line-height: 1.8; color: var(--soft); max-width: 34em; }
.page-head .count { text-align: right; }
.page-head .count strong { display: block; font-size: 56px; font-weight: 400; line-height: 1; }
.page-head .count span { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.post-list .sec-h { margin-top: 24px; }
.post-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 32px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--hair); }
.post-row .date { font-family: var(--sans); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.post-row .date b { font: 400 26px var(--serif); color: var(--ink); line-height: 1.1; }
.post-row .body { display: flex; flex-direction: column; gap: 8px; }
.post-row .tags { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--kick); font-weight: 600; }
.post-row h2 { font-size: 28px; line-height: 1.35; font-weight: 900; }
.post-row p { margin: 0; font-size: 16px; line-height: 1.85; color: var(--soft); }
.post-row .go { font-family: var(--sans); color: var(--muted); padding-top: 8px; }
.post-row:hover h2, .post-row:hover .go { color: var(--red); }
.post-row.soon h2, .post-row.soon p { color: var(--muted); }
.empty-row { padding: 22px 0; font-family: var(--sans); font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--hair); }

/* ---------- 文章页 ---------- */
.layout { display: grid; grid-template-columns: 180px minmax(0, 680px) 180px; justify-content: center; gap: 56px; }
.art-head { padding: 64px 0 34px; border-bottom: 1px solid var(--hair); margin-bottom: 40px; }
.art-head h1 { margin: 16px 0 22px; font-size: 46px; font-weight: 900; line-height: 1.2; letter-spacing: .02em; }
.art-head .lede { margin: 0 0 26px; font-size: 21px; line-height: 1.8; color: var(--soft); }
.art-head .by { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.art-head .by b { color: var(--ink); font-weight: 600; }

article.post { font-size: 19px; line-height: 2.05; color: var(--ink); display: flex; flex-direction: column; gap: 1.25em; }
article.post p { margin: 0; text-align: justify; }
article.post > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: 1; font-weight: 900; margin: .1em .12em 0 0; color: var(--red); }
article.post a { text-decoration: underline; text-decoration-color: var(--hair); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
article.post a:hover { text-decoration-color: currentColor; }
article.post b, article.post strong { font-weight: 900; }
article.post h2 { margin: 1.2em 0 0; font-size: 27px; font-weight: 900; line-height: 1.35; display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 24px; }
article.post h2 .n { flex: none; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: .08em; }
article.post ul, article.post ol { margin: 0; padding-left: 1.4em; }
article.post .pull { margin: .6em 0; padding: 26px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 24px; line-height: 1.75; font-weight: 900; text-align: left; }
article.post > :last-child.pull::after, article.post > p:last-child::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .4em; background: var(--red); vertical-align: .05em; }
article.post .sum { margin-top: .6em; padding: 24px 28px; background: var(--tint); font-size: 17px; line-height: 1.95; }
article.post .sum > b:first-child { display: block; font-size: 20px; margin-bottom: 8px; letter-spacing: .06em; }
article.post .sum > b:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--hi); margin-right: 10px; vertical-align: .2em; }
/* 配图、表格、注释 */
article.post .fig { margin: .4em 0; display: flex; flex-direction: column; gap: 12px; }
article.post .fig .cap { font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
.fig .panel { background: var(--tint); padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; line-height: 1.7; }
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.65; }
.cmp th, .cmp td { border-bottom: 1px solid var(--hair); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.cmp thead th { border-bottom: 1.5px solid var(--rule); font-weight: 900; font-size: 16px; }
.cmp tbody th { font-weight: 900; }
.cmp .na { color: var(--muted); }
article.post .cmp-note { font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: -.6em; text-align: left; }
article.post ul.tips { display: flex; flex-direction: column; gap: 8px; }
article.post .refs { font-family: var(--sans); font-size: 13px; line-height: 1.9; color: var(--muted); text-align: left; }
article.post .refs a { color: inherit; }

/* 左侧目录，宽屏才有 */
.toc-side { position: sticky; top: 32px; align-self: start; margin-top: 64px; font-family: var(--sans); font-size: 13px; }
.toc-side h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.toc-side a { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair); color: var(--muted); line-height: 1.5; }
.toc-side a b { font-weight: 600; }
.toc-side a.on { color: var(--ink); }
.toc-side a.on b { color: var(--red); }

/* 上一篇 / 下一篇 */
.pn { display: grid; grid-template-columns: 1fr 1fr; margin: 56px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pn > * { padding: 18px 0; display: flex; flex-direction: column; gap: 4px; }
.pn > * + * { padding-left: 24px; border-left: 1px solid var(--hair); text-align: right; align-items: flex-end; }
.pn small { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.pn b { font-size: 19px; }
.pn span b { color: var(--muted); font-weight: 400; }
.back { display: inline-block; margin-top: 16px; font-family: var(--sans); font-size: 13px; font-weight: 600; }

/* ---------- 碎碎念、书影音、近况等页面共用 ---------- */
/* 筛选按钮一排 */
.chips { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--rule); align-self: flex-start; }
.chips button { font: 600 13px var(--sans); letter-spacing: .04em; padding: 0 14px; min-height: 34px; background: transparent; color: var(--ink); border: 0; cursor: pointer; }
.chips button + button { border-left: 1px solid var(--rule); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* 加载、出错的提示 */
.status { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.status.err { color: var(--red); font-weight: 600; }
/* 站长登记表单（?write 才出现） */
.oform { display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; background: var(--tint); font-family: var(--sans); }
.oform b.t { font: 900 22px var(--serif); letter-spacing: .06em; }
.oform label, .oform .fld { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.oform input, .oform textarea { font: 16px/1.7 var(--sans); color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; padding: 8px 10px; width: 100%; outline: none; }
.oform input:focus, .oform textarea:focus { border-bottom-color: var(--red); }
.oform input[type="date"] { max-width: 12em; }
.oform textarea { min-height: 96px; resize: vertical; }
.oform .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.oform .len { font-size: 12px; color: var(--muted); }
.oform .go { font: 600 14px var(--sans); letter-spacing: .08em; color: var(--block-ink); background: var(--block); border: 0; padding: 11px 22px; min-height: 44px; cursor: pointer; }
.oform .go:hover { background: var(--red); }
[data-p="dark"] .oform .go { box-shadow: inset 0 0 0 1px var(--hair); }
.oform .go:disabled { opacity: .5; cursor: wait; }
.oform .link { font: 12px var(--sans); background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.oform .note { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.oform code { font: 13px var(--mono); word-break: break-all; background: var(--paper); padding: 8px 10px; display: block; }
/* 列表页正文区：题头下面一栏，最宽 820 */
.page-body { max-width: 820px; margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- 平板 ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 680px); }
  .toc-side, .layout > .spacer { display: none; }
}
@media (max-width: 980px) {
  .lower { grid-template-columns: 1fr 1fr; }
  .lower > section:last-child { grid-column: 1 / -1; padding: 0; border-left: 0; }
}

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px 40px; }
  .theme { gap: 10px; }
  .theme button { width: 22px; height: 22px; }
  .mast .line > span:nth-child(2), .mast .line .date { display: none; }
  .mast h1 { font-size: 48px; gap: 14px; }
  .mast h1 .seal { width: 34px; height: 34px; font-size: 20px; }
  .mast .sub { font-size: 13px; letter-spacing: .16em; }
  .mast nav { gap: 0; justify-content: space-between; letter-spacing: .04em; }
  .bar { flex-wrap: wrap; gap: 12px; padding: 16px 0 12px; }
  .bar .brand { font-size: 22px; }
  .bar nav { order: 3; width: 100%; justify-content: space-between; gap: 0; letter-spacing: .02em; }
  .intro { flex-direction: column; align-items: flex-start; gap: 14px; }
  .intro p { font-size: 15px; }
  .lead, .lead.pair { grid-template-columns: 1fr; padding: 26px 0; }
  .lead .story, .lead.pair .story + .story { padding: 0; border-right: 0; }
  .lead.pair .story + .story { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--hair); }
  .lead h2 { font-size: 42px; }
  .lead.pair h2 { font-size: 32px; }
  .lead .dek { font-size: 18px; }
  .lead .toc { padding-left: 0; margin-top: 28px; }
  .cols2 { grid-template-columns: 1fr; }
  .col2.dark { margin: 24px 0 0; padding: 26px 20px; }
  .col2 { padding: 28px 0; }
  .col2 h2 { font-size: 32px; }
  .toys { grid-template-columns: 1fr 1fr; }
  .toys a:nth-child(3) { border-left: 0; }
  .toys a:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .toys a { padding: 18px 14px; }
  .toys b { font-size: 19px; }
  .lower { grid-template-columns: 1fr; }
  .lower > section, .lower > section:last-child { padding: 0; border-left: 0; }
  .page-head { grid-template-columns: 1fr; padding: 36px 0 24px; }
  .page-head h1 { font-size: 44px; }
  .page-head p { font-size: 16px; }
  .page-head .count { text-align: left; }
  .page-head .count strong { font-size: 40px; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .post-row .date { flex-direction: row; align-items: baseline; gap: 8px; padding: 0; }
  .post-row .date b { font-size: 17px; }
  .post-row h2 { font-size: 22px; }
  .post-row p { font-size: 15px; }
  .post-row .go { display: none; }
  .art-head { padding: 36px 0 26px; margin-bottom: 28px; }
  .art-head h1 { font-size: 36px; line-height: 1.3; }
  .art-head .lede { font-size: 17px; }
  article.post { font-size: 17.5px; line-height: 2; }
  article.post h2 { font-size: 22px; }
  article.post .pull { font-size: 19px; padding: 20px 0; }
  article.post .sum { padding: 20px 18px; font-size: 16px; }
  .fig .panel { padding: 18px 16px; }
  .cmp { font-size: 13px; }
  .cmp th, .cmp td { padding: 8px 6px 8px 0; }
  .oform { padding: 20px 18px; }
  .page-body { margin-top: 24px; }
  .pn { grid-template-columns: 1fr; }
  .pn > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); text-align: left; align-items: flex-start; }
}
