:root {
  --sand: #ece2cb;
  --sand-2: #e1d3b2;
  --paper: #faf6ea;
  --forest: #1d4a36;
  --forest-2: #2c6b4e;
  --ink: #1c221e;
  --ink-2: #4b534d;
  --ochre: #c48a22;
  --alert: #f2d7c0;
  --rule: 3px solid var(--ink);
  --f-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --f-num: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", var(--f-sans);
  --wide: 1180px;
  --prose: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 16px/1.8 var(--f-sans);
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--forest); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--forest-2); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
strong, b { font-weight: 700; }

.ps-skip { position: absolute; left: -9999px; top: 0; }
.ps-skip:focus { left: 12px; top: 12px; z-index: 9; background: var(--paper); padding: 6px 12px; border: var(--rule); }

/* —— 页眉 —— */
.ps-mast { border-bottom: var(--rule); background: var(--sand); }
.ps-mast-in {
  max-width: var(--wide); margin: 0 auto; padding: 10px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px;
}
.ps-mark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.ps-mark span { font: 700 22px/1 var(--f-num); letter-spacing: .08em; }
.ps-mark-svg { display: block; flex: none; }
.ps-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.ps-nav a { color: var(--ink); text-decoration: none; padding: 10px 0 7px; border-bottom: 3px solid transparent; display: inline-block; line-height: 1.6; }
.ps-nav a:hover { border-bottom-color: var(--ochre); }
.ps-nav a[aria-current="page"] { border-bottom-color: var(--forest); font-weight: 700; }

main { display: block; }

/* —— 首页海报 —— */
.ps-sheet { max-width: var(--wide); margin: 0 auto; padding: 0 16px 40px; }
.ps-poster {
  display: grid; gap: 16px 40px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "txt" "card" "fig" "lede";
  padding: 18px 0 28px; border-bottom: 6px solid var(--ink);
}
.ps-poster-txt { grid-area: txt; }
.ps-poster-card { grid-area: card; max-width: 560px; }
.ps-bignum { grid-area: fig; margin: 8px 0 0; }
.ps-lede { grid-area: lede; margin: 0; font-size: 17px; max-width: 46em; }
.ps-kicker {
  margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--forest);
  letter-spacing: .04em;
}
.ps-poster h1 {
  margin: 0; font-weight: 900; line-height: 1.22;
  font-size: clamp(23px, 6.4vw, 48px); letter-spacing: -.01em;
}
.ps-bignum-n {
  margin: 0; display: flex; align-items: flex-start; line-height: .82;
  font-family: var(--f-num); font-weight: 700; color: var(--forest);
}
.ps-bignum-n span { font-size: clamp(104px, 30vw, 236px); letter-spacing: -.03em; }
.ps-bignum-n small { font-size: clamp(46px, 12vw, 104px); color: var(--ochre); margin: .08em 0 0 .06em; }
.ps-bignum figcaption {
  margin-top: 12px; padding-top: 8px; border-top: var(--rule);
  font-size: 15px; font-weight: 700; max-width: 22em;
}

@media (min-width: 900px) {
  .ps-poster {
    grid-template-columns: minmax(0, 1.3fr) minmax(330px, .9fr);
    grid-template-areas: "txt card" "fig card" "lede lede";
    padding-top: 40px;
  }
  .ps-poster-card { align-self: start; max-width: none; }
  .ps-lede { font-size: 18px; }
}

