/* ==========================================================================
   龙8游戏礼包 — /assets/site.css
   共享层：reset、变量、中文排版、框架式页头、页脚、按钮、面包屑、容器、网格
   ========================================================================== */

:root {
  --ink: #0B0B0E;
  --obsidian: #5A0F1A;
  --wine: #7A1524;
  --gold: #D6A84B;
  --gold-light: #F0D38A;
  --teal: #2E8B87;
  --cyan: #55C9D6;
  --ember: #FF8A3D;
  --paper: #F2E9D8;
  --haze: #B9B2A7;

  --rail-w: 72px;
  --header-h: 84px;
  --wrap: 1180px;

  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --edge: rgba(214, 168, 75, 0.3);
  --edge-soft: rgba(214, 168, 75, 0.16);
  --focus-ring: 0 0 0 3px rgba(240, 211, 138, 0.85);
  --paper-ink: #2A0A10;
}

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

html {
  -webkit-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, picture { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--gold-light);
  text-decoration-color: rgba(214, 168, 75, 0.45);
  text-underline-offset: 0.25em;
}

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

/* ---------- 基础排版 ---------- */
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(30px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }

p { text-wrap: pretty; }

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

#main-content { display: block; scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------- 通用工具 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.seal {
  display: inline-grid;
  place-items: center;
  padding: 4px 9px;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--paper-ink);
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
  border-radius: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  border: 1px solid currentColor;
  border-radius: 2px;
  line-height: 1.6;
}

.tag--gold { color: var(--gold); background: rgba(214, 168, 75, 0.1); }
.tag--teal { color: var(--cyan); background: rgba(85, 201, 214, 0.08); }
.tag--ember { color: var(--ember); background: rgba(255, 138, 61, 0.1); }
.tag--mono { font-family: var(--font-mono); }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 18px;
  font-weight: 700;
  color: var(--paper-ink);
  background: var(--gold);
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--paper-ink);
}

/* ---------- 侧边品牌轨道 ---------- */
.rail { display: none; }

@media (min-width: 1100px) {
  body { padding-left: var(--rail-w); }

  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: var(--rail-w);
    padding: 22px 0 26px;
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(122, 21, 36, 0.9), transparent 62%),
      linear-gradient(180deg, #2A060C 0%, #5A0F1A 48%, #2A060C 100%);
    border-right: 1px solid var(--edge);
    overflow: hidden;
  }

  .rail::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(214, 168, 75, 0.7), transparent);
  }

  .rail-seal {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--paper-ink);
    background: linear-gradient(150deg, var(--gold-light), var(--gold));
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    box-shadow: 0 10px 24px -14px rgba(214, 168, 75, 0.9);
  }

  .rail-text {
    writing-mode: vertical-rl;
    font-family: var(--font-serif);
    font-size: 12px;
    letter-spacing: 0.38em;
    color: rgba(240, 211, 138, 0.72);
  }

  .rail-scale {
    flex: 1 1 auto;
    width: 1px;
    min-height: 60px;
    background: linear-gradient(180deg, transparent, rgba(214, 168, 75, 0.55) 40%, rgba(85, 201, 214, 0.45) 70%, transparent);
  }
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
  color: var(--paper);
  background:
    radial-gradient(120% 190% at 12% -40%, rgba(122, 21, 36, 0.95), transparent 62%),
    linear-gradient(180deg, #5A0F1A 0%, #4A0C15 58%, #33070E 100%);
  border-bottom: 1px solid rgba(214, 168, 75, 0.42);
  box-shadow: 0 20px 44px -36px rgba(0, 0, 0, 0.95);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 11px),
    radial-gradient(circle at 88% 150%, rgba(214, 168, 75, 0.18), transparent 56%);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  width: 100%;
  max-width: 1320px;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 40px);
}

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

.brand:hover { color: var(--paper); }

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--paper-ink);
  background: linear-gradient(150deg, var(--gold-light), var(--gold) 68%, #B0801F);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  box-shadow: 0 10px 24px -16px rgba(214, 168, 75, 0.95);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark { transform: translateY(-2px); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light);
}

.brand-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(242, 233, 216, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 24px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 2px 12px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(242, 233, 216, 0.82);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 14px rgba(214, 168, 75, 0.55);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.9);
}

.nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid rgba(214, 168, 75, 0.5);
  border-radius: 2px;
  background: rgba(11, 11, 14, 0.4);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover {
  background: rgba(214, 168, 75, 0.16);
  border-color: var(--gold);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-light);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(11, 11, 14, 0.55);
  pointer-events: none;
}

.scroll-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--cyan) 48%, var(--gold));
  box-shadow: 0 0 12px rgba(85, 201, 214, 0.6);
  transition: width 0.12s linear;
}

