/* =========================================================
   澳门娱馆 · 共享样式表 /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, ol, ul {
  margin: 0;
}

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

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

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

button { background: none; border: 0; }

i { font-style: normal; }

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

/* ---------- 2. 设计变量 ---------- */
:root {
  color-scheme: light;

  --ink: #0b1d19;
  --ink-2: #102a24;
  --ink-3: #173a32;

  --cream: #f7f1e4;
  --cream-2: #efe5d2;
  --cream-3: #e2d6bf;

  --line: #d8cbb2;
  --line-soft: #e7ddca;

  --gold: #c9a24a;
  --gold-soft: #e2c885;
  --gold-deep: #8a7030;

  --cobalt: #1f4f9e;
  --cobalt-soft: #2f6bc4;

  --orange: #d1732f;

  --brown: #2c211a;
  --muted: #6d6152;

  --font-sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --rail-w: 272px;
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 3.4vw, 2.6rem);

  --radius: 2px;
  --shadow-1: 0 1px 0 rgba(44, 33, 26, .05), 0 10px 26px -20px rgba(11, 29, 25, .55);
  --shadow-2: 0 20px 48px -32px rgba(11, 29, 25, .65);

  --ease: cubic-bezier(.32, .72, .28, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--cream);
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 79, 158, .06) 1px, transparent 0);
  background-size: 24px 24px;
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .94rem + .28vw, 1.08rem);
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.8rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 2.1vw, 2.7rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.14rem, 1.02rem + .7vw, 1.5rem); letter-spacing: -.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

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

strong, b { color: var(--ink); font-weight: 700; }

small { font-size: .82em; }

::selection { background: rgba(201, 162, 74, .34); color: var(--ink); }

a {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: rgba(31, 79, 158, .34);
  transition: color .18s ease, text-decoration-color .18s ease;
}
a:hover { color: var(--orange); text-decoration-color: currentColor; }

:where(section, article, div, h1, h2, h3)[id] { scroll-margin-top: 92px; }

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--cobalt-soft);
  outline-offset: 2px;
}
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-soft); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. 布局工具 ---------- */
.wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--maxw));
  margin-inline: auto;
}
.wrap--narrow { max-width: 760px; }

.section { padding-block: clamp(2.6rem, 5vw, 4.8rem); }
.section--tight { padding-block: clamp(1.7rem, 3vw, 2.8rem); }

.section--ink {
  background: var(--ink);
  background-image: linear-gradient(180deg, #0d221d 0%, #081512 100%);
  color: rgba(247, 241, 228, .84);
}
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--cream); }
.section--ink a { color: var(--gold-soft); }

.section--paper { background: var(--cream-2); }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(1.6rem, 3vw, 2.6rem);
}
.rule--gold { background: linear-gradient(90deg, var(--gold), rgba(201, 162, 74, 0)); }

.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.grid--2,
.grid--3,
.grid--asym { grid-template-columns: 1fr; }

.tile-band {
  height: 10px;
  background-image: repeating-linear-gradient(90deg,
    var(--cobalt) 0 14px,
    var(--cream-2) 14px 28px,
    var(--gold) 28px 42px,
    var(--cream-2) 42px 56px);
  opacity: .8;
}

/* ---------- 6. 排版组件 ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.lede {
  max-width: 62ch;
  font-size: clamp(1.02rem, .95rem + .5vw, 1.22rem);
  line-height: 1.9;
  color: var(--muted);
}

.chapter { display: grid; gap: .35rem; }
.chapter-num {
  font-family: var(--font-mono);
  font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--cream-3);
}
@supports (-webkit-text-stroke: 1px currentColor) {
  .chapter-num { color: transparent; -webkit-text-stroke: 1px var(--gold-deep); }
}
.chapter-title { font-size: clamp(1.15rem, 1.02rem + .8vw, 1.6rem); }

.label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .58rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--gold { border-color: rgba(201, 162, 74, .55); color: var(--gold-deep); }
.label--cobalt { border-color: rgba(31, 79, 158, .42); color: var(--cobalt); }
.label--orange { border-color: rgba(209, 115, 47, .48); color: var(--orange); }

.stat { display: grid; gap: .25rem; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.1;
  color: var(--ink);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--muted);
}

/* ---------- 7. 按钮 ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .78em 1.5em;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-soft);
  transform: translateY(-1px);
}

.btn--solid { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--gold-soft); }

.btn--ghost { border-color: rgba(226, 200, 133, .45); color: var(--gold-soft); }
.btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.btn--cobalt { border-color: var(--cobalt); color: var(--cobalt); }
.btn--cobalt:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  margin-bottom: clamp(1.2rem, 2.4vw, 2rem);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .55rem; }
.breadcrumb li { display: flex; align-items: center; gap: .55rem; }
.breadcrumb li + li::before { content: "→"; font-size: .85em; color: var(--gold); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cobalt); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 9. 通用内容组件 ---------- */
.card {
  padding: clamp(1.1rem, 2vw, 1.6rem);
  background: #fffdf8;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.card--ink {
  background: var(--ink-2);
  border-color: rgba(226, 200, 133, .22);
  color: rgba(247, 241, 228, .8);
}
.card--ink h3 { color: var(--cream); }

