/* =========================================================
   易博中心 · 共享样式 /assets/site.css
   夜间版本控制台：深海蓝底 + 荧光青索引 + 琥珀橙警示
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 2. 变量 ---------- */
:root {
  --bg: #08182B;
  --zone: #0E2B33;
  --bg-legacy: #241B4A;
  --cyan: #2FF3D0;
  --amber: #FFA23A;
  --muted: #6E6A8A;
  --wine: #7A1E3C;
  --ink: #E8F6F8;
  --ink-2: #8FA6B8;
  --line: #1E3550;

  --font-head: "Oswald", "Archivo Narrow", "Arial Narrow", "Source Han Sans SC",
    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --rail-w: 240px;
  --page-max: 1240px;
  --grid-step: 72px;
}

/* ---------- 3. 版面基底 ---------- */
body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(30, 53, 80, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 53, 80, 0.32) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(47, 243, 208, 0.10), transparent 70%),
    radial-gradient(700px 460px at 10% 108%, rgba(122, 30, 60, 0.18), transparent 72%);
}

main {
  display: block;
  position: relative;
  z-index: 1;
}

#main-content { scroll-margin-top: 84px; }

::selection { background: var(--cyan); color: #05131f; }

/* ---------- 4. 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(32px, 5.4vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.4vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 28px); }
h4 { font-size: 20px; letter-spacing: 0.01em; }

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.78;
  color: #cfe6ea;
  max-width: 34em;
}

.prose { max-width: 660px; }
.prose p { max-width: 34em; margin-bottom: 1em; color: #bfd3dc; }
.prose p:last-child { margin-bottom: 0; }

.note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.timestamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: clamp(26px, 4vw, 46px) 0;
}

/* ---------- 5. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.page-shell {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr);
}

.aside { display: grid; gap: 16px; align-content: start; }

.aside__block {
  border-top: 2px solid var(--line);
  padding-top: 12px;
}

.aside__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section { padding: clamp(30px, 4.5vw, 56px) 0; }

.section--zone {
  background: var(--zone);
  border-block: 1px solid var(--line);
}

.section--legacy {
  background: var(--bg-legacy);
  border-block: 1px solid #3a3068;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.section-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--cyan);
  background: rgba(47, 243, 208, 0.06);
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease;
}

.btn:hover { background: var(--cyan); color: #05131f; }

.btn--solid { background: var(--cyan); color: #05131f; }
.btn--solid:hover { background: #7ffbe4; }

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(47, 243, 208, 0.08);
  color: var(--cyan);
}

.btn--amber {
  border-color: var(--amber);
  background: rgba(255, 162, 58, 0.08);
  color: var(--amber);
}
.btn--amber:hover { background: var(--amber); color: #1a0f02; }

.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: color 0.16s ease, border-color 0.16s ease,
    background-color 0.16s ease;
}

.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
  color: var(--cyan);
  border-color: rgba(47, 243, 208, 0.55);
  background: rgba(47, 243, 208, 0.06);
}

.icon-btn__label { white-space: nowrap; }
.icon-btn__key { font-size: 10px; color: var(--muted); }

/* ---------- 7. 页头 / 侧边轨道 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 120;
  padding: 10px 14px;
  background: var(--cyan);
  color: #05131f;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: rgba(30, 53, 80, 0.65);
  pointer-events: none;
}

.meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.1s linear;
}

.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 43, 51, 0.7), rgba(8, 24, 43, 0));
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

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

.brand__mark {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  background: rgba(47, 243, 208, 0.06);
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }

.brand__name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.brand__en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.badge-version {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 1px solid rgba(255, 162, 58, 0.45);
  padding: 2px 6px;
  white-space: nowrap;
}

.rail__actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.nav-toggle:hover { border-color: var(--cyan); background: rgba(47, 243, 208, 0.07); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: background-color 0.16s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.18s ease;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 索引面板 */
.index-panel {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--zone);
}

.index-panel__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
}

.index-panel__input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: rgba(8, 24, 43, 0.8);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.index-panel__input:focus { border-color: var(--cyan); outline: none; }

.index-panel__list {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  max-height: 42vh;
  overflow-y: auto;
}

.index-panel__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 8px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 13px;
  transition: color 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease;
}

.index-panel__link:hover {
  color: var(--ink);
  background: rgba(47, 243, 208, 0.06);
  border-left-color: var(--cyan);
}

.index-panel__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.index-panel__text { font-family: var(--font-head); letter-spacing: 0.08em; }

.index-panel__empty {
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* 导航抽屉的头部（仅移动端） */
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-head__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}

/* 轨道导航（移动端 = 抽屉） */
.rail__nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  width: min(84vw, 320px);
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
  overflow-y: auto;
  background: var(--bg);
  border-right: 1px solid var(--line);
  box-shadow: 22px 0 60px rgba(0, 0, 0, 0.55);
  transform: translateX(-102%);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-header[data-open] .rail__nav { transform: none; }

.nav-list { display: grid; gap: 2px; padding: 12px 8px; }

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 11px 12px 11px 14px;
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(47, 243, 208, 0.1), transparent 78%);
}

.nav-link:hover::before,
.nav-link:focus-visible::before { transform: scaleY(0.55); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(47, 243, 208, 0.14), transparent 80%);
}

.nav-link[aria-current="page"]::before { transform: scaleY(1); }

