/* ===========================================================
   WILLIAMHILL 中文站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 基础组件
   =========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0F2A24;
  --ink-deep: #071A15;
  --gold: #C8973F;
  --gold-soft: #E8C77E;
  --teal: #17C3A2;
  --brick: #A8452F;
  --cream: #F4EFE4;
  --paper: #FBF8F1;
  --muted: #6B6257;
  --text: #14211D;

  --line: rgba(20, 33, 29, 0.16);
  --line-strong: rgba(20, 33, 29, 0.34);
  --line-light: rgba(244, 239, 228, 0.22);

  --header-h: 78px;
  --container: 1280px;
  --radius: 4px;
  --shadow-paper: 2px 3px 0 rgba(15, 42, 36, 0.13);
  --shadow-lift: 6px 10px 0 rgba(15, 42, 36, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-head: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body, h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; margin: 0; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-soft); color: var(--ink-deep); }
html.is-nav-open { overflow: hidden; }

/* ---------- 3. Page base ---------- */
body {
  padding-top: var(--header-h);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(15, 42, 36, 0.05) 1px, transparent 1px);
  background-size: 5px 5px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.005em;
  color: var(--ink);
}
h1 { font-size: clamp(34px, 4.6vw, 62px); }
h2 { font-size: clamp(26px, 3.2vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; }
h4 { font-size: 18px; font-weight: 600; }

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.85;
  color: #2C3A34;
  max-width: 38em;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 130;
  transform: translateY(-180%);
  padding: 0.6em 1.05em;
  background: var(--gold);
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  box-shadow: 0 2px 0 rgba(7, 26, 21, 0.5);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--cream);
  background: linear-gradient(180deg, rgba(7, 26, 21, 0.74), rgba(7, 26, 21, 0.42));
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid rgba(232, 199, 126, 0.16);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-solid {
  background: var(--ink);
  border-bottom-color: rgba(232, 199, 126, 0.34);
  box-shadow: 0 12px 28px -22px rgba(7, 26, 21, 0.95);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 115;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft) 60%, var(--teal));
  transition: width 0.1s linear;
}

.header__inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.4vw, 44px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 30px);
}

.header__brand { flex: 0 0 auto; min-width: 0; }
.brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5em; }
.brand__mark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.16em;
  color: var(--paper);
}
.brand__cn {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
}
.brand__tagline {
  flex: 1 1 100%;
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: rgba(244, 239, 228, 0.6);
}

/* nav */
.nav { flex: 1 1 auto; min-width: 0; }
.nav__list { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(8px, 1.5vw, 24px); }
.nav__item { flex: 0 0 auto; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.45em 0.1em;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 228, 0.82);
  transition: color 0.18s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.12em;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold-soft); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--gold-soft); }
.nav__foot { display: none; }

/* header tools */
.header__tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}
.header__actions { display: flex; align-items: center; gap: 8px; }

/* search */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.26em 0.65em;
  border: 1px solid rgba(232, 199, 126, 0.28);
  border-radius: var(--radius);
  background: rgba(7, 26, 21, 0.34);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.search:focus-within { border-color: var(--teal); background: rgba(7, 26, 21, 0.58); }
.search__label { font-size: 11px; letter-spacing: 0.22em; color: var(--gold-soft); white-space: nowrap; }
.search__input {
  width: clamp(104px, 12vw, 188px);
  padding: 0.32em 0;
  font-size: 13.5px;
  color: var(--paper);
  min-width: 0;
}
.search__input::placeholder { color: rgba(244, 239, 228, 0.45); }
.search__input:focus { outline: none; }
.search__suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  max-height: min(64vh, 340px);
  overflow: auto;
  padding: 6px;
  z-index: 125;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.search__suggest[hidden] { display: none; }
.search__suggest-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 0.5em 0.6em;
  border-radius: 3px;
  font-size: 14px;
  color: var(--text);
  transition: background-color 0.16s var(--ease);
}
.search__suggest-item:hover { background: rgba(200, 151, 63, 0.16); }
.search__suggest-kind {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.search__suggest-empty { padding: 0.6em 0.65em; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 0.5em 0.7em;
  border: 1px solid rgba(232, 199, 126, 0.34);
  border-radius: var(--radius);
  color: var(--cream);
  font-size: 12.5px;
  letter-spacing: 0.18em;
}
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 11px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4.5px; transform: rotate(-45deg); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.62em 1.05em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn--gold {
  background: var(--gold);
  color: #10231D;
  border-color: var(--gold);
  box-shadow: 0 2px 0 rgba(7, 26, 21, 0.45);
}
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(244, 239, 228, 0.42); }
.btn--ghost:hover { background: var(--gold-soft); color: var(--ink-deep); border-color: var(--gold-soft); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: var(--shadow-paper); }
.btn--solid:hover { background: var(--ink-deep); border-color: var(--ink-deep); transform: translateY(-1px); }

