/* ==========================================================================
   麻将胡了试玩 — 共享样式 /assets/site.css
   牌桌墨绿 × 牌面米白 × 青绿 × 朱砂 × 鎏金
   ========================================================================== */

:root {
  /* 色板 */
  --table-green: #0B2B26;
  --jade: #146B5A;
  --jade-bright: #2FA58A;
  --mist: #DCE9E2;
  --tile: #F4EBDD;
  --warm: #FFF9EF;
  --cinnabar: #C8472F;
  --gold: #D4A64A;
  --ink: #1B1B18;
  --grey-jade: #7FA99B;

  /* 字体 */
  --font-head: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 度量 */
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 74px;
  --edge-gold: rgba(212, 166, 74, 0.34);
  --edge-ink: rgba(27, 27, 24, 0.1);
}

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd, dt, hr {
  margin: 0;
}

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

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

button { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 中文排版基底 ---------- */
html { font-size: 100%; }

body {
  font-family: var(--font-body);
  font-size: clamp(16px, 0.42vw + 14.6px, 18px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--tile);
  background-image:
    radial-gradient(78% 58% at 100% 0%, rgba(20, 107, 90, 0.08), transparent 62%),
    radial-gradient(66% 52% at 0% 100%, rgba(212, 166, 74, 0.12), transparent 66%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.5vw, 1.6rem); line-height: 1.35; }
h4 { font-size: 1.1rem; line-height: 1.4; }

p { text-wrap: pretty; }

strong { font-weight: 700; }

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 26px); }

/* ---------- 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--jade-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
  outline-offset: 4px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 0.8em 1.5em;
  border-radius: 0 0 12px 12px;
  background: var(--warm);
  color: var(--table-green);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 10px 26px -12px rgba(11, 43, 38, 0.7);
  transform: translate(-50%, -130%);
  transition: transform 0.22s ease;
}

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

/* ---------- 布局容器 ---------- */
.container {
  width: calc(100% - var(--gutter) * 2);
  max-width: 1240px;
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4.5vw, 58px); }

.section--mist {
  background: var(--mist);
  border-block: 1px solid rgba(20, 107, 90, 0.14);
}

.section--table {
  position: relative;
  background:
    radial-gradient(90% 70% at 88% 0%, rgba(20, 107, 90, 0.6), transparent 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(200, 71, 47, 0.16), transparent 60%),
    var(--table-green);
  color: rgba(244, 235, 221, 0.88);
  border-block: 1px solid var(--edge-gold);
}

.section--table :is(h1, h2, h3, h4) { color: var(--warm); }
.section--table a { color: var(--jade-bright); }

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

/* ---------- 小标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--jade);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.section--table .eyebrow { color: var(--jade-bright); }

/* ---------- 标签胶囊 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.26em 0.78em;
  border-radius: 999px;
  border: 1px solid rgba(20, 107, 90, 0.26);
  background: rgba(20, 107, 90, 0.09);
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag--cinnabar {
  background: rgba(200, 71, 47, 0.1);
  border-color: rgba(200, 71, 47, 0.3);
  color: var(--cinnabar);
}

.tag--gold {
  background: rgba(212, 166, 74, 0.16);
  border-color: rgba(212, 166, 74, 0.42);
  color: #7d5f18;
}

/* ---------- 等宽数据 ---------- */
.data {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.num-accent {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--cinnabar);
  font-variant-numeric: tabular-nums;
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--edge-ink);
  border-radius: var(--radius);
  background: var(--warm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px -24px rgba(11, 43, 38, 0.75);
}

.card--glass {
  background: rgba(244, 235, 221, 0.09);
  border-color: var(--edge-gold);
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.card--jade {
  background: var(--jade);
  border-color: transparent;
  color: var(--warm);
}

.card--jade :is(h1, h2, h3, h4) { color: var(--warm); }

/* ---------- 牌面质感容器 ---------- */
.tile-surface {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--warm), var(--tile) 62%, #EADFCB);
  box-shadow:
    inset 0 0 0 1px rgba(212, 166, 74, 0.42),
    0 18px 34px -28px rgba(11, 43, 38, 0.85);
}

.tile-surface::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 9px;
  border: 1px solid rgba(212, 166, 74, 0.26);
  pointer-events: none;
}

