@charset "UTF-8";
/* ==========================================================================
   法度网 · 全站样式（零 CDN：系统字体栈 + 内联 SVG 图标 + 本地 SVG 图片）
   版式语言：陶土沙纸底 + 深咖啡墨 + 砖红 + 青瓷绿，「档案台账 / 编年轴」结构
   --------------------------------------------------------------------------
   目录
   01 设计令牌        02 复位与基础      03 排版原子
   04 通用组件        05 页头与导航      06 首页模块
   07 内页 banner     08 列表页          09 文章页
   10 页脚与移动底栏  11 响应式（统一置于文件末尾，避免 source order 反压）
   ========================================================================== */

/* ---------------------------------------------------------------- 01 令牌 */
:root {
  --ink: #241c16;
  --ink-2: #4b3f36;
  --muted: #6f6157;          /* 浅底三级文字（对 #f4efe7 ≈ 5.2:1） */
  --paper: #f4efe7;
  --paper-2: #faf7f2;
  --card: #ffffff;
  --line: #e3d9cc;
  --line-2: #cdbfae;

  --brand: #a8442a;
  --brand-deep: #8a3520;     /* 浅底上的砖红文字（≈7.0:1） */
  --brand-soft: #f7e7e0;

  --accent: #37806b;
  --accent-deep: #2a6a57;    /* 浅底上的青绿文字（≈5.6:1） */

  --dark: #2d2320;
  --dark-2: #3a2d27;
  --on-dark: #f6f1ea;
  --on-dark-2: #c9bcaf;      /* 深底三级文字（≈8.2:1） */
  --brand-lt: #e0865e;       /* 深底上的暖橙（≈5.6:1） */
  --accent-lt: #7cc7ab;      /* 深底上的青绿（≈7.7:1） */

  --danger: #b3261e;
  --danger-deep: #8c1d18;

  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --shadow: 0 1px 2px rgba(45, 35, 32, .05), 0 14px 30px -20px rgba(45, 35, 32, .45);
  --radius: 6px;
  --dur: .26s;
}

/* ---------------------------------------------------------- 02 复位与基础 */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;                       /* 防横向溢出，且不破坏 sticky */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

/* 图片用块级；内联 svg 单独处理——绝不与 img 同写一条规则，
   否则无 width/height 的内联 svg 会被撑成 100% 宽并强制换行 */
img, video { max-width: 100%; height: auto; display: block; border: 0; }
svg { display: inline-block; vertical-align: -.125em; flex: 0 0 auto; }

/* 图标精灵容器必须彻底不占位，否则 svg 会以默认 300×150 撑开页面顶部 */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 图标：width/height 必须成对，任何组件级尺寸覆盖也要成对 */
svg.i { width: 1em; height: 1em; max-width: none; }

a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* 跳转链接用 clip 隐藏，不用负定位（负定位会在溢出审计里变成假阳性）；
   padding 必须为 0，否则 1px×1px 的盒子会被 padding 撑成 36×20，浮在页头左上进行遮挡 */
.skip {
  position: absolute; top: 0; left: 0; z-index: 200;
  padding: 0; background: var(--brand); color: #fff; text-decoration: none;
  clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden;
}
.skip:focus { clip: auto; width: auto; height: auto; padding: 10px 18px; }

/* 唯一容器类：只控制宽度与居中，不写 padding ——
   这样任何修饰类都可以安全使用 padding 简写而不会把左右内边距清零 */
.wrap { width: min(100% - 40px, 1220px); margin-inline: auto; }

/* ---------------------------------------------------------- 03 排版原子 */
.sec-head {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 30px;
}
.sec-head__main { min-width: 0; }
.sec-head__no {
  display: block; font-family: var(--mono); font-size: .75rem;
  letter-spacing: .22em; color: var(--brand-deep); margin-bottom: 8px;
}
.sec-head__title {
  position: relative; padding-bottom: 12px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2rem);
}
.sec-head__title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 42px; height: 2px; background: var(--brand);
}
.sec-head__sub { margin: 10px 0 0; color: var(--muted); font-size: .9375rem; max-width: 44em; }
.sec-head__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9375rem; color: var(--brand-deep);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.sec-head__more:hover { border-color: currentColor; text-decoration: none; }
.sec-head--sm { margin-bottom: 20px; }
.sec-head--sm .sec-head__title { font-size: 1.3125rem; }

