/* ============================================================
   /assets/site.css — 豪门娱乐会馆 全站共享样式
   ============================================================ */

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

html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body { margin: 0; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #0E2A22;
  --ink-700: #163D31;
  --moss-500: #2F5D4A;
  --gold-500: #B08A4A;
  --gold-300: #D8B877;
  --sand-100: #F3EDE1;
  --paper-50: #FBF8F1;
  --stone-500: #6B6A62;
  --cinnabar-600: #A6402D;
  --ink-text: #101512;

  --line-dark: rgba(216, 184, 119, 0.26);
  --line-dark-soft: rgba(216, 184, 119, 0.14);
  --line-light: rgba(16, 21, 18, 0.14);
  --line-light-soft: rgba(16, 21, 18, 0.08);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4.4vw, 48px);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-text);
  background-color: var(--sand-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: clamp(32px, 5vw, 64px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 18px; }

::selection { background: var(--gold-300); color: var(--ink-900); }

/* ---------- 4. 工具类 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-500);
}

.hairline {
  height: 1px;
  border: 0;
  background: var(--line-light);
}

.lede {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.9;
  color: var(--stone-500);
  max-width: 38em;
}

.prose {
  max-width: 40em;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-text);
}
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: 0.6em; }
.prose ul, .prose ol { list-style: disc; padding-left: 1.4em; margin-top: 1em; }
.prose li + li { margin-top: 0.5em; }
.prose a {
  color: var(--moss-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 5. 焦点与跳过链接 ---------- */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -120px;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  background: var(--gold-300);
  color: var(--ink-900);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink-900);
  color: var(--sand-100);
  box-shadow: 0 1px 0 rgba(216, 184, 119, 0.18);
}

.header-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  z-index: 3;
  background: rgba(216, 184, 119, 0.12);
  pointer-events: none;
}
.header-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transition: width 0.12s linear;
}

.header-utility {
  overflow: hidden;
  max-height: 64px;
  opacity: 1;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-dark-soft);
  transition: max-height 0.35s var(--ease), opacity 0.25s ease;
}
.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 9px;
}
.header-utility__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(243, 237, 225, 0.58);
}
.header-utility__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-500);
  flex: none;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.utility-links__link {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(243, 237, 225, 0.74);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.utility-links__link:hover {
  color: var(--gold-300);
  border-bottom-color: var(--gold-500);
}

.masthead {
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-dark);
}
.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 20px;
  transition: padding 0.3s var(--ease);
}
.masthead__side {
  display: flex;
  align-items: center;
  min-width: 0;
}
.masthead__side--end { justify-content: flex-end; }
.masthead__issue {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(216, 184, 119, 0.76);
  white-space: nowrap;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: center;
  padding: 4px;
  text-decoration: none;
  color: inherit;
}
.masthead__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--ink-900), inset 0 0 0 4px rgba(176, 138, 74, 0.45);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), font-size 0.3s var(--ease);
}
.masthead__text { display: block; min-width: 0; }
.masthead__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: 0.08em;
  color: var(--sand-100);
  transition: font-size 0.3s var(--ease);
}
.masthead__tagline {
  display: block;
  max-height: 22px;
  overflow: hidden;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(216, 184, 119, 0.86);
  transition: max-height 0.3s var(--ease), opacity 0.25s ease, margin-top 0.3s var(--ease);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(248px, 100%);
  padding: 7px 12px;
  border: 1px solid rgba(216, 184, 119, 0.32);
  background: rgba(251, 248, 241, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.search:focus-within {
  border-color: var(--gold-300);
  background: rgba(251, 248, 241, 0.09);
  box-shadow: 0 0 0 2px rgba(216, 184, 119, 0.22);
}
.search__icon {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(216, 184, 119, 0.8);
}
.search__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sand-100);
  font-size: 13px;
  line-height: 1.6;
}
.search__input::placeholder { color: rgba(243, 237, 225, 0.45); }
.search__input:focus { outline: none; }

