/* ==========================================================================
   圣魔安卓指南 · 共享样式 /assets/site.css
   档案室 × 检索台 · 深墨黑底 + 圣光金线 + 移动端蓝绿双轨
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0B0D12;
  --ink-2: #141821;
  --ink-3: #0c0f15;
  --gold: #E8B949;
  --gold-soft: #F6D98A;
  --violet: #3A2A5A;
  --cold: #1F4E6B;
  --cyan: #19D3C5;
  --mist: #EDF2F5;
  --amber: #FFB020;
  --danger: #7A2E3A;

  --line-gold: rgba(232, 185, 73, 0.28);
  --line-gold-strong: rgba(232, 185, 73, 0.52);
  --line-soft: rgba(237, 242, 245, 0.12);
  --mist-86: rgba(237, 242, 245, 0.86);
  --mist-72: rgba(237, 242, 245, 0.72);
  --mist-52: rgba(237, 242, 245, 0.52);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Noto Sans Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shell-max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --dur: 240ms;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  min-height: 100vh;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(232, 185, 73, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 185, 73, 0.042) 1px, transparent 1px),
    radial-gradient(120% 90% at 8% 0%, rgba(58, 42, 90, 0.42), transparent 58%),
    radial-gradient(90% 70% at 96% 4%, rgba(31, 78, 107, 0.36), transparent 56%);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(232, 185, 73, 0.35);
  color: #fff;
}

/* ---------- 3. 排版 ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--mist);
}

h1 { font-size: clamp(30px, 4.6vw, 54px); letter-spacing: 0.05em; }

h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  padding-bottom: 10px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(25, 211, 197, 0.6));
}

h3 { font-size: 19px; }

p { color: inherit; }

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

.idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  opacity: 0.88;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

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

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-head { padding-block: clamp(28px, 5vw, 64px) 0; }

.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, 7fr) minmax(0, 5fr); }

/* ---------- 5. 页头：固定命令栏 ---------- */
.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #0B0D12;
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-180%);
  transition: transform var(--dur) ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 13, 18, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-gold);
  transition: background var(--dur) ease, box-shadow var(--dur) ease;
}

.site-head[data-scrolled="true"] {
  background: rgba(11, 13, 18, 0.97);
  box-shadow: 0 24px 52px -36px rgba(0, 0, 0, 0.98);
}

.head-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav tools";
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  padding-block: 10px;
}

.head-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--gold) 0%, #b9822b 46%, var(--violet) 100%);
  box-shadow: 0 0 0 1px rgba(246, 217, 138, 0.6), 0 14px 26px -16px rgba(232, 185, 73, 0.9);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid rgba(11, 13, 18, 0.85);
  border-radius: 3px;
  transform: rotate(45deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #0B0D12;
  box-shadow: 0 0 0 2px rgba(246, 217, 138, 0.75);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}

.brand-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mist-52);
  white-space: nowrap;
}

.brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(25, 211, 197, 0.9);
}

.head-ver {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line-soft);
}

.head-ver-key {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--mist-52);
}

.head-ver .mono {
  font-size: 12px;
  color: var(--gold-soft);
  padding: 3px 10px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  background: rgba(232, 185, 73, 0.07);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  grid-area: toggle;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(25, 211, 197, 0.45);
  background: rgba(25, 211, 197, 0.08);
  color: var(--cyan);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background var(--dur) ease, color var(--dur) ease;
}

.nav-toggle:hover { background: rgba(25, 211, 197, 0.16); }

.nav-toggle-glyph {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
}

.nav-toggle-glyph i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) ease, opacity var(--dur) ease;
}

.nav-toggle-glyph i:nth-child(1) { top: 0; }
.nav-toggle-glyph i:nth-child(2) { top: 5px; }
.nav-toggle-glyph i:nth-child(3) { top: 10px; }

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

/* 主导航 */
.primary-nav { grid-area: nav; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14.5px;
  color: var(--mist-72);
  white-space: nowrap;
  transition: color var(--dur) ease, background var(--dur) ease, border-color var(--dur) ease;
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.68;
}

.nav-link:hover {
  color: var(--mist);
  background: rgba(232, 185, 73, 0.08);
  border-color: rgba(232, 185, 73, 0.26);
}

.nav-link[aria-current="page"] {
  color: var(--gold-soft);
  background: rgba(232, 185, 73, 0.13);
  border-color: var(--line-gold-strong);
  box-shadow: inset 0 -2px 0 rgba(232, 185, 73, 0.85);
}