.meta { display: inline-flex; align-items: center; gap: .35em; font-size: .8125rem; color: var(--muted); }
.meta svg.i { width: 14px; height: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .22em .68em; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .8125rem; line-height: 1.6; color: var(--ink-2); background: transparent;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.chip:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-deep); }
.chip--brand { background: var(--brand-soft); border-color: #edcec2; color: var(--brand-deep); }
.chip--plain { border-style: dashed; }
.chip.is-active { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }

.sec-head--sm { margin-bottom: 20px; }

/* ---------------------------------------------------------- 04 通用组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .62em 1.2em; border: 1px solid transparent; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600; line-height: 1.45; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur), border-color var(--dur), color var(--dur), transform var(--dur);
}
.btn:hover { text-decoration: none; }
.btn svg.i { width: 1.1em; height: 1.1em; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-deep); color: #fff; }
.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--dark:hover { background: #1c1512; color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(246, 241, 234, .42); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--brand-lt); color: #fff; }
.btn--lg { padding: .8em 1.55em; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.section { padding-block: 72px; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .sec-head__title { color: var(--on-dark); }
.section--dark .sec-head__title::after { background: var(--brand-lt); }
.section--dark .sec-head__no { color: var(--accent-lt); }
.section--dark .sec-head__sub { color: var(--on-dark-2); }
.section--dark .sec-head__more { color: var(--on-dark); }
.section--dark .meta { color: var(--on-dark-2); }

/* -------------------------------------------------------- 05 页头与导航 */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--dark); }
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  padding-block: 12px;
}
.topbar__rule {
  display: block; height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 34%, rgba(168, 68, 42, .18) 100%);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 42px; height: 42px; flex: 0 0 auto; }
.brand__text { display: grid; min-width: 0; }
.brand__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--on-dark); letter-spacing: .06em; }
.brand__sub { font-family: var(--mono); font-size: .625rem; letter-spacing: .24em; color: var(--on-dark-2); }

.nav { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__item { flex: 0 0 auto; }
.nav__link {
  position: relative; display: inline-flex; align-items: center;
  padding: 12px 14px; font-size: .9375rem; color: #e8dfd4; border-radius: var(--radius);
  transition: color var(--dur), background var(--dur);
}
.nav__link:hover { color: #fff; background: rgba(246, 241, 234, .08); text-decoration: none; }
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--brand-lt); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }

.nav__foot { display: none; }
.nav__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-2); font-family: var(--mono); font-size: .875rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 0;
  width: 42px; height: 42px; margin-left: auto;
  border: 1px solid rgba(246, 241, 234, .3); border-radius: var(--radius);
  background: transparent; color: var(--on-dark); cursor: pointer;
}
.nav-toggle svg.i { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }
.site-header.is-open .nav-toggle__open { display: none; }
.site-header.is-open .nav-toggle__close { display: inline-block; }

