/* ==========================================================================
   财神到游戏 · /assets/site.css
   共享外壳：reset、变量、中文排版、页头、页脚、按钮、网格、基础组件
   ========================================================================== */

/* ---- 1. 变量 ----------------------------------------------------------- */
:root {
  --paper: #FDF6E7;
  --paper-2: #F3E7CF;
  --cinnabar: #7A1220;
  --vermilion: #B5461F;
  --gilt: #C08A12;
  --gilt-light: #F0C24B;
  --ink: #1E2B24;
  --pine: #2F5142;
  --taupe: #6E6154;
  --ash: #E7E1D4;
  --soot: #241A14;

  --bevel: 14px;
  --shell-w: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 74px;

  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-num: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --line-soft: rgba(110, 97, 84, .30);
  --line-strong: rgba(110, 97, 84, .55);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body { margin: 0; }

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

ul, ol { padding-left: 1.25em; }
.primary-nav__list,
.drawer-list,
.footer-col__list,
.breadcrumbs__list { padding: 0; list-style: none; }

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

a { color: inherit; }

button { font: inherit; color: inherit; }

hr { border: 0; }

/* ---- 3. 基础排版 ------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: clamp(15.5px, .38vw + 14.4px, 17px);
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 10% -4%, rgba(192, 138, 18, .10), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(122, 18, 32, .06), transparent 32%),
    repeating-linear-gradient(0deg, rgba(110, 97, 84, .045) 0 1px, transparent 1px 7px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink);
}

strong, b { font-weight: 700; }

em { font-style: normal; color: var(--vermilion); }

code, kbd, samp, .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: .94em;
}

::selection {
  background: rgba(192, 138, 18, .32);
  color: var(--ink);
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- 4. 布局容器 ------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(46px, 6.5vw, 96px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }

.flow > * + * { margin-top: 1.05em; }

/* 章节色带 */
.band {
  display: block;
  width: 100%;
  height: 12px;
  border: 0;
  background: linear-gradient(
    90deg,
    var(--cinnabar) 0 26%,
    var(--gilt) 26% 34%,
    var(--vermilion) 34% 62%,
    var(--pine) 62% 100%
  );
  transform-origin: left center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--vermilion);
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 3px;
  background: var(--vermilion);
}

.title-xl {
  font-family: var(--font-head);
  font-size: clamp(40px, 6.2vw, 92px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--ink);
}

.title-lg {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--ink);
}

.lede {
  font-size: clamp(16.5px, .9vw + 13px, 19.5px);
  line-height: 1.72;
  color: var(--pine);
  max-width: 34em;
}

/* ---- 5. 按钮 ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .74em 1.35em;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}

.btn--gold {
  background-image: linear-gradient(180deg, var(--gilt-light) 0%, #D9A22A 54%, var(--gilt) 100%);
  color: #3A2607;
  border-color: rgba(122, 18, 32, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 20px -14px rgba(122, 18, 32, .75);
}

.btn--gold:hover {
  background-image: linear-gradient(180deg, #FFD869 0%, #E2AE33 54%, #C9921B 100%);
}

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

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

.btn--ghost:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
  background-color: rgba(122, 18, 32, .06);
}

.btn--sm { padding: .58em 1.05em; font-size: 14px; }
.btn--block { width: 100%; }

/* ---- 6. 图片容器基础规则（页面阶段放置占位或内联 SVG） ----------------- */
.media-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--ash);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(122, 18, 32, .06) 0 10px,
    transparent 10px 20px
  );
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - var(--bevel)) 0, 100% var(--bevel), 100% 100%, 0 100%);
}

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

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

.media-frame__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: var(--taupe);
}

/* ---- 7. 面板、面包屑、标签页 ------------------------------------------ */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  background-color: var(--paper-2);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - var(--bevel)) 0, 100% var(--bevel), 100% 100%, 0 100%);
}

.panel__title {
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.breadcrumbs {
  padding-block: 18px 4px;
  font-size: 13px;
  color: var(--taupe);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs__list li + li::before {
  content: "／";
  margin-right: 6px;
  color: rgba(110, 97, 84, .55);
}

.breadcrumbs a {
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 81, 66, .32);
}

.breadcrumbs a:hover { color: var(--vermilion); border-bottom-color: var(--vermilion); }

.tabs { margin-block: 26px; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 2px solid rgba(122, 18, 32, .16);
}

.tabs__tab {
  appearance: none;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--pine);
  background-color: var(--ash);
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.tabs__tab:hover { background-color: #DED7C7; }

.tabs__tab[aria-selected="true"] {
  background-color: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper);
}

.tabs__tab:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--cinnabar);
}

