/* 聚星指南 · star-finder-juxing.com.cn
   /assets/site.css — 共享外壳：重置 / 变量 / 中文排版 / 页头 / 页脚 / 通用组件 */

:root {
  --void: #0A1424;
  --indigo: #211C4A;
  --teal-deep: #0E3A3C;
  --silver: #C9D0DA;
  --paper: #F5F1E8;
  --signal: #F28C3B;
  --verdant: #57B7A8;
  --wine: #7B2D3B;
  --ink: #11161F;
  --haze: #7F8DA3;
  --gold: #D8B26A;

  --line: rgba(201, 208, 218, 0.18);
  --line-soft: rgba(201, 208, 218, 0.10);
  --line-strong: rgba(201, 208, 218, 0.34);

  --font-display: "Poppins", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "Noto Sans Mono CJK SC", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step-1: 12px;
  --step-2: 14px;
  --step-3: 16px;
  --step-4: 20px;
  --step-5: 28px;
  --step-6: 40px;
  --step-7: 56px;
  --step-8: 72px;

  --header-h: 92px;
  --frame: 22px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

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

html {
  background-color: var(--void);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--step-3);
  line-height: 1.9;
  color: var(--paper);
  background-color: transparent;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(201, 208, 218, 0.055) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 64%, rgba(201, 208, 218, 0.045) 0 1px, transparent 1.6px),
    radial-gradient(circle at 44% 88%, rgba(242, 140, 59, 0.07) 0 1px, transparent 1.8px);
  background-size: 340px 340px, 500px 500px, 620px 620px;
  background-repeat: repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 页面四周的细线画框 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--frame);
  right: var(--frame);
  z-index: -1;
  border-left: 1px solid rgba(201, 208, 218, 0.13);
  border-right: 1px solid rgba(201, 208, 218, 0.13);
  pointer-events: none;
}

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

::selection { background: var(--signal); color: var(--ink); }

a {
  color: inherit;
  text-decoration-color: rgba(201, 208, 218, 0.38);
  text-underline-offset: 3px;
}
a:hover { color: var(--paper); text-decoration-color: var(--signal); }

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

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--paper);
}
h1 { font-size: clamp(34px, 5.4vw, 68px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: var(--step-4); font-family: var(--font-body); letter-spacing: 0; }
h5, h6 { font-size: var(--step-3); font-family: var(--font-body); letter-spacing: 0; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--haze);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
  flex: none;
}

.coord {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--haze);
}

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

.lede {
  max-width: 34em;
  font-size: var(--step-4);
  line-height: 1.8;
  color: var(--silver);
}

.prose { max-width: 40em; }
.prose p { margin-bottom: 1.4em; }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: clamp(32px, 5vw, 56px) 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:hover {
  transform: translate(-1px, -3px);
  border-color: var(--signal);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.9);
}
.btn--primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  font-weight: 500;
}
.btn--primary:hover { background: #FFA15A; border-color: #FFA15A; color: var(--ink); }
.btn--primary:focus-visible { outline-color: var(--paper); }
.btn--quiet { border-color: var(--line); color: var(--silver); }
.btn--quiet:hover { color: var(--paper); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--silver);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}
.tag--wine { color: #C9828F; border-color: rgba(123, 45, 59, 0.9); background: rgba(123, 45, 59, 0.26); }
.tag--teal { color: var(--verdant); border-color: rgba(87, 183, 168, 0.5); background: rgba(14, 58, 60, 0.55); }
.tag--gold { color: var(--gold); border-color: rgba(216, 178, 106, 0.45); }

/* ---------- 面板与纸张叠层 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel--tint { background: rgba(33, 28, 74, 0.5); border-color: rgba(201, 208, 218, 0.22); }

.layer { position: relative; }
.layer::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(20px, 3vw, 34px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--haze);
}
.breadcrumbs a { color: var(--silver); text-decoration: none; }
.breadcrumbs a:hover { color: var(--signal); }
.crumb-sep { color: rgba(201, 208, 218, 0.32); }
.crumb-current { color: var(--gold); }

/* ---------- 网格与构图 ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.split-5-7, .split-4-8, .split-3-9 {
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.split-5-7 { grid-template-columns: 5fr 7fr; }
.split-4-8 { grid-template-columns: 4fr 8fr; }
.split-3-9 { grid-template-columns: 3fr 9fr; }

/* ---------- 图片容器（供页面阶段放占位图） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 24% 30%, rgba(201, 208, 218, 0.11) 0 1px, transparent 1.6px) 0 0 / 120px 120px,
    linear-gradient(140deg, rgba(33, 28, 74, 0.9), rgba(14, 58, 60, 0.6) 55%, rgba(10, 20, 36, 0.98));
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.06) brightness(0.86);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.12), rgba(10, 20, 36, 0.68));
  pointer-events: none;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 4 / 5; }
.media-caption {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--haze);
}

/* ---------- 分区底色 ---------- */
.zone { position: relative; padding-block: clamp(56px, 8vw, 110px); }
.zone--indigo { background: var(--indigo); }
.zone--teal { background: var(--teal-deep); }
.zone--ink { background: var(--ink); }
.zone--paper { background: var(--paper); color: var(--ink); }
.zone--paper h1, .zone--paper h2, .zone--paper h3 { color: var(--ink); }

/* ---------- 滚动显现协议 ---------- */
.reveal-pending {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.is-revealed { opacity: 1; transform: none; }

/* =========================================================
   页头 —— 框架式导航
   ========================================================= */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 10px 18px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.14em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(10, 20, 36, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--signal);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  height: 100%;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.brand-coord {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  line-height: 1.6;
  color: var(--haze);
  text-transform: uppercase;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  border: 1px solid var(--silver);
  transform: rotate(45deg);
  transition: border-color 0.25s var(--ease);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--signal);
  animation: node-breathe 6s ease-in-out infinite;
}
.brand:hover .brand-mark { border-color: var(--signal); }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.brand-desc {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--haze);
}

