/* ============================================================
   问鼎游艺 · 夜海档案 共享样式表 /assets/site.css
   1 reset · 2 tokens · 3 中文排版 · 4 布局 · 5 文字 · 6 组件
   7 图片容器 · 8 面包屑与锚点 · 9 头部 · 10 页脚 · 11 响应式
   ============================================================ */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
main { display: block; }
[hidden] { display: none !important; }

/* ---------- 2. tokens ---------- */
:root {
  /* 色彩体系 */
  --sea-900: #08172A;
  --sea: #0B1E33;
  --sea-700: #12385C;
  --tide: #1F6FA8;
  --gold: #C9A227;
  --gold-deep: #6E540C;
  --signal: #E4572E;
  --jade: #1F8A70;
  --paper: #F5F0E6;
  --ink: #101418;
  --mist: #B9C6D3;
  --paper-dim: #D8CFBE;

  --line-dark: rgba(201, 162, 39, 0.24);
  --line-mist: rgba(185, 198, 211, 0.18);
  --line-light: rgba(16, 20, 24, 0.14);

  /* 字体三线制 */
  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Roboto Mono", "Courier New", monospace;

  /* 尺度 */
  --wrap: 1320px;
  --gutter: clamp(18px, 4.2vw, 52px);
  --header-h: 78px;
  --radius-pill: 999px;
  --radius-card: 4px;
  --shadow-deep: 0 18px 44px rgba(3, 10, 20, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.005em;
}
p { max-width: 42ch; }

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

[id] { scroll-margin-top: 104px; }

/* ---------- 4. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.band { padding: clamp(52px, 7vw, 104px) 0; }
.band--tight { padding: clamp(28px, 4vw, 52px) 0; }
.band--deep { background: linear-gradient(180deg, var(--sea) 0%, var(--sea-900) 100%); color: var(--paper); }
.band--mid { background: var(--sea-700); color: var(--paper); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--edge { position: relative; }
.band--edge::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line-dark);
}
.band--paper.band--edge::before { background: var(--line-light); }

.grid-16 {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-12 { grid-column: span 12; }
.span-16 { grid-column: span 16; }

/* ---------- 5. 文字工具 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); flex: 0 0 auto; }

.display-1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; letter-spacing: 0.01em; }
.display-2 { font-size: clamp(26px, 3.2vw, 38px); }
.display-3 { font-size: clamp(21px, 2.2vw, 26px); }

.lede {
  font-size: 17px;
  line-height: 1.85;
  color: var(--mist);
  max-width: 42ch;
}
.note {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 46ch;
}
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.index-num {
  display: inline-block;
  min-width: 3.4em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line-dark);
  margin: clamp(24px, 4vw, 44px) 0;
}
.band--paper .rule { border-color: var(--line-light); }

.band--paper .lede { color: #38414A; }
.band--paper .note { color: #5A626A; }
.band--paper .index-num { color: var(--gold-deep); }
.band--paper .eyebrow { color: var(--gold-deep); }
.band--paper .eyebrow::before { background: var(--gold-deep); }

/* ---------- 6. 组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--sea-900); }
.btn--gold:hover { background: #DCB336; }
.btn--ghost { border-color: var(--line-mist); color: var(--paper); background: rgba(18, 56, 92, 0.55); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--paper { background: var(--paper); color: var(--sea); border-color: rgba(16, 20, 24, 0.12); }

.paper-panel {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}
.paper-panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), rgba(201, 162, 39, 0.12));
}
.paper-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(16, 20, 24, 0.022) 0 2px, transparent 2px 6px);
}
.paper-panel > * { position: relative; z-index: 1; }
.paper-panel p { color: #38414A; max-width: 46ch; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.tag--gold { color: var(--gold); background: rgba(201, 162, 39, 0.1); }
.tag--signal { color: var(--signal); background: rgba(228, 87, 46, 0.1); }
.tag--jade { color: var(--jade); background: rgba(31, 138, 112, 0.1); }
.tag--paper { color: var(--gold-deep); background: var(--paper-dim); border-color: rgba(110, 84, 12, 0.32); }

details.fold { border-top: 1px solid var(--line-dark); }
.band--paper details.fold { border-color: var(--line-light); }
details.fold > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--gold);
}
details.fold[open] > summary::after { content: "–"; }
details.fold .fold-body { padding: 0 0 20px; }

/* ---------- 7. 图片容器 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background:
    radial-gradient(120% 90% at 16% 8%, rgba(31, 111, 168, 0.55), rgba(31, 111, 168, 0) 62%),
    linear-gradient(180deg, #0E2740 0%, #08182B 68%, #050F1C 100%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--archive {
  background: linear-gradient(160deg, var(--paper-dim) 0%, #EFE7D8 58%, #E2D8C4 100%);
  border-color: var(--line-light);
}
.media-frame img,
.media-frame picture,
.media-frame video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-ph {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mist);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(245, 240, 230, 0.045) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(201, 162, 39, 0) 0%, rgba(201, 162, 39, 0.42) 46%, rgba(201, 162, 39, 0) 100%);
  background-size: auto, 100% 1px;
  background-position: 0 0, 0 64%;
  background-repeat: repeat, no-repeat;
}
.media-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 50ch;
}
.band--paper .media-caption { color: #5A626A; }

/* ---------- 8. 面包屑与锚点侧栏 ---------- */
.breadcrumbs { margin-bottom: 26px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumbs li { display: flex; align-items: center; gap: 9px; }
.breadcrumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.85;
}
.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.breadcrumbs a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }
.band--paper .breadcrumbs li { color: #5A626A; }
.band--paper .breadcrumbs a { color: #5A626A; }
.band--paper .breadcrumbs [aria-current="page"] { color: var(--ink); }

.anchor-rail {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  align-self: start;
}
.anchor-link {
  position: relative;
  display: block;
  padding: 9px 0 9px 16px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.anchor-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 2px;
  background: rgba(185, 198, 211, 0.22);
  transition: background-color 0.2s var(--ease);
}
.anchor-link:hover { color: var(--paper); }
.anchor-link[aria-current="true"] { color: var(--gold); }
.anchor-link[aria-current="true"]::before { background: var(--gold); }

/* ---------- 9. 头部 ---------- */
.skip-link {
  position: absolute;
  top: -70px;
  left: 18px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--gold);
  color: var(--sea-900);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(8, 23, 42, 0.97) 0%, rgba(11, 30, 51, 0.93) 100%);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  transition: box-shadow 0.25s var(--ease);
}
.site-header[data-compact] { box-shadow: 0 14px 32px rgba(3, 10, 20, 0.5); }

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px var(--gutter);
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(12px, 2vw, 28px);
  transition: min-height 0.25s var(--ease), padding 0.25s var(--ease);
}
.site-header[data-compact] .header-inner {
  min-height: 62px;
  padding-top: 7px;
  padding-bottom: 7px;
}

