/* ==========================================================================
   仲博客户端 · /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;
  padding: 0;
  min-height: 100%;
  background-color: #0b1624;
  background-image:
    radial-gradient(1120px 620px at 88% -14%, rgba(56, 225, 214, 0.13), transparent 62%),
    radial-gradient(900px 540px at 2% 6%, rgba(15, 111, 106, 0.24), transparent 60%),
    radial-gradient(780px 520px at 52% 106%, rgba(255, 138, 61, 0.1), transparent 66%);
  color: #c7d2dc;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  margin: 0;
  padding: 0;
}

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

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

main {
  display: block;
}

::selection {
  background: rgba(56, 225, 214, 0.32);
  color: #eaf6f5;
}

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0b1624;
  --ink-deep: #070f1a;
  --panel: #111f33;
  --layer: #172b45;
  --cyan: #38e1d6;
  --cyan-soft: rgba(56, 225, 214, 0.13);
  --orange: #ff8a3d;
  --orange-soft: rgba(255, 138, 61, 0.16);
  --orange-deep: #40281c;
  --teal: #0f6f6a;
  --glass: #eaf6f5;
  --mist: #c7d2dc;
  --haze: #8ca6bf;
  --line: rgba(140, 166, 191, 0.22);
  --line-strong: rgba(56, 225, 214, 0.38);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;

  --shadow-panel: 0 18px 48px rgba(3, 9, 16, 0.55);
  --shadow-lift: 0 24px 60px rgba(3, 9, 16, 0.62);

  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --step-12: 0.75rem;
  --step-14: 0.875rem;
  --step-16: 1rem;
  --step-20: 1.25rem;
  --step-28: 1.75rem;
  --step-40: 2.5rem;
  --step-64: 4rem;

  --shell-max: 1280px;
  --shell-pad: clamp(18px, 4vw, 48px);
  --header-h: 72px;
}

/* ---------- 3. 基础排版 ---------- */
h1, h2, h3, h4 {
  color: var(--glass);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.012em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, var(--step-64));
  font-weight: 800;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, var(--step-40));
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, var(--step-28));
}

h4 {
  font-size: var(--step-20);
}

p {
  line-height: 1.75;
}

a {
  color: var(--cyan);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--glass);
}

strong, b {
  color: var(--glass);
  font-weight: 700;
}

small {
  font-size: var(--step-12);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 4. 容器与骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.container--narrow {
  max-width: 880px;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: 68ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--haze);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, var(--step-40));
}

.lede {
  font-size: clamp(1rem, 1.4vw, var(--step-20));
  line-height: 1.7;
  color: var(--mist);
  max-width: 62ch;
}

.prose p + p {
  margin-top: 1rem;
}

.prose {
  color: var(--mist);
  max-width: 68ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.12em;
  color: var(--haze);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(90deg, var(--line-strong), var(--line) 40%, transparent);
}

.stack {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

/* ---------- 5. 网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .grid-12 > * {
    grid-column: 1 / -1;
  }
}

/* ---------- 6. 面板 / 标签 / 按钮 ---------- */
.panel {
  position: relative;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  border-radius: var(--radius-l);
  background: linear-gradient(168deg, var(--layer), var(--panel) 78%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
  color: var(--mist);
}

.panel--glass {
  background: linear-gradient(168deg, rgba(23, 43, 69, 0.78), rgba(17, 31, 51, 0.6));
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  border-color: rgba(56, 225, 214, 0.24);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.12em;
  color: var(--haze);
  background: rgba(23, 43, 69, 0.6);
}

.tag--cyan {
  color: #052a29;
  background: var(--cyan);
  border-color: transparent;
}

.tag--orange {
  color: #2a1405;
  background: var(--orange);
  border-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: var(--step-14);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange), #ffa76a);
  color: #231206;
  box-shadow: 0 10px 24px rgba(255, 138, 61, 0.26);
}

.btn--primary:hover {
  color: #1a0d04;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 138, 61, 0.34);
}

.btn--ghost {
  background: rgba(56, 225, 214, 0.08);
  border-color: var(--line-strong);
  color: var(--cyan);
}

.btn--ghost:hover {
  background: rgba(56, 225, 214, 0.16);
  color: var(--glass);
}

.btn--line {
  background: transparent;
  border-color: var(--line);
  color: var(--mist);
}

.btn--line:hover {
  border-color: var(--line-strong);
  color: var(--glass);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.1em;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs-link {
  color: var(--haze);
  text-decoration: none;
}

.breadcrumbs-link:hover {
  color: var(--cyan);
}

.breadcrumbs-sep {
  color: rgba(140, 166, 191, 0.5);
}

.breadcrumbs-current {
  color: var(--cyan);
}

/* ---------- 8. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(15, 111, 106, 0.42), rgba(23, 43, 69, 0.9) 55%, rgba(64, 40, 28, 0.55));
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-panel);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame[data-empty]::after {
  content: attr(data-empty);
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.14em;
  color: var(--haze);
  background: linear-gradient(0deg, rgba(7, 15, 26, 0.86), transparent);
}

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

.media-frame-caption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.1em;
  color: var(--haze);
}

/* ---------- 9. 共享头部 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #04181a;
  font-size: var(--step-14);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(11, 22, 36, 0.97), rgba(11, 22, 36, 0.84));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(4, 10, 18, 0.45);
}

.header-bar {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 0.6rem var(--shell-pad);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-height: var(--header-h);
}

/* 品牌铭牌 */
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--glass);
  text-decoration: none;
  padding: 0.2rem;
  border-radius: var(--radius-m);
}

