/* ============================================================
   博雅棋牌电玩 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 双层页头 / 页脚 / 通用组件
   ============================================================ */

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

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

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --felt: #0E3B32;
  --felt-deep: #092924;
  --felt-2: #145246;
  --gold: #B8893B;
  --gold-soft: #D8B56A;
  --orange: #E36F2D;
  --paper: #EAE0CB;
  --paper-light: #F4EFE4;
  --ink: #171A17;
  --ink-soft: #3F433A;
  --celadon: #8FB7A5;
  --neon: #45D6C0;

  --line: rgba(184, 137, 59, 0.42);
  --line-hair: rgba(184, 137, 59, 0.24);
  --line-ink: rgba(23, 26, 23, 0.14);
  --cream-70: rgba(244, 239, 228, 0.72);
  --cream-55: rgba(244, 239, 228, 0.55);

  --shadow-card: 0 18px 40px -30px rgba(9, 41, 36, 0.85);

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

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius-s: 6px;
  --radius-m: 14px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(184, 137, 59, 0.14), transparent 62%),
    radial-gradient(820px 460px at -10% 24%, rgba(20, 82, 70, 0.09), transparent 60%);
  background-repeat: no-repeat;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: 0.015em;
}

p { text-wrap: pretty; }

strong { font-weight: 600; }

::selection {
  background: rgba(227, 111, 45, 0.32);
  color: var(--ink);
}

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

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

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff6ea;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 12px 24px -14px rgba(9, 41, 36, 0.9);
  transition: transform 0.22s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 页头 ---------- */
.site-header {
  --scroll-progress: 0;
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--paper-light);
  background-color: var(--felt);
  background-image:
    radial-gradient(120% 150% at 10% -40%, rgba(69, 214, 192, 0.16), transparent 58%),
    radial-gradient(90% 130% at 94% 0%, rgba(184, 137, 59, 0.3), transparent 62%),
    linear-gradient(180deg, var(--felt-2) 0%, var(--felt) 72%, var(--felt-deep) 100%);
  box-shadow: 0 18px 34px -30px rgba(0, 0, 0, 0.95);
}

/* 上层：品牌说明 + 内容中心入口 */
.header-utility {
  background: rgba(9, 41, 36, 0.58);
  border-bottom: 1px solid var(--line-hair);
}
.header-utility__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.4rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cream-70);
}
.header-utility__note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.utility-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(69, 214, 192, 0.18);
}
.header-utility__actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: none;
}
.utility-link {
  color: var(--cream-70);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.utility-link:hover,
.utility-link:focus-visible { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }
.utility-link--accent { color: var(--gold-soft); }

/* 下层：品牌 + 主栏目 */
.header-main__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--paper-light);
  flex: 0 1 auto;
  min-width: 0;
}
.brand__mark {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, var(--gold-soft), var(--gold) 38%, #7c5a22 68%, var(--gold-soft));
  box-shadow:
    inset 0 0 0 5px var(--felt),
    inset 0 0 0 6px rgba(244, 239, 228, 0.55),
    0 8px 16px -8px rgba(0, 0, 0, 0.85);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(14, 59, 50, 0.55);
}
.brand:hover .brand__mark {
  transform: translateY(-2px) rotate(-6deg);
  box-shadow:
    inset 0 0 0 5px var(--felt),
    inset 0 0 0 6px rgba(244, 239, 228, 0.9),
    0 12px 22px -8px rgba(216, 181, 106, 0.55);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  min-width: 0;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.brand__line {
  margin-top: 0.22rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--cream-55);
  white-space: nowrap;
}

/* 主栏目 */
.nav-primary__list {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.5vw, 1.4rem);
}
.nav-primary__link {
  position: relative;
  display: inline-block;
  padding: 0.45rem 0.15rem;
  font-size: 15px;
  letter-spacing: 0.07em;
  color: rgba(244, 239, 228, 0.86);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-primary__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.12rem;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}
.nav-primary__link:hover { color: var(--gold-soft); }
.nav-primary__link:hover::after { transform: scaleX(1); }
.nav-primary__link[aria-current="page"] { color: var(--paper-light); }
.nav-primary__link[aria-current="page"]::after {
  transform: scaleX(1);
  height: 2px;
  background: var(--orange);
}
.nav-primary__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -0.35rem;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--orange);
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.07);
  color: var(--paper-light);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: rgba(244, 239, 228, 0.14); border-color: var(--gold-soft); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.26s ease, top 0.26s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 滚动进度线 */
.scroll-progress {
  position: relative;
  height: 2px;
  background: rgba(244, 239, 228, 0.14);
  overflow: hidden;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold) 0%, var(--orange) 55%, var(--neon) 100%);
  transition: transform 0.12s linear;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(2.4rem, 5vw, 4rem) 0 1.6rem;
  color: rgba(244, 239, 228, 0.78);
  background-color: var(--felt);
  background-image:
    radial-gradient(100% 130% at 88% 0%, rgba(184, 137, 59, 0.24), transparent 58%),
    radial-gradient(90% 120% at 4% 20%, rgba(69, 214, 192, 0.12), transparent 62%),
    linear-gradient(180deg, var(--felt-2) 0%, var(--felt-deep) 100%);
  border-top: 1px solid var(--line);
}
.footer-band {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 21px);
  opacity: 0.55;
}
.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.6fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
.footer-brand__name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.16em;
  color: var(--paper-light);
}
.footer-brand__intro {
  margin-top: 0.7rem;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--cream-70);
}
.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding-bottom: 0.6rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-hair);
}
.footer-col__list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link {
  font-size: 14.5px;
  color: rgba(244, 239, 228, 0.8);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--gold-soft);
  padding-left: 0.35rem;
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-contact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 14px;
}
.footer-contact__key {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--celadon);
}
.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 228, 0.9);
  word-break: break-word;
}
.footer-contact__note {
  margin-top: 0.9rem;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--cream-55);
}
.copy-btn {
  flex: none;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 137, 59, 0.55);
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover {
  background: rgba(216, 181, 106, 0.2);
  color: var(--paper-light);
  border-color: var(--gold-soft);
}
.copy-btn[data-copied="true"] {
  background: rgba(69, 214, 192, 0.2);
  border-color: rgba(69, 214, 192, 0.7);
  color: var(--neon);
}