.nav-link[aria-current="page"] .nav-idx { opacity: 1; color: var(--gold-soft); }

.nav-link[aria-current="page"]::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* 页头工具 */
.head-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(232, 185, 73, 0.4);
  background: rgba(232, 185, 73, 0.06);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}

.tool-btn:hover { background: rgba(232, 185, 73, 0.18); color: #fff; }

.tool-btn--ghost {
  border-color: rgba(237, 242, 245, 0.18);
  background: transparent;
  color: var(--mist-72);
}

.tool-btn--ghost:hover { color: var(--mist); background: rgba(237, 242, 245, 0.1); }

.tool-btn[data-copied="true"] {
  border-color: rgba(25, 211, 197, 0.7);
  background: rgba(25, 211, 197, 0.18);
  color: var(--cyan);
}

/* 滚动进度 */
.head-scan {
  height: 2px;
  background: rgba(237, 242, 245, 0.06);
  overflow: hidden;
}

.head-progress {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: 0 0 12px rgba(232, 185, 73, 0.75);
}

/* ---------- 6. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  overflow: hidden;
  color: var(--mist);
  border-top: 1px solid var(--line-gold);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(58, 42, 90, 0.5), transparent 62%),
    radial-gradient(90% 70% at 94% 6%, rgba(31, 78, 107, 0.44), transparent 60%),
    linear-gradient(180deg, #0c0f15 0%, #07090c 74%);
}

.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}

.site-foot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 185, 73, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 185, 73, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

.foot-shell {
  position: relative;
  z-index: 1;
  padding-block: clamp(36px, 5vw, 60px) 22px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 0.9fr 1.35fr;
  gap: clamp(20px, 3vw, 44px);
}

.foot-brand { min-width: 0; }

.foot-mark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.foot-mark::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(25, 211, 197, 0.7));
}

.foot-line {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist-72);
}

.foot-stamp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 12px;
}

.stamp-key {
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  color: var(--mist-52);
}

.stamp-val {
  color: var(--gold-soft);
  padding: 3px 11px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  background: rgba(232, 185, 73, 0.08);
  font-size: 12px;
}

.stamp-note {
  color: var(--cyan);
  letter-spacing: 0.12em;
}

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

.foot-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold-soft);
}

.foot-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 185, 73, 0.8);
  transform: rotate(45deg);
}

.foot-list li + li { margin-top: 10px; }

.foot-list a {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  font-size: 14px;
  color: var(--mist-72);
  transition: color var(--dur) ease;
}

.foot-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 8px;
  height: 1px;
  background: var(--line-gold-strong);
  transition: width var(--dur) ease, background var(--dur) ease;
}

.foot-list a:hover { color: var(--gold-soft); }
.foot-list a:hover::before { width: 13px; background: var(--gold); }

.foot-contact { min-width: 0; }

.contact-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
}

.contact-list li + li { margin-top: 10px; }

.contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist-52);
  white-space: nowrap;
}

.contact-val {
  color: var(--mist);
  word-break: break-word;
}

.foot-fold { margin-top: clamp(24px, 3vw, 36px); }

.fold {
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  background: rgba(20, 24, 33, 0.72);
  transition: border-color var(--dur) ease, background var(--dur) ease;
}

.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  cursor: pointer;
  list-style: none;
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--gold);
}

.fold[open] summary::after { content: "–"; }

.fold[open] {
  border-color: rgba(25, 211, 197, 0.42);
  background: rgba(25, 211, 197, 0.07);
}

.fold-body {
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist-72);
}

.fold-body p + p { margin-top: 8px; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--mist-52);
}

.foot-icp { color: rgba(232, 185, 73, 0.85); font-size: 12px; }
.foot-note { letter-spacing: 0.12em; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform var(--dur) ease, background var(--dur) ease, box-shadow var(--dur) ease, color var(--dur) ease;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #0B0D12;
  box-shadow: 0 16px 34px -18px rgba(232, 185, 73, 0.95);
}

.btn--gold:hover { transform: translateY(-2px); }

.btn--line {
  border-color: rgba(25, 211, 197, 0.5);
  color: var(--cyan);
  background: rgba(25, 211, 197, 0.06);
}

.btn--line:hover { background: rgba(25, 211, 197, 0.16); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-52);
}

.breadcrumbs a {
  color: var(--mist-72);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.breadcrumbs a:hover { color: var(--gold-soft); border-bottom-color: var(--line-gold-strong); }

.breadcrumbs .crumb-sep { color: rgba(232, 185, 73, 0.55); }

.breadcrumbs [aria-current="page"] { color: var(--gold-soft); }

/* ---------- 9. 正文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--mist-86);
}

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

.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }

.prose a {
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line-gold-strong);
}

.prose a:hover { color: #fff; }

.prose strong { color: var(--mist); }

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li + li { margin-top: 8px; }

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 10. 卡片与标签 ---------- */
.surface {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 185, 73, 0.18);
  background: linear-gradient(160deg, rgba(20, 24, 33, 0.96), rgba(11, 13, 18, 0.96));
  box-shadow: 0 26px 62px -44px rgba(0, 0, 0, 0.98);
}

