/* ==========================================================================
   泻火吧 · xiehuo.xyz
   牛皮纸底 + 深胡桃墨 + 靛蓝强调 + 芥黄标记。浅色底全站唯一，不写深色配色。
   ========================================================================== */

:root {
  /* 调色板 */
  --bg: #efe6d4;
  --bg-2: #e7dcc6;
  --surface: #faf5ea;
  --surface-2: #f3ebda;
  --text: #241d15;
  --text-muted: #6b5c47;
  --accent: #2c3e6b;
  --accent-ink: #f7f2e6;
  --border: #d3c5a8;
  --border-strong: #b8a684;
  --ring: #8a6f1f;
  --danger: #a8321f;
  --mark: #c08a1e;
  --info: #4a6b6f;
  --ok: #3f6b46;

  /* 字体 */
  --font-head: "Songti SC", "Source Han Serif SC", "Noto Serif SC", SimSun, serif;
  --font-body: "FangSong", "STFangsong", "仿宋", "Songti SC", "Noto Serif SC", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Cascadia Mono", "Noto Sans Mono", monospace;

  /* 字号 */
  --fs-h3: 20px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-micro: 12px;

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* 圆角与阴影 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-1: 0 1px 2px rgba(36, 29, 21, .06);
  --shadow-2: 0 2px 6px rgba(36, 29, 21, .09);
  --shadow-3: 0 6px 18px rgba(36, 29, 21, .12);

  /* 容器 */
  --container: 720px;
  --container-wide: 1160px;

  /* 动效 */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: 160ms;
  --cta-loop: 2.8s;
  --cta-seal: 2px;
  --cta-ink: rgba(192, 138, 30, .22);
  --cta-ease: cubic-bezier(.32, .72, .28, 1);
}

/* --------------------------------------------------------------- 基础 */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0;
  text-align: left;
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px) + var(--space-5));
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}

h1 { font-size: 34px; line-height: 1.25; }
h2 { font-size: 25px; }
h3 { font-size: 20px; line-height: 1.4; }

p { margin: 0; }
p + p { margin-top: .85em; }
ul, ol, dl, dd { margin: 0; }

img { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(44, 62, 107, .35);
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

strong { font-weight: 600; }

/* 容器 */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--space-4);
}

.wrap--wide { max-width: var(--container-wide); }

/* 跳到正文 */
.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip:focus { top: var(--space-2); }

/* --------------------------------------------------------------- 页头 */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-strong);
}

.masthead__top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
  min-height: 44px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.brand__name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .04em;
}

.masthead__tagline {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.burger {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 15px;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.burger:hover { background: var(--surface-2); }

.chipbar {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.chip:hover {
  background: var(--surface-2);
  color: var(--text);
  border-bottom-color: var(--border-strong);
}

.chip:active { background: var(--bg); }

.chip.is-here {
  color: var(--accent);
  border-bottom-color: var(--mark);
  background: var(--surface);
}

/* --------------------------------------------------------------- 区块 */

.section { padding-block: var(--space-7); }

.section + .section { border-top: 1px solid var(--border); }

.section--wide { background: var(--bg-2); }

.section h2 {
  position: relative;
  padding-left: 14px;
  max-width: 30em;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .22em;
  width: 3px;
  height: 15px;
  background: var(--mark);
}

.section__note {
  margin-top: var(--space-2);
  padding-left: 14px;
  max-width: 46em;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--text-muted);
}

.section > .wrap > * + *,
.section > .wrap--wide > * + * { margin-top: var(--space-6); }

.section > .wrap > p + p,
.section > .wrap > * + p,
.section > .wrap > p + ul,
.section > .wrap > p + ol,
.section > .wrap--wide > p + p,
.section > .wrap--wide > * + p { margin-top: var(--space-4); }

.section > .wrap > h2 + .section__note,
.section > .wrap--wide > h2 + .section__note { margin-top: var(--space-2); }

.subhead {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-3);
}

.subhead + .table-wrap { margin-top: 0; }

.subhead ~ .subhead { margin-top: var(--space-7); }

/* 首屏 */
.lede {
  padding-block: var(--space-8) var(--space-7);
  background: var(--bg);
  border-bottom: 1px solid var(--border-strong);
}

.lede__kicker {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--mark);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  color: var(--info);
}

.lede h1 {
  margin-top: var(--space-5);
  max-width: 24em;
}

.lede__text {
  margin-top: var(--space-5);
  max-width: 44em;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  color: var(--text);
}

/* 内页页头 */
.pagehead {
  padding-block: var(--space-7) var(--space-5);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-strong);
}

.pagehead h1 { max-width: 26em; }

