/* ==========================================================
   澳门百老汇网 — 共享样式 /assets/site.css
   深海墨蓝为夜 · 奶油纸为页 · 鎏金为灯
   ========================================================== */

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; }

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

hr { border: 0; }

::selection {
  background: var(--gold);
  color: var(--night);
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --night: #071A2F;
  --night-2: #0E2E4E;
  --paper: #F4EBD9;
  --gold: #C9A227;
  --gold-lt: #E8C766;
  --rose: #C2185B;
  --jade: #0F8A66;
  --ink: #1B1B1F;
  --mist: #8FA3B8;
  --white: #FFFFFF;

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", 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;

  /* 字号阶梯 12 / 15 / 18 / 24 / 30 / 38 / 48 / 64 / 84 / 132 */
  --step-1: 12px;
  --step-2: 15px;
  --step-3: 18px;
  --step-4: 24px;
  --step-5: 30px;
  --step-6: 38px;
  --step-7: 48px;
  --step-8: 64px;
  --step-9: 84px;
  --step-10: 132px;

  /* 度量 */
  --wrap: 1280px;
  --read: 680px;
  --gutter: clamp(16px, 3vw, 40px);
  --gap: clamp(16px, 2.4vw, 32px);
  --line-gold: rgba(201, 162, 39, 0.42);
  --line-gold-soft: rgba(201, 162, 39, 0.2);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--step-3);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

h1 { font-size: var(--step-7); }
h2 { font-size: var(--step-5); }
h3 { font-size: var(--step-4); }
h4 { font-size: var(--step-3); }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

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

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-lt);
}

#main-content {
  display: block;
  scroll-margin-top: 110px;
}

/* ---------- 4. 容器与节奏 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--read { max-width: 760px; }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0, var(--gold) 14%, var(--gold) 86%, transparent 100%);
  opacity: 0.55;
  margin-block: clamp(24px, 3vw, 40px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.lede {
  font-size: var(--step-4);
  line-height: 1.6;
  color: var(--ink);
}

.prose {
  max-width: var(--read);
  font-size: var(--step-3);
  line-height: 1.75;
}

.prose h2 { font-size: var(--step-5); margin-block: 1.6em 0.6em; }
.prose h3 { font-size: var(--step-4); margin-block: 1.4em 0.5em; }
.prose p { margin-bottom: 1.2em; }

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin-bottom: 1.2em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45em; }

.prose a {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.prose a:hover { color: var(--gold); }

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

/* ---------- 5. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-lt); }

.btn--rose { background: var(--rose); color: var(--white); }
.btn--rose:hover { background: #A81250; }

.btn--ink { background: var(--night); color: var(--paper); }
.btn--ink:hover { background: var(--night-2); color: var(--gold-lt); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-gold);
}
.btn--ghost:hover { border-color: var(--gold-lt); color: var(--gold-lt); }

.panel {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 36px);
}

.panel--night {
  background: var(--night-2);
  color: var(--paper);
  border-color: rgba(201, 162, 39, 0.28);
}

.panel--night h2,
.panel--night h3 { color: var(--white); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.06em;
  line-height: 1.6;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold);
}

.tag--jade {
  color: var(--jade);
  border-color: rgba(15, 138, 102, 0.45);
  background: rgba(15, 138, 102, 0.12);
}

.tag--rose {
  color: var(--rose);
  border-color: rgba(194, 24, 91, 0.4);
  background: rgba(194, 24, 91, 0.1);
}

.stat {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}

.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step-6);
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.stat__label {
  display: block;
  font-size: var(--step-2);
  color: var(--mist);
  margin-top: 8px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.05em;
  color: var(--mist);
  padding-block: 20px 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--gold);
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* 网格 */
.grid {
  display: grid;
  gap: var(--gap);
}

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

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

.grid--mosaic > * { grid-column: span 2; }
.grid--mosaic > :nth-child(1) { grid-column: span 3; }
.grid--mosaic > :nth-child(2) { grid-column: span 3; }
.grid--mosaic > :nth-child(3) { grid-column: span 2; }

