/* ===================================================================
   加拿大预测28 — 全站共享样式
   文件路径：/assets/site.css
   内容：变量 / reset / 中文排版 / 页头 / 页脚 / 按钮 /
        面包屑 / 容器 / 栅格 / 基础组件 / 响应式 / 无障碍
   =================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #142033;
  --ink-soft: #1E3556;
  --ink-deep: #0E1725;
  --maple: #B62B2F;
  --maple-deep: #7E1B20;
  --gold: #C79A4B;
  --ice: #F8F5EF;
  --paper: #EDE4D6;
  --white: #FFFFFF;

  --tint-a: #D9E3EC;
  --tint-b: #DCE4D7;
  --tint-c: #E7D8D2;
  --tint-d: #E8E0CF;
  --tint-e: #DFD6E4;
  --tint-f: #D6E1DD;

  --rule: rgba(20, 32, 51, 0.14);
  --rule-strong: rgba(20, 32, 51, 0.30);
  --rule-light: rgba(248, 245, 239, 0.20);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(2.6rem, 7.2vw, 6.4rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --w-max: 1240px;
  --pad-x: clamp(1.15rem, 4vw, 3.25rem);
  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 999px;

  --dur: 190ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; }

::selection {
  background: rgba(182, 43, 47, 0.18);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--maple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. 中文排版 ---------- */
h1 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; }
h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.22; }
h3 { font-weight: 600; line-height: 1.4; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.2; }
.h3 { font-size: var(--fs-h3); font-weight: 600; }

.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--maple);
  text-transform: uppercase;
}

.idx {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--maple);
}

.idx-square {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: var(--maple);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.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;
}

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248, 245, 239, 0.96);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--dur) var(--ease);
}

@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .site-header {
    background: rgba(248, 245, 239, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.site-header[data-stuck="true"] {
  box-shadow: 0 10px 26px -20px rgba(20, 32, 51, 0.65);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--ice);
  font-size: 0.85rem;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 0.6rem;
}

.header-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0.7rem var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

/* 品牌区 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background:
    radial-gradient(circle at 32% 26%, #FFFFFF 0%, var(--ice) 55%, var(--paper) 100%);
  box-shadow: inset 0 0 0 3px rgba(248, 245, 239, 0.85);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.brand:hover .brand-seal,
.brand:focus-visible .brand-seal {
  transform: rotate(-10deg);
  border-color: var(--maple);
}

.brand-seal__core {
  width: 15px;
  height: 15px;
  background: var(--maple);
  clip-path: polygon(50% 0%, 61% 33%, 96% 30%, 72% 54%, 88% 92%, 52% 72%, 50% 100%, 48% 72%, 12% 92%, 28% 54%, 4% 30%, 39% 33%);
  transition: background var(--dur) var(--ease);
}

.brand:hover .brand-seal__core {
  background: var(--maple-deep);
}

.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.brand-idx {
  margin-top: 0.18rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--maple);
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--maple);
  color: var(--maple);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 15px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-toggle__label {
  line-height: 1;
}

/* 导航 + 工具（移动端折叠） */
.header-side {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 240ms var(--ease), visibility 0s linear 240ms;
}

.site-header[data-open="true"] .header-side {
  max-height: 78vh;
  overflow-y: auto;
  visibility: visible;
  transition: max-height 240ms var(--ease), visibility 0s linear 0s;
}

.site-nav {
  width: 100%;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.7rem 0.1rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--maple);
  padding-left: 0.45rem;
}

.nav-link[aria-current="page"] {
  color: var(--maple);
  font-weight: 600;
  background: var(--paper);
  padding-left: 0.7rem;
  border-radius: var(--r-sm);
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  padding: 0.8rem 0 0.9rem;
  border-top: 1px solid var(--rule);
}

.header-hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: rgba(20, 32, 51, 0.45);
}

.tool-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.tool-link:hover,
.tool-link:focus-visible {
  color: var(--maple);
  border-bottom-color: var(--gold);
}

.tool-link--home {
  padding: 0.42rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--ink-soft);
  color: var(--ice);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.tool-link--home:hover,