.pagehead__note {
  margin-top: var(--space-4);
  max-width: 44em;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* --------------------------------------------------------------- 表格 */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.sheet {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}

.sheet caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.sheet th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
}

.sheet td {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.sheet tbody tr:first-child td { border-top: 0; }

.sheet__key {
  width: 12ch;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .01em;
}

.cell-title { font-family: var(--font-head); }

.sheet tr.is-picked td { background: rgba(192, 138, 30, .16); }

.sheet.filterable tbody tr {
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.sheet.filterable tbody tr:hover { background: var(--surface-2); }

/* 单据样本 */
.specimen {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.sheet-row {
  display: grid;
  grid-template-columns: 2.6ch minmax(0, 1fr);
  grid-template-areas:
    "num key"
    ".   val"
    ".   note";
  gap: var(--space-1) 10px;
  padding: var(--space-3) var(--space-4);
  border-top: 1px dashed var(--border);
}

.sheet-row:first-child { border-top: 0; }

.sheet-row__num {
  grid-area: num;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--mark);
}

.sheet-row__key {
  grid-area: key;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 600;
}

.sheet-row__val {
  grid-area: val;
  font-size: 15px;
}

.sheet-row__note {
  grid-area: note;
  font-size: 13px;
  color: var(--text-muted);
}

.sheet-row__note::before {
  content: "↳ ";
  color: var(--mark);
  font-family: var(--font-mono);
}

.specwrap { display: grid; gap: var(--space-6); }

.specwrap__sheet,
.specwrap__side { min-width: 0; }

.specwrap__label {
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  color: var(--info);
}

/* --------------------------------------------------------------- 列表件 */

.factlist {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  max-width: 52em;
}

.factlist__row {
  display: grid;
  grid-template-columns: 10ch minmax(0, 1fr);
  gap: var(--space-3);
  padding: 10px var(--space-4);
  border-top: 1px dashed var(--border);
}

.factlist__row:first-child { border-top: 0; }

.factlist dt {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
}

.factlist dd {
  font-size: 15px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.factlist.compact .factlist__row { padding: 8px var(--space-4); }

.notes {
  list-style: none;
  padding: 0;
  max-width: 46em;
}

.namelist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.namelist li {
  padding: 2px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.notes li {
  position: relative;
  padding-left: 1.7em;
}

.notes li + li { margin-top: var(--space-3); }

.notes li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--mark);
}

.hint {
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 46em;
}

.hint::before {
  content: "注";
  display: inline-block;
  margin-right: var(--space-2);
  padding: 0 4px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--info);
}

.calc {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.cards {
  display: grid;
  gap: var(--space-4);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-1);
}

.card h3 {
  font-size: 18px;
  line-height: 1.5;
}

.card p {
  margin-top: var(--space-2);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* 栏位卡 */
.field {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border-strong);
}

.field h3 { font-size: var(--fs-h3); }

.field__what { margin-top: var(--space-2); }

.field__note {
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.field__alt {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--info);
  overflow-wrap: anywhere;
}

/* 承诺对照 */
.pairs { border-top: 1px solid var(--border-strong); }

.pair {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.pair__claim {
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: var(--fs-body);
  color: var(--text-muted);
}

.pair__label {
  margin-right: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  color: var(--info);
}

.pair__real {
  margin-top: var(--space-3);
  max-width: 46em;
}

.pair__real::before {
  content: "实际是";
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  color: var(--danger);
}

/* 阶梯 */
.ladder {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.ladder__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.ladder__num {
  flex: 0 0 auto;
  padding: 2px var(--space-2);
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.ladder__step h3 { font-size: 17px; }

.ladder__step p {
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--text-muted);
}

/* 行话筛选 */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.filterbar label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  color: var(--info);
}

.filterbar input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 44px;
  padding: 0 var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
}

.filterbar input::placeholder { color: var(--text-muted); }

.filterbar__count {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text-muted);
}

.sheet tr.is-hidden { display: none; }

.filter-note {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* 索引网格 */
.boardgroup + .boardgroup { margin-top: var(--space-5); }

.boardgroup h3 {
  font-size: 17px;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-strong);
}

.boardgroup__cover {
  margin-top: var(--space-1);
  font-size: 13px;
  color: var(--text-muted);
}

.blockgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.blk {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.blk:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.blk__name {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--text);
}

.blk__note {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text-muted);
}

.cityrow,
.countryrow {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}

.cityrow:first-child,
.countryrow:first-child { border-top: 0; }

.cityrow h3,
.countryrow h3 { font-size: var(--fs-h3); }

.cityrow__meta,
.countryrow__meta {
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--info);
}

.cityrow p,
.countryrow p {
  margin-top: var(--space-2);
  max-width: 46em;
}

/* 两栏 */
.twocol { display: grid; gap: var(--space-5); }
.twocol > * { min-width: 0; }