.topbar__side { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; margin-left: auto; }
.topbar__tel { display: inline-flex; align-items: center; gap: 7px; color: #e8dfd4; font-family: var(--mono); font-size: .875rem; }
.topbar__tel:hover { color: #fff; text-decoration: none; }
.topbar__tel svg.i { width: 15px; height: 15px; color: var(--brand-lt); }

/* 抽屉导航折叠：max-height:0 只写在 is-collapsible 下，
   无 JS（脚本没跑）时导航必须仍然完整可见可点 */
.nav__foot { flex-direction: column; gap: 10px; padding: 14px 0 4px; }

/* ------------------------------------------------------------ 06 首页 */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero__deco { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; pointer-events: none; }
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 48px; align-items: start; padding-block: 64px 44px;
}
.hero__text { min-width: 0; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 18px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .2em;
  color: var(--brand-lt); text-transform: uppercase;
}
.hero__kicker svg.i { width: 16px; height: 16px; }
.hero__title {
  font-family: var(--serif); font-weight: 700; letter-spacing: .01em;
  font-size: clamp(2rem, 1.15rem + 3.2vw, 3.2rem); line-height: 1.28;
  color: #fff; text-wrap: balance;   /* 避免末行只剩一两个字（寡行） */
}
.hero__mark { color: var(--brand-lt); box-shadow: inset 0 -.16em 0 rgba(224, 134, 94, .32); }
.hero__lead { margin: 20px 0 0; color: var(--on-dark-2); font-size: 1rem; max-width: 34em; }
.hero__search {
  display: flex; align-items: center; gap: 8px;
  margin: 26px 0 0; padding: 8px 8px 8px 16px;
  background: rgba(246, 241, 234, .07);
  border: 1px solid rgba(246, 241, 234, .18); border-radius: var(--radius);
  max-width: 560px;
}
.hero__search > svg.i { width: 18px; height: 18px; color: var(--on-dark-2); flex: 0 0 auto; }
.hero__input {
  flex: 1 1 auto; min-width: 0; padding: 8px 0; border: 0; background: transparent;
  color: var(--on-dark); font: inherit; font-size: .9375rem;
}
.hero__input::placeholder { color: #a99c90; }
.hero__input:focus { outline: none; }
.hero__search:focus-within { border-color: var(--brand-lt); }
.hero__submit { flex: 0 0 auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero__board {
  min-width: 0; padding: 22px 22px 18px;
  background: rgba(246, 241, 234, .055);
  border: 1px solid rgba(246, 241, 234, .16); border-radius: var(--radius);
}
.hero__board-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 6px; padding-bottom: 14px; border-bottom: 1px solid rgba(246, 241, 234, .16);
}
.hero__board-title { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; color: #fff; }
.hero__board-sub { font-family: var(--mono); font-size: .625rem; letter-spacing: .2em; color: var(--on-dark-2); }
.hero__board-list { list-style: none; }
.board__item { border-bottom: 1px dashed rgba(246, 241, 234, .16); }
.board__item:last-child { border-bottom: 0; }
.board__item a {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px;
  padding: 13px 2px; color: var(--on-dark); transition: background var(--dur);
}
.board__item a:hover { text-decoration: none; background: rgba(246, 241, 234, .06); }
.board__date { display: block; font-family: var(--mono); font-size: .75rem; color: var(--brand-lt); padding-top: 3px; }
.board__title { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.6; }
.board__item a:hover .board__title { color: #fff; }
.board__cat { display: block; grid-column: 2; font-size: .75rem; color: var(--on-dark-2); }
.hero__board-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: .875rem; color: var(--brand-lt);
}
.hero__board-more svg.i { width: 15px; height: 15px; }

.hero__stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none; padding-block: 20px 30px;
  border-top: 1px solid rgba(246, 241, 234, .16);
}
.hero__stat { padding-inline: 22px; border-left: 1px solid rgba(246, 241, 234, .14); }
.hero__stat:first-child { border-left: 0; padding-left: 0; }
.hero__num { display: block; font-family: var(--mono); font-size: 1.5rem; color: var(--brand-lt); line-height: 1.3; }
.hero__lab { display: block; font-size: .8125rem; color: var(--on-dark-2); }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.cat-card { min-width: 0; }
.cat-card__link {
  position: relative; display: grid; gap: 5px;
  height: 100%; padding: 22px 20px 18px 22px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line-2);
  border-radius: var(--radius); transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.cat-card__link::after {
  content: ''; position: absolute; left: -3px; top: -1px; bottom: -1px; width: 3px;
  background: var(--brand); transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur) ease-out;
}
.cat-card__link:hover {
  text-decoration: none; transform: translateY(-3px);
  border-color: var(--line-2); box-shadow: var(--shadow);
}
.cat-card__link:hover::after { transform: scaleY(1); }
.cat-card__no { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; color: var(--brand-deep); }
.cat-card__icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 4px 0 6px; border: 1px solid #edcec2; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-deep); }
.cat-card__icon svg.i { width: 20px; height: 20px; }
.cat-card__name { display: block; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.cat-card__desc { display: block; font-size: .875rem; color: var(--muted); line-height: 1.65; }
.cat-card__count { display: block; margin-top: 6px; font-family: var(--mono); font-size: .8125rem; color: var(--accent-deep); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.post-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow var(--dur), transform var(--dur);
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { display: block; overflow: hidden; background: var(--paper-2); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform var(--dur) ease-out; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.post-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.post-card__tag { font-size: .75rem; color: var(--accent-deep); font-family: var(--mono); letter-spacing: .06em; }
.post-card__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.6; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brand-deep); text-decoration: none; }
.post-card__excerpt { margin: 0; font-size: .875rem; color: var(--ink-2); line-height: 1.7; }
.post-card__foot { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

.axis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 56px; }
.axis { position: relative; list-style: none; padding-left: 26px; }
.axis::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: 18px; width: 2px; background: rgba(224, 134, 94, .3); }
.axis__item { position: relative; padding-bottom: 24px; }
.axis__item::before {
  content: ''; position: absolute; left: -24px; top: 8px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand-lt);
  box-shadow: 0 0 0 3px var(--dark), 0 0 0 4px rgba(224, 134, 94, .38);
}
.axis__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 4px; }
.axis__date { font-family: var(--mono); font-size: .8125rem; color: var(--brand-lt); }
.axis__cat { font-size: .75rem; color: var(--on-dark-2); border: 1px solid rgba(246, 241, 234, .22); border-radius: 999px; padding: 1px 9px; }
.axis__title { font-size: 1.0313rem; font-weight: 700; line-height: 1.6; }
.axis__title a { color: var(--on-dark); }
.axis__title a:hover { color: var(--brand-lt); text-decoration: none; }
.axis__desc { margin: 6px 0 0; font-size: .875rem; color: var(--on-dark-2); line-height: 1.7; }