/* ---------- 7. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 3.4vw, 44px);
}

.section { position: relative; padding-block: clamp(48px, 7vw, 104px); }
.section--tight { padding-block: clamp(28px, 4vw, 58px); }
.section--paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark {
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(200, 151, 63, 0.09), rgba(15, 42, 36, 0) 46%);
  color: rgba(244, 239, 228, 0.86);
  border-top: 1px solid rgba(232, 199, 126, 0.22);
  border-bottom: 1px solid rgba(232, 199, 126, 0.22);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--dark .lead { color: rgba(244, 239, 228, 0.78); }
.section--deep {
  background-color: var(--ink-deep);
  background-image: linear-gradient(180deg, rgba(200, 151, 63, 0.07), rgba(7, 26, 21, 0) 40%);
  color: rgba(244, 239, 228, 0.86);
}

.section__head { display: grid; gap: 14px; max-width: 58ch; margin-bottom: clamp(26px, 4vw, 48px); }

.grid { display: grid; gap: clamp(18px, 2.6vw, 34px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

.hero--bleed {
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(30px, 5vw, 68px));
}

/* ---------- 8. Type furniture ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); flex: 0 0 auto; }
.section--dark .eyebrow, .section--deep .eyebrow { color: var(--gold-soft); }

.index-num {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.index-num::after {
  content: "";
  flex: 1 1 auto;
  min-width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.rule { height: 1px; border: 0; margin: 0; background: var(--line); }
.rule--accent { background: linear-gradient(90deg, var(--gold), rgba(200, 151, 63, 0)); }

.ticks { display: flex; align-items: flex-end; gap: 6px; height: 14px; }
.ticks span { display: block; width: 1px; height: 6px; background: var(--line-strong); }
.ticks span:nth-child(5n + 1) { height: 14px; background: var(--gold); }
.section--dark .ticks span, .section--deep .ticks span { background: rgba(244, 239, 228, 0.35); }
.section--dark .ticks span:nth-child(5n + 1),
.section--deep .ticks span:nth-child(5n + 1) { background: var(--gold-soft); }

.framed {
  position: relative;
  border: 1px solid rgba(200, 151, 63, 0.5);
  padding: clamp(18px, 3vw, 34px);
}
.framed::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(200, 151, 63, 0.22);
  pointer-events: none;
}
.section--dark .framed, .section--deep .framed { border-color: rgba(232, 199, 126, 0.45); }
.section--dark .framed::before, .section--deep .framed::before { border-color: rgba(232, 199, 126, 0.2); }

/* ---------- 9. Prose ---------- */
.prose { max-width: 38em; font-size: 17px; line-height: 1.9; color: #22302B; }
.prose--wide { max-width: 52em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(24px, 2.6vw, 32px); }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul { list-style: none; }
.prose li { padding-left: 0.15em; }
.prose li + li { margin-top: 0.45em; }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background-color 0.18s var(--ease);
}
.prose a:hover { background: var(--gold-soft); }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.2em 0 0.2em 1em;
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.75;
  color: var(--muted);
}
.section--dark .prose, .section--deep .prose { color: rgba(244, 239, 228, 0.84); }
.section--dark .prose a, .section--deep .prose a { color: var(--paper); }

