/* ==========================================================================
   皇家国际站 /assets/site.css
   共享外壳：重置、变量、中文排版、侧边轨道头部、页脚、通用组件
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #071A33;
}

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%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; }
::selection { background: rgba(200, 164, 93, .34); color: #FFF8E7; }

/* ---------- 2. Tokens ---------- */
:root {
  --deep: #071A33;
  --deep-2: #050F1F;
  --royal: #0B2447;
  --royal-mid: #123A6B;
  --royal-bright: #1B4F8A;
  --gold: #C8A45D;
  --gold-soft: #E3C98F;
  --warm: #F7F3EA;
  --mist: #C9D2DE;
  --ink: #101820;
  --blue-mist: #E8EEF7;

  --line: rgba(200, 164, 93, .26);
  --line-soft: rgba(201, 210, 222, .16);

  --rail-w: 17rem;
  --bar-h: 3.75rem;
  --page-max: 78rem;
  --gutter: clamp(1.15rem, 4vw, 4.25rem);
  --measure: 68ch;

  --r-xl: 2rem;
  --r-lg: 1.15rem;
  --r-pill: 999px;

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

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

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--deep);
  background-image:
    radial-gradient(120% 78% at 88% -12%, rgba(27, 79, 138, .40), transparent 62%),
    radial-gradient(90% 58% at -10% 104%, rgba(200, 164, 93, .07), transparent 58%);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

@media (max-width: 63.999rem) {
  body { padding-top: var(--bar-h); }
}

#main-content { display: block; scroll-margin-top: calc(var(--bar-h) + 1rem); }

@media (min-width: 64rem) {
  #main-content { scroll-margin-top: 1.5rem; }
}

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--warm);
  line-height: 1.14;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); line-height: 1.32; }
h4 { font-size: 1.05rem; line-height: 1.4; }

p { text-wrap: pretty; }

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--warm);
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.78;
  color: rgba(201, 210, 222, .92);
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
  opacity: .8;
}

.num,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.annotation {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .24em;
  color: rgba(227, 201, 143, .78);
}

.annotation--vertical {
  writing-mode: vertical-rl;
  letter-spacing: .34em;
}

.prose {
  max-width: var(--measure);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--mist);
}

.prose--narrow { max-width: 62ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 2.1em; margin-bottom: .55em; }
.prose strong { color: var(--warm); font-weight: 600; }

.prose a {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(200, 164, 93, .42);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.prose a:hover { color: #FFF6DF; border-bottom-color: var(--gold-soft); }

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 1.35rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: .82em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.prose ol { counter-reset: step; }

.prose ol li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .1em;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--gold);
}