/* ---------- 7. 栏目带与主导航 ---------- */
.nav-bar {
  position: relative;
  z-index: 2;
  background: var(--ink-700);
  color: var(--sand-100);
  border-bottom: 1px solid rgba(216, 184, 119, 0.3);
}
.nav-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
}

.primary-nav { display: flex; justify-content: center; }
.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 2.2vw, 30px);
}
.primary-nav__item { min-width: 0; }
.primary-nav__link {
  position: relative;
  display: inline-block;
  padding: 15px 4px;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: rgba(243, 237, 225, 0.8);
  text-decoration: none;
  transition: color 0.22s ease;
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 9px;
  height: 1px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.primary-nav__link:hover { color: var(--gold-300); }
.primary-nav__link:hover::after { transform: scaleX(1); }
.primary-nav__link[aria-current="page"] { color: var(--gold-300); }
.primary-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  height: 2px;
  background: var(--gold-500);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(216, 184, 119, 0.4);
  color: var(--sand-100);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
  background: rgba(216, 184, 119, 0.08);
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: none;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* 页头折叠态 */
.site-header.is-compact .header-utility {
  max-height: 0;
  opacity: 0;
}
.site-header.is-compact .masthead__inner { padding-block: 10px; }
.site-header.is-compact .masthead__mark {
  width: 34px;
  height: 34px;
  font-size: 16px;
}
.site-header.is-compact .masthead__title { font-size: clamp(18px, 2.2vw, 22px); }
.site-header.is-compact .masthead__tagline {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}
.site-header.is-compact .search { padding: 5px 10px; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  background: var(--ink-900);
  color: rgba(243, 237, 225, 0.78);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--moss-500) 45%, var(--ink-700));
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: clamp(22px, 3.6vw, 38px);
  border-bottom: 1px solid var(--line-dark-soft);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(176, 138, 74, 0.65);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--ink-900), inset 0 0 0 4px rgba(176, 138, 74, 0.35);
}
.footer-brand__text { min-width: 0; }
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: var(--sand-100);
}
.footer-brand__note {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(216, 184, 119, 0.72);
}
.footer-top__cta { flex: none; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  padding-block: clamp(26px, 4vw, 46px);
  border-bottom: 1px solid var(--line-dark-soft);
}
.footer-col { min-width: 0; }
.footer-col--contact { grid-column: span 1; }
.footer-col--contact .footer-col__list { gap: 14px; }
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold-300);
}
.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  color: rgba(243, 237, 225, 0.74);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.26s var(--ease);
}
.footer-link:hover { color: var(--gold-300); }
.footer-link:hover::after { width: 100%; }
.footer-link--static {
  color: rgba(243, 237, 225, 0.44);
  cursor: default;
}
.footer-link--static::after { display: none; }
.footer-link--static:hover { color: rgba(243, 237, 225, 0.44); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(216, 184, 119, 0.7);
}
.footer-contact__value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--sand-100);
  word-break: break-word;
}

.footer-bottom {
  padding-block: 22px 34px;
}
.footer-note {
  max-width: 64ch;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: rgba(243, 237, 225, 0.5);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark-soft);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(216, 184, 119, 0.72);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(243, 237, 225, 0.42);
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
              transform 0.22s var(--ease), box-shadow 0.22s ease;
}
.btn--gold {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--ink-900);
}
.btn--gold:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(216, 184, 119, 0.55);
  color: var(--gold-300);
}
.btn--ghost:hover {
  background: rgba(216, 184, 119, 0.12);
  border-color: var(--gold-300);
}
.btn--ink {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--sand-100);
}
.btn--ink:hover {
  background: var(--moss-500);
  border-color: var(--moss-500);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  padding-block: 14px;
  background: var(--paper-50);
  border-bottom: 1px solid var(--line-light-soft);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stone-500);
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb__link {
  color: var(--stone-500);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb__link:hover { color: var(--gold-500); }
.breadcrumb__sep { color: rgba(107, 106, 98, 0.55); }
.breadcrumb__current { color: var(--ink-900); }

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

/* ---------- 12. 章节 ---------- */
.section { padding-block: clamp(44px, 7vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.section--dark {
  background: var(--ink-900);
  color: var(--sand-100);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--sand-100); }
.section--dark .lede { color: rgba(243, 237, 225, 0.72); }

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 20px);
  margin-bottom: clamp(20px, 3vw, 34px);
}
.section-head__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-500);
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
}
.section-head__rule {
  flex: 1;
  min-width: 40px;
  align-self: center;
  height: 1px;
  background: var(--line-light);
}
.section--dark .section-head__num { color: var(--gold-300); }
.section--dark .section-head__title { color: var(--sand-100); }
.section--dark .section-head__rule { background: var(--line-dark); }