.nav-link__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.nav-link[aria-current="page"] .nav-link__num { color: var(--cyan); }

.nav-link__label {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.rail__foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.rail__quick {
  display: block;
  padding: 8px 10px;
  border: 1px dashed rgba(255, 162, 58, 0.45);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  transition: background-color 0.16s ease;
}

.rail__quick:hover { background: rgba(255, 162, 58, 0.12); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(4, 12, 22, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.site-header[data-open] .nav-overlay { opacity: 1; pointer-events: auto; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 6vw, 84px);
  background: linear-gradient(180deg, rgba(14, 43, 51, 0.85), var(--bg) 62%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 190px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.footer__inner { padding-block: clamp(30px, 4.5vw, 56px) 24px; }

.footer__masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.footer__brand {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
}

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

.footer__version {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  border: 1px solid rgba(255, 162, 58, 0.4);
  padding: 2px 6px;
}

.footer__tagline {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 26px 0;
}

.footer__col { display: grid; gap: 10px; align-content: start; }

.footer__col--contact .footer__line { color: var(--ink); }

.footer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer__list { display: grid; gap: 8px; }

.footer__link {
  width: fit-content;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

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

.footer__line {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

.footer__note {
  max-width: 30em;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.footer__legal a { color: var(--ink-2); }
.footer__legal a:hover { color: var(--cyan); }

/* ---------- 9. 卡片 / 标签 / 提示块 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 43, 51, 0.75), rgba(8, 24, 43, 0.4));
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.card::after {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 14px;
  height: 14px;
  border-left: 1px solid var(--cyan);
  border-top: 1px solid var(--cyan);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.card:hover { border-color: rgba(47, 243, 208, 0.5); transform: translateY(-2px); }
.card:hover::after { opacity: 1; }

.card--legacy {
  border-color: #3a3068;
  background: linear-gradient(180deg, rgba(36, 27, 74, 0.85), rgba(20, 16, 44, 0.5));
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.card__title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.card__text { font-size: 14px; line-height: 1.8; color: var(--ink-2); }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  white-space: nowrap;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(47, 243, 208, 0.45);
  background: rgba(47, 243, 208, 0.07);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(255, 162, 58, 0.45);
  background: rgba(255, 162, 58, 0.08);
}

.tag--legacy {
  color: #b9b3d6;
  border-color: rgba(110, 106, 138, 0.55);
  background: rgba(36, 27, 74, 0.6);
}

.tag--wine {
  color: #f0a7bd;
  border-color: rgba(122, 30, 60, 0.8);
  background: rgba(122, 30, 60, 0.28);
}

.callout {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-left: 3px solid var(--cyan);
  background: rgba(14, 43, 51, 0.7);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.callout__title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.callout--amber {
  border-left-color: var(--amber);
  background: rgba(255, 162, 58, 0.08);
}

.callout--wine {
  border-left-color: var(--wine);
  background: rgba(122, 30, 60, 0.22);
}

/* ---------- 10. 面包屑 / 路径词 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs__sep { color: var(--muted); }
.breadcrumbs [aria-current="page"] { color: var(--cyan); }

.path-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px dashed var(--line);
  background: rgba(8, 24, 43, 0.6);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.path-chip:hover { border-color: var(--cyan); background: rgba(47, 243, 208, 0.07); }

.path-chip::after { content: "复制"; font-size: 10px; color: var(--muted); }
.path-chip[data-copied]::after { content: "已复制"; color: var(--amber); }

/* ---------- 11. 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--line);
}

.filter-bar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.filter-btn {
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: color 0.16s ease, border-color 0.16s ease,
    background-color 0.16s ease;
}

.filter-btn:hover { color: var(--ink); border-color: var(--cyan); }

.filter-btn[aria-pressed="true"] {
  color: #05131f;
  background: var(--cyan);
  border-color: var(--cyan);
}

.filter-bar__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.is-enter { animation: indexFade 0.12s ease both; }

@keyframes indexFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 12. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 13. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--zone), var(--bg));
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 243, 208, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 243, 208, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.media__label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: rgba(8, 24, 43, 0.84);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.media__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.media--legacy { background: linear-gradient(135deg, var(--bg-legacy), #14102c); }

.media--legacy::before {
  background-image:
    linear-gradient(rgba(110, 106, 138, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 106, 138, 0.14) 1px, transparent 1px);
}

.media-pair { display: grid; gap: 14px; }

/* ---------- 14. 断点 ---------- */
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-pair { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .rail {
    display: block;
    padding: 22px 18px 16px;
  }

  .rail__brand { margin-bottom: 14px; }
  .rail__actions { display: block; }
  .nav-toggle { display: none; }
  .icon-btn { width: 100%; justify-content: space-between; }

  .drawer-head { display: none; }

  .rail__nav {
    position: static;
    transform: none;
    width: auto;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: transparent;
    border-right: 0;
    box-shadow: none;
    padding-bottom: 0;
  }

  .nav-overlay { display: none; }

  .nav-list { padding: 6px 10px; }

  .footer__grid { grid-template-columns: 1.1fr 1fr 1.5fr 1fr; }
}

@media (min-width: 1080px) {
  .page-shell { grid-template-columns: minmax(0, 1fr) 280px; }
}

/* ---------- 15. 动效偏好 ---------- */
@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;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .meter__bar { transition: none; }
}