/* ---------- 5. Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section + .section { padding-top: 0; }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), transparent 78%);
}

.stack > * + * { margin-top: var(--stack, 1.1rem); }

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

.grid {
  display: grid;
  gap: clamp(1rem, 2.6vw, 2rem);
}

.grid--halves { grid-template-columns: 1fr; }
.grid--thirds { grid-template-columns: 1fr; }
.grid--offset { grid-template-columns: 1fr; }

@media (min-width: 48rem) {
  .grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 60rem) {
  .grid--offset {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    column-gap: clamp(2rem, 5vw, 5rem);
  }
}

/* ---------- 6. Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.2;
  cursor: pointer;
  transition: background .24s var(--ease), color .24s var(--ease),
              border-color .24s var(--ease), transform .24s var(--ease);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #12203A;
}

.btn--gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  background: rgba(200, 164, 93, .12);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn--sm { padding: .5rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .34rem .82rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(200, 164, 93, .07);
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  line-height: 1.5;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.pill:hover { border-color: var(--gold); }

.pill[aria-pressed="true"],
.pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #12203A;
}

.crumbs { font-size: .76rem; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  letter-spacing: .06em;
  color: rgba(201, 210, 222, .58);
}

.crumbs__item { display: flex; align-items: center; gap: .5rem; }
.crumbs__item + .crumbs__item::before { content: "/"; color: rgba(200, 164, 93, .55); }
.crumbs__item[aria-current="page"] { color: var(--gold-soft); }

.crumbs__link { transition: color .2s var(--ease); }
.crumbs__link:hover { color: var(--gold-soft); }

.panel {
  background: rgba(18, 58, 107, .34);
  border: 1px solid rgba(201, 210, 222, .10);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.panel--mist {
  background: var(--blue-mist);
  border-color: rgba(16, 24, 32, .08);
  color: var(--ink);
}

.panel--mist h2,
.panel--mist h3,
.panel--mist h4 { color: var(--ink); }
.panel--mist .annotation,
.panel--mist .num { color: #2C4E7A; }

/* 响应式图片容器基础规则 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgba(201, 210, 222, .12);
  background:
    linear-gradient(148deg, rgba(18, 58, 107, .92) 0%, rgba(7, 26, 51, .96) 58%, rgba(200, 164, 93, .16) 100%);
  isolation: isolate;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 92% at 18% 0%, rgba(200, 164, 93, .18), transparent 62%);
  pointer-events: none;
  z-index: 1;
}

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

.media--wide { aspect-ratio: 16 / 9; }
.media--panorama { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 4 / 5; }

@media (max-width: 47.999rem) {
  .media--panorama { aspect-ratio: 4 / 3; }
  .media--portrait { aspect-ratio: 5 / 4; }
}

.media__caption {
  margin-top: .7rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .05em;
  color: rgba(201, 210, 222, .62);
}

/* ---------- 7. Header：侧边轨道 ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

.skip-link {
  position: fixed;
  top: .7rem;
  left: 50%;
  z-index: 200;
  padding: .6rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #12203A;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  transform: translate(-50%, -220%);
  transition: transform .22s var(--ease);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width .12s linear;
}

@media (min-width: 64rem) {
  .scroll-progress { left: var(--rail-w); }
}

/* 顶部条（移动端） */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--bar-h);
  padding-inline: var(--gutter);
  background: rgba(6, 20, 38, .94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}

@media (min-width: 64rem) {
  .topbar { display: none; }
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.topbar__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(200, 164, 93, .24), transparent 72%);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
}

.topbar__name {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--warm);
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .95rem .45rem .8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--warm);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}

.nav-toggle:hover { border-color: var(--gold); background: rgba(200, 164, 93, .1); }

.nav-toggle__box {
  display: grid;
  gap: 5px;
  width: 1rem;
}

.nav-toggle__bar {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform .28s var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 轨道本体 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: var(--rail-w);
  padding: 2rem 1.75rem 1.65rem 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(178deg, #08203D 0%, #071A33 52%, #05121F 100%);
  border-right: 1px solid var(--line);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .02);
}

@media (max-width: 63.999rem) {
  .rail {
    top: var(--bar-h);
    bottom: 0;
    width: min(20rem, 86vw);
    padding-top: 1.5rem;
    box-shadow: 1.5rem 0 4rem rgba(2, 8, 18, .6);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }

  .site-header[data-open="true"] .rail {
    transform: none;
    visibility: visible;
    transition: transform .38s var(--ease), visibility 0s linear 0s;
  }

  .site-header::after {
    content: "";
    position: fixed;
    inset: var(--bar-h) 0 0 0;
    z-index: 60;
    background: rgba(3, 10, 20, .66);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
  }

  .site-header[data-open="true"]::after {
    opacity: 1;
    pointer-events: auto;
  }
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}

.rail__seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(200, 164, 93, .26), transparent 72%);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.rail__names {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  min-width: 0;
}

.rail__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--warm);
  letter-spacing: .02em;
}

.rail__tag {
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .16em;
  color: rgba(201, 210, 222, .58);
}

.rail__search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .95rem;
  border-radius: var(--r-pill);
  border: 1px dashed rgba(200, 164, 93, .34);
  color: var(--mist);
  font-size: .82rem;
  letter-spacing: .06em;
  transition: border-color .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}

.rail__search:hover {
  border-color: var(--gold);
  background: rgba(200, 164, 93, .1);
  color: var(--gold-soft);
}

.rail__search-hint {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: rgba(200, 164, 93, .74);
}

.nav { margin-top: .35rem; }