@media (max-width: 1080px) {
  :root { --header-h: 72px; }

  .header-cta { display: none; }

  .brand-name { font-size: 18px; }
  .brand-tag { display: none; }
  .brand-mark { width: 40px; height: 40px; font-size: 22px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px clamp(16px, 3vw, 40px) 26px;
    background:
      radial-gradient(110% 60% at 90% 0%, rgba(122, 21, 36, 0.85), transparent 60%),
      linear-gradient(180deg, #4A0C15 0%, #1A0509 94%);
    border-bottom: 1px solid rgba(214, 168, 75, 0.42);
    box-shadow: 0 30px 48px -28px rgba(0, 0, 0, 0.95);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .site-header[data-open] .nav { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li + li { border-top: 1px solid var(--edge-soft); }

  .nav-link {
    display: block;
    padding: 15px 4px 15px 12px;
    font-size: 17px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    border-bottom: 0;
    border-left-color: var(--gold);
    background: rgba(214, 168, 75, 0.08);
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 18px;
  }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.btn--gold {
  color: var(--paper-ink);
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 62%, #BE8F32);
  box-shadow: 0 12px 24px -16px rgba(214, 168, 75, 0.95);
}

.btn--gold:hover {
  color: var(--paper-ink);
  box-shadow: 0 16px 28px -14px rgba(214, 168, 75, 1);
}

.btn--ghost {
  color: var(--gold-light);
  background: rgba(214, 168, 75, 0.06);
  border-color: rgba(214, 168, 75, 0.5);
}

.btn--ghost:hover {
  color: var(--gold-light);
  background: rgba(214, 168, 75, 0.16);
  border-color: var(--gold);
}

.btn--ember {
  color: var(--paper-ink);
  background: linear-gradient(135deg, #FFA766, var(--ember));
  box-shadow: 0 12px 24px -16px rgba(255, 138, 61, 0.95);
}

.btn--ember:hover { color: var(--paper-ink); }

/* ---------- 容器与章节 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.section { padding-block: clamp(40px, 6vw, 84px); }

.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.section--paper a { color: var(--wine); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--edge);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.15;
  color: var(--gold-light);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--teal);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.9;
  color: rgba(242, 233, 216, 0.78);
}

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }

.section--paper .section-title { color: #4A0C15; }
.section--paper .lede { color: rgba(42, 10, 16, 0.78); }
.section--paper .eyebrow { color: var(--wine); }
.section--paper .section-head { border-bottom-color: rgba(90, 15, 26, 0.24); }

/* ---------- 面包屑 ---------- */
.crumbs { padding-block: 14px; font-size: 12.5px; }

.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(185, 178, 167, 0.9);
}

.crumbs-link {
  color: rgba(240, 211, 138, 0.85);
  text-decoration: none;
}

.crumbs-link:hover { color: var(--gold); text-decoration: underline; }

.crumbs-sep { color: rgba(214, 168, 75, 0.5); }

.crumbs-current { color: rgba(242, 233, 216, 0.65); }

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 30px);
}

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

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

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

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--edge);
  background:
    repeating-linear-gradient(135deg, rgba(214, 168, 75, 0.06) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #1A0509, var(--ink) 72%);
}

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

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

.media-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, transparent 50%, rgba(214, 168, 75, 0.34) 50%);
  pointer-events: none;
}

/* ---------- 纸张面板 ---------- */
.paper-panel {
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  color: var(--paper-ink);
  background: var(--paper);
  border-left: 4px solid var(--gold);
  box-shadow:
    12px 12px 0 -1px rgba(122, 21, 36, 0.6),
    0 26px 52px -32px rgba(0, 0, 0, 0.95);
}

/* ---------- 终端数据条 ---------- */
.data-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(46, 139, 135, 0.1);
  border: 1px solid rgba(85, 201, 214, 0.26);
  border-left: 3px solid var(--cyan);
}

.data-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 目录高亮 ---------- */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--edge-soft);
}

.toc-link {
  padding-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(242, 233, 216, 0.62);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.toc-link:hover { color: var(--gold-light); }

.toc-link[aria-current="true"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 96px);
  color: rgba(242, 233, 216, 0.82);
  background: linear-gradient(180deg, var(--ink) 0%, #1A0509 58%, var(--ink) 100%);
  border-top: 1px solid rgba(214, 168, 75, 0.38);
}

.footer-glow {
  position: absolute;
  top: -160px;
  right: -8%;
  width: 62%;
  height: 340px;
  background: radial-gradient(circle at 70% 0%, rgba(90, 15, 26, 0.8), transparent 68%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 2.1fr;
  gap: clamp(26px, 4vw, 60px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px) clamp(18px, 4vw, 40px) clamp(26px, 4vw, 44px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--paper-ink);
  background: linear-gradient(150deg, var(--gold-light), var(--gold) 70%, #B0801F);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  box-shadow: 0 12px 26px -16px rgba(214, 168, 75, 0.95);
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light);
}

.footer-note {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(242, 233, 216, 0.66);
}

.footer-mail { margin-top: 4px; }

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

.footer-col { min-width: 0; }

.footer-col-title {
  padding-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--gold);
  border-bottom: 1px solid rgba(214, 168, 75, 0.22);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.footer-link {
  font-size: 14px;
  color: rgba(242, 233, 216, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-link:hover {
  color: var(--gold-light);
  border-bottom-color: rgba(214, 168, 75, 0.6);
}

.footer-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-meta-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--teal);
}

.footer-meta-value {
  color: rgba(242, 233, 216, 0.82);
  word-break: break-word;
}

.footer-col--meta .footer-meta-value { font-size: 13px; }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 40px) 26px;
  font-size: 12.5px;
  color: rgba(185, 178, 167, 0.82);
  border-top: 1px solid rgba(214, 168, 75, 0.18);
}

.footer-copy { margin-right: auto; }

.footer-icp { letter-spacing: 0.06em; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  border: 1px solid rgba(214, 168, 75, 0.4);
  border-radius: 2px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.to-top:hover {
  color: var(--gold-light);
  background: rgba(214, 168, 75, 0.14);
  border-color: var(--gold);
}

@media (max-width: 900px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer-links { grid-template-columns: minmax(0, 1fr); }
  .footer-bar { gap: 8px 16px; }
  .footer-copy { margin-right: 0; }
  .to-top { margin-left: 0; }
}

/* ---------- 动效降级 ---------- */
@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-fill { transition: none !important; }
  .btn:hover,
  .nav-link:hover,
  .brand:hover .brand-mark { transform: none; }
}