/* —— 码卡 —— */
.ps-card {
  background: var(--paper); border: var(--rule); box-shadow: 8px 8px 0 var(--forest);
  padding: 14px 16px 12px; margin-right: 8px;
}
.ps-card-h { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); }
.ps-card-code { display: flex; align-items: stretch; gap: 10px; }
.ps-code {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  font: 700 clamp(28px, 8.5vw, 38px)/1 var(--f-num); letter-spacing: .12em;
  padding: 8px 10px; border: 2px dashed var(--ink); background: #fff;
  user-select: all; -webkit-user-select: all;
}
.ps-copy {
  flex: none; cursor: pointer; font: 700 16px/1 var(--f-sans);
  padding: 0 18px; min-height: 48px; color: var(--sand); background: var(--ink);
  border: var(--rule); border-radius: 0;
}
.ps-copy:hover { background: var(--forest); }
.ps-copy.is-done { background: var(--forest); }
.ps-gain { margin: 10px 0 10px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.ps-gain sup { color: var(--ochre); font-size: 14px; }
.ps-go {
  display: block; text-align: center; text-decoration: none;
  font: 700 17px/1.2 var(--f-sans); padding: 13px 12px;
  color: var(--sand); background: var(--forest); border: var(--rule);
}
.ps-go:hover { color: #fff; background: var(--forest-2); }
.ps-fine { margin: 9px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.ps-fine-star { margin-top: 4px; }
.ps-said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* —— 目录（窄屏在正文上方，宽屏贴右侧） —— */
.ps-toc { margin: 28px 0 8px; border: var(--rule); background: var(--paper); padding: 14px 16px 10px; }
.ps-toc-h { margin: 0 0 8px; font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ink-2); }
.ps-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; grid-template-columns: minmax(0, 1fr); }
.ps-toc li { border-top: 1px solid var(--sand-2); }
.ps-toc a { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; min-height: 44px; text-decoration: none; color: var(--ink); }
.ps-toc a b { font: 700 20px/1 var(--f-num); color: var(--forest); min-width: 1.6em; }
.ps-toc a:hover span { text-decoration: underline; }
@media (min-width: 760px) and (max-width: 1099px) { .ps-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ps-spread { display: block; }
@media (min-width: 1100px) {
  .ps-spread { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 64px; align-items: start; }
  .ps-spread > .ps-body { grid-column: 1; grid-row: 1; min-width: 0; }
  .ps-spread > .ps-toc {
    grid-column: 2; grid-row: 1; position: sticky; top: 18px; margin-top: 64px;
    max-height: calc(100vh - 36px); overflow-y: auto; box-shadow: 6px 6px 0 var(--sand-2);
  }
  .ps-spread > .ps-toc a { min-height: 0; padding: 8px 0; font-size: 15px; line-height: 1.45; }
  .ps-spread > .ps-toc a b { font-size: 17px; }
}

/* —— 正文 —— */
.ps-body { counter-reset: ch; }
.ps-body > * { max-width: var(--prose); }
.ps-home .ps-body { margin-top: 8px; }
.ps-body p, .ps-body li { font-size: 16.5px; }
.ps-body > h2 {
  counter-increment: ch; max-width: none;
  margin: 64px 0 18px; padding-top: 14px; border-top: 6px solid var(--ink);
  font-size: clamp(24px, 4.6vw, 36px); font-weight: 900; line-height: 1.25; scroll-margin-top: 12px;
}
.ps-home .ps-body > h2::before, .ps-notepage .ps-body > h2::before {
  content: counter(ch, decimal-leading-zero);
  display: block; margin-bottom: 6px;
  font: 700 clamp(76px, 17vw, 150px)/.8 var(--f-num); color: var(--forest); letter-spacing: -.03em;
}
.ps-notepage .ps-body > h2 { font-size: clamp(22px, 4vw, 30px); margin-top: 52px; }
.ps-notepage .ps-body > h2::before { font-size: clamp(60px, 12vw, 104px); }
.ps-body > h2.ps-h2-faq { counter-increment: none; }
.ps-body > h2.ps-h2-faq::before { content: "问"; font: 900 clamp(44px, 9vw, 72px)/1.05 var(--f-sans); margin-bottom: 10px; }
.ps-body h3 {
  margin: 34px 0 10px; font-size: 20px; font-weight: 800; line-height: 1.4; scroll-margin-top: 12px;
  padding-left: 16px; border-left: 6px solid var(--forest);
}
.ps-body ul, .ps-body ol { padding-left: 1.3em; }
.ps-body li { margin: 6px 0; }
.ps-body li::marker { color: var(--forest); font-weight: 700; }
.ps-body blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 6px solid var(--ochre); color: var(--ink-2); }

/* 表格：粗边框；两列表窄屏横滑，三列及以上窄屏改成一行一张卡片 */
.ps-table { max-width: none; margin: 18px 0 22px; overflow-x: auto; border: var(--rule); background: var(--paper); }
.ps-table table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.ps-table th, .ps-table td { padding: 10px 12px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.5; }
.ps-table th { background: var(--forest); color: var(--sand); font-weight: 700; border-right: 2px solid var(--sand-2); }
.ps-table td { border-top: 2px solid var(--ink); border-right: 2px solid var(--sand-2); }
.ps-table tr > :last-child { border-right: 0; }
.ps-table tbody tr:first-child td { font-weight: 700; background: #fff; }
@media (max-width: 640px) {
  .ps-table-cards { border: 0; background: none; overflow: visible; }
  .ps-table-cards table, .ps-table-cards tbody, .ps-table-cards tr, .ps-table-cards td { display: block; width: 100%; }
  .ps-table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ps-table-cards tr { border: var(--rule); background: var(--paper); margin: 0 0 12px; box-shadow: 5px 5px 0 var(--sand-2); }
  .ps-table-cards tbody tr:first-child td { background: transparent; font-weight: 400; }
  .ps-table-cards td { border: 0; border-top: 1px solid var(--sand-2); display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; padding: 8px 12px; }
  .ps-table-cards td:first-child { border-top: 0; background: var(--forest) !important; color: var(--sand); font-weight: 800; }
  .ps-table-cards td::before { content: attr(data-th); font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .ps-table-cards td:first-child::before { color: var(--sand-2); }
}

/* 算式小票 */
.ps-slip { margin: 18px 0 22px; max-width: 460px; background: #fff; border: 2px solid var(--ink); padding: 12px 16px 10px; }
.ps-slip figcaption { font-weight: 800; font-size: 15px; padding-bottom: 8px; border-bottom: 2px dashed var(--ink); }
.ps-slip dl { margin: 0; }
.ps-slip dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--sand-2); font-size: 15px; }
.ps-slip dt { color: var(--ink-2); }
.ps-slip dd { margin: 0; font-family: var(--f-num); font-weight: 700; text-align: right; }
.ps-slip .ps-slip-total { border-top: 4px double var(--ink); border-bottom: 0; margin-top: 4px; padding-top: 8px; }
.ps-slip .ps-slip-total dt { color: var(--ink); font-weight: 800; }
.ps-slip .ps-slip-total dd { color: var(--forest); font-size: 18px; }

/* 注册步骤 */
.ps-steps { list-style: none; padding: 0 !important; margin: 18px 0 24px; }
.ps-steps li { margin: 0 0 12px; padding: 12px 14px 12px 16px; background: var(--paper); border: 2px solid var(--ink); border-left: 10px solid var(--forest); }
.ps-step-n { margin: 0; font: 700 14px/1.2 var(--f-num); color: var(--forest); letter-spacing: .06em; }
.ps-step-name { margin: 4px 0 4px; font-weight: 800; font-size: 17px !important; }
.ps-step-text { margin: 0; }

/* 提示块：四种 */
.ps-note { margin: 26px 0 24px; padding: 16px 16px 12px; border: var(--rule); background: var(--paper); position: relative; }
.ps-note-k {
  position: absolute; top: -14px; left: 12px; margin: 0; padding: 2px 10px;
  font: 800 13px/1.5 var(--f-sans); letter-spacing: .12em; background: var(--ink); color: var(--sand);
}
.ps-note-h { font-weight: 800; margin: 4px 0 4px !important; font-size: 17px !important; }
.ps-note-b > p { margin: 6px 0; }
.ps-note-b > ul, .ps-note-b > ol { margin: 6px 0; }
.ps-note-tip .ps-note-k { background: var(--forest); }
.ps-note-warn { background: #f7eccb; }
.ps-note-warn .ps-note-k { background: var(--ochre); color: var(--ink); }
.ps-note-risk { background: var(--alert); border-color: #7a2a12; }
.ps-note-risk .ps-note-k { background: #7a2a12; }
.ps-note-risk .ps-note-h { color: #7a2a12; }
.ps-note-check { background: #fff; border-style: dashed; }
.ps-note-check .ps-note-k { background: var(--sand-2); color: var(--ink); }
.ps-note-check ul { padding-left: 1.7em; }
.ps-note-check li { list-style: none; position: relative; }
.ps-note-check li::before { content: ""; position: absolute; left: -24px; top: .42em; width: 13px; height: 13px; border: 2px solid var(--forest); }

/* 状态分流块：左边是屏幕上那句话，右边是该怎么做 */
.ps-state { margin: 18px 0 20px; display: grid; grid-template-columns: minmax(0, 1fr); border: var(--rule); background: var(--paper); }
.ps-state-screen { background: var(--ink); color: var(--sand); padding: 12px 14px; }
.ps-state-tag { margin: 0 0 4px !important; font-size: 12px !important; letter-spacing: .1em; color: var(--sand-2); }
.ps-state-label { margin: 0 !important; font: 700 17px/1.45 var(--f-sans); }
.ps-state-label::before { content: "「"; color: var(--ochre); }
.ps-state-label::after { content: "」"; color: var(--ochre); }
.ps-state-do { padding: 10px 16px 8px; }
.ps-state-do > p { margin: 6px 0; }
@media (min-width: 700px) {
  .ps-state { grid-template-columns: 240px minmax(0, 1fr); }
  .ps-state-screen { padding: 14px 16px; }
}

/* 截图 / 自绘图 / 并排 */
.ps-shot, .ps-fig { margin: 22px 0 26px; }
.ps-shot-frame { border: var(--rule); background: #fff; padding: 6px; box-shadow: 8px 8px 0 var(--sand-2); }
.ps-shot img, .ps-fig img { display: block; width: 100%; height: auto; }
.ps-shot figcaption, .ps-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); padding-left: 12px; border-left: 3px solid var(--ochre); }
.ps-shot-phone { max-width: 300px; }
.ps-shot-phone .ps-shot-frame { border-radius: 26px; padding: 12px 8px; background: var(--ink); box-shadow: 8px 8px 0 var(--forest); }
.ps-shot-phone img { border-radius: 14px; }
.ps-fig img { border: 2px solid var(--ink); }
.ps-pair { margin: 22px 0 26px; display: grid; gap: 14px 22px; grid-template-columns: minmax(0, 1fr); }
.ps-pair > p { margin: 0 !important; font-weight: 800; font-size: 15px !important; }
.ps-pair .ps-shot, .ps-pair .ps-fig { margin: 0; }
@media (min-width: 700px) {
  .ps-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .ps-pair > .ps-pair-l { grid-column: 1; grid-row: 1; }
  .ps-pair > .ps-pair-r { grid-column: 2; grid-row: 1; }
}

/* 依据 */
.ps-basis { margin: 34px 0 10px; padding: 12px 16px; border-top: var(--rule); border-bottom: var(--rule); background: var(--sand-2); font-size: 15px; }
.ps-basis-h { margin: 0 0 4px; font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.ps-basis p { font-size: 15px; margin: 4px 0; }

/* 问答 */
.ps-faq { margin: 12px 0 0; counter-reset: q; }
.ps-qa { counter-increment: q; padding: 14px 0 12px; border-bottom: 2px solid var(--ink); }
.ps-qa:first-child { border-top: 2px solid var(--ink); }
.ps-qa dt { font-weight: 800; font-size: 17.5px; line-height: 1.5; display: block; }
.ps-qa dt::before { content: counter(q, decimal-leading-zero); display: inline-block; min-width: 2.2em; font: 700 20px/1 var(--f-num); color: var(--forest); }
.ps-qa dd { margin: 6px 0 0 2.6em; font-size: 16.5px; }
@media (max-width: 520px) { .ps-qa dd { margin-left: 0; } }

.ps-byline { margin-top: 48px; padding-top: 12px; border-top: var(--rule); font-size: 14px; color: var(--ink-2); max-width: var(--prose); }

/* 码卡在文章正文里：横排 */
.ps-body .ps-card { margin: 28px 8px 30px 0; max-width: 640px; }
@media (min-width: 700px) {
  .ps-body .ps-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4px 20px; align-items: center; }
  .ps-body .ps-card > .ps-card-h { grid-column: 1 / -1; }
  .ps-body .ps-card > .ps-card-code { grid-column: 1; }
  .ps-body .ps-card > .ps-gain { grid-column: 2; grid-row: 2; margin: 0; }
  .ps-body .ps-card > .ps-go { grid-column: 1 / -1; margin-top: 10px; }
  .ps-body .ps-card > .ps-fine { grid-column: 1 / -1; }
}

/* —— 首页「最近写的和改过的」带 —— */
.ps-latest { background: var(--forest); color: var(--sand); border-top: 6px solid var(--ink); margin-top: 24px; }
.ps-latest-in { max-width: var(--wide); margin: 0 auto; padding: 30px 16px 34px; }
.ps-latest .ps-kicker { color: var(--ochre); }
.ps-latest-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 14px; }
.ps-latest-h .ps-kicker { flex-basis: 100%; margin: 0; }
.ps-latest-h h2 { margin: 0; font-size: clamp(24px, 4.4vw, 34px); font-weight: 900; }
.ps-latest-all { color: var(--sand); font-weight: 700; padding: 10px 0; }
.ps-latest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
.ps-latest-list li { border-top: 2px solid rgba(236, 226, 203, .4); }
.ps-latest-list a { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; color: var(--sand); text-decoration: none; }
.ps-latest-list time { grid-row: 1 / span 2; font: 700 20px/1.2 var(--f-num); color: var(--ochre); }
.ps-latest-list b { font-size: 17px; line-height: 1.45; }
.ps-latest-list span { font-size: 14px; opacity: .85; line-height: 1.6; }
.ps-latest-list a:hover b { text-decoration: underline; }
@media (min-width: 860px) { .ps-latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* —— 文章页 —— */
.ps-ahead { padding: 18px 0 22px; border-bottom: 6px solid var(--ink); }
.ps-ahead h1 { margin: 0; font-size: clamp(26px, 6vw, 46px); font-weight: 900; line-height: 1.22; max-width: 22em; }
.ps-dek { margin: 14px 0 0; font-size: 18px; line-height: 1.7; max-width: 38em; color: var(--ink); }
.ps-afoot { max-width: var(--prose); margin-top: 40px; }
.ps-related { margin-top: 30px; }
.ps-related h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.ps-related ol { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.ps-related li { border-bottom: 2px solid var(--ink); }
.ps-related a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); }
.ps-related b { display: block; font-size: 17px; }
.ps-related span { display: block; font-size: 14.5px; color: var(--ink-2); }
.ps-related a:hover b { text-decoration: underline; }
.ps-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.ps-tags span { font-weight: 700; margin-right: 4px; }
.ps-tags a, .ps-tags i { font-style: normal; padding: 9px 12px; border: 2px solid var(--ink); background: var(--paper); text-decoration: none; color: var(--ink); line-height: 1.4; }
.ps-tags a { background: var(--forest); color: var(--sand); border-color: var(--forest); }
.ps-tags a:hover { background: var(--forest-2); color: #fff; }
.ps-tags i { border-style: dashed; color: var(--ink-2); }
.ps-cover { margin: 20px 0 0; }
.ps-cover img { display: block; width: 100%; height: auto; border: var(--rule); }
.ps-cover figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* —— 栏目页 / 标签页 / 题目总表 —— */
.ps-listsheet { padding-bottom: 40px; }
.ps-lhead { padding: 18px 0 20px; border-bottom: 6px solid var(--ink); margin-bottom: 4px; }
.ps-lhead-grid { display: grid; gap: 10px 40px; grid-template-columns: minmax(0, 1fr); align-items: end; }
.ps-lhead h1 { margin: 0; font-size: clamp(28px, 6.4vw, 52px); font-weight: 900; line-height: 1.15; }
.ps-intro { font-size: 16px; max-width: 40em; }
.ps-intro p { margin: 10px 0 0; }
.ps-count { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.ps-count b { font: 700 clamp(64px, 16vw, 132px)/.8 var(--f-num); color: var(--forest); letter-spacing: -.03em; }
.ps-count span { font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
@media (min-width: 860px) { .ps-lhead-grid { grid-template-columns: minmax(0, 1fr) auto; } }
.ps-rows { list-style: none; margin: 0; padding: 0; }
.ps-rows li { border-bottom: 2px solid var(--ink); }
.ps-rows a { display: grid; gap: 2px 24px; grid-template-columns: minmax(0, 1fr); padding: 14px 2px; text-decoration: none; color: var(--ink); }
.ps-rows a time { font: 700 14px/1.6 var(--f-num); color: var(--forest); letter-spacing: .04em; }
.ps-rows a b { font-size: 18px; line-height: 1.45; }
.ps-rows a span { color: var(--ink-2); font-size: 15px; }
.ps-rows a:hover b { text-decoration: underline; }
@media (min-width: 760px) {
  .ps-rows a { grid-template-columns: 8.5em minmax(0, 1fr); }
  .ps-rows a time { grid-row: 1 / span 2; padding-top: 3px; }
  .ps-rows a b, .ps-rows a span { grid-column: 2; }
}
.ps-terms { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.ps-terms li { display: flex; }
.ps-terms a { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; padding: 14px 16px; border: var(--rule); background: var(--paper); box-shadow: 6px 6px 0 var(--sand-2); text-decoration: none; color: var(--ink); }
.ps-terms em { grid-row: 1 / span 2; font: 700 44px/1 var(--f-num); font-style: normal; color: var(--forest); }
.ps-terms b { font-size: 18px; }
.ps-terms span { font-size: 14.5px; color: var(--ink-2); }
@media (min-width: 760px) { .ps-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ps-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 22px; padding: 4px 0; border-top: var(--rule); border-bottom: var(--rule); }
.ps-pager a { font-weight: 800; text-decoration: none; padding: 12px 4px; }
.ps-pager > :last-child { text-align: right; }
.ps-pager-at { font: 700 14px/1.4 var(--f-num); color: var(--ink-2); text-align: center; }

/* —— 站务页 —— */
.ps-col { max-width: 1060px; margin: 0 auto; padding: 18px 16px 48px; }
.ps-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.ps-crumbs a { color: var(--ink-2); display: inline-block; padding: 10px 0; margin: -10px 0; }
.ps-phead { border-bottom: 6px solid var(--ink); padding-bottom: 14px; margin-bottom: 20px; }
.ps-phead h1 { margin: 0; font-size: clamp(26px, 6vw, 42px); font-weight: 900; line-height: 1.25; }
.ps-pdate { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.ps-plain-grid { display: block; }
.ps-plain-rail { display: none; }
@media (min-width: 960px) {
  .ps-plain-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 56px; align-items: start; }
  .ps-plain-rail { display: block; position: sticky; top: 18px; border-top: var(--rule); padding-top: 8px; }
  .ps-plain-rail p { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); }
  .ps-plain-rail a { display: block; padding: 7px 0 7px 12px; color: var(--ink); text-decoration: none; border-left: 4px solid transparent; }
  .ps-plain-rail a:hover { border-left-color: var(--ochre); }
  .ps-plain-rail a[aria-current="page"] { border-left-color: var(--forest); font-weight: 800; }
}
.ps-body-plain > h2 { margin: 36px 0 10px; padding-top: 10px; border-top: var(--rule); font-size: 22px; }
.ps-body-plain > h2::before { content: none; }
.ps-404 .ps-rows { border-top: var(--rule); }

/* —— 页脚 —— */
.ps-foot { background: var(--forest); color: var(--sand); margin-top: 40px; border-top: 6px solid var(--ink); }
.ps-foot-in { max-width: var(--wide); margin: 0 auto; padding: 28px 16px 22px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.ps-foot a { color: var(--sand); }
.ps-foot-id p { margin: 12px 0 0; font-size: 14px; line-height: 1.75; max-width: 46em; }
.ps-mark-foot { color: var(--sand); }
.ps-foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; font-size: 14px; align-content: start; }
.ps-foot-nav a { display: block; padding: 11px 0; line-height: 1.6; }
.ps-foot-end { margin: 0; font-size: 13px; opacity: .85; grid-column: 1 / -1; border-top: 1px solid rgba(236, 226, 203, .35); padding-top: 12px; }
@media (min-width: 860px) {
  .ps-foot-in { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.ps-has-latest .ps-foot { margin-top: 0; }

@media (max-width: 380px) {
  .ps-nav { font-size: 14px; gap: 2px 12px; }
  .ps-copy { padding: 0 12px; }
}
@media print {
  .ps-mast, .ps-foot, .ps-toc, .ps-go, .ps-copy, .ps-latest { display: none; }
  body { background: #fff; }
}