/* ---------- 响应式图片容器 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(142deg, rgba(20, 107, 90, 0.26), rgba(244, 235, 221, 0.72) 52%, rgba(212, 166, 74, 0.24));
}

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

.media-frame > picture { display: block; }

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(212, 166, 74, 0.45);
  pointer-events: none;
}

.media-frame[data-placeholder]::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(11, 43, 38, 0.45);
  z-index: 0;
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.82em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.2s ease;
}

.btn--primary {
  background: var(--jade);
  color: var(--warm);
  box-shadow: 0 12px 26px -16px rgba(20, 107, 90, 0.95);
}
.btn--primary:hover { background: #11745F; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--jade);
  border-color: rgba(20, 107, 90, 0.42);
}
.btn--ghost:hover { background: rgba(20, 107, 90, 0.08); border-color: var(--jade); }

.btn--gold {
  background: var(--gold);
  color: #2B1F05;
  box-shadow: 0 12px 26px -18px rgba(212, 166, 74, 0.95);
}
.btn--gold:hover { background: #E0B75D; transform: translateY(-1px); }

.btn--quiet {
  background: rgba(27, 27, 24, 0.055);
  color: var(--ink);
}
.btn--quiet:hover { background: rgba(27, 27, 24, 0.1); }

.btn--block { width: 100%; }

.btn:active { transform: translateY(0); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--grey-jade);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(127, 169, 155, 0.7);
}

.breadcrumb a {
  color: var(--jade);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.breadcrumb a:hover { border-bottom-color: currentColor; }

/* ---------- 正文长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.01rem;
  line-height: 1.85;
  color: rgba(27, 27, 24, 0.88);
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-top: 1.9em;
}

.prose h3 {
  font-size: 1.22rem;
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  list-style: revert;
}

.prose li + li { margin-top: 0.4em; }

.prose a {
  color: var(--jade);
  text-decoration: underline;
  text-decoration-color: rgba(20, 107, 90, 0.45);
}

.prose a:hover { text-decoration-color: currentColor; }

.prose blockquote {
  padding-left: 1.05em;
  border-left: 3px solid var(--gold);
  color: rgba(27, 27, 24, 0.68);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--edge-ink);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  background: rgba(20, 107, 90, 0.09);
}

/* ---------- 章节目录（粘性） ---------- */
.toc {
  display: grid;
  gap: 0.25rem;
  font-size: 0.92rem;
}

.toc a {
  display: block;
  padding: 0.5em 0.85em;
  border-left: 2px solid transparent;
  border-radius: 8px;
  color: rgba(27, 27, 24, 0.72);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.toc a:hover {
  background: rgba(20, 107, 90, 0.07);
  color: var(--jade);
}

.toc a[data-active] {
  color: var(--jade);
  font-weight: 600;
  background: rgba(20, 107, 90, 0.09);
  border-left-color: var(--gold);
}

/* ==========================================================================
   共享头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(11, 43, 38, 0.98), rgba(9, 36, 31, 0.94));
  color: var(--warm);
  border-bottom: 1px solid var(--edge-gold);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 40px);
  width: calc(100% - var(--gutter) * 2);
  max-width: 1280px;
  min-height: var(--header-h);
  margin-inline: auto;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(152deg, #D05A3E, var(--cinnabar) 52%, #A63722);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--warm);
  box-shadow:
    inset 0 0 0 1px rgba(212, 166, 74, 0.72),
    0 8px 20px -10px rgba(200, 71, 47, 0.8);
  transition: transform 0.28s ease;
}

.brand:hover .brand-seal { transform: rotate(-5deg); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.12;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--warm);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--grey-jade);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
}

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

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.45em 0;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(244, 235, 221, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--jade-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s ease;
}

.nav-list a:hover { color: var(--warm); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  color: var(--warm);
  font-weight: 700;
}

.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1.15em;
  border-radius: 9px;
  border: 1px solid rgba(47, 165, 138, 0.55);
  background: linear-gradient(150deg, var(--jade), #0E5446);
  color: var(--warm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px -16px rgba(47, 165, 138, 0.9);
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: linear-gradient(150deg, #18806B, #0F5C4C);
  border-color: rgba(212, 166, 74, 0.6);
  transform: translateY(-1px);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55em 0.85em;
  border-radius: 10px;
  border: 1px solid rgba(212, 166, 74, 0.45);
  background: rgba(244, 235, 221, 0.07);
  color: var(--warm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.nav-toggle:hover { background: rgba(244, 235, 221, 0.13); }
.nav-toggle[aria-expanded="true"] { border-color: var(--gold); }

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
  flex: none;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-label { white-space: nowrap; }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(212, 166, 74, 0.16);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--jade-bright), var(--gold));
  transition: width 0.12s linear;
}

/* ==========================================================================
   共享页脚
   ========================================================================== */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 92% at 10% 0%, rgba(20, 107, 90, 0.55), transparent 62%),
    radial-gradient(88% 80% at 94% 102%, rgba(200, 71, 47, 0.18), transparent 58%),
    var(--table-green);
  color: rgba(244, 235, 221, 0.86);
  border-top: 1px solid rgba(212, 166, 74, 0.42);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 166, 74, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 166, 74, 0.075) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 76% 62% at 50% 34%, #000 12%, transparent 82%);
  mask-image: radial-gradient(ellipse 76% 62% at 50% 34%, #000 12%, transparent 82%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 1.2fr 0.85fr 1.35fr;
  gap: clamp(26px, 3.4vw, 48px);
  width: calc(100% - var(--gutter) * 2);
  max-width: 1240px;
  margin-inline: auto;
  padding-block: clamp(46px, 6vw, 82px) clamp(22px, 2.6vw, 34px);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-width: 0;
}