.footer-legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-hair);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cream-55);
}
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
}
.footer-legal__links a {
  color: rgba(244, 239, 228, 0.74);
  text-decoration: none;
  border-bottom: 1px dotted rgba(244, 239, 228, 0.32);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-legal__links a:hover,
.footer-legal__links a:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}
.footer-legal__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.footer-icp { color: rgba(244, 239, 228, 0.7); }
.footer-legal__sep { color: rgba(184, 137, 59, 0.7); }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 59, 50, 0.94);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}
.to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: var(--felt-2); color: var(--paper-light); }
.to-top__label { font-size: 11px; }

/* ---------- 7. 通用布局组件 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(2.6rem, 6vw, 5rem); }

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- 8. 标题与索引 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6b2f;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 54ch;
}
.section-head__title {
  font-size: clamp(30px, 3.6vw, 52px);
  color: var(--ink);
}
.lede {
  max-width: 34em;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.82;
  color: var(--ink-soft);
}
.index-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.16rem 0.55rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: rgba(216, 181, 106, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #7a5c23;
}
.tick-rule {
  height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 10px);
  opacity: 0.45;
}

/* ---------- 9. 卡片与标签 ---------- */
.card {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  border-radius: var(--radius-m);
  border: 1px solid var(--line-ink);
  background: var(--paper-light);
  box-shadow: var(--shadow-card);
}
.card--felt {
  color: rgba(244, 239, 228, 0.9);
  border-color: var(--line);
  background-image:
    radial-gradient(120% 130% at 92% 0%, rgba(184, 137, 59, 0.26), transparent 58%),
    linear-gradient(160deg, var(--felt-2), var(--felt-deep));
}
.card__title {
  font-size: clamp(18px, 1.5vw, 22px);
  color: inherit;
  margin-bottom: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(216, 181, 106, 0.16);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d5322;
}
.chip--neon {
  background: rgba(69, 214, 192, 0.2);
  border-color: rgba(69, 214, 192, 0.55);
  color: #0a2c26;
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background-image: linear-gradient(160deg, var(--orange), #c4551d);
  color: #fff6ea;
  box-shadow: 0 12px 24px -16px rgba(227, 111, 45, 0.95);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px -16px rgba(227, 111, 45, 0.95);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  background: rgba(20, 82, 70, 0.1);
  border-color: var(--gold);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb { margin-top: clamp(1rem, 2vw, 1.6rem); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #6b6a5e;
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: rgba(23, 26, 23, 0.3);
}
.breadcrumb__link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.breadcrumb__item[aria-current="page"] { color: #3f3d33; }

/* ---------- 12. 图像容器基础 ---------- */
.figure-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px 28px 4px 28px;
  border: 1px solid var(--line);
  background-color: var(--felt);
  background-image:
    radial-gradient(120% 90% at 18% 8%, rgba(69, 214, 192, 0.18), transparent 62%),
    radial-gradient(90% 90% at 88% 92%, rgba(227, 111, 45, 0.22), transparent 60%),
    linear-gradient(150deg, var(--felt-2), var(--felt-deep));
  box-shadow: var(--shadow-card);
}
.figure-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame__hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  line-height: 1.9;
  color: rgba(244, 239, 228, 0.55);
}
.figure-frame__caption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #6b6a5e;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .header-utility__inner { padding-block: 0.35rem; }
  .header-main__inner {
    padding-block: 0.65rem;
    gap: 0.8rem;
  }
  .nav-toggle { display: inline-flex; }
  .nav-primary {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 0.4rem var(--gutter) 1.1rem;
    background-image:
      radial-gradient(120% 120% at 90% 0%, rgba(184, 137, 59, 0.26), transparent 60%),
      linear-gradient(180deg, var(--felt-2), var(--felt-deep));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px -32px rgba(0, 0, 0, 0.95);
  }
  .nav-primary[data-open="true"] {
    display: block;
    animation: nav-in 0.22s ease both;
  }
  .nav-primary__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-primary__item + .nav-primary__item { border-top: 1px solid rgba(184, 137, 59, 0.18); }
  .nav-primary__link {
    display: block;
    padding: 0.85rem 0.15rem;
    font-size: 16px;
  }
  .nav-primary__link::after { display: none; }
  .nav-primary__link[aria-current="page"] {
    color: var(--gold-soft);
    padding-left: 0.9rem;
  }
  .nav-primary__link[aria-current="page"]::before {
    top: 50%;
    left: 0;
    margin: -2.5px 0 0 0;
  }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .header-utility__note { display: none; }
  .header-utility__inner { justify-content: flex-end; }
  .brand__line { display: none; }
  .brand__mark { width: 34px; height: 34px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- 14. 无障碍动效偏好 ---------- */
@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;
  }
  .scroll-progress__bar { transition: none; }
}
