/* ==========================================================================
   十八游戏中心 · 共享 Site Kit
   /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 { margin: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; }

img, svg, picture, video { max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }

a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #08111F;
  --ink-2: #101E33;
  --ink-3: #1B304D;
  --paper: #F2E8D8;
  --paper-hi: #FBF7EF;
  --ink-text: #1A1510;
  --teal: #2CF2C4;
  --teal-bright: #5CFFD6;
  --coral: #FF6A4D;
  --gold: #E7B65A;
  --mist: #93A7C4;

  --teal-soft: rgba(44, 242, 196, 0.10);
  --teal-line: rgba(44, 242, 196, 0.42);
  --hair: rgba(147, 167, 196, 0.20);
  --hair-strong: rgba(147, 167, 196, 0.40);
  --paper-line: rgba(26, 21, 16, 0.16);

  --font-display: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", Arial, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --head-h: 64px;
  --w-max: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --cut: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(30px, 5vw, 56px); }
h2 { font-size: clamp(23px, 3.4vw, 36px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; }
h4 { font-size: 16px; line-height: 1.5; }

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

strong, b { font-weight: 800; color: var(--paper-hi); }
small { font-size: 12.5px; }

::selection {
  background: var(--teal);
  color: #04140F;
}

/* ---------- 4. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
.prose--paper :focus-visible,
.panel--paper :focus-visible {
  outline-color: #0B5B49;
}

/* ---------- 5. 通用容器与工具类 ---------- */
.u-container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.u-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--teal);
  color: #04140F;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.u-skip:focus,
.u-skip:focus-visible { transform: translateY(0); }

.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page-top { padding-top: calc(var(--head-h) + clamp(20px, 4vw, 56px)); }

.mono {
  font-family: var(--font-mono);
  font-size: 1.05em;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.hairline {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--hair);
  border: 0;
  margin-block: clamp(20px, 4vw, 40px);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 0.9em 1.3em;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--sm { padding: 0.72em 1em; font-size: 13px; }
.btn--block { display: flex; width: 100%; }

.btn--primary {
  background: var(--teal);
  color: #04140F;
}
.btn--primary:hover { background: var(--teal-bright); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: var(--hair-strong);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn--cut {
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  border-radius: 0;
}

/* ---------- 7. 展签 / 徽章 / 标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--teal);
  flex: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.22em 0.6em;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--mist);
  white-space: nowrap;
}
.tag--teal { color: var(--teal); border-color: var(--teal-line); background: var(--teal-soft); }
.tag--coral { color: var(--coral); border-color: rgba(255, 106, 77, 0.45); background: rgba(255, 106, 77, 0.10); }
.tag--gold { color: var(--gold); border-color: rgba(231, 182, 90, 0.45); background: rgba(231, 182, 90, 0.10); }

.v-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  padding: 0.1em 0.5em;
  color: #1A1510;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

/* ---------- 8. 面包屑 ---------- */
.crumbs { padding-block: clamp(14px, 2.4vw, 22px); }
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  color: var(--mist);
}
.crumbs__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.crumbs__item + .crumbs__item::before {
  content: "/";
  color: var(--ink-3);
  margin-inline: 0.3rem;
}
.crumbs a { color: var(--mist); text-decoration: none; transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--teal); }
.crumbs [aria-current="page"] { color: var(--paper); font-weight: 700; }

/* ---------- 9. 章节标题组 ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: clamp(18px, 3vw, 30px);
}
.section-head__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 10. 正文容器 ---------- */
.prose {
  max-width: 36em;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--paper);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(21px, 2.8vw, 28px); }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 1.1em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { font-family: var(--font-mono); font-weight: 700; color: var(--gold); }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--teal-bright); }
.prose blockquote {
  border-left: 2px solid var(--teal-line);
  padding-left: 1em;
  color: var(--mist);
}