.tool-link--home:focus-visible {
  background: var(--maple);
  color: var(--white);
  border-bottom-color: transparent;
}

.header-ticks {
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--rule-strong) 0 1px, transparent 1px 15px);
  opacity: 0.4;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--maple) 0%, var(--gold) 100%);
  pointer-events: none;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--ink);
  color: var(--ice);
  font-size: var(--fs-small);
}

.footer-top {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x) clamp(1.75rem, 4vw, 2.75rem);
  background:
    radial-gradient(140% 120% at 8% 0%, rgba(30, 53, 86, 0.95) 0%, rgba(20, 32, 51, 1) 58%),
    var(--ink);
}

.footer-top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--maple) 0%, var(--gold) 45%, var(--ink-soft) 100%);
}

.footer-grid {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--ice);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-brand__link:hover,
.footer-brand__link:focus-visible {
  color: var(--gold);
}

.footer-brand__seal {
  width: 20px;
  height: 20px;
  background: var(--maple);
  clip-path: polygon(50% 0%, 61% 33%, 96% 30%, 72% 54%, 88% 92%, 52% 72%, 50% 100%, 48% 72%, 12% 92%, 28% 54%, 4% 30%, 39% 33%);
}

.footer-brand__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-brand__note {
  max-width: 34ch;
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(248, 245, 239, 0.72);
}

.footer-brand .btn {
  margin-top: 0.6rem;
}

.footer-col {
  min-width: 0;
}

.footer-col__title {
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.footer-list {
  display: grid;
  gap: 0.5rem;
}

.footer-link {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  font-size: 0.88rem;
  color: rgba(248, 245, 239, 0.78);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.channel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 1rem;
}

.channel-chip {
  padding: 0.2rem 0.42rem;
  border-radius: 6px;
  border: 1px solid rgba(248, 245, 239, 0.16);
  background: rgba(248, 245, 239, 0.05);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: rgba(248, 245, 239, 0.85);
}

.channel-chip:nth-child(-n+2) { background: rgba(217, 227, 236, 0.16); border-color: rgba(217, 227, 236, 0.32); }
.channel-chip:nth-child(n+3):nth-child(-n+4) { background: rgba(220, 228, 215, 0.16); border-color: rgba(220, 228, 215, 0.32); }
.channel-chip:nth-child(n+5):nth-child(-n+6) { background: rgba(231, 216, 210, 0.16); border-color: rgba(231, 216, 210, 0.32); }
.channel-chip:nth-child(n+7):nth-child(-n+8) { background: rgba(232, 224, 207, 0.16); border-color: rgba(232, 224, 207, 0.32); }
.channel-chip:nth-child(n+9):nth-child(-n+10) { background: rgba(223, 214, 228, 0.16); border-color: rgba(223, 214, 228, 0.32); }
.channel-chip:nth-child(n+11) { background: rgba(214, 225, 221, 0.16); border-color: rgba(214, 225, 221, 0.32); }

.footer-base {
  padding: 1.4rem var(--pad-x) 2rem;
  background: var(--ink-deep);
  border-top: 1px solid rgba(199, 154, 75, 0.28);
}

.footer-base__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  gap: 0.35rem;
}

.footer-contact {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(248, 245, 239, 0.9);
}

.footer-address {
  font-size: 0.78rem;
  color: rgba(248, 245, 239, 0.6);
}

.footer-note {
  max-width: 72ch;
  font-size: 0.74rem;
  line-height: 1.75;
  color: rgba(248, 245, 239, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(248, 245, 239, 0.55);
}

.footer-dot { color: var(--gold); }

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn--maple {
  background: var(--maple);
  color: var(--white);
}

.btn--maple:hover,
.btn--maple:focus-visible {
  background: var(--maple-deep);
}

.btn--ink {
  background: var(--ink-soft);
  color: var(--ice);
}

.btn--ink:hover,
.btn--ink:focus-visible {
  background: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--maple);
  color: var(--maple);
}

.btn:active { transform: translateY(1px); }

/* 下一跳胶囊 */
.next-hop {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.next-hop::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 0.9em;
  color: var(--maple);
  transition: color var(--dur) var(--ease);
}