/* ---------- 13. 卡片与标签 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper-50);
  border: 1px solid var(--line-light);
  border-radius: 2px;
}
.card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 3px;
  height: 34px;
  background: var(--gold-500);
}
.card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-500);
}
.card__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-900);
}
.card__body {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--stone-500);
}
.card--dark {
  background: var(--ink-700);
  border-color: rgba(216, 184, 119, 0.22);
}
.card--dark::before { background: var(--gold-300); }
.card--dark .card__label { color: var(--gold-300); }
.card--dark .card__title { color: var(--sand-100); }
.card--dark .card__body { color: rgba(243, 237, 225, 0.72); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.8;
  color: var(--moss-500);
  background: rgba(47, 93, 74, 0.1);
  border: 1px solid rgba(47, 93, 74, 0.28);
  border-radius: 2px;
}
.tag--gold {
  color: var(--gold-500);
  background: rgba(176, 138, 74, 0.12);
  border-color: rgba(176, 138, 74, 0.4);
}
.tag--cinnabar {
  color: var(--cinnabar-600);
  background: rgba(166, 64, 45, 0.08);
  border-color: rgba(166, 64, 45, 0.35);
}

/* ---------- 14. 图片容器（页面阶段复用） ---------- */
.media { display: block; margin: 0; }
.media__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(216, 184, 119, 0.3);
  background: linear-gradient(140deg, var(--ink-700) 0%, var(--ink-900) 58%, var(--moss-500) 100%);
}
.media__frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(216, 184, 119, 0.32);
  pointer-events: none;
}
.media__frame img,
.media__frame picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--tall .media__frame { aspect-ratio: 3 / 4; }
.media--square .media__frame { aspect-ratio: 1 / 1; }
.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stone-500);
}

/* ---------- 15. 显现动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .search { width: 186px; }
  .masthead__inner { gap: 16px; }
}

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

@media (max-width: 860px) {
  html { scroll-padding-top: 104px; }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    padding-block: 16px;
  }
  .masthead__side { display: none; }

  .nav-bar__inner {
    justify-content: flex-start;
    min-height: 56px;
  }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 6px var(--gutter) 18px;
    background: var(--ink-900);
    border-top: 1px solid var(--line-dark);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.38);
  }
  .primary-nav[data-open="true"] { display: block; }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav__link {
    display: block;
    padding: 15px 2px;
    font-size: 16px;
    border-bottom: 1px solid rgba(216, 184, 119, 0.14);
  }
  .primary-nav__link::after { display: none; }
  .primary-nav__link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(176, 138, 74, 0.18), transparent 78%);
    padding-left: 12px;
  }

  .utility-links { gap: 14px; }
  .header-utility__meta { display: none; }
  .header-utility__inner { justify-content: center; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(30px, 8vw, 40px); }
  .grid--3,
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .masthead__title { font-size: 24px; letter-spacing: 0.06em; }
  .masthead__mark { width: 40px; height: 40px; font-size: 18px; }
  .utility-links__link { font-size: 11px; letter-spacing: 0.06em; }
  .footer-top { align-items: flex-start; }
  .footer-top__cta { width: 100%; }
  .footer-brand__name { font-size: 20px; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- 17. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
