/* ==========================================================================
   皇冠现金 · 中国站点  /assets/site.css
   共享外壳样式：reset · 变量 · 中文排版 · 页头 · 页脚 · 通用组件
   ========================================================================== */

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

:root {
  --ink: #0C0D10;
  --ink-deep: #0A0B0E;
  --charcoal: #16181E;
  --gold: #C9A24D;
  --gold-light: #EBCD8A;
  --cyan: #35D2C2;
  --cyan-deep: #0F6E68;
  --cinnabar: #E2543E;
  --paper: #F4F0E6;
  --muted: #A8A49B;
  --line: #2C2F37;
  --body-text: #C8C3B8;

  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --narrow: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 108px;
  --stack-offset: 6px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }

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

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

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .04em;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 容器与栅格 ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); }
.grid--tight { gap: 14px; }

.split { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 3fr 9fr; gap: 56px; }
}
.rail { align-self: start; }
@media (min-width: 1024px) {
  .rail { position: sticky; top: 132px; }
}

/* ---------- 中文排版 ---------- */
.display-1 {
  font-family: var(--narrow);
  font-size: clamp(2.75rem, 8.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--paper);
}
.display-2 {
  font-family: var(--narrow);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--paper);
}
.display-3 {
  font-family: var(--narrow);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.28;
  letter-spacing: -.01em;
  font-weight: 700;
  color: var(--paper);
}
.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.85;
  color: var(--body-text);
  max-width: 44ch;
}
.mono {
  font-family: var(--mono);
  font-size: .875rem;
  line-height: 1.7;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--muted); }
.hl-gold { color: var(--gold); }
.hl-cyan { color: var(--cyan); }
.nowrap { white-space: nowrap; }