.tabs__tab[aria-selected="true"]:focus-visible {
  box-shadow: inset 0 0 0 2px var(--gilt-light);
}

.tabs__panel { padding-block: 22px 0; }
.tabs__panel[hidden] { display: none; }

/* ---- 8. 显现 ----------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

.band[data-reveal] {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.band[data-reveal].is-visible {
  opacity: 1;
  transform: scaleX(1);
}

/* ---- 9. 页头 ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--paper);
  background-color: var(--cinnabar);
  border: 1px solid var(--gilt-light);
  border-radius: 2px;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;

  --hd-text: var(--paper);
  --hd-muted: rgba(253, 246, 231, .74);
  --hd-line: rgba(253, 246, 231, .34);
  --hd-accent: var(--gilt-light);

  background-color: rgba(36, 26, 20, .62);
  border-bottom: 1px solid rgba(253, 246, 231, .14);
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}

.site-header.is-scrolled {
  --hd-text: var(--ink);
  --hd-muted: var(--taupe);
  --hd-line: rgba(30, 43, 36, .26);
  --hd-accent: var(--cinnabar);

  background-color: rgba(253, 246, 231, .97);
  border-bottom-color: rgba(122, 18, 32, .20);
  box-shadow: 0 14px 32px -26px rgba(36, 26, 20, .9);
}

.site-header :focus-visible { outline-color: var(--gilt-light); }
.site-header.is-scrolled :focus-visible { outline-color: var(--cinnabar); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  min-height: var(--header-h);
  padding-block: 0;
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background-image: linear-gradient(90deg, var(--gilt-light) 0%, var(--vermilion) 58%, var(--cinnabar) 100%);
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hd-text);
  flex: 0 0 auto;
}

.brand__seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: var(--gilt-light);
  background-color: var(--cinnabar);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(240, 194, 75, .55), inset 0 0 0 4px rgba(240, 194, 75, .14);
  transition: transform .3s var(--ease);
}

.brand:hover .brand__seal { transform: rotate(-4deg); }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.brand__tagline {
  max-height: 20px;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--hd-muted);
  white-space: nowrap;
  transition: opacity .25s var(--ease), max-height .25s var(--ease), transform .25s var(--ease);
}

.site-header.is-scrolled .brand__tagline {
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px);
  overflow: hidden;
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  margin-inline: auto;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 26px);
  counter-reset: navnum;
}

.primary-nav__item { counter-increment: navnum; }

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--hd-text);
  transition: color .2s var(--ease);
}

.primary-nav__link::before {
  content: "0" counter(navnum);
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--hd-muted);
  transform: translateY(-.4em);
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background-color: var(--hd-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--ease);
}

.primary-nav__link:hover::after,
.primary-nav__link:focus-visible::after,
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.primary-nav__link[aria-current="page"] { color: var(--hd-accent); }

/* 头部操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.site-header .btn--ghost {
  color: var(--hd-text);
  border-color: var(--hd-line);
}

.site-header .btn--ghost:hover {
  color: var(--gilt-light);
  border-color: var(--gilt-light);
  background-color: rgba(240, 194, 75, .14);
}

.site-header.is-scrolled .btn--ghost:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
  background-color: rgba(122, 18, 32, .07);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--hd-text);
  background-color: transparent;
  border: 1px solid var(--hd-line);
  border-radius: 2px;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  transform: rotate(90deg);
}

/* 抽屉内专属元素：桌面隐藏 */
.drawer-head,
.drawer-footer { display: none; }

.drawer-head__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .16em;
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gilt-light);
  background-color: rgba(253, 246, 231, .12);
  border: 1px solid rgba(240, 194, 75, .55);
  border-radius: 2px;
  cursor: pointer;
}

.drawer-close__label { letter-spacing: .1em; }

/* 遮罩 */
.nav-scrim { display: none; }

body.nav-open { overflow: hidden; }