.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; list-style: none; border-top: 1px solid var(--line); }
.ledger__item { min-width: 0; border-bottom: 1px solid var(--line); }
.ledger__item a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px;
  align-items: baseline; padding: 16px 8px 15px; border-radius: var(--radius);
  transition: background var(--dur), padding var(--dur);
}
.ledger__item a:hover { background: var(--paper-2); text-decoration: none; }
.ledger__no { display: block; font-family: var(--mono); font-size: .8125rem; color: var(--brand-deep); }
.ledger__title { display: block; font-size: .9688rem; font-weight: 600; color: var(--ink); line-height: 1.6; }
.ledger__item a:hover .ledger__title { color: var(--brand-deep); }
.ledger__meta { display: block; grid-column: 2 / 4; font-size: .8125rem; color: var(--muted); }
.ledger__date { display: block; grid-row: 1; grid-column: 3; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.step { min-width: 0; padding: 4px 26px 4px 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step__no { display: block; font-family: var(--mono); font-size: .875rem; color: var(--muted); }
.step__icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin: 10px 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--card); color: var(--brand);
}
.step__icon svg.i { width: 22px; height: 22px; }
.step__name { font-size: 1.0625rem; font-weight: 700; }
.step__text { margin: 8px 0 0; font-size: .875rem; color: var(--ink-2); line-height: 1.7; }

/* ---- 表单区：浅色底 + 白卡（避开深底白卡的同色隐形问题） ---- */
.section--form { background: var(--paper-2); border-block: 1px solid var(--line); }
.form-wrap { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 48px; align-items: start; }
.form-intro { min-width: 0; }
.form-intro__text { margin: 4px 0 18px; color: var(--ink-2); }
.form-intro__list { list-style: none; display: grid; gap: 10px; }
.form-intro__list li { display: flex; gap: 9px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); }
.form-intro__list svg.i { width: 17px; height: 17px; margin-top: 4px; color: var(--accent-deep); }
.form-intro__note {
  display: flex; gap: 9px; align-items: flex-start; margin: 20px 0 0; padding: 13px 15px;
  background: #fbf3e6; border-left: 3px solid #c99a3f; color: #6d4c11; font-size: .875rem;
}
.form-intro__note svg.i { width: 16px; height: 16px; margin-top: 3px; flex: 0 0 auto; }

.form-card {
  min-width: 0; padding: 26px 26px 22px;
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand);
  border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--ink);                       /* 显式声明，防继承外部浅色文字 */
}
.form-card__title { font-size: 1.25rem; color: var(--ink); }
.form-card__sub { margin: 6px 0 18px; font-size: .8125rem; color: var(--muted); }
.form-card__sub .req { color: var(--brand); }

