/* ==========================================================================
   加拿大服务 · 共享样式表 /assets/site.css
   目录轨道 + 纸张叠层 + 矿物色体系
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --paper: #F7F3EC;
  --paper-white: #FFFFFF;
  --slate: #2E4A62;
  --ink: #1B2E3D;
  --maple: #C8102E;
  --maple-deep: #9C0C24;
  --stone: #6E7378;
  --wood: #D9C7A7;
  --moss: #6B7F5E;
  --clay: #B5643C;
  --mist: #A9BBC9;

  --rail-w: 264px;
  --topbar-h: 72px;
  --shell-max: 1180px;
  --gutter: 28px;

  --font-head: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-num: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --shadow-paper: 4px 4px 0 0 var(--wood);
  --shadow-lift: 4px 6px 0 0 var(--wood);
  --line: 1px solid rgba(169, 187, 201, 0.9);
  --line-ink: 1px solid var(--ink);
  --radius-tag: 2px;
}

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

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

body,
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 中文排版基调 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(46, 74, 98, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 74, 98, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(23px, 2.6vw, 28px); }
h3 { font-size: 20px; }

p { text-wrap: pretty; }

strong { font-weight: 700; color: var(--ink); }

.num {
  font-family: var(--font-num);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

::selection {
  background: var(--maple);
  color: #fff;
}

/* ---------- 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--maple);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-white);
  font-family: var(--font-head);
  font-size: 14px;
  border-radius: 2px;
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 头部骨架 ---------- */
.site-head {
  position: relative;
  z-index: 90;
}

/* ---------- 顶部条 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--topbar-h);
  padding: 10px clamp(16px, 2.4vw, 34px);
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(46, 74, 98, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
}

.brand__mark {
  width: 12px;
  height: 12px;
  background: var(--maple);
  box-shadow: 3px 3px 0 0 var(--wood);
  flex: 0 0 auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: var(--ink);
}

.brand__sub {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- 检索框 ---------- */
.finder {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 280px;
  max-width: 420px;
  min-height: 42px;
  padding: 0 12px 0 34px;
  background: var(--paper-white);
  border: 1px solid var(--mist);
  border-radius: 2px;
  box-shadow: 2px 2px 0 0 rgba(217, 199, 167, 0.85);
}

.finder__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.finder__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border: 1.6px solid var(--slate);
  border-radius: 50%;
}

.finder__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 1.6px;
  background: var(--slate);
  transform: rotate(45deg);
  transform-origin: left center;
}

.finder__input {
  width: 100%;
  padding: 9px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
}

.finder__input::placeholder {
  color: var(--stone);
}

.finder:focus-within {
  border-color: var(--slate);
  box-shadow: 2px 2px 0 0 var(--wood), 0 0 0 3px rgba(46, 74, 98, 0.1);
}

.finder__count {
  flex: 0 0 auto;
  margin-left: 8px;
  font-size: 12px;
  color: var(--maple);
  white-space: nowrap;
}

.finder__count:empty { display: none; }

/* ---------- 顶部轻量入口 ---------- */
.topbar__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--slate);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out;
}

.topbar__link:hover {
  color: var(--ink);
  border-color: var(--mist);
  background: var(--paper-white);
}

.topbar__link--accent {
  color: var(--paper-white);
  background: var(--maple);
  border-color: var(--maple);
}

.topbar__link--accent:hover {
  color: var(--paper-white);
  background: var(--maple-deep);
  border-color: var(--maple-deep);
}

/* ---------- 目录开关 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 13px;
  background: var(--slate);
  color: var(--paper-white);
  border: 0;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.nav-toggle:hover { background: var(--ink); }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 1.8px;
  background: currentColor;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-head[data-open] .nav-toggle__bars { transform: rotate(45deg); }
.site-head[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(-90deg); }
.site-head[data-open] .nav-toggle__bars::after { opacity: 0; }

/* ---------- 目录轨道 ---------- */
.rail {
  background: var(--slate);
  color: var(--paper);
  border-right: 1px solid rgba(27, 46, 61, 0.5);
}

.rail__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 14px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.rail__kicker-dot {
  width: 7px;
  height: 7px;
  background: var(--maple);
  flex: 0 0 auto;
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail__item { position: relative; }

.rail__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 12px 11px 14px;
  font-family: var(--font-head);
  font-size: 15.5px;
  color: rgba(247, 243, 236, 0.82);
  border-radius: 2px;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--maple);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 220ms ease-out;
}

.rail__link:hover {
  color: var(--paper-white);
  background: rgba(247, 243, 236, 0.09);
}

.rail__link:hover::before { transform: scaleY(1); }

.rail__link[aria-current="page"] {
  color: var(--paper-white);
  background: rgba(247, 243, 236, 0.13);
}

.rail__link[aria-current="page"]::before { transform: scaleY(1); }