.rot-note {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .3em;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

/* ---------- 区块 ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }
.section--band {
  background: var(--charcoal);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--paper {
  background: var(--paper);
  color: var(--ink);
}
.section--paper .display-1,
.section--paper .display-2,
.section--paper .display-3 { color: var(--ink); }
.section--paper .lede,
.section--paper .prose p { color: #3A3730; }
.section--paper .eyebrow { color: #8A6C22; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.section--paper .section-head { border-bottom-color: rgba(12, 13, 16, .16); }
.section-head__meta { text-align: right; }

.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ---------- 网格底纹 ---------- */
.grid-canvas {
  background-image:
    linear-gradient(to right, rgba(44, 47, 55, .5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44, 47, 55, .5) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- 纸张叠层卡片 ---------- */
.paper {
  position: relative;
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: 24px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  transform: translate(var(--stack-offset), var(--stack-offset));
  pointer-events: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.paper--flat::after { display: none; }
.paper--gold::after { border-color: rgba(201, 162, 77, .38); }
.paper--cyan { border-color: var(--cyan-deep); }
.paper--cyan::after { border-color: rgba(53, 210, 194, .28); }

a.paper:hover,
.paper--hoverable:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
a.paper:hover::after { transform: translate(calc(var(--stack-offset) + 2px), calc(var(--stack-offset) + 2px)); border-color: rgba(201, 162, 77, .45); }

.paper__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.paper__num {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--gold);
}
.paper__title {
  font-family: var(--narrow);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
  margin-bottom: 8px;
}
.paper__text { font-size: .96rem; line-height: 1.8; color: var(--body-text); }

/* ---------- 金色路径线 ---------- */
.gold-rule {
  position: relative;
  height: 1px;
  width: 100%;
  background: rgba(201, 162, 77, .18);
  overflow: hidden;
}
.gold-rule::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 60%, rgba(201, 162, 77, .1));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s var(--ease);
}
.gold-rule.is-drawn::before { transform: scaleX(1); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { background: rgba(201, 162, 77, .12); border-color: var(--gold); color: var(--gold-light); }
.btn--cyan { border-color: var(--cyan-deep); color: var(--cyan); }
.btn--cyan:hover { background: var(--cyan-deep); color: var(--paper); border-color: var(--cyan-deep); }
.btn--sm { padding: 8px 14px; font-size: .85rem; }

.copy-btn {
  margin-left: 8px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.copy-btn:hover { color: var(--gold-light); border-color: var(--gold); }

/* ---------- 标签 / 状态 ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .07em;
  white-space: nowrap;
}
.tag--gold { border-color: rgba(201, 162, 77, .5); color: var(--gold); }
.tag--cyan { border-color: var(--cyan-deep); background: rgba(15, 110, 104, .16); color: var(--cyan); }

.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--cyan-deep);
  background: rgba(15, 110, 104, .16);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
}
.device-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
  flex: none;
}

.time-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--muted);
  white-space: nowrap;
}
.time-stamp--fresh { color: var(--cinnabar); }
.time-stamp--fresh::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cinnabar);
  border-radius: 50%;
  flex: none;
}

/* ---------- 标签矩阵 ---------- */
.matrix {
  border: 1px solid var(--line);
  background: var(--line);
  display: grid;
  gap: 1px;
}
.matrix__row {
  display: grid;
  grid-template-columns: minmax(86px, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  transition: background .18s var(--ease);
}
.matrix__row--head { background: var(--charcoal); }
.matrix__row:hover { background: var(--charcoal); }
.matrix__cell {
  padding: 12px 14px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--body-text);
  min-width: 0;
}
.matrix__row--head .matrix__cell {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
}
.matrix__cell--key { color: var(--paper); font-weight: 600; }

/* ---------- 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.filter-btn:hover { color: var(--paper); border-color: var(--gold); }
.filter-btn[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- 折叠 ---------- */
.fold {
  border: 1px solid var(--line);
  background: var(--charcoal);
}
.fold + .fold { margin-top: -1px; }
.fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  transition: color .18s var(--ease);
}
.fold__summary:hover { color: var(--gold-light); }
.fold__icon {
  font-family: var(--mono);
  color: var(--gold);
  font-size: .95rem;
  flex: none;
  transition: transform .2s var(--ease);
}
.fold__summary[aria-expanded="true"] .fold__icon { transform: rotate(45deg); }
.fold__body {
  padding: 0 18px 18px;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--body-text);
}
.fold__body[hidden] { display: none; }

/* ---------- 目录索引 ---------- */
.doc-index {
  border-left: 1px solid var(--line);
  padding-left: 4px;
}
.doc-index__item { margin-bottom: 0; }
.doc-index__link {
  display: block;
  margin-left: -5px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.doc-index__link:hover { color: var(--paper); background: rgba(201, 162, 77, .06); }
.doc-index__link.is-active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(201, 162, 77, .08);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 22px 0 0; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumb__item { display: flex; align-items: center; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin: 0 9px;
  color: var(--line);
}
.breadcrumb__link { transition: color .18s var(--ease); }
.breadcrumb__link:hover { color: var(--gold-light); }

/* ---------- 正文容器 ---------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.05em; color: var(--body-text); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--narrow);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin: 1.8em 0 .7em;
  color: var(--paper);
}
.prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.5em 0 .5em;
  color: var(--paper);
}
.prose ul { margin: 0 0 1.1em; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: .45em;
  color: var(--body-text);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .82em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.prose a { color: var(--gold-light); border-bottom: 1px solid rgba(235, 205, 138, .35); }
.prose a:hover { border-bottom-color: var(--gold-light); }
.prose strong { color: var(--paper); }
.prose code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 6px;
  background: var(--charcoal);
  border: 1px solid var(--line);
  color: var(--gold-light);
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--line);
}
.media-frame > img,
.media-frame > svg,
.media-frame > .media-frame__fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: rgba(12, 13, 16, .84);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .07em;
}

/* ---------- 版本水印 ---------- */
.version-mark {
  position: absolute;
  right: -8px;
  bottom: -22px;
  font-family: var(--narrow);
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: rgba(201, 162, 77, .08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ---------- 视口显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[hidden] { display: none !important; }

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(12, 13, 16, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-top { border-bottom: 1px solid var(--line); }

.header-top__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  padding: 9px 0;
  transition: min-height .25s var(--ease), padding .25s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  flex: none;
  white-space: nowrap;
}
.brand__name {
  font-family: var(--narrow);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--paper);
}
.brand__sep { color: var(--gold); font-size: .85rem; }
.brand__sub {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.brand:hover .brand__name { color: var(--gold-light); }

.header-status {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: .8rem;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  transition: opacity .2s var(--ease), max-height .25s var(--ease);
}

.header-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-left: auto;
}

.header-v3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid rgba(201, 162, 77, .55);
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .16em;
  background: rgba(201, 162, 77, .07);
}
.header-v3__dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex: none;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--paper);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__text {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-light); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 主导航 */
.header-nav__inner { display: block; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 14px 16px;
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--paper);
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-item--sub > .nav-link::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -1px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 186px;
  padding: 8px 0;
  background: var(--charcoal);
  border: 1px solid var(--line);
  box-shadow: 0 20px 38px rgba(0, 0, 0, .55);
  display: none;
  z-index: 60;
}
.nav-item--sub:hover .nav-sub,
.nav-item--sub:focus-within .nav-sub { display: block; }