.surface--violet {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(58, 42, 90, 0.7), transparent 62%),
    radial-gradient(100% 90% at 100% 100%, rgba(31, 78, 107, 0.55), transparent 60%),
    linear-gradient(160deg, rgba(20, 24, 33, 0.96), rgba(11, 13, 18, 0.98));
  border-color: var(--line-gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-gold);
  background: rgba(232, 185, 73, 0.08);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.tag--mobile {
  border-color: rgba(25, 211, 197, 0.5);
  background: rgba(25, 211, 197, 0.12);
  color: var(--cyan);
}

.tag--alert {
  border-color: rgba(255, 176, 32, 0.5);
  background: rgba(255, 176, 32, 0.12);
  color: var(--amber);
}

/* ---------- 11. 图片容器基础规则 ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 180px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 185, 73, 0.2);
  background:
    radial-gradient(120% 100% at 18% 0%, rgba(58, 42, 90, 0.92), transparent 64%),
    radial-gradient(100% 90% at 92% 100%, rgba(31, 78, 107, 0.85), transparent 60%),
    #0e1218;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(232, 185, 73, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 185, 73, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.8;
}

.media > img,
.media > svg,
.media > picture {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-gold);
  background: rgba(11, 13, 18, 0.76);
  color: var(--mist-72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--portrait { aspect-ratio: 3 / 4; }

.media--mobile { border-color: rgba(25, 211, 197, 0.34); }

.media--mobile .media__label {
  border-color: rgba(25, 211, 197, 0.5);
  color: var(--cyan);
}

/* ---------- 12. 显现动效 ---------- */
[data-reveal] { transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.7, 0.3, 1); }
[data-reveal="pending"] { opacity: 0; transform: translateY(16px); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1199px) {
  .head-ver { display: none; }

  .nav-link { padding: 7px 11px; font-size: 13.5px; }
  .tool-btn { padding: 6px 11px; font-size: 11.5px; }
}

@media (max-width: 1024px) {
  html { scroll-padding-top: 88px; }

  .head-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    gap: 10px;
    padding-block: 10px 8px;
  }

  .head-brand { gap: 10px; }

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

  .primary-nav { display: none; }
  .primary-nav[data-open="true"] {
    display: block;
    animation: nav-drop 220ms ease both;
  }

  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 8px;
    padding: 2px 0 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list::-webkit-scrollbar { display: none; }

  .nav-link {
    padding: 10px 15px;
    font-size: 14px;
    border-color: rgba(25, 211, 197, 0.26);
    background: rgba(20, 24, 33, 0.86);
  }

  .nav-idx { color: var(--cyan); opacity: 0.9; }

  .nav-link:hover {
    background: rgba(25, 211, 197, 0.14);
    border-color: rgba(25, 211, 197, 0.55);
    color: var(--mist);
  }

  .nav-link[aria-current="page"] {
    color: #0B0D12;
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 12px 26px -18px rgba(25, 211, 197, 0.95);
  }

  .nav-link[aria-current="page"] .nav-idx { color: rgba(11, 13, 18, 0.62); }

  .nav-link[aria-current="page"]::after {
    background: #0B0D12;
    box-shadow: none;
  }

  .head-tools {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .tool-btn {
    padding: 8px 14px;
    font-size: 12px;
    background: rgba(11, 13, 18, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.95);
  }

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

  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .brand-name { font-size: 14.5px; letter-spacing: 0.1em; }
  .brand-meta { font-size: 10px; letter-spacing: 0.1em; }
  .brand-mark { width: 34px; height: 34px; }

  .prose { font-size: 16.5px; line-height: 1.85; }

  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-bottom { justify-content: flex-start; }

  .contact-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .contact-key { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html { scroll-behavior: auto; }

  [data-reveal],
  [data-reveal="pending"] {
    opacity: 1;
    transform: none;
  }
}