.prose--paper {
  background: var(--paper);
  color: var(--ink-text);
  padding: clamp(20px, 4vw, 44px);
  border-radius: var(--r-md);
  border: 1px solid var(--paper-line);
  box-shadow: 0 26px 60px -40px rgba(0, 0, 0, 0.9);
}
.prose--paper strong,
.prose--paper b { color: #0B2A22; }
.prose--paper a { color: #0B5B49; }
.prose--paper a:hover { color: #063A2E; }
.prose--paper blockquote { color: #4A4038; border-left-color: rgba(11, 91, 73, 0.4); }
.prose--paper :focus-visible { outline-color: #0B5B49; }

/* ---------- 11. 栅格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
.grid--sidebar { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: start; }

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

/* ---------- 12. 面板 / 磁贴 ---------- */
.panel {
  position: relative;
  display: block;
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.6vw, 28px);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease),
    background-color 0.24s var(--ease);
}
.panel--ink { background: var(--ink-3); }
.panel--paper {
  background: var(--paper);
  color: var(--ink-text);
  border-color: var(--paper-line);
}
.panel--paper :focus-visible { outline-color: #0B5B49; }

.panel--lift:hover {
  transform: translateY(-3px);
  border-color: var(--teal-line);
}

.panel--scan { overflow: hidden; }
.panel--scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(44, 242, 196, 0.16) 47%,
    transparent 64%
  );
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .panel--scan:hover::after { transform: translateX(130%); }
  .panel--lift:hover { transform: translateY(-3px); }
}
@media (hover: none) {
  .panel--scan::after { display: none; }
  .panel--lift:hover { transform: none; }
}

/* ---------- 13. 图片容器（响应式基础规则） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
}
.media > img,
.media > svg,
.media > picture,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--phone { aspect-ratio: 9 / 19.5; max-width: 300px; }
.media--chart { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }

.media--empty {
  display: grid;
  place-items: center;
  background-color: var(--ink-2);
  background-image:
    linear-gradient(var(--ink-3) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-3) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--mist);
}
.media--empty::before {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding: 0.45em 0.75em;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm);
  background: rgba(8, 17, 31, 0.78);
  color: var(--mist);
}

.media__cap {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mist);
  line-height: 1.7;
}

/* ---------- 14. 显现（页面阶段使用 [data-reveal]） ---------- */
[data-reveal] {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal].is-armed {
  opacity: 0;
  transform: translateY(14px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 顶栏 ---------- */
.site-head {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 120;
  color: var(--paper);
  background: linear-gradient(
    180deg,
    rgba(8, 17, 31, 0.88) 0%,
    rgba(8, 17, 31, 0.42) 62%,
    rgba(8, 17, 31, 0) 100%
  );
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}
.site-head[data-scrolled] {
  background-color: rgba(8, 17, 31, 0.95);
  background-image: none;
  border-bottom-color: rgba(44, 242, 196, 0.28);
  box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}

.head-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gut);
  min-height: var(--head-h);
}

.head-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: rgba(27, 48, 77, 0.55);
  overflow: hidden;
}
.head-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 55%, var(--gold) 100%);
  will-change: transform;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}
.brand-beacon {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow:
    0 0 0 4px rgba(44, 242, 196, 0.12),
    0 0 18px 2px rgba(44, 242, 196, 0.5);
}
.brand-beacon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(44, 242, 196, 0.55);
  animation: beacon-pulse 3.6s var(--ease) infinite;
}
@keyframes beacon-pulse {
  0%, 68%, 100% { transform: scale(0.65); opacity: 0; }
  18% { transform: scale(1); opacity: 0.9; }
  42% { transform: scale(1.15); opacity: 0; }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  color: var(--paper-hi);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--mist);
}

/* 胶囊导航 */
.nav-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  padding-block: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-rail::-webkit-scrollbar { display: none; }

.nav-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(147, 167, 196, 0.24);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.nav-pill:hover {
  color: var(--paper-hi);
  border-color: var(--teal-line);
  background: rgba(44, 242, 196, 0.07);
}
.nav-pill[aria-current="page"] {
  color: #04140F;
  background: var(--teal);
  border-color: var(--teal);
  font-weight: 800;
}
.nav-pill--pin { border-color: rgba(231, 182, 90, 0.42); }
.nav-pill--pin:hover { border-color: var(--gold); }
.nav-pill__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.05em 0.4em;
  border-radius: 2px;
  background: var(--gold);
  color: #1A1510;
}
.nav-pill[aria-current="page"] .nav-pill__tag {
  background: #04140F;
  color: var(--gold);
}