.toc { border-top: 1px solid var(--line); }
.toc__item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--brown);
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .24s var(--ease);
}
.toc__item:hover { color: var(--cobalt); padding-left: .55rem; }
.toc__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--gold-deep);
}
.toc__label { font-weight: 600; }
.toc__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  color: var(--muted);
}

/* 图片容器（页面阶段放入 <img>） */
.figure { display: grid; gap: .7rem; margin: 0; }
.figure figcaption {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .7rem .9rem;
  background: linear-gradient(rgba(11, 29, 25, 0), rgba(11, 29, 25, .86));
  color: rgba(247, 241, 228, .88);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
}
.media__tag {
  position: absolute;
  top: .7rem;
  left: .7rem;
  padding: .28rem .6rem;
  background: rgba(11, 29, 25, .74);
  border: 1px solid rgba(226, 200, 133, .4);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
}

/* ---------- 10. 显现动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(23, 58, 50, .92), rgba(11, 29, 25, .99));
  color: var(--cream);
  border-bottom: 1px solid rgba(201, 162, 74, .36);
}
.site-header.is-nav-open { border-bottom-color: rgba(226, 200, 133, .6); }

.rail-head {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold-deep));
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand-text { display: grid; gap: 1px; }
.brand-name {
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--cream);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(226, 200, 133, .72);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(226, 200, 133, .42);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background: rgba(226, 200, 133, .12); border-color: var(--gold-soft); }
.nav-toggle[aria-expanded="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.nav-toggle-bars { display: grid; gap: 3px; width: 14px; }
.nav-toggle-bars i { display: block; height: 1px; background: currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }

.rail-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(86vw, 340px);
  padding: 28px 22px 40px;
  background-color: var(--ink-2);
  background-image: linear-gradient(200deg, rgba(23, 58, 50, .92), rgba(11, 29, 25, 1));
  border-left: 1px solid rgba(201, 162, 74, .3);
  box-shadow: -26px 0 64px -44px rgba(0, 0, 0, .95);
  overflow-y: auto;
  visibility: hidden;
  transform: translateX(102%);
  transition: transform .4s var(--ease), visibility .4s var(--ease);
}
.rail-nav[data-open="true"] {
  visibility: visible;
  transform: translateX(0);
}

.rail-nav-title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 200, 133, .16);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(226, 200, 133, .62);
}

.rail-list { display: grid; gap: 2px; }
.rail-item { position: relative; }

.rail-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 12px;
  border-bottom: 1px solid rgba(226, 200, 133, .1);
  border-radius: var(--radius);
  color: rgba(247, 241, 228, .88);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease), padding-left .2s var(--ease);
}
.rail-link:hover,
.rail-link:focus-visible {
  background: rgba(226, 200, 133, .08);
  border-bottom-color: rgba(226, 200, 133, .4);
  color: var(--gold-soft);
  padding-left: 18px;
}

.rail-num {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--gold);
  opacity: .7;
  transition: opacity .2s ease, color .2s ease;
}
.rail-link:hover .rail-num { opacity: 1; color: var(--orange); }

.rail-label { flex: 1 1 auto; }

.rail-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(226, 200, 133, .16), rgba(226, 200, 133, 0));
  border-bottom-color: rgba(226, 200, 133, .45);
  color: var(--gold-soft);
}
.rail-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--gold);
}
.rail-link[aria-current="page"] .rail-num { opacity: 1; }

.rail-scrim { display: none; }

.rail-foot { display: none; }
.rail-foot-line {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .16em;
  color: rgba(226, 200, 133, .6);
}
.rail-foot-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(226, 200, 133, .4);
  color: var(--gold-soft);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.rail-foot-link:hover { color: var(--orange); border-bottom-color: var(--orange); }

@media (max-width: 1023px) {
  .rail-nav[data-open="true"] ~ .rail-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    padding: 0;
    background: rgba(6, 18, 15, .7);
    cursor: pointer;
  }
}

@media (max-width: 379px) {
  .brand-sub { display: none; }
}

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

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 34px 26px 26px;
    border-bottom: 0;
    border-right: 1px solid rgba(201, 162, 74, .32);
    background-image: linear-gradient(190deg, #16352e 0%, #0b1d19 62%, #081512 100%);
    overflow-y: auto;
  }

  .rail-head { margin: 0 0 34px; }
  .brand { width: 100%; }
  .brand-mark { width: 44px; height: 44px; font-size: 1.15rem; }
  .brand-name { font-size: 1.04rem; }

  .nav-toggle { display: none; }

  .rail-nav {
    position: static;
    flex: 1 1 auto;
    width: auto;
    padding: 0;
    background: transparent;
    background-image: none;
    border-left: 0;
    box-shadow: none;
    overflow: visible;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .rail-nav[data-open="true"] { transform: none; }

  .rail-scrim { display: none !important; }

  .rail-foot {
    display: block;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(226, 200, 133, .18);
  }

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

  :where(section, article, div, h1, h2, h3)[id] { scroll-margin-top: 32px; }
}

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

/* ---------- 12. 页脚 ---------- */
.site-footer {
  padding: clamp(2.4rem, 5vw, 4.2rem) 0 1.4rem;
  background-color: var(--ink);
  background-image: linear-gradient(180deg, #0c211c 0%, #081512 100%);
  border-top: 3px double rgba(201, 162, 74, .42);
  color: rgba(247, 241, 228, .8);
}
.site-footer p { margin: 0; }

.footer-inner {
  width: min(calc(100% - (var(--gutter) * 2)), var(--maxw));
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 2.6rem);
}

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