/* ---- 10. 页脚 ---------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding-top: calc(26px + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(28px, 4vw, 44px);
  color: var(--paper);
  background-color: var(--soot);
  background-image:
    radial-gradient(circle at 88% 0%, rgba(192, 138, 18, .16), transparent 42%),
    repeating-linear-gradient(0deg, rgba(253, 246, 231, .035) 0 1px, transparent 1px 8px);
  clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
}

.site-footer :focus-visible { outline-color: var(--gilt-light); }

.site-footer__crest {
  position: absolute;
  top: clamp(46px, 7vw, 86px);
  right: clamp(20px, 7vw, 110px);
  width: 76px;
  height: 76px;
  opacity: .55;
  pointer-events: none;
}

.crest-coin {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(240, 194, 75, .48);
  border-radius: 50%;
}

.crest-coin::before {
  content: "";
  position: absolute;
  inset: 31%;
  background-color: rgba(240, 194, 75, .40);
}

.crest-coin::after {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1px dashed rgba(240, 194, 75, .28);
  border-radius: 50%;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.footer-brand__seal {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--gilt-light);
  border: 1px solid rgba(240, 194, 75, .55);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(240, 194, 75, .13);
}

.footer-brand__name {
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--paper);
}

.footer-brand__summary {
  margin-top: 10px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(253, 246, 231, .68);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gilt-light);
}

.footer-col__list { display: grid; gap: 10px; }

.footer-col__link {
  font-size: 14px;
  color: rgba(253, 246, 231, .78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-col__link:hover {
  color: var(--gilt-light);
  border-bottom-color: rgba(240, 194, 75, .6);
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: clamp(20px, 2.6vw, 28px);
  border-top: 1px solid rgba(253, 246, 231, .16);
}

.footer-contact__line {
  font-size: 13.5px;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: rgba(253, 246, 231, .74);
}

.footer-contact__address {
  font-size: 13.5px;
  color: rgba(253, 246, 231, .55);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 18px;
  border-top: 1px solid rgba(253, 246, 231, .12);
}

.footer-legal {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(253, 246, 231, .60);
}

.footer-note {
  font-size: 13px;
  color: rgba(240, 194, 75, .74);
}

/* ---- 11. 响应式 -------------------------------------------------------- */
@media (max-width: 1199px) {
  .brand__tagline { display: none; }
  .primary-nav__link { font-size: 14px; }
  .site-header__inner { gap: 14px; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }

  .brand__seal { width: 38px; height: 38px; font-size: 19px; }
  .brand__name { font-size: 15.5px; }

  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions > .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  /* 抽屉 */
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    display: flex;
    flex-direction: column;
    width: min(88vw, 352px);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: var(--paper-2);
    background-image: repeating-linear-gradient(0deg, rgba(110, 97, 84, .05) 0 1px, transparent 1px 9px);
    border-left: 1px solid rgba(122, 18, 32, .20);
    box-shadow: -30px 0 70px -34px rgba(36, 26, 20, .65);
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
    transform: translateX(103%);
    transition: transform .34s var(--ease);
  }

  .primary-nav[data-open] { transform: translateX(0); }

  .primary-nav :focus-visible { outline-color: var(--cinnabar); }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 15px 22px;
    background-color: var(--cinnabar);
    color: var(--paper);
    border-bottom: 1px solid rgba(36, 26, 20, .28);
  }

  .drawer-head :focus-visible { outline-color: var(--gilt-light); }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 14px;
  }

  .primary-nav__item--home { order: -2; }
  .primary-nav__item--gift { order: -1; }

  .primary-nav__item { border-bottom: 1px solid rgba(110, 97, 84, .18); }

  .primary-nav__link {
    display: flex;
    width: 100%;
    padding: 15px 22px;
    font-size: 16px;
    color: var(--ink);
  }

  .primary-nav__link::before {
    color: var(--vermilion);
    font-size: 11px;
  }

  .primary-nav__link::after { bottom: 0; height: 0; }

  .primary-nav__link:hover,
  .primary-nav__link:focus-visible { color: var(--cinnabar); }

  .primary-nav__link[aria-current="page"] {
    color: var(--cinnabar);
    background-color: rgba(122, 18, 32, .07);
    box-shadow: inset 3px 0 0 var(--cinnabar);
  }

  .drawer-footer {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding: 18px 22px 28px;
    border-top: 1px solid rgba(110, 97, 84, .22);
  }

  .drawer-footer .btn--ghost {
    color: var(--ink);
    border-color: rgba(30, 43, 36, .32);
  }

  .drawer-footer .btn--ghost:hover {
    color: var(--cinnabar);
    border-color: var(--cinnabar);
    background-color: rgba(122, 18, 32, .06);
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background-color: rgba(36, 26, 20, .58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
  }

  .nav-scrim[data-open] {
    opacity: 1;
    pointer-events: auto;
  }

  /* 页脚 */
  .site-footer { clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%); padding-top: calc(18px + 42px); }
  .site-footer__crest { display: none; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 640px) {
  .brand__name { font-size: 14.5px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 10px; }

  .title-xl { letter-spacing: -.02em; }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .site-footer__contact { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .tabs__tab { padding: 10px 14px; font-size: 13.5px; }
}

/* ---- 12. 动效降级 ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal],
  .band[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