.form-alert { display: block; margin: 0 0 16px; padding: 12px 15px; border-left: 3px solid var(--brand); background: var(--brand-soft); color: var(--brand-deep); font-size: .875rem; border-radius: 0 var(--radius) var(--radius) 0; }
.form-alert[hidden] { display: none; }
.form-alert.is-ok { border-color: var(--accent); background: #e9f3ee; color: var(--accent-deep); }
.form-alert.is-err { border-color: var(--danger); background: #fdecea; color: var(--danger-deep); }

.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.field__label .req { color: var(--brand); }
.field__input {
  width: 100%; padding: .7em .9em; font: inherit; font-size: .9375rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field__input::placeholder { color: #9d9186; }
.field__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(168, 68, 42, .14); }
.field__input--area { resize: vertical; min-height: 118px; line-height: 1.7; }
.field__select { position: relative; }
.field__select select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.field__select::after {
  content: ''; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field__hint { margin: 0; font-size: .8125rem; color: var(--muted); }
.field__hint:empty { display: none; }
.field.is-invalid .field__input { border-color: var(--danger); background: #fdf7f6; }
.field.is-invalid .field__hint { color: var(--danger-deep); }
.field.is-ok .field__input { border-color: var(--accent); }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: .875rem; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check__box {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-top: 3px;
  border: 1px solid var(--line-2); border-radius: 3px; background: #fff; color: transparent;
  transition: background var(--dur), border-color var(--dur);
}
.check__box svg.i { width: 12px; height: 12px; }
.check input:checked + .check__box { background: var(--brand); border-color: var(--brand); color: #fff; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(168, 68, 42, .2); }
.check__text a { color: var(--brand-deep); text-decoration: underline; }
.check.is-invalid .check__box { border-color: var(--danger); }
.check__hint { margin-top: 6px; }
.check__hint.is-invalid { color: var(--danger-deep); }

.form__foot { display: grid; gap: 10px; margin-top: 18px; }
.form__privacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; font-size: .8125rem; color: var(--muted); }
.form__privacy svg.i { width: 14px; height: 14px; }
.btn[data-submit][disabled] { opacity: .68; cursor: not-allowed; }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 0; font-size: 1rem; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }
.faq__q svg.i { width: 18px; height: 18px; color: var(--brand); transition: transform var(--dur); }
.faq__item[open] .faq__q svg.i { transform: rotate(180deg); }
.faq__a { padding: 0 0 18px; font-size: .9375rem; color: var(--ink-2); }
.faq__a p { margin: 0; }

.links { }
.links__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.links__list { list-style: none; }
.links__list li { border-bottom: 1px dashed var(--line);display: inline-block; }
.links__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; font-size: .9375rem; color: var(--ink-2);
}
.links__list a:hover { color: var(--brand-deep); text-decoration: none; padding-left: 6px; }
.links__list svg.i { width: 14px; height: 14px; color: var(--line-2); flex: 0 0 auto; }
.links__list a:hover svg.i { color: var(--brand); }
.links__note {
  display: flex; gap: 9px; align-items: flex-start; margin: 28px 0 0;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--muted);
}
.links__note svg.i { width: 15px; height: 15px; margin-top: 4px; flex: 0 0 auto; }

/* -------------------------------------------------------- 07 内页 banner */
.page-banner { position: relative; background: linear-gradient(118deg, #f8f2e9 0%, #efe4d5 58%, #e9dccb 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-banner__deco { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; pointer-events: none; }
.page-banner__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px; align-items: end; padding-block: 46px 38px;
}
.page-banner__text { min-width: 0; }
.page-banner__kicker { margin: 0 0 10px; font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; color: var(--brand-deep); }
.page-banner__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem); color: var(--ink); }
.page-banner__desc { margin: 12px 0 0; color: var(--ink-2); font-size: .9688rem; max-width: 46em; }
.page-banner__stats { display: flex; list-style: none; }
.pb__stat { padding-inline: 22px; border-left: 1px solid var(--line-2); }
.pb__stat:first-child { border-left: 0; padding-left: 0; }
.pb__stat:last-child { padding-right: 0; }
.pb__num { display: block; font-family: var(--mono); font-size: 1.4375rem; color: var(--brand-deep); line-height: 1.35; }
.pb__lab { display: block; font-size: .8125rem; color: var(--muted); }

.crumb { background: var(--card); border-bottom: 1px solid var(--line); }
.crumb__list { display: flex; flex-wrap: wrap; align-items: center; padding-block: 12px; list-style: none; font-size: .875rem; }
.crumb__item { display: flex; align-items: center; min-width: 0; color: var(--muted); }
.crumb__item + .crumb__item::before { content: '/'; margin: 0 10px; color: var(--line-2); }
.crumb__item a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.crumb__item a:hover { color: var(--brand-deep); text-decoration: none; }
.crumb__item svg.i { width: 15px; height: 15px; }
.crumb__item span { overflow-wrap: anywhere; }

/* ------------------------------------------------------------ 08 列表页 */
.main { display: block; }
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 44px; align-items: start; padding-block: 40px 72px; }
.list-main { min-width: 0; }

.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.toolbar__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.toolbar__sort { display: flex; gap: 8px; min-width: 0; }
.toolbar__input {
  width: 190px; max-width: 100%; padding: .55em .85em; font: inherit; font-size: .9375rem;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.toolbar__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(168, 68, 42, .14); }
.list-count { margin: 16px 0 0; font-size: .875rem; color: var(--muted); }
.list-count b { font-family: var(--mono); color: var(--brand-deep); }