/* 右侧动作区 */
.head-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
  margin-left: auto;
}
.head-util {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.head-util:hover { color: var(--teal); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--teal); color: var(--teal); }
.nav-toggle__label { line-height: 1; }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}
.nav-toggle__bars > span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}
.site-head[data-open] .nav-toggle__bars > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-head[data-open] .nav-toggle__bars > span:nth-child(2) { opacity: 0; }
.site-head[data-open] .nav-toggle__bars > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 16. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(12px, 2.4vw, 28px);
  bottom: clamp(12px, 2.4vw, 28px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.58rem 0.85rem;
  border: 1px solid var(--teal-line);
  border-radius: var(--r-pill);
  background: rgba(10, 21, 36, 0.94);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    background-color 0.2s var(--ease);
}
.to-top[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: rgba(16, 30, 51, 0.98); }
.to-top__icon { font-size: 13px; line-height: 1; }

/* ---------- 17. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(40px, 7vw, 96px);
  background: var(--ink);
  border-top: 1px solid var(--hair);
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(27, 48, 77, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 48, 77, 0.6) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}
.site-foot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-line), transparent);
  pointer-events: none;
}

.foot-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(38px, 6vw, 72px) clamp(18px, 3vw, 30px);
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.65fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--hair);
}

.foot-brand { display: block; }
.foot-brand__name {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(21px, 3vw, 30px);
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--paper-hi);
}
.foot-tagline {
  margin-top: 0.65rem;
  max-width: 30em;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist);
}
.foot-meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--teal);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
.foot-col__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.5;
}
.foot-col__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gold);
  flex: none;
  opacity: 0.7;
}
.foot-col__list {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}
.foot-col__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.foot-col__list a:hover { color: var(--teal); transform: translateX(3px); }

.foot-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem 2rem;
  padding-block: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--hair);
}
.foot-kv {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--paper);
  min-width: 0;
}
.foot-kv__k {
  flex: none;
  min-width: 3.6em;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.foot-kv__v {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper-hi);
}
.foot-note {
  grid-column: 1 / -1;
  max-width: 62em;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--mist);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: clamp(16px, 2.4vw, 24px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.foot-legal { line-height: 1.8; }
.foot-copy { line-height: 1.8; }

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1080px) {
  .head-util { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav-rail {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gut);
    right: var(--gut);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0.6rem;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(10, 21, 36, 0.98);
    border: 1px solid var(--hair);
    border-radius: var(--r-md);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .site-head[data-open] .nav-rail { display: flex; }

  .nav-pill {
    justify-content: flex-start;
    border-radius: var(--r-sm);
    padding: 0.72rem 0.85rem;
    font-size: 14.5px;
  }
  .nav-pill--pin { background: rgba(231, 182, 90, 0.06); }

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

@media (max-width: 720px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --head-h: 58px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 9.5px; letter-spacing: 0.16em; }
  .brand-beacon { width: 9px; height: 9px; }
  .btn--sm { padding: 0.62em 0.8em; font-size: 12.5px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .to-top { padding: 0.5rem 0.7rem; font-size: 10.5px; }
}

@media (max-width: 400px) {
  .nav-toggle__label { display: none; }
}

/* ---------- 19. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .brand-beacon::after { animation: none; opacity: 0.55; }
  .panel--scan::after { display: none; }
  .panel--lift:hover { transform: none; }
  [data-reveal],
  [data-reveal].is-armed {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 20. 打印 ---------- */
@media print {
  .site-head,
  .to-top,
  .site-foot::before,
  .head-progress { display: none !important; }
  body { background: #fff; color: #111; }
  .page-top { padding-top: 0; }
  .panel--paper,
  .prose--paper { box-shadow: none; border: 1px solid #999; }
  a { text-decoration: underline; }
}