.rail__num {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.rail__link[aria-current="page"] .rail__num { color: var(--maple); }

.rail__label { flex: 1 1 auto; }

.rail__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(169, 187, 201, 0.35);
}

.rail__note {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 243, 236, 0.66);
}

.rail__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 3px;
  font-family: var(--font-head);
  font-size: 13.5px;
  color: var(--paper-white);
  border-bottom: 1px solid var(--maple);
  transition: color 160ms ease-out, border-color 160ms ease-out;
}

.rail__cta::after {
  content: "→";
  font-family: var(--font-num);
  color: var(--maple);
}

.rail__cta:hover {
  color: var(--maple);
  border-color: var(--paper-white);
}

/* ---------- 遮罩 ---------- */
.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(27, 46, 61, 0.45);
  border: 0;
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.rail-scrim[hidden] { display: none; }
.site-head[data-open] .rail-scrim { opacity: 1; }

/* ---------- 内容壳 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0;
  padding: 0 var(--gutter);
}

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
}

.prose > * + * { margin-top: 18px; }

.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }

.prose ul,
.prose ol {
  padding-left: 20px;
  list-style: none;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 16px;
  margin-top: 8px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  background: var(--maple);
}

.prose ol { counter-reset: step; }
.prose ol li::before {
  counter-increment: step;
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--maple);
  font-family: var(--font-num);
  font-size: 14px;
}

.prose a {
  color: var(--maple);
  border-bottom: 1px solid rgba(200, 16, 46, 0.4);
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.prose a:hover {
  background: rgba(200, 16, 46, 0.08);
  border-color: var(--maple);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  font-family: var(--font-head);
  font-size: 15px;
  line-height: 1.2;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out,
              border-color 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}

.btn--primary {
  background: var(--maple);
  color: var(--paper-white);
  box-shadow: 3px 3px 0 0 var(--wood);
}

.btn--primary:hover {
  background: var(--maple-deep);
  transform: translateY(-1px);
  box-shadow: 3px 5px 0 0 var(--wood);
}

.btn--ghost {
  background: var(--paper-white);
  color: var(--slate);
  border-color: var(--slate);
}

.btn--ghost:hover {
  background: var(--slate);
  color: var(--paper-white);
}

.btn::after {
  content: "→";
  font-family: var(--font-num);
  font-size: 15px;
  opacity: 0.85;
}

.btn--ghost::after { content: "›"; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px 3px 10px;
  font-family: var(--font-head);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--slate);
  background: var(--paper-white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-tag);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 89% 100%, 0 100%);
}

.tag--accent {
  color: var(--paper-white);
  background: var(--maple);
  border-color: var(--maple);
}

.tag--moss {
  color: var(--paper-white);
  background: var(--moss);
  border-color: var(--moss);
}

.tag--clay {
  color: var(--paper-white);
  background: var(--clay);
  border-color: var(--clay);
}

.tag--wood {
  color: var(--ink);
  background: var(--wood);
  border-color: var(--wood);
}

/* ---------- 纸片卡 ---------- */
.card {
  position: relative;
  display: block;
  padding: 22px 22px 24px;
  background: var(--paper-white);
  border: var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.card--paper { background: var(--paper-white); }

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--slate);
}

/* ---------- 提示框 ---------- */
.note {
  padding: 16px 18px;
  background: var(--paper-white);
  border: 1px solid var(--mist);
  border-left: 4px solid var(--slate);
  border-radius: 2px;
  font-size: 15.5px;
  line-height: 1.8;
}

.note--moss { border-left-color: var(--moss); }
.note--clay { border-left-color: var(--clay); }

.note__title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.note--moss .note__title { color: var(--moss); }
.note--clay .note__title { color: var(--clay); }

/* ---------- 浅木色条纹带 ---------- */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px clamp(16px, 2.4vw, 34px);
  background: var(--wood);
  border-top: 1px solid rgba(27, 46, 61, 0.14);
  border-bottom: 1px solid rgba(27, 46, 61, 0.14);
}

.band__label {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.band__count {
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(27, 46, 61, 0.72);
}

/* ---------- 分隔线 ---------- */
.rule {
  position: relative;
  height: 0;
  margin: 44px 0;
  border: 0;
  border-top: var(--line-ink);
}

.rule__index {
  position: absolute;
  top: -13px;
  left: 0;
  padding-right: 12px;
  background: var(--paper);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--maple);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.breadcrumb a {
  color: var(--slate);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease-out, color 160ms ease-out;
}

.breadcrumb a:hover {
  color: var(--maple);
  border-color: var(--maple);
}

.breadcrumb__sep { color: var(--mist); }

.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 章节头 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: var(--line-ink);
}

.section-head__index {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--maple);
  white-space: nowrap;
}

.section-head h2 {
  font-size: clamp(21px, 2.4vw, 27px);
}

/* ---------- 导语 ---------- */
.lede {
  max-width: 58ch;
  font-size: 19px;
  line-height: 1.8;
  color: var(--slate);
}