.posts { margin-top: 8px; }
.post-row { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-row__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.post-row__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform var(--dur) ease-out; }
.post-row:hover .post-row__media img { transform: scale(1.035); }
.post-row__body { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.post-row__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.post-row__title { font-size: 1.25rem; font-weight: 700; line-height: 1.55; }
.post-row__title a { color: var(--ink); }
.post-row__title a:hover { color: var(--brand-deep); text-decoration: none; }
.post-row__excerpt { margin: 0; font-size: .9375rem; color: var(--ink-2); line-height: 1.75; }
.post-row__more { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; font-size: .875rem; color: var(--brand-deep); }
.post-row__more svg.i { width: 15px; height: 15px; }

.pager { margin-top: 30px; }
.pager__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.pager__item {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 40px; height: 40px; padding-inline: 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--card); color: var(--ink-2); font-size: .9375rem;
}
.pager__item:hover { border-color: var(--brand); color: var(--brand-deep); text-decoration: none; }
.pager__item.is-active { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.pager__item.is-disabled { background: var(--paper-2); color: var(--muted); }
.pager__item svg.i { width: 14px; height: 14px; }

.sidebar { display: grid; gap: 22px; align-self: start; }
.widget { min-width: 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.widget__title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 700;
}
.widget__title svg.i { width: 17px; height: 17px; color: var(--brand); }
.widget__text { font-size: .875rem; color: var(--ink-2); margin: 0 0 14px; }
.widget--cta { border-top: 3px solid var(--brand); }

.archive-list { list-style: none; }
.archive-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; color: var(--ink-2); }
.archive-list li:last-child a { border-bottom: 0; }
.archive-list a:hover { color: var(--brand-deep); text-decoration: none; }
.archive-list b { font-family: var(--mono); font-size: .8125rem; color: var(--brand-deep); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag-cloud a { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: .8125rem; }
.tag-cloud a:hover { border-color: var(--brand); color: var(--brand-deep); text-decoration: none; }

.hot-list { list-style: none; }
.hot-list a { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.hot-list li:last-child a { border-bottom: 0; }
.hot-list a:hover { color: var(--brand-deep); text-decoration: none; }
.hot__rank { flex: 0 0 auto; width: 18px; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.hot__rank.is-top { color: var(--brand); }
.hot-list span { flex: 1 1 auto; min-width: 0; font-size: .9375rem; }
.hot-list em { flex: 0 0 auto; font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--muted); }

/* ------------------------------------------------------------ 09 文章页 */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-block: 40px 64px; }
.article-main { min-width: 0; }
.article-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-cat { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.article-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 1.15rem + 2vw, 2.4rem); line-height: 1.4; color: var(--ink); }
.article-lead {
  margin: 16px 0 0; padding: 16px 18px; font-size: 1rem; color: var(--ink-2);
  background: var(--paper-2); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin-top: 18px; }