.brand--footer { margin-bottom: 0.15rem; }

.footer-note {
  max-width: 27ch;
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(244, 235, 221, 0.62);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--grey-jade);
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: var(--warm);
}

.footer-heading::before {
  content: "";
  width: 16px;
  height: 2px;
  flex: none;
  background: var(--gold);
}

/* 第二栏：记录查询入口 */
.footer-update-link {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 166, 74, 0.36);
  background: rgba(244, 235, 221, 0.07);
  color: var(--warm);
  text-decoration: none;
  transition: background-color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.footer-update-link:hover {
  background: rgba(244, 235, 221, 0.13);
  border-color: rgba(212, 166, 74, 0.82);
  transform: translateY(-2px);
}

.footer-update-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.footer-update-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--grey-jade);
}

/* 第三栏 */
.footer-links {
  display: grid;
  gap: 0.52rem;
  font-size: 0.92rem;
}

.footer-links a,
.footer-legal a {
  color: rgba(244, 235, 221, 0.76);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--gold);
  padding-left: 3px;
}

/* 第四栏 */
.footer-contact {
  display: grid;
  gap: 0.8rem;
  font-size: 0.9rem;
  min-width: 0;
}

.footer-contact li {
  display: grid;
  gap: 0.12rem;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--grey-jade);
}

.footer-value {
  color: rgba(244, 235, 221, 0.92);
  overflow-wrap: anywhere;
}

.footer-value--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-hours {
  font-size: 0.78rem;
  color: rgba(244, 235, 221, 0.52);
}

/* 底栏 */
.footer-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.4rem;
  padding-top: clamp(18px, 2.4vw, 30px);
  border-top: 1px solid rgba(212, 166, 74, 0.22);
  font-size: 0.8rem;
  color: rgba(244, 235, 221, 0.56);
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.footer-legal li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.75em;
  margin-right: 1.25rem;
  background: rgba(212, 166, 74, 0.35);
  vertical-align: middle;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(212, 166, 74, 0.55);
  background: linear-gradient(150deg, var(--jade), #0B4A3E);
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.85);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s ease, background 0.24s ease;
}

.to-top::before {
  content: "↑";
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: linear-gradient(150deg, #18806B, #0E5A4A); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-col--brand,
  .footer-col--contact { max-width: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .header-inner {
    min-height: var(--header-h);
    gap: 12px;
  }

  .brand-seal {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    border-radius: 9px;
  }

  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: 0.6rem; letter-spacing: 0.24em; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 10px var(--gutter) 22px;
    background: linear-gradient(180deg, rgba(11, 43, 38, 0.99), rgba(6, 28, 24, 0.99));
    border-bottom: 1px solid rgba(212, 166, 74, 0.38);
    box-shadow: 0 26px 46px -26px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

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

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

  .nav-list li + li { border-top: 1px solid rgba(212, 166, 74, 0.16); }

  .nav-list a {
    display: block;
    padding: 0.92em 0.2em;
    font-size: 1rem;
  }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"] {
    color: var(--gold);
    font-weight: 700;
    padding-left: 0.75em;
    border-left: 2px solid var(--gold);
  }

  .nav-cta {
    margin-top: 16px;
    padding: 0.9em 1.2em;
    font-size: 0.95rem;
  }
}

@media (max-width: 760px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .section { padding-block: clamp(38px, 8vw, 58px); }
}

@media (max-width: 620px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 42px 24px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-legal { gap: 0.4rem 1rem; }

  .footer-legal li + li::before { margin-right: 1rem; }

  .grid--12 { grid-template-columns: minmax(0, 1fr); }

  .to-top {
    font-size: 0.78rem;
    padding: 0.6em 0.95em;
  }
}

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

/* ==========================================================================
   动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .footer-update-link:hover,
  .btn:hover,
  .nav-cta:hover { transform: none; }

  .brand:hover .brand-seal { transform: none; }
}