.next-hop:hover,
.next-hop:focus-visible {
  background: var(--ink-soft);
  color: var(--ice);
}

.next-hop:hover::after,
.next-hop:focus-visible::after {
  color: var(--gold);
}

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(20, 32, 51, 0.6);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li { display: flex; align-items: center; }

.crumbs li + li::before {
  content: "›";
  margin: 0 0.45rem;
  color: var(--gold);
}

.crumbs a {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--maple);
  border-bottom-color: var(--maple);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
  border-bottom: 0;
}

/* ---------- 8. 容器与正文 ---------- */
.wrap {
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.page-shell {
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}

.prose {
  max-width: 36em;
}

.prose > * + * { margin-top: 1.1em; }

.prose p {
  color: rgba(20, 32, 51, 0.86);
  line-height: 1.9;
}

.prose h2 {
  margin-top: 2em;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.25;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: var(--fs-h3);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  line-height: 1.9;
}

.prose li + li { margin-top: 0.35em; }

.prose a {
  color: var(--maple);
  text-decoration: none;
  border-bottom: 1px solid rgba(182, 43, 47, 0.35);
  transition: border-color var(--dur) var(--ease);
}

.prose a:hover,
.prose a:focus-visible {
  border-bottom-color: var(--maple);
}

.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- 9. 色带 ---------- */
.band {
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad-x);
}

.band--ink {
  background: var(--ink-soft);
  color: var(--ice);
}

.band--paper {
  background: var(--paper);
  color: var(--ink);
}

.band--maple {
  background: var(--maple);
  color: var(--white);
}

/* ---------- 10. 卡片与栏目底色 ---------- */
.card {
  position: relative;
  display: block;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.card:hover,
.card:focus-visible {
  border-color: var(--gold);
  background: var(--white);
}

.tint-a { background: var(--tint-a); color: var(--ink); }
.tint-b { background: var(--tint-b); color: var(--ink); }
.tint-c { background: var(--tint-c); color: var(--ink); }
.tint-d { background: var(--tint-d); color: var(--ink); }
.tint-e { background: var(--tint-e); color: var(--ink); }
.tint-f { background: var(--tint-f); color: var(--ink); }

/* ---------- 11. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(90deg, rgba(20, 32, 51, 0.07) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(20, 32, 51, 0.05) 0 1px, transparent 1px 32px),
    radial-gradient(120% 100% at 18% 0%, #FFFFFF 0%, var(--paper) 58%, var(--tint-a) 100%);
}

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--r-pill);
  background: rgba(248, 245, 239, 0.92);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

/* ---------- 12. 栅格 ---------- */
.grid {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.5rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 13. 桌面与平板增强 ---------- */
@media (min-width: 620px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 920px) {
  .nav-toggle { display: none; }

  .header-side {
    width: auto;
    max-height: none;
    overflow: visible;
    visibility: visible;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2rem);
    transition: none;
  }

  .site-nav { width: auto; }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: clamp(0.5rem, 1.6vw, 1.5rem);
  }

  .nav-link {
    padding: 0.35rem 0.1rem;
    border-top: 0;
    font-size: 0.94rem;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--maple);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur) var(--ease);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    color: var(--maple);
    padding-left: 0.1rem;
  }

  .nav-link:hover::after,
  .nav-link:focus-visible::after {
    transform: scaleX(1);
  }

  .nav-link[aria-current="page"] {
    background: transparent;
    padding-left: 0.1rem;
    border-radius: 0;
  }

  .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
    background: var(--maple);
  }

  .header-tools {
    padding: 0 0 0 1rem;
    border-top: 0;
    border-left: 1px solid var(--rule);
    flex-wrap: nowrap;
    gap: 0.85rem;
  }

  .header-hint { display: inline; }

  .grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: 1 / -1; }

  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  }

  .footer-brand { grid-column: auto; }
}

@media (min-width: 1120px) {
  .header-inner { padding-block: 0.85rem; }
}

/* ---------- 14. 无障碍与减弱动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .brand:hover .brand-seal,
  .btn:active {
    transform: none;
  }
}