.footer-col--brand { position: relative; padding-top: .2rem; }
.footer-col--brand::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: .95rem;
  background: var(--gold);
}

.footer-col--contact {
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  border: 1px solid rgba(226, 200, 133, .2);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(31, 79, 158, .16), rgba(11, 29, 25, 0) 62%);
}

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

.footer-brand {
  margin: 0 0 .7rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--cream);
}

.footer-note {
  max-width: 34ch;
  font-size: .89rem;
  line-height: 1.8;
  color: rgba(247, 241, 228, .66);
}

.site-footer .footer-icp {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: rgba(226, 200, 133, .55);
}

.footer-heading {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

.tag-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.tag {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(226, 200, 133, .3);
  border-radius: 999px;
  color: rgba(247, 241, 228, .9);
  font-size: .8rem;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease);
}
.tag:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.tag-wall .tag:nth-child(3n + 2) { border-color: rgba(47, 107, 196, .55); }
.tag-wall .tag:nth-child(3n + 2):hover {
  background: var(--cobalt-soft);
  border-color: var(--cobalt-soft);
  color: #fff;
}
.tag-wall .tag:nth-child(3n) { border-color: rgba(209, 115, 47, .5); }
.tag-wall .tag:nth-child(3n):hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.contact-list { display: grid; gap: 11px; }
.contact-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  font-size: .83rem;
  line-height: 1.65;
}
.contact-row dt {
  padding-top: .28em;
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .14em;
  color: rgba(226, 200, 133, .68);
}
.contact-row dd {
  margin: 0;
  color: rgba(247, 241, 228, .76);
  word-break: break-word;
}

.footer-links { display: grid; gap: 10px; }
.footer-links a {
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: rgba(247, 241, 228, .72);
  font-size: .88rem;
  letter-spacing: .03em;
  text-decoration: none;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer-links a:hover {
  color: var(--gold-soft);
  border-bottom-color: rgba(226, 200, 133, .5);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(226, 200, 133, .16);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: rgba(247, 241, 228, .46);
}
.footer-base-note { color: rgba(226, 200, 133, .5); }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--contact { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.05fr 1.75fr .85fr .85fr;
    align-items: start;
  }
  .footer-col--contact { grid-column: auto; }
}

/* ---------- 13. 动效降级 ---------- */
@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;
  }
}