.brand-mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(56, 225, 214, 0.92), rgba(15, 111, 106, 0.8) 56%, rgba(255, 138, 61, 0.88));
  box-shadow: inset 0 0 0 1px rgba(234, 246, 245, 0.34), 0 6px 18px rgba(56, 225, 214, 0.22);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 3px;
  border: 1.5px solid rgba(6, 20, 28, 0.66);
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(6, 20, 28, 0.72);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand-name {
  font-size: var(--step-16);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--glass);
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--haze);
}

/* 胶囊导航 */
.nav-capsule {
  justify-self: start;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(23, 43, 69, 0.94), rgba(17, 31, 51, 0.94));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(234, 246, 245, 0.06), 0 10px 26px rgba(3, 9, 16, 0.45);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 0.45rem 0.92rem;
  border-radius: var(--radius-pill);
  font-size: var(--step-14);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover {
  color: var(--glass);
  background: rgba(56, 225, 214, 0.12);
}

.nav-link[aria-current="page"] {
  color: #04181a;
  background: linear-gradient(135deg, var(--cyan), #74f1e9);
  box-shadow: 0 6px 18px rgba(56, 225, 214, 0.28);
}

.nav-link[aria-current="page"]:focus-visible {
  outline-color: var(--glass);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(23, 43, 69, 0.92);
  border: 1px solid var(--line);
  color: var(--glass);
  font-size: var(--step-14);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.nav-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(23, 43, 69, 1);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.16em;
}

/* 操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-self: end;
}

.action-link {
  font-size: var(--step-14);
  font-weight: 600;
  color: var(--mist);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.action-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.action-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--orange), #ffa76a);
  color: #231206;
  font-size: var(--step-14);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(255, 138, 61, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.action-cta::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.action-cta:hover {
  color: #1a0d04;
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(255, 138, 61, 0.34);
}

/* 滚动进度光带 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--cyan) 62%, var(--orange));
  transition: transform 0.12s linear;
}

/* 平板收紧 */
@media (max-width: 1100px) {
  .action-link {
    display: none;
  }

  .nav-link {
    padding: 0.45rem 0.7rem;
    font-size: 0.8125rem;
  }
}

/* 移动端 */
@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .header-bar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand cta toggle";
    gap: 0.6rem;
    padding-block: 0.55rem;
  }

  .header-brand {
    grid-area: brand;
  }

  .header-actions {
    grid-area: cta;
    display: flex;
    gap: 0;
    margin-right: 0.35rem;
  }

  .header-actions .action-link {
    display: none;
  }

  .action-cta {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

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

  .nav-capsule {
    position: absolute;
    top: 100%;
    left: 8px;
    right: 8px;
    display: block;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    border-radius: 0 0 var(--radius-l) var(--radius-l);
    border-top-color: transparent;
    box-shadow: var(--shadow-lift);
    transition: max-height 0.32s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .site-header[data-open="true"] .nav-capsule {
    max-height: min(72vh, 34rem);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0.7rem 0.7rem 1rem;
  }

  .nav-link {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-m);
    font-size: var(--step-16);
  }

  .site-header[data-open="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
  }

  .site-header[data-open="true"] .nav-toggle-bar:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }
}

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

  .action-cta {
    padding: 0.38rem 0.66rem;
  }
}

/* ---------- 10. 共享页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(180deg, rgba(17, 31, 51, 0.55), rgba(8, 17, 28, 0.98) 44%, #060d16);
  border-top: 1px solid var(--line);
  color: var(--mist);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--teal) 62%, transparent);
  opacity: 0.55;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--shell-pad) 0;
}

.footer-coord {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding-bottom: 1.1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
  border-bottom: 1px dashed rgba(140, 166, 191, 0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--haze);
}

.footer-coord-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 225, 214, 0.18);
}

.footer-coord-item {
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.footer-brand-block {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.footer-brand-name {
  font-size: var(--step-20);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--glass);
}

.footer-summary {
  max-width: 34ch;
  font-size: var(--step-14);
  line-height: 1.8;
  color: var(--haze);
}

.footer-mono {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.14em;
  color: var(--cyan);
}

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

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--haze);
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.footer-link {
  display: inline-block;
  width: fit-content;
  font-size: var(--step-14);
  color: var(--mist);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-contact-list {
  gap: 0.75rem;
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--step-14);
  line-height: 1.7;
}

.footer-contact-key {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--haze);
}

.footer-contact-value {
  color: var(--glass);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 0.75rem;
  font-size: var(--step-12);
  line-height: 1.8;
  color: var(--haze);
  max-width: 40ch;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding: 1.1rem 0 1.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.08em;
  color: var(--haze);
}

.footer-meta-note {
  margin: 0;
}

.footer-icp {
  margin: 0;
  color: var(--mist);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-coord {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 11. 章节索引（页面阶段使用 data-spy） ---------- */
[data-spy] a[aria-current="location"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 12. 动效降级 ---------- */
@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-meter-fill {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