.nav-sub__link {
  display: block;
  padding: 10px 18px;
  font-size: .9rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.nav-sub__link:hover {
  color: var(--gold-light);
  border-left-color: var(--gold);
  background: rgba(201, 162, 77, .08);
}
.nav-sub__link[aria-current="page"] {
  color: var(--gold);
  border-left-color: var(--gold);
}

/* 滚动收缩 */
.site-header.is-condensed .header-top__inner { min-height: 46px; padding: 4px 0; }
.site-header.is-condensed .header-status {
  opacity: 0;
  max-height: 0;
  padding-left: 0;
  border-left-color: transparent;
  pointer-events: none;
}
.site-header.is-condensed .brand__sub { color: var(--gold); }
.site-header.is-condensed .nav-link { padding-top: 10px; padding-bottom: 10px; }
.site-header.is-condensed .nav-link::after { bottom: 4px; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__canvas {
  position: absolute;
  inset: 0;
  opacity: .3;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 62px 0 42px;
}
@media (min-width: 760px) {
  .footer__inner { grid-template-columns: 1.15fr .85fr 1.3fr; gap: 42px; }
}

.footer__col { min-width: 0; }
.footer__col--index { border-top: 2px solid var(--gold); padding-top: 20px; }
.footer__col--legal { border-top: 1px solid var(--line); padding-top: 20px; }
.footer__col--contact { border-top: 1px solid var(--line); padding-top: 20px; }

.footer__title {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer__title:not(:first-child) { margin-top: 26px; }

.footer__links { display: grid; gap: 9px; }
.footer__links a {
  display: inline-block;
  font-size: .94rem;
  color: var(--body-text);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.footer__links a:hover {
  color: var(--gold-light);
  border-bottom-color: rgba(235, 205, 138, .45);
  transform: translateX(3px);
}

.footer__note {
  margin-top: 16px;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 40ch;
}

.footer__contact { display: grid; gap: 14px; }
.footer__contact-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.footer__contact-key {
  flex: none;
  width: 42px;
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--gold);
}
.footer__contact-val {
  font-size: .95rem;
  color: var(--paper);
  word-break: break-word;
  transition: color .18s var(--ease);
}
a.footer__contact-val:hover { color: var(--gold-light); }
.footer__contact-row--wide .footer__contact-val { line-height: 1.7; font-size: .9rem; color: var(--body-text); }

.footer__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
}

/* ==========================================================================
   由 site.js 创建的通用元素
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 300;
  pointer-events: none;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(22, 24, 30, .94);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s, color .18s var(--ease), border-color .18s var(--ease);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: var(--gold-light); border-color: var(--gold); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 980px) {
  :root { --gutter: 18px; }

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

  .header-status { display: none; }

  .header-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px rgba(0, 0, 0, .6);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .header-nav[data-open] { display: block; }

  .header-nav__inner { padding: 10px 0 20px; }

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

  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    display: block;
    padding: 15px 4px;
    font-size: 1rem;
  }
  .nav-link::after { left: 4px; right: auto; width: 0; bottom: 8px; }
  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after { width: 22px; }

  .nav-item--sub > .nav-link::before { right: 8px; }

  .nav-sub {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-sub__link {
    padding: 9px 0 9px 16px;
    font-size: .9rem;
  }

  .site-header.is-condensed .header-status { display: none; }

  .matrix__row { grid-template-columns: minmax(76px, 1fr) repeat(3, minmax(0, 1fr)); }
  .matrix__cell { padding: 10px 8px; font-size: .8rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .section { padding: 52px 0; }
  .section--tight { padding: 32px 0; }

  .paper { padding: 18px; }
  .paper::after { transform: translate(4px, 4px); }

  .brand__sub { display: none; }

  .footer__inner { padding: 46px 0 32px; gap: 32px; }
  .footer__base { flex-direction: column; align-items: flex-start; }

  .back-top { right: 12px; bottom: 14px; }
}

/* ==========================================================================
   可访问性偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .gold-rule::before { transform: scaleX(1); }
  .paper:hover, a.paper:hover, .paper--hoverable:hover, .btn:hover { transform: none; }
}