/* 图片容器基础规则（页面阶段放 img 或内联 SVG） */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid var(--line-gold);
  background: var(--night-2);
}

.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--sq { aspect-ratio: 1 / 1; }

/* 可展开内容组 */
.accordion { border-top: 1px solid var(--line-gold); }

.accordion__item { border-bottom: 1px solid var(--line-gold); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0 20px 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-4);
  line-height: 1.3;
  color: var(--ink);
  border-left: 3px solid var(--line-gold-soft);
  transition: border-color 0.25s ease, padding-left 0.25s ease, color 0.2s ease;
}

.accordion__trigger:hover { color: var(--rose); }

.accordion__item[data-open] .accordion__trigger {
  border-left-color: var(--gold);
  padding-left: 16px;
}

.accordion__trigger::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: var(--step-4);
  color: var(--gold);
  flex: none;
}

.accordion__item[data-open] .accordion__trigger::after { content: "–"; }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.accordion__panel > div {
  overflow: hidden;
  max-width: var(--read);
  padding-left: 16px;
}

.accordion__item[data-open] .accordion__panel { grid-template-rows: 1fr; }

.accordion__item[data-open] .accordion__panel > div { padding-bottom: 22px; }

/* 返回顶部 */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 55;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--night-2);
  border: 1px solid var(--line-gold);
  color: var(--gold-lt);
  font-family: var(--font-mono);
  font-size: var(--step-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover { border-color: var(--gold-lt); }

/* 进入视口显现 */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html[data-js] [data-reveal]:not([data-reveal="shown"]) {
  opacity: 0;
  transform: translateY(16px);
}

html[data-js] [data-reveal] {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ---------- 6. 刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--night);
  color: var(--paper);
  border-bottom: 1px solid var(--line-gold);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -130%);
  z-index: 200;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  font-size: var(--step-2);
  padding: 10px 22px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translate(-50%, 0); }

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

.site-header__progress > span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
}

.site-header__inner {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(10px, 1.4vw, 18px) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
}

.masthead {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--paper);
}

.masthead__glyph {
  width: 58px;
  height: 40px;
  color: var(--gold);
  flex: none;
}

.masthead__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.masthead__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-6);
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: font-size 0.2s ease;
}

.masthead__sub {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.24em;
  color: var(--gold-lt);
}

.site-header__utility {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step-1);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--gold-lt);
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.fav-btn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid currentColor;
  flex: none;
  transition: background-color 0.25s ease;
}

.fav-btn:hover { border-color: var(--gold-lt); }

.fav-btn[aria-pressed="true"] {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--white);
}

.fav-btn[aria-pressed="true"] .fav-btn__dot {
  background: var(--white);
  border-color: var(--white);
}

.fav-btn[data-pulse] {
  animation: favPulse 1.4s ease-out 1;
}

@keyframes favPulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 138, 102, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(15, 138, 102, 0); }
}

.utility-link {
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.utility-link:hover { color: var(--gold-lt); border-color: var(--gold-lt); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-gold);
  color: var(--gold-lt);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.site-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.6vw, 36px);
  padding-bottom: 12px;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px 8px;
  font-size: var(--step-3);
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 2px;
  background: var(--gold-lt);
  transition: left 0.25s ease, right 0.25s ease;
}

.site-nav__link:hover { color: var(--gold-lt); }
.site-nav__link:hover::after { left: 0; right: 0; }

.site-nav__link[aria-current="page"] {
  color: var(--gold-lt);
  font-weight: 700;
}

.site-nav__link[aria-current="page"]::after { left: 0; right: 0; }

/* 紧凑态（桌面） */
@media (min-width: 900px) {
  .site-header[data-compact] .site-header__inner { padding-top: 8px; }
  .site-header[data-compact] .masthead__glyph { display: none; }
  .site-header[data-compact] .masthead__sub { display: none; }
  .site-header[data-compact] .masthead__title { font-size: var(--step-4); }
  .site-header[data-compact] .site-nav__list { padding-bottom: 8px; }
  .site-header[data-compact] .site-nav__link { font-size: var(--step-2); }
  .site-header[data-compact] .fav-btn,
  .site-header[data-compact] .utility-link { font-size: var(--step-1); }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  background: var(--night);
  color: var(--paper);
  border-top: 1px solid var(--line-gold);
}