/* ---------- 栅格 ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-white);
  border: var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 199, 167, 0.9);
  pointer-events: none;
}

.media-frame__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #EFE8DA 0%, #E3DAC8 100%);
}

.media-frame__cap {
  position: relative;
  padding: 10px 14px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--stone);
  border-top: 1px solid rgba(169, 187, 201, 0.7);
  background: var(--paper-white);
}

.media-frame--wide .media-frame__img { aspect-ratio: 21 / 9; }
.media-frame--tall .media-frame__img { aspect-ratio: 4 / 3; }

/* ---------- 筛选命中状态 ---------- */
[data-entry] { transition: opacity 180ms ease-out; }

[data-entry].is-missed { display: none; }

[data-entry].is-hit {
  outline: 2px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}

mark {
  background: rgba(200, 16, 46, 0.16);
  color: var(--maple-deep);
  padding: 0 1px;
}

/* ---------- 显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 回到目录浮动按钮 ---------- */
.to-index {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  background: var(--slate);
  color: var(--paper-white);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 3px 3px 0 0 var(--wood);
  font-family: var(--font-head);
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 200ms;
}

.to-index::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--maple);
}

.to-index:hover { background: var(--ink); }

.to-index.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 72px;
  background: var(--ink);
  color: rgba(247, 243, 236, 0.78);
  border-top: 4px solid var(--maple);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.foot__col--brand { max-width: 46ch; }

.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot__mark {
  width: 11px;
  height: 11px;
  background: var(--maple);
  flex: 0 0 auto;
}

.foot__brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.foot__desc {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(247, 243, 236, 0.7);
}

.foot__stamp {
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(169, 187, 201, 0.85);
}

.foot__title {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(169, 187, 201, 0.28);
}

.foot__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}

.foot__list a {
  display: inline-block;
  color: rgba(247, 243, 236, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}

.foot__list a:hover {
  color: var(--paper-white);
  border-color: var(--maple);
}

.foot__list--contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  line-height: 1.7;
}

.foot__key {
  flex: 0 0 40px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.foot__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 16px;
  background: transparent;
  color: var(--paper-white);
  border: 1px solid var(--maple);
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 13.5px;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.foot__btn::after {
  content: "→";
  font-family: var(--font-num);
}

.foot__btn:hover {
  background: var(--maple);
  border-color: var(--maple);
}

.foot__icp {
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(169, 187, 201, 0.9);
}

.foot__meta {
  border-top: 1px solid rgba(169, 187, 201, 0.22);
  background: rgba(0, 0, 0, 0.16);
}

.foot__meta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 62px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.foot__meta-text {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: rgba(247, 243, 236, 0.6);
}

/* ==========================================================================
   响应式
   ========================================================================== */

/* ---------- 手机：抽屉式目录 ---------- */
@media (max-width: 899px) {
  body { padding-left: 0; }

  .nav-toggle { display: inline-flex; }

  .brand__sub { display: none; }

  .topbar {
    gap: 10px;
    min-height: 64px;
    padding: 8px 14px;
  }

  .topbar__links { display: none; }

  .finder {
    flex: 1 1 auto;
    max-width: none;
    min-height: 38px;
    padding-left: 30px;
  }

  .finder__input { font-size: 14px; }

  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: min(86vw, 320px);
    padding: 22px 20px 26px;
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 240ms ease-out;
    box-shadow: 6px 0 0 0 rgba(217, 199, 167, 0.9);
  }

  .site-head[data-open] .rail { transform: translateX(0); }

  .rail__link { font-size: 16px; padding: 12px 12px 12px 14px; }

  .to-index { right: 14px; bottom: 14px; }
}

/* ---------- 平板 ---------- */
@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 桌面：侧边轨道常驻 ---------- */
@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }

  .site-head { position: static; }

  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    width: var(--rail-w);
    padding: 26px 20px 24px;
    overflow-y: auto;
  }

  .nav-toggle { display: none; }

  .rail-scrim { display: none !important; }

  .topbar {
    position: sticky;
    top: 0;
    border-bottom: 1px solid rgba(46, 74, 98, 0.2);
  }

  .topbar__links { margin-left: 0; }

  .finder { margin-left: auto; }

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

  .foot__grid {
    grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
    gap: 34px;
    padding-top: 60px;
    padding-bottom: 52px;
  }

  .site-foot { margin-top: 96px; }
}

@media (min-width: 1180px) {
  :root { --gutter: 40px; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .card:focus-within,
  .btn--primary:hover {
    transform: none;
  }

  .to-index {
    transform: none;
  }
}

/* ---------- 打印 ---------- */
@media print {
  .site-head,
  .to-index,
  .rail-scrim { display: none !important; }

  body {
    padding-left: 0;
    background: #fff;
  }

  .site-foot {
    background: #fff;
    color: #000;
    border-top: 1px solid #000;
  }
}