/* 品牌印签 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
  color: var(--paper);
  text-decoration: none;
}
.brand-seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  background: linear-gradient(155deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0) 70%), var(--sea-700);
  box-shadow: inset 0 0 0 3px var(--sea), 0 6px 16px rgba(3, 10, 20, 0.45);
  transform: rotate(-2deg);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.brand:hover .brand-seal {
  transform: rotate(0deg) translateY(-1px);
  box-shadow: inset 0 0 0 3px var(--sea), 0 9px 20px rgba(201, 162, 39, 0.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand-sub {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mist);
  white-space: nowrap;
  transition: opacity 0.22s var(--ease), height 0.22s var(--ease), margin 0.22s var(--ease);
}
.site-header[data-compact] .brand-sub {
  height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
}

/* 悬浮胶囊导航 */
.nav-capsule {
  justify-self: center;
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: rgba(18, 56, 92, 0.66);
  box-shadow: 0 10px 30px rgba(3, 10, 20, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}
.nav-link:hover { color: var(--paper); background: rgba(31, 111, 168, 0.22); }
.nav-link:hover::before { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--gold); background: rgba(201, 162, 39, 0.12); }
.nav-link[aria-current="page"]::before { transform: scaleX(1); }
.nav-link[data-note]::after {
  content: attr(data-note);
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 5;
  padding: 6px 12px;
  border-radius: 3px;
  border-left: 3px solid var(--gold);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  box-shadow: 0 10px 24px rgba(3, 10, 20, 0.45);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-link[data-note]:hover::after,
.nav-link[data-note]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* 右侧工具区 */
.header-utils {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  min-width: 0;
}
.util-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-mist);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  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);
}
.util-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--gold);
  transform: rotate(45deg);
  transition: background-color 0.2s var(--ease);
}
.util-link:hover { color: var(--paper); border-color: var(--gold); background: rgba(201, 162, 39, 0.1); }
.util-link--push::before { background: var(--tide); }
.util-link--push:hover::before { background: var(--gold); }