.article-meta li { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.article-meta svg.i { width: 14px; height: 14px; color: var(--line-2); }

.article-body { padding-top: 28px; font-size: 1.0625rem; line-height: 1.95; color: #2f2620; }
.article-body h2 {
  position: relative; margin: 2.2em 0 .9em; padding-left: 16px;
  font-size: 1.4375rem; font-weight: 700; color: var(--ink);
}
.article-body h2::before { content: ''; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; background: var(--brand); border-radius: 2px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  position: relative; margin: 1.7em 0 .7em; padding-left: 15px;
  font-size: 1.125rem; font-weight: 700; color: var(--ink);
}
.article-body h3::before { content: ''; position: absolute; left: 1px; top: .48em; width: 7px; height: 7px; background: var(--accent); border-radius: 1px; transform: rotate(45deg); }
.article-body p { margin: 0 0 1.15em; }
.article-body strong { color: var(--ink); }
.article-body .dot-list, .article-body .num-list { margin: 0 0 1.3em; padding-left: 1.4em; }
.article-body .dot-list li, .article-body .num-list li { margin-bottom: .55em; }
.article-body .dot-list { list-style: none; padding-left: 0; }
.article-body .dot-list li { position: relative; padding-left: 1.4em; }
.article-body .dot-list li::before { content: ''; position: absolute; left: .35em; top: .82em; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
.article-body .num-list li::marker { color: var(--brand-deep); font-family: var(--mono); font-weight: 700; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.table-scroll table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.table-scroll caption { padding: 10px 14px; text-align: left; font-size: .8125rem; color: var(--muted); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.table-scroll th, .table-scroll td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; }
.table-scroll th { background: var(--paper-2); font-weight: 700; color: var(--ink); white-space: nowrap; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }

.article-body blockquote {
  margin: 0 0 1.5em; padding: 18px 20px;
  background: var(--paper-2); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p { margin: 0 0 .6em; font-style: normal; color: var(--ink); }
.article-body blockquote cite { font-style: normal; font-size: .8125rem; color: var(--muted); }

.tipbox {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 1.5em; padding: 14px 16px;
  background: #fbf3e6; border-left: 3px solid #c99a3f; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem; color: #6d4c11; line-height: 1.75;
}
.tipbox svg.i { width: 17px; height: 17px; margin-top: 4px; flex: 0 0 auto; }
.tipbox span { min-width: 0; }

.article-foot { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.article-tags__lab { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); margin-right: 4px; }
.article-tags svg.i { width: 15px; height: 15px; }
.article-tags a { display: inline-block; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); font-size: .8125rem; color: var(--ink-2); }
.article-tags a:hover { border-color: var(--brand); color: var(--brand-deep); text-decoration: none; }
.article-disclaimer {
  display: flex; gap: 9px; align-items: flex-start; margin: 22px 0 0;
  padding: 14px 16px; background: var(--paper-2); border: 1px dashed var(--line-2);
  border-radius: var(--radius); font-size: .8125rem; color: var(--muted);
}
.article-disclaimer svg.i { width: 15px; height: 15px; margin-top: 4px; flex: 0 0 auto; }

.article-side { display: grid; gap: 22px; align-self: start; }
.toc__list { list-style: none; counter-reset: toc; }
.toc__list li { border-bottom: 1px dashed var(--line); }
.toc__list li:last-child { border-bottom: 0; }
.toc__list a { display: flex; align-items: baseline; gap: 7px; padding: 9px 0; font-size: .875rem; color: var(--ink-2); line-height: 1.6; }
.toc__list a:hover { color: var(--brand-deep); text-decoration: none; }
.toc__list svg.i { width: 13px; height: 13px; color: var(--line-2); flex: 0 0 auto; }
.toc__list a.is-current { color: var(--brand-deep); font-weight: 600; }
.toc__list a.is-current svg.i { color: var(--brand); }

.prenext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.prenext__item {
  display: grid; gap: 8px; padding: 20px 22px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.prenext__item:hover { border-color: var(--line-2); box-shadow: var(--shadow); text-decoration: none; }
.prenext__lab { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.prenext__lab svg.i { width: 14px; height: 14px; }
.prenext__title { font-size: .9688rem; font-weight: 600; color: var(--ink); line-height: 1.65; }
.prenext__item:hover .prenext__title { color: var(--brand-deep); }
.prenext__item--next { text-align: right; }
.prenext__item--next .prenext__lab { justify-content: flex-end; }

.section-block { margin-bottom: 52px; }
.minilist { display: grid; list-style: none; }
.minilist--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.minilist--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; }
.minilist__item { min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.minilist__item a { display: grid; gap: 7px; }
.minilist__item a:hover { text-decoration: none; }
.minilist__cat { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: var(--brand-deep); }
.minilist__title { display: block; font-size: .9688rem; font-weight: 600; color: var(--ink); line-height: 1.65; }
.minilist__item a:hover .minilist__title { color: var(--brand-deep); }
.minilist__date { display: block; font-family: var(--mono); font-size: .75rem; color: var(--muted); }

/* --------------------------------------------------- 10 页脚与移动底栏 */
.site-footer { background: var(--dark); color: var(--on-dark-2); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 40px; }
.footer__brandCol { min-width: 0; }
.brand--light .brand__name { color: var(--on-dark); }
.brand--light .brand__sub { color: var(--on-dark-2); }
.footer__desc { margin: 16px 0 20px; font-size: .9375rem; color: var(--on-dark-2); line-height: 1.8; }
.footer__contact { list-style: none; display: grid; gap: 9px; }
.footer__contact li { display: flex; gap: 9px; align-items: flex-start; font-size: .875rem; color: var(--on-dark-2); }
.footer__contact svg.i { width: 15px; height: 15px; margin-top: 4px; color: var(--brand-lt); flex: 0 0 auto; }
.footer__contact b { color: var(--on-dark); font-family: var(--mono); }
.footer__col { min-width: 0; }
.footer__title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 1rem; font-weight: 700; color: var(--on-dark); }
.footer__title svg.i { width: 16px; height: 16px; color: var(--brand-lt); }
.footer__list { list-style: none; display: grid; gap: 8px; }
.footer__list a { font-size: .9375rem; color: var(--on-dark-2); }
.footer__list a:hover { color: var(--brand-lt); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(246, 241, 234, .14); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-block: 20px; }
.footer-bottom__copy { margin: 0; font-size: .8125rem; color: var(--on-dark-2); }
.footer-bottom__note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: .8125rem; color: var(--on-dark-2); }
.footer-bottom__top { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-lt); }
.footer-bottom__top svg.i { width: 14px; height: 14px; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--dark); border-top: 2px solid var(--brand);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px; font-size: .75rem; color: var(--on-dark-2);
}
.mobile-bar a:hover { text-decoration: none; color: #fff; }
.mobile-bar svg.i { width: 20px; height: 20px; }
.mobile-bar__cta { color: var(--brand-lt) !important; }
.mobile-bar__cta svg.i { color: var(--brand-lt); }

/* ------------------------------------------------------- 渐进增强（入场） */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .post-card, .cat-card__link, .post-card__media img, .post-row__media img { transition: none !important; }
}
/* 打印同样不能拿到半透明/隐藏内容 */
@media print {
  html.js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .mobile-bar { position: static; }
}

/* ==========================================================================
   11 响应式：媒体查询统一放文件末尾；
   凡在此处隐藏/改写某个属性，而该元素的基础规则位于文件更后方时，一律提升特异性
   ========================================================================== */

@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ledger { gap: 0 30px; }
  .footer-main { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 1080px) {
  .list-layout, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sidebar, .article-side { position: static; max-height: none; overflow: visible; }
  .article-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-side .widget--cta { grid-column: 1 / -1; }
}

/* 顶栏转抽屉：无 JS 时导航必须完整可见 */
@media (max-width: 1000px) {
  .site-header .nav-toggle { display: inline-flex; }
  .site-header .nav {
    flex: 1 0 100%; order: 3;
    display: block;
    border-top: 1px solid rgba(246, 241, 234, .14);
  }
  .site-header .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header .nav__item { border-bottom: 1px solid rgba(246, 241, 234, .1); }
  .site-header .nav__link { display: flex; width: 100%; padding: 13px 4px; font-size: 1rem; }
  .site-header .nav__link::after { left: 4px; right: auto; width: 34px; bottom: 8px; }
  /* 折叠态：只有脚本接管后（.is-collapsible）才允许收起 */
  .site-header.is-collapsible .nav { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
  .site-header.is-collapsible.is-open .nav { max-height: 78vh; overflow-y: auto; }
  /* 未接管：导航平铺展开，菜单全部可点 */
  .site-header:not(.is-collapsible) .nav { max-height: none; }
  .site-header .nav__foot { display: flex; }
  .topbar { gap: 10px 16px; }
  .topbar__side { display: none; }
  body { padding-bottom: 62px; }
}

@media (max-width: 900px) {
  .section { padding-block: 56px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 48px 32px; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .hero__stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .form-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minilist--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-banner__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .post-row { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 720px) {
  .section { padding-block: 48px; }
  .wrap { width: min(100% - 32px, 1220px); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .axis-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .post-row__media img { aspect-ratio: 16 / 9; }
  .minilist--two, .minilist--three { grid-template-columns: minmax(0, 1fr); }
  .prenext { grid-template-columns: minmax(0, 1fr); }
  .prenext__item--next { text-align: left; }
  .prenext__item--next .prenext__lab { justify-content: flex-start; }
  .article-side { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom__inner { justify-content: flex-start; }
  .toolbar__input { width: 100%; }
  .toolbar__sort { width: 100%; }
}

@media (max-width: 560px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 0 0 22px; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .links { grid-template-columns: minmax(0, 1fr); }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .brand__name { font-size: 1.125rem; }
  .hero__actions .btn { width: 100%; }
  .hero__search { flex-wrap: wrap; padding: 10px 10px 10px 14px; }
  .hero__search > svg.i { display: none; }   /* 窄屏图标会单独占一行，隐藏更干净 */
  .hero__input { flex: 1 1 100%; }
  .hero__submit { flex: 1 1 100%; }
  .page-banner__stats { flex-wrap: wrap; gap: 14px 0; }
  .pb__stat { padding-inline: 16px; }
  .page-banner__inner { padding-block: 34px 28px; }
  .form-card { padding: 20px 16px 18px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .article-layout, .list-layout { padding-block: 28px 56px; }
  .article-body { font-size: 1rem; }
}

/* 桌面隐藏移动底栏：基础规则在文件更前方，这里提升特异性防止被反压 */
@media (min-width: 1001px) {
  body .mobile-bar { display: none; }
}

/* 桌面：侧栏吸顶。侧栏自身必须是 sticky 元素且高度小于容器，
   否则 sticky 找不到可滚动余量（目录会跟着正文一起滚走）；
   内容超高时容器内部滚动，避免底部内容永久看不到 */
@media (min-width: 1081px) {
  .article-side, .sidebar {
    position: sticky; top: 84px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
  }
  .article-side::-webkit-scrollbar, .sidebar::-webkit-scrollbar { width: 6px; }
  .article-side::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
}