.footer-band {
  position: relative;
  height: 8px;
  background-color: var(--night-2);
  background-image:
    linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 16px),
    linear-gradient(90deg, rgba(194, 24, 91, 0.5) 0 4px, transparent 4px 16px),
    linear-gradient(90deg, rgba(15, 138, 102, 0.45) 0 3px, transparent 3px 16px);
  background-size: 16px 100%, 16px 100%, 16px 100%;
}

.footer-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(60deg, rgba(232, 199, 102, 0.32) 0 1px, transparent 1px 7px);
}

.site-footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(24px, 3vw, 36px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-5);
  line-height: 1.2;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-brand__note {
  font-size: var(--step-2);
  line-height: 1.75;
  color: var(--mist);
  max-width: 34ch;
  margin-bottom: 20px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-nav__list--stack {
  flex-direction: column;
  gap: 10px;
}

.footer-nav__list a {
  font-size: var(--step-2);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav__list a:hover {
  color: var(--gold-lt);
  border-bottom-color: var(--gold);
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-contact__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.1em;
  color: var(--gold);
  min-width: 40px;
}

.footer-contact__val {
  font-size: var(--step-2);
  color: var(--paper);
  word-break: break-word;
}

.footer-contact__note {
  font-size: var(--step-1);
  line-height: 1.8;
  color: var(--mist);
  max-width: 42ch;
}

.footer-rule { margin-block: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 28px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.06em;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal a:hover { color: var(--gold-lt); border-bottom-color: var(--gold); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1023px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--mosaic > *,
  .grid--mosaic > :nth-child(1),
  .grid--mosaic > :nth-child(2),
  .grid--mosaic > :nth-child(3) { grid-column: span 3; }
}

@media (max-width: 899px) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    padding-top: 10px;
  }

  .masthead { grid-column: 1; justify-self: start; }
  .site-header__utility { grid-column: 2; justify-self: end; gap: 10px; }

  .masthead__brand { gap: 8px; }
  .masthead__glyph { width: 38px; height: 27px; }
  .masthead__title { font-size: var(--step-3); letter-spacing: 0.04em; }
  .masthead__sub { display: none; }

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

  .utility-link { font-size: var(--step-1); }

  .fav-btn { font-size: var(--step-1); padding: 5px 9px 5px 8px; }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: stretch;
    display: none;
  }

  .site-nav[data-open] {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    background: var(--night-2);
    border-top: 1px solid var(--line-gold);
    border-bottom: 1px solid var(--line-gold);
    box-shadow: 0 26px 48px rgba(4, 12, 22, 0.5);
    padding-block: 6px;
  }

  .site-nav[data-open] .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0;
  }

  .site-nav__link {
    display: block;
    padding: 14px var(--gutter);
    font-size: var(--step-3);
    border-bottom: 1px solid var(--line-gold-soft);
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] {
    background: rgba(201, 162, 39, 0.12);
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: var(--step-3); }

  h1 { font-size: var(--step-6); }
  h2 { font-size: var(--step-4); }

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

  .grid--mosaic,
  .grid--mosaic > *,
  .grid--mosaic > :nth-child(1),
  .grid--mosaic > :nth-child(2),
  .grid--mosaic > :nth-child(3) { grid-column: span 1; }

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

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .masthead__title { font-size: var(--step-2); }
  .fav-btn__text { display: none; }
  .fav-btn { padding: 8px; }

  .accordion__trigger { font-size: var(--step-3); }
}

@media (max-width: 360px) {
  .utility-link { display: none; }
}

/* ---------- 9. 动效与无障碍 ---------- */
@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;
    transition-delay: 0ms !important;
  }

  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