/* ---------- 10. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 18px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.breadcrumb a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.breadcrumb__sep { color: rgba(20, 33, 29, 0.28); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 11. Paper cards & tags ---------- */
.paper {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: clamp(20px, 2.6vw, 32px);
}
.paper--lift { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.paper--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.paper--dark {
  background: var(--ink);
  border-color: rgba(232, 199, 126, 0.28);
  color: rgba(244, 239, 228, 0.86);
  box-shadow: 2px 3px 0 rgba(7, 26, 21, 0.5);
}
.paper--tag { border-style: dashed; background: rgba(251, 248, 241, 0.7); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.24em 0.72em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(251, 248, 241, 0.72);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tag:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--ink-deep); }
.tag--gold { background: rgba(200, 151, 63, 0.18); border-color: rgba(200, 151, 63, 0.55); color: #6E4C13; }
.tag--brick { background: rgba(168, 69, 47, 0.12); border-color: rgba(168, 69, 47, 0.5); color: #8A3722; }
.tag--teal { background: rgba(23, 195, 162, 0.14); border-color: rgba(23, 195, 162, 0.5); color: #0C6A58; }
.tag--dark {
  background: rgba(244, 239, 228, 0.08);
  border-color: rgba(232, 199, 126, 0.38);
  color: var(--gold-soft);
}
.tag--dark:hover { background: var(--gold-soft); color: var(--ink-deep); border-color: var(--gold-soft); }

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 195, 162, 0.18);
}

/* ---------- 12. Figures ---------- */
.figure { display: grid; gap: 10px; }
.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--figure-ratio, 4 / 3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-image: linear-gradient(152deg, #E7DFCE, var(--paper) 58%, #DCD2BC);
  box-shadow: var(--shadow-paper);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.figure__frame > img,
.figure__frame > picture > img { width: 100%; height: 100%; object-fit: cover; }
.figure__frame--tall { --figure-ratio: 3 / 4; }
.figure__frame--wide { --figure-ratio: 16 / 9; }
.figure__frame--square { --figure-ratio: 1 / 1; }
.figure__frame--empty::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(20, 33, 29, 0.24);
  border-radius: 2px;
}
.figure__caption { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.section--dark .figure__frame, .section--deep .figure__frame { border-color: rgba(232, 199, 126, 0.3); }
.section--dark .figure__caption, .section--deep .figure__caption { color: rgba(244, 239, 228, 0.6); }

/* ---------- 13. Reveal ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 14. Footer ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 110px);
  background-color: var(--ink-deep);
  background-image: linear-gradient(180deg, rgba(200, 151, 63, 0.08), rgba(7, 26, 21, 0) 42%),
                    repeating-linear-gradient(92deg, rgba(244, 239, 228, 0.03) 0 2px, rgba(244, 239, 228, 0) 2px 7px);
  color: rgba(244, 239, 228, 0.82);
  font-size: 15px;
}
.footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) clamp(18px, 3.4vw, 44px) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.15fr 1.5fr 1.1fr;
  gap: clamp(26px, 4vw, 56px);
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__mark {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--paper);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.footer__mark:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }
.footer__tagline { font-size: 13px; letter-spacing: 0.16em; color: var(--gold-soft); }
.footer__summary { font-size: 14.5px; line-height: 1.9; color: rgba(244, 239, 228, 0.64); max-width: 26em; }
.footer__status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 228, 0.6);
}

.footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.footer__col { min-width: 0; }
.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--gold);
}
.footer__links { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.footer__links a {
  color: rgba(244, 239, 228, 0.78);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer__links a:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }

.footer__contact { min-width: 0; }
.footer__contact-list { display: grid; gap: 11px; font-size: 14px; }
.footer__contact-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; }
.footer__contact-key {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 228, 0.48);
}
.footer__contact-val { color: var(--paper); word-break: break-word; }
.footer__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.55);
  max-width: 34em;
}

.footer__bar { border-top: 1px solid rgba(244, 239, 228, 0.14); }
.footer__bar-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px clamp(18px, 3.4vw, 44px) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  font-size: 12.5px;
  color: rgba(244, 239, 228, 0.56);
}
.footer__copy, .footer__aside { letter-spacing: 0.04em; }
.footer__icp { font-family: var(--font-mono); letter-spacing: 0.06em; color: rgba(244, 239, 228, 0.7); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1180px) {
  .nav__link { font-size: 14px; letter-spacing: 0.03em; }
  .brand__tagline { display: none; }
}

@media (max-width: 1080px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

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

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    z-index: 99;
    overflow-y: auto;
    padding: clamp(18px, 4vw, 30px) clamp(18px, 4vw, 28px) 44px;
    background: var(--ink);
    border-left: 1px solid var(--line-light);
    box-shadow: -20px 0 44px -30px rgba(7, 26, 21, 0.95);
    transform: translateX(103%);
    visibility: hidden;
    transition: transform 0.26s var(--ease), visibility 0.26s linear;
  }
  .nav[data-open] { transform: translateX(0); visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list::before {
    content: "栏目索引";
    display: block;
    padding-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--gold);
  }
  .nav__item + .nav__item { border-top: 1px solid rgba(244, 239, 228, 0.12); }
  .nav__link { display: block; padding: 0.85em 0; font-family: var(--font-head); font-size: 17px; letter-spacing: 0.06em; }
  .nav__link::after { display: none; }
  .nav__foot {
    display: block;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(244, 239, 228, 0.14);
    font-size: 13px;
    line-height: 1.85;
    color: rgba(244, 239, 228, 0.55);
  }
}

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4,
  .grid--7-5, .grid--5-7, .grid--8-4 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px 18px; }
}

@media (max-width: 700px) {
  :root { --header-h: 108px; }

  body { font-size: 16.5px; }

  .header__inner {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 8px;
    padding-block: 8px;
    gap: 10px;
  }
  .header__brand { flex: 1 1 auto; order: 1; }
  .brand__mark { font-size: 15px; letter-spacing: 0.12em; }
  .header__brand .brand__tagline { display: block; font-size: 10.5px; letter-spacing: 0.1em; }
  .nav-toggle { order: 2; }
  .header__tools {
    order: 3;
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(232, 199, 126, 0.16);
  }
  .search { flex: 1 1 auto; min-width: 0; }
  .search__input { width: 100%; }
  .header__actions { flex: 0 0 auto; gap: 6px; }
  .btn { padding: 0.56em 0.85em; font-size: 13px; }
  .search__label { display: none; }
}

@media (max-width: 480px) {
  .footer__col-title { margin-bottom: 10px; }
  .footer__contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer__contact-key { padding-top: 0; }
  .footer__bar-inner { justify-content: flex-start; }
}

/* ---------- 16. Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .paper--lift:hover, .btn--gold:hover, .btn--solid:hover { transform: none; }
}