@keyframes node-breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.9vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { display: block; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 0;
  font-size: var(--step-2);
  letter-spacing: 0.02em;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--haze);
  transition: color 0.22s var(--ease);
}
.nav-text { white-space: nowrap; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--signal);
  transition: width 0.28s var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover .nav-index { color: var(--signal); }
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after { width: 16px; }
.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link[aria-current="page"] .nav-index { color: var(--signal); }
.nav-note { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle:hover { color: var(--paper); border-color: var(--signal); }
.nav-toggle[aria-expanded="true"] {
  color: var(--signal);
  border-color: var(--signal);
  background: rgba(242, 140, 59, 0.08);
}
.nav-toggle-label { line-height: 1; }
.nav-toggle-glyph {
  display: block;
  width: 16px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transition: height 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-glyph { height: 12px; }

.scroll-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(201, 208, 218, 0.07);
  overflow: hidden;
}
.scroll-thumb {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(242, 140, 59, 0.35), var(--signal));
  transition: transform 0.12s linear;
}

/* =========================================================
   页脚 —— 索引抽屉
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 9vw, 120px);
  background: var(--ink);
  border-top: 1px solid var(--line-strong);
  color: var(--silver);
  font-size: var(--step-2);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(44px, 6vw, 80px) clamp(30px, 4vw, 52px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-brand .coord { color: var(--haze); }
.footer-brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.footer-brand-desc {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.7;
  color: var(--haze);
}
.footer-brand .btn { margin-top: 8px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-link {
  display: inline-block;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-link:hover {
  color: var(--paper);
  transform: translateX(3px);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-underline-offset: 4px;
}

.footer-col--drawer { min-width: 0; }
.drawer { display: block; }
.drawer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--verdant);
  cursor: pointer;
  list-style: none;
}
.drawer-summary::-webkit-details-marker { display: none; }
.drawer-summary:hover { color: var(--paper); }
.drawer-glyph {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
}
.drawer-glyph::before,
.drawer-glyph::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.drawer-glyph::before {
  left: 50%;
  top: 2px;
  bottom: 2px;
  width: 1px;
  transform: translateX(-50%);
  transition: opacity 0.2s var(--ease);
}
.drawer-glyph::after {
  top: 50%;
  left: 2px;
  right: 2px;
  height: 1px;
  transform: translateY(-50%);
}
.drawer[open] .drawer-glyph::before { opacity: 0; }
.drawer-body {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(14, 58, 60, 0.55);
  border: 1px solid rgba(87, 183, 168, 0.28);
  border-radius: var(--radius);
}
.drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.drawer-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.drawer-link:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--verdant); }
.drawer-fmt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--verdant);
  min-width: 34px;
}
.drawer-note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: rgba(201, 208, 218, 0.55);
}

.footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
}
.footer-contact { min-width: 0; }
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.contact-item {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  line-height: 1.8;
  color: var(--silver);
  word-break: break-word;
}
.contact-key {
  flex: none;
  min-width: 42px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--haze);
}
.footer-legal-block { min-width: 0; }
.contact-note {
  margin: 0 0 14px;
  max-width: 36em;
  font-size: 12px;
  line-height: 1.9;
  color: var(--haze);
}
.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: rgba(201, 208, 218, 0.62);
}

.footer-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--haze);
}
.rail-mark {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--signal);
  transform: rotate(45deg);
  animation: node-breathe 6s ease-in-out infinite;
}
.rail-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.rail-text { white-space: nowrap; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
    --frame: 12px;
    --gutter: 18px;
  }

  body { font-size: 15.5px; }

  .brand-coord { display: none; }
  .brand-desc { display: none; }
  .brand-name { font-size: 18px; }

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 10px var(--gutter) 26px;
    background: linear-gradient(180deg, rgba(10, 20, 36, 0.99), rgba(14, 58, 60, 0.97));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s linear;
  }
  .site-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { display: block; }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 4px;
    font-size: var(--step-3);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    color: var(--paper);
    background: linear-gradient(90deg, rgba(242, 140, 59, 0.14), transparent 70%);
  }
  .nav-link[aria-current="page"] .nav-index { color: var(--signal); }

  .nav-note {
    display: block;
    margin: 20px 0 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    line-height: 1.8;
    color: var(--haze);
  }

  .split-5-7, .split-4-8, .split-3-9, .grid-12 { grid-template-columns: 1fr; }

  .footer-meta { grid-template-columns: 1fr; }
  .site-header::after { width: 40px; }
}

@media (max-width: 720px) {
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .footer-rail { letter-spacing: 0.14em; }
  .rail-text:last-child { display: none; }
  .rail-line { display: none; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(30px, 9vw, 40px); }
  .lede { font-size: var(--step-3); }
  .btn { width: 100%; justify-content: center; }
  .contact-item { flex-direction: column; gap: 0; }
  .contact-key { min-width: 0; }
  .layer::before { inset: 8px -8px -8px 8px; }
}

/* =========================================================
   可访问性
   ========================================================= */
@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;
  }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
  .brand-mark::after, .rail-mark { animation: none !important; opacity: 1; }
}

@media print {
  .site-header, .skip-link, .scroll-track, .footer-rail { display: none !important; }
  body { padding-top: 0; color: #000; background: #fff; }
  body::before { display: none; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; }
}