/* --------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--border-strong); }

.faq details { border-bottom: 1px solid var(--border); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 44px;
  padding: var(--space-3) 0;
  font-family: var(--font-head);
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
}

.faq details[open] summary::after { content: "–"; }

.faq details[open] summary { color: var(--accent); }

.faq__body {
  padding-bottom: var(--space-4);
  max-width: 46em;
  font-size: 16px;
  line-height: 1.85;
}

.faq__body p + p { margin-top: .7em; }

/* --------------------------------------------------------------- 页脚 */

.foot {
  margin-top: var(--space-8);
  padding-block: var(--space-7);
  background: var(--bg-2);
  border-top: 1px solid var(--border-strong);
}

.foot__brand a {
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  color: var(--text);
  text-decoration: none;
}

.foot__brand p {
  margin-top: var(--space-2);
  max-width: 34em;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.footgroup h2 {
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--text-muted);
}

.footgroup ul {
  list-style: none;
  padding: 0;
  margin-top: var(--space-3);
}

.footgroup li + li { margin-top: var(--space-2); }

.footgroup a {
  font-size: var(--fs-small);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footgroup a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- 站级 CTA */

.site-cta {
  position: fixed;
  left: 50%;
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(480px, calc(100% - 28px));
  min-height: 60px;
  padding: 0 var(--space-5) 0 44px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid rgba(36, 29, 21, .28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  text-decoration: none;
  text-align: center;
  isolation: isolate;
  transition: background-color var(--dur) var(--ease);
}

.site-cta__text {
  position: relative;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: .02em;
}

/* 通道一：芥黄小章按下 */
.site-cta::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: var(--mark);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(36, 29, 21, .25);
  z-index: 2;
  animation: seal-press var(--cta-loop) var(--cta-ease) infinite;
}

/* 通道二：印泥洇色 */
.site-cta::after {
  content: "";
  position: absolute;
  left: -20px;
  top: -40%;
  width: clamp(90px, 30%, 220px);
  height: 180%;
  background: radial-gradient(circle at 30% 50%, var(--cta-ink), rgba(192, 138, 30, 0) 70%);
  opacity: 0;
  z-index: 1;
  animation: ink-bleed var(--cta-loop) var(--cta-ease) infinite;
}

.site-cta:hover { background: #253558; }

.site-cta:active { background: #1e2c49; }

.site-cta:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

@keyframes seal-press {
  0% { transform: translateY(0); }
  13% { transform: translateY(var(--cta-seal)); }
  26% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

@keyframes ink-bleed {
  0% { opacity: 0; }
  22% { opacity: .9; }
  58% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .site-cta::before {
    animation: none;
    transform: translateY(var(--cta-seal));
  }

  .site-cta::after {
    animation: none;
    opacity: .1;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}

/* --------------------------------------------------------------- 断点 */

/* 平板及以上 */
@media (min-width: 640px) {
  .wrap { padding-inline: var(--space-5); }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .blockgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .foot__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .site-cta { min-height: 60px; }

  .burger { display: none; }
}

/* 窄屏：抽屉式栏目 */
@media (max-width: 639px) {
  h1 { font-size: 26px; }

  .section { padding-block: var(--space-6); }

  .masthead__tagline { display: none; }

  .chipbar {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: var(--space-2);
  }

  .chipbar.is-open { display: flex; }

  .chip {
    justify-content: flex-start;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: var(--space-2) var(--space-2);
    font-size: 16px;
  }

  .chip.is-here { border-bottom-color: var(--mark); }

  .site-cta {
    width: auto;
    left: 14px;
    right: 14px;
    transform: none;
    min-height: 56px;
    padding-left: 36px;
    font-size: 16px;
  }

  .site-cta::before {
    width: 10px;
    height: 10px;
    margin-top: -5px;
    left: 14px;
  }

  .site-cta::after { width: clamp(60px, 34vw, 120px); }

  .site-cta__text { font-size: 16px; }

  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + var(--space-5)); }
}

/* 宽屏 */
@media (min-width: 860px) {
  .specwrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }

  .specwrap--single { grid-template-columns: minmax(0, 1fr); }

  .sheet-row {
    grid-template-columns: 2.6ch 11ch minmax(0, 1fr) minmax(0, .9fr);
    grid-template-areas: "num key val note";
    gap: var(--space-3);
    align-items: baseline;
  }

  .sheet-row__num { padding-top: 0; }

  .specwrap .sheet { min-width: 0; }
}

@media (min-width: 1080px) {
  .blockgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .twocol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
}

/* 打印机 */
@media print {
  .masthead,
  .site-cta,
  .skip { display: none; }

  body { padding-bottom: 0; background: #fff; }
}