.nav__caption {
  margin: 0 0 .55rem .7rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(201, 210, 222, .42);
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: .12rem;
}

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .85rem;
  padding: .6rem .75rem .6rem .7rem;
  border-radius: .9rem;
  color: var(--mist);
  font-size: .97rem;
  letter-spacing: .03em;
  transition: color .24s var(--ease), background .24s var(--ease);
}

.nav__num {
  flex: 0 0 auto;
  min-width: 1.55rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: rgba(201, 210, 222, .5);
  transition: color .24s var(--ease);
}

.nav__label { min-width: 0; }

.nav__link:hover {
  color: var(--warm);
  background: rgba(27, 79, 138, .3);
}

.nav__link:hover .nav__num { color: var(--gold-soft); }

.nav__link[aria-current="page"] {
  color: #FFFDF5;
  background: linear-gradient(90deg, rgba(200, 164, 93, .22), rgba(200, 164, 93, 0) 88%);
}

.nav__link[aria-current="page"] .nav__num { color: var(--gold); }

.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .55rem;
  bottom: .55rem;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.rail__foot {
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-soft);
}

.rail__cta { width: 100%; }

.rail__note {
  margin-top: .8rem;
  font-size: .72rem;
  line-height: 1.65;
  color: rgba(201, 210, 222, .5);
}

.rail__annotation {
  position: absolute;
  right: .3rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .4em;
  color: rgba(227, 201, 143, .48);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 63.999rem) {
  .rail__annotation { display: none; }
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(11, 36, 71, .92);
  color: var(--warm);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(.8rem);
  backdrop-filter: blur(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              background .24s var(--ease), color .24s var(--ease),
              border-color .24s var(--ease), visibility 0s linear .3s;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #12203A;
}

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3.5rem, 9vw, 7.5rem);
  padding: clamp(2.5rem, 6vw, 4.75rem) var(--gutter) clamp(1.4rem, 3vw, 2rem);
  overflow: hidden;
  background: linear-gradient(180deg, #061426 0%, #040C17 100%);
  border-top: 1px solid var(--line);
  color: var(--mist);
}

.footer__inner,
.footer__contact,
.footer__base {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin-inline: auto;
}

.footer__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .footer__inner {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.55fr);
    align-items: start;
  }
}

.footer__brand { max-width: 26rem; }

.footer__home {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}

.footer__seal {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(200, 164, 93, .24), transparent 72%);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.footer__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--warm);
  letter-spacing: .03em;
}

.footer__pitch {
  margin-top: 1rem;
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(201, 210, 222, .72);
}

.footer__cta { margin-top: 1.35rem; }

.footer__cols {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.footer__title {
  margin-bottom: .85rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(200, 164, 93, .24);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.footer__link {
  display: inline-block;
  padding: .3rem 0;
  font-size: .92rem;
  color: rgba(201, 210, 222, .82);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer__link:hover {
  color: var(--gold-soft);
  transform: translateX(3px);
}

.footer__contact {
  display: grid;
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 48rem) {
  .footer__contact { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}

.footer__label {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(200, 164, 93, .72);
}

.footer__value {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--warm);
  word-break: break-word;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: clamp(1rem, 2vw, 1.4rem);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: rgba(201, 210, 222, .52);
}

.footer__mark {
  position: absolute;
  right: -.4rem;
  bottom: -1.4rem;
  z-index: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: .8;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 164, 93, .13);
  pointer-events: none;
  user-select: none;
}

@supports not (-webkit-text-stroke: 1px #C8A45D) {
  .footer__mark { color: rgba(200, 164, 93, .05); }
}

/* ---------- 9. 动效、跟随与可访问性 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}

.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

[data-spy] a.is-current {
  color: var(--gold-soft);
  border-color: var(--gold);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

:where(.nav__link, .footer__link, .btn, .pill, .to-top):focus-visible {
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .rail, .site-header::after, .to-top, .scroll-progress__bar { transition: none !important; }
  .footer__link:hover, .btn--gold:hover { transform: none; }
}

@media print {
  .site-header, .to-top, .scroll-progress { display: none !important; }
  body { padding: 0; background: #fff; color: #101820; }
  .site-footer { background: #fff; border-top: 1px solid #999; color: #101820; }
  .footer__mark { display: none; }
}