.update-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(228, 87, 46, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(228, 87, 46, 0.1);
  max-width: none;
}
.update-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  animation: beat 2.6s var(--ease) infinite;
}
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(228, 87, 46, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(228, 87, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 87, 46, 0); }
}
.update-label { font-size: 12px; letter-spacing: 0.06em; color: var(--mist); white-space: nowrap; }
.update-time {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-mist);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(18, 56, 92, 0.6);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.12); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 滚动静默进度光轨 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 3;
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tide), var(--gold));
  transition: width 0.12s linear;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--sea) 0%, var(--sea-900) 100%);
  border-top: 1px solid var(--line-dark);
  color: var(--mist);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0) 0%, rgba(201, 162, 39, 0.85) 50%, rgba(201, 162, 39, 0) 100%);
}
.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(46px, 6vw, 84px) var(--gutter) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line-mist);
}
.footer-col { min-width: 0; }
.footer-col + .footer-col {
  border-left: 1px solid var(--line-mist);
  padding-left: clamp(14px, 2vw, 26px);
}
.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 340px;
}
.footer-col--brand .brand-sub { letter-spacing: 0.16em; }

.footer-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.footer-title::before { content: ""; width: 14px; height: 2px; flex: 0 0 auto; background: var(--gold); }

.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-links a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}
.footer-links a:hover { color: var(--paper); }
.footer-links a:hover::after { transform: scaleX(1); }

.footer-note { margin: 0; font-size: 13px; line-height: 1.85; color: rgba(185, 198, 211, 0.8); max-width: 34ch; }
.footer-note--mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--tide);
  max-width: none;
}
.footer-contact { gap: 12px; }
.footer-contact li { display: flex; flex-direction: column; gap: 3px; }
.footer-key { font-size: 11.5px; letter-spacing: 0.14em; color: rgba(185, 198, 211, 0.62); }
.footer-contact .mono {
  font-size: 13.5px;
  color: var(--paper);
  word-break: break-all;
}
.footer-contact li > span:not(.footer-key):not(.mono) { font-size: 13.5px; line-height: 1.7; }

.footer-bottom { padding: 22px 0 28px; text-align: center; }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  max-width: none;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(185, 198, 211, 0.7);
}
.icp { font-family: var(--font-mono); letter-spacing: 0.06em; color: var(--mist); }
.footer-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1300px) {
  .nav-link { padding: 9px 11px; font-size: 13.5px; }
  .nav-link::before { left: 11px; right: 11px; }
}
@media (max-width: 1180px) {
  .util-link--push { display: none; }
}

/* 平板：导航收进浮岛面板 */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 70px;
  }
  .nav-capsule {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    padding: 12px;
    border-radius: 16px;
    background: rgba(8, 23, 42, 0.98);
    box-shadow: var(--shadow-deep);
    max-height: calc(100vh - 150px);
    overflow: auto;
  }
  .nav-capsule[data-open] { display: block; animation: rail-drop 0.22s var(--ease); }
  @keyframes rail-drop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(185, 198, 211, 0.1);
  }
  .nav-list li:last-child .nav-link { border-bottom: 0; }
  .nav-link::before { display: none; }
  .nav-link:hover { background: rgba(201, 162, 39, 0.1); }
  .nav-link[data-note]::after {
    position: static;
    display: block;
    padding: 3px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mist);
    font-size: 12px;
    letter-spacing: 0.08em;
    white-space: normal;
    opacity: 1;
    transform: none;
  }
  html[data-nav-open],
  html[data-nav-open] body { overflow: hidden; }

  .grid-16 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5 { grid-column: span 4; }
  .span-6, .span-7, .span-8, .span-9, .span-10, .span-12, .span-16 { grid-column: span 8; }

  .anchor-rail { position: static; }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 34px);
  }
  .footer-col--brand { grid-column: 1 / -1; max-width: none; }
  .footer-col + .footer-col { border-left: 0; padding-left: 0; }
  .footer-col--brand + .footer-col { border-top: 1px solid var(--line-mist); padding-top: 26px; }
  .footer-col:nth-child(odd) { border-right: 1px solid var(--line-mist); padding-right: 16px; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .brand-name { font-size: 18px; }
  .brand-sub { display: none; }
  .brand-seal { width: 36px; height: 36px; font-size: 17px; }
  .util-link { display: none; }
  .update-label { display: none; }
  .update-chip { padding: 7px 11px; gap: 7px; }
  .display-1 { font-size: 28px; }
  .display-2 { font-size: 24px; }
  .display-3 { font-size: 20px; }
  .lede { font-size: 16px; }
  p { max-width: none; }
}

@media (max-width: 640px) {
  .grid-16 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8,
  .span-9, .span-10, .span-12, .span-16 { grid-column: span 4; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:nth-child(odd) { border-right: 0; padding-right: 0; }
  .footer-col + .footer-col { border-top: 1px solid var(--line-mist); padding-top: 24px; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
  .media-frame--tall { aspect-ratio: 3 / 4; }
}

@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;
  }
  .update-dot { animation: none; box-shadow: none; }
  .btn:hover, .brand:hover .brand-seal { transform: none; }
  .scroll-progress { transition: none; }
}
