/* ============================================================
   三度宇宙 · 事件视界终端
   深空 / 宋体 / 金色细线 / 下潜式三页
   ============================================================ */

:root {
  --bg: #050506;
  --bg-soft: #0a0a0d;
  --ink: #f2ede4;
  --ink-soft: #d8d2c6;
  --muted: #9b9488;
  --dim: #6f6a60;
  --faint: #4a4740;

  --gold: #c9a86f;
  --gold-bright: #e8cfa0;
  --gold-deep: #8e7549;
  --blue: #7fa9e8;

  --line: rgba(242, 237, 228, 0.1);
  --line-soft: rgba(242, 237, 228, 0.055);
  --gold-line: rgba(201, 168, 111, 0.24);
  --gold-line-soft: rgba(201, 168, 111, 0.13);

  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", "JetBrains Mono", "Consolas", "Courier New", monospace;

  --bh-x: 1420;
  --bh-y: 500;
  --bh-r: 150;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --text-scale: 1;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: calc(14px * var(--text-scale));
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(201, 168, 111, 0.25);
  color: #fff8ec;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }

kbd {
  display: inline-block;
  min-width: 17px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: calc(9px * var(--text-scale));
  line-height: 1.7;
  text-align: center;
}

:focus-visible {
  outline: 1px solid rgba(201, 168, 111, 0.8);
  outline-offset: 4px;
}

* { scrollbar-width: thin; scrollbar-color: rgba(201, 168, 111, 0.25) transparent; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 111, 0.22);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: rgba(201, 168, 111, 0.4); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 背景 ---------- */
#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease-soft);
}
body.webgl-ready #space { opacity: 1; }

.bg-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 244, 226, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 64%, rgba(200, 220, 255, 0.42) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 58% 18%, rgba(255, 236, 210, 0.38) 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 78%, rgba(255, 255, 255, 0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 34%, rgba(210, 226, 255, 0.36) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 88%, rgba(255, 255, 255, 0.28) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 8% 76%, rgba(255, 226, 196, 0.32) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 46%, rgba(255, 255, 255, 0.24) 50%, transparent 51%);
}
body.webgl-ready .bg-stars { opacity: 0; transition: opacity 1.6s; }

.fallback-hole {
  position: fixed;
  left: calc(var(--bh-x) * 1px);
  top: calc(var(--bh-y) * 1px);
  width: calc(var(--bh-r) * 5.4px);
  height: calc(var(--bh-r) * 5.4px);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  display: none;
}
body.no-webgl .fallback-hole { display: block; }
.fh-core {
  position: absolute;
  inset: calc(50% - var(--bh-r) * 1px);
  border-radius: 50%;
  background: #000;
  box-shadow:
    0 0 calc(var(--bh-r) * 0.5px) calc(var(--bh-r) * 0.05px) rgba(201, 168, 111, 0.42),
    0 0 calc(var(--bh-r) * 1.6px) calc(var(--bh-r) * 0.18px) rgba(255, 150, 80, 0.14);
}
.fh-disk {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
    rgba(232, 207, 160, 0) 0deg,
    rgba(232, 207, 160, 0.5) 44deg,
    rgba(200, 130, 70, 0.18) 120deg,
    rgba(120, 80, 50, 0.04) 200deg,
    rgba(232, 207, 160, 0.4) 300deg,
    rgba(232, 207, 160, 0) 360deg);
  transform: rotate(-18deg) scaleY(0.3);
  filter: blur(10px);
}
.fh-ring {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  border: 1px solid rgba(232, 207, 160, 0.4);
  box-shadow: 0 0 26px rgba(232, 207, 160, 0.26), inset 0 0 18px rgba(232, 207, 160, 0.14);
}

.bh-glow {
  position: fixed;
  left: calc(var(--bh-x) * 1px);
  top: calc(var(--bh-y) * 1px);
  width: calc(var(--bh-r) * 8.4px);
  height: calc(var(--bh-r) * 8.4px);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 30% 17% at 50% 50%, rgba(255, 214, 160, 0.1), transparent 72%),
    radial-gradient(ellipse 44% 38% at 50% 50%, rgba(210, 140, 80, 0.055), transparent 74%),
    radial-gradient(circle at 50% 50%, transparent 26%, rgba(120, 160, 220, 0.04) 54%, transparent 72%);
  filter: blur(10px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 2.4s var(--ease-soft);
}
body.webgl-ready .bh-glow { opacity: 1; }
body.no-webgl .bh-glow { opacity: 0.8; }

.hud {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 2s var(--ease-soft) 0.4s;
}
body.ready .hud { opacity: 1; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.95) 0%, rgba(5, 5, 6, 0.82) 28%, rgba(5, 5, 6, 0.24) 55%, transparent 70%),
    linear-gradient(0deg, rgba(5, 5, 6, 0.86) 0%, transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.62) 0%, transparent 16%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 84% 80% at 62% 48%, transparent 38%, rgba(2, 2, 3, 0.55) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain-shift 9s steps(6) infinite;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  z-index: 5;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 207, 160, 0.055), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.9s;
  will-change: transform;
}
body.pointer-fine .cursor-glow { opacity: 1; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(22px, 3.4vw, 52px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 1.2s var(--ease-soft) 0.2s, transform 1.2s var(--ease-out) 0.2s;
}
body.ready .topbar { opacity: 1; transform: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--gold);
  filter: drop-shadow(0 0 14px rgba(201, 168, 111, 0.3));
  animation: logo-drift 16s ease-in-out infinite;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-cn {
  font-family: var(--font-serif);
  font-size: calc(18.5px * var(--text-scale));
  letter-spacing: 0.24em;
  line-height: 1.1;
  color: #f4efe6;
}
.brand-en {
  font-family: var(--font-mono);
  font-size: calc(9px * var(--text-scale));
  letter-spacing: 0.34em;
  color: var(--dim);
  line-height: 1.2;
}

.topnav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(201, 168, 111, 0.16);
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.55);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.topnav-item {
  appearance: none;
  border: 0;
  background: none;
  padding: 7px 20px;
  border-radius: 999px;
  color: var(--dim);
  font-size: calc(12px * var(--text-scale));
  letter-spacing: 0.16em;
  transition: color 0.35s, background 0.35s;
}
.topnav-item:hover { color: var(--ink-soft); }
.topnav-item.is-active {
  color: #fbf7ef;
  background: rgba(255, 255, 255, 0.06);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 公司网站入口：与起始页并存，点击进入独立页面 */
.company-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: calc(9px * var(--text-scale));
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.company-entry em {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: calc(11px * var(--text-scale));
  letter-spacing: 0.08em;
  color: var(--gold);
}
.company-entry:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201, 168, 111, 0.06);
}

@media (max-width: 1200px) and (min-width: 981px) {
  .company-entry em { display: none; }
}
.horizon-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: calc(10px * var(--text-scale));
  letter-spacing: 0.16em;
  color: var(--dim);
}
.horizon-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 9px rgba(201, 168, 111, 0.9);
  animation: led-pulse 4s ease-in-out infinite;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-size: calc(12px * var(--text-scale));
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
  transition: border-color 0.35s, color 0.35s, background 0.35s;
}
.btn-ghost .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px var(--gold);
}
.btn-ghost:hover {
  border-color: var(--gold-line);
  color: var(--gold-bright);
  background: rgba(201, 168, 111, 0.05);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, color 0.3s, transform 0.5s var(--ease-out);
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { border-color: var(--gold-line); color: var(--gold-bright); transform: rotate(14deg); }

/* ---------- 页面滚动容器 ---------- */
.pages {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.pages::-webkit-scrollbar { display: none; }

.page {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px clamp(24px, 6.6vw, 108px) 96px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.page-inner {
  width: 100%;
  max-width: 1660px;
  margin: 0 auto;
  position: relative;
}

.hero-grid { display: flex; align-items: center; }
.hero-copy {
  width: min(580px, 44vw);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.4s var(--ease-soft) 0.35s, transform 1.4s var(--ease-out) 0.35s;
}
body.ready .hero-copy { opacity: 1; transform: none; }
body:not(.ready) .page .section-copy { opacity: 0; }
body.ready .page .section-copy {
  opacity: 1;
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-out);
}

/* ---------- 通用排印 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: calc(9.5px * var(--text-scale));
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 22px;
  white-space: nowrap;
}
.eyebrow-line {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: 0.8;
}
.eyebrow-cn { color: var(--dim); letter-spacing: 0.2em; }
.eyebrow--sm { margin-bottom: 10px; font-size: calc(8.5px * var(--text-scale)); letter-spacing: 0.32em; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(clamp(62px, 6.6vw, 100px) * var(--text-scale));
  line-height: 1;
  letter-spacing: 0.1em;
  color: #f6f1e7;
  text-shadow: 0 0 60px rgba(232, 207, 160, 0.1);
  margin-left: -0.05em;
}
.hero-en {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: calc(9.5px * var(--text-scale));
  letter-spacing: 0.46em;
  color: var(--gold);
  opacity: 0.8;
}
.hero-lead {
  margin: 26px 0 0;
  font-family: var(--font-serif);
  font-size: calc(15px * var(--text-scale));
  line-height: 2.05;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.section-copy {
  width: min(680px, 44vw);
  transform: translateY(16px);
  transition: opacity 1s var(--ease-soft) 0.2s, transform 1s var(--ease-out) 0.2s;
}
.page.is-active .section-copy { transform: none; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(clamp(48px, 5.2vw, 78px) * var(--text-scale));
  line-height: 1.05;
  letter-spacing: 0.16em;
  color: #f6f1e7;
  margin-left: -0.06em;
}
.section-lead {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: calc(13.5px * var(--text-scale));
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 时钟 ---------- */
.clock-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-top: 30px;
}
.clock-wrap {
  display: flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-weight: 300;
  color: #f4f0e7;
  font-variant-numeric: tabular-nums;
}
.clock {
  font-size: calc(clamp(38px, 3.6vw, 54px) * var(--text-scale));
  line-height: 1;
  letter-spacing: -0.035em;
}
.clock-sec {
  font-size: 0.38em;
  color: var(--muted);
  margin-left: 9px;
  letter-spacing: 0;
  transition: opacity 0.4s;
}
body.no-seconds .clock-sec { display: none; }
.clock-meta {
  padding-left: 18px;
  border-left: 1px solid var(--gold-line-soft);
  font-family: var(--font-mono);
  font-size: calc(9px * var(--text-scale));
  line-height: 1.9;
  letter-spacing: 0.14em;
  color: var(--dim);
  white-space: nowrap;
}
.clock-meta .phase { color: var(--gold); }

/* ---------- 搜索 ---------- */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  margin-top: 32px;
  padding: 0 8px 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  backdrop-filter: blur(14px);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
  cursor: text;
}
.search:focus-within {
  border-color: var(--gold-line);
  background: rgba(201, 168, 111, 0.035);
  box-shadow: 0 0 0 4px rgba(201, 168, 111, 0.035), 0 20px 50px rgba(0, 0, 0, 0.3);
}
.search-icon { width: 17px; height: 17px; flex: none; color: var(--muted); }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  outline: none;
  font-size: calc(14px * var(--text-scale));
  letter-spacing: 0.04em;
  color: var(--ink);
}
.search input::placeholder { color: var(--faint); letter-spacing: 0.06em; }
.search kbd { flex: none; }
.search-go {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: rgba(201, 168, 111, 0.05);
  color: var(--gold);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.search-go svg { width: 16px; height: 16px; }
.search-go:hover {
  background: rgba(201, 168, 111, 0.13);
  border-color: rgba(201, 168, 111, 0.5);
  transform: translateX(2px);
}

/* ---------- 引擎 / 常用 ---------- */
.engines {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 12px;
}
.engine {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: calc(9.5px * var(--text-scale));
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.engine::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  transition: opacity 0.3s, box-shadow 0.3s;
}
.engine:hover { color: var(--ink-soft); }
.engine[aria-pressed="true"] { color: var(--gold); }
.engine[aria-pressed="true"]::before { opacity: 1; box-shadow: 0 0 7px var(--gold); }

.quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  max-width: 560px;
}
.quick-row::before {
  content: "常用轨道";
  font-family: var(--font-mono);
  font-size: calc(8.5px * var(--text-scale));
  letter-spacing: 0.2em;
  color: var(--faint);
  margin-right: 2px;
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: calc(11px * var(--text-scale));
  letter-spacing: 0.08em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.3s;
}
.q-icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #f2ede4;
  overflow: hidden;
  color: #1a1a1e;
}
.q-icon .site-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
  background: #f2ede4;
  z-index: 1;
}
.q-icon .icon-fallback {
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  line-height: 1;
}
.quick-link:hover { color: var(--ink); }
.quick-link:hover .q-icon { box-shadow: 0 0 10px rgba(201, 168, 111, 0.22); }

/* ---------- 速记 ---------- */
.capture {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.4s;
}
.capture:focus-within { border-color: var(--gold-line); }
.capture-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: calc(8.5px * var(--text-scale));
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.85;
}
.capture input {
  flex: 1;
  min-width: 0;
  height: 28px;
  border: 0;
  background: none;
  outline: none;
  font-size: calc(12px * var(--text-scale));
  letter-spacing: 0.04em;
  color: var(--ink);
}
.capture input::placeholder { color: var(--faint); }
.capture-btn {
  flex: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: calc(9px * var(--text-scale));
  letter-spacing: 0.16em;
  transition: color 0.3s;
}
.capture-btn:hover { color: var(--gold); }

/* ---------- 序章侧栏读数 ---------- */
.hero-side {
  position: absolute;
  right: 0;
  bottom: 4px;
  text-align: right;
  pointer-events: none;
}
.chapter-readout { opacity: 0.85; }
.readout-label {
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.28em;
  color: var(--faint);
}
.readout-value {
  font-family: var(--font-serif);
  font-size: calc(24px * var(--text-scale));
  letter-spacing: 0.1em;
  color: rgba(242, 237, 228, 0.82);
  margin-top: 4px;
}
.readout-value em {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: calc(11px * var(--text-scale));
  letter-spacing: 0.18em;
  color: var(--dim);
}
.readout-note {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.14em;
  color: var(--faint);
}

/* ---------- 轨道 ---------- */
.orbit-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 34px;
  max-width: 780px;
}
.orbit-group {
  min-width: 0;
  border-top: 1px solid var(--gold-line-soft);
  padding-top: 15px;
}
.orbit-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.orbit-group-name {
  font-family: var(--font-serif);
  font-size: calc(19px * var(--text-scale));
  letter-spacing: 0.08em;
  color: var(--ink);
}
.orbit-group-hint {
  font-family: var(--font-mono);
  font-size: calc(7.5px * var(--text-scale));
  letter-spacing: 0.16em;
  color: var(--faint);
  white-space: nowrap;
}
.orbit-group-index {
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin-bottom: 9px;
}
.orbit-links { display: flex; flex-direction: column; }
.orbit-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.3s, padding-left 0.4s var(--ease-out), border-color 0.3s;
}
.orbit-link:last-child { border-bottom: 0; }
.orbit-link .glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.orbit-link .name {
  font-size: calc(12px * var(--text-scale));
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orbit-link .host {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.04em;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.3s;
}
.orbit-link .arrow {
  width: 10px;
  font-size: calc(10px * var(--text-scale));
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.orbit-link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-line-soft);
  padding-left: 4px;
}
.orbit-link:hover .glyph { border-color: var(--gold-line); color: var(--gold); }
.orbit-link:hover .host { color: var(--gold-deep); }
.orbit-link:hover .arrow { opacity: 1; transform: none; }
.orbit-link.is-ping .glyph { animation: node-ping 0.8s var(--ease-out); }

/* ---------- 档案预览 ---------- */
.archive-stats {
  display: flex;
  align-items: baseline;
  gap: 34px;
  margin-top: 26px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  max-width: 700px;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stat b {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: calc(22px * var(--text-scale));
  color: var(--gold);
  letter-spacing: -0.02em;
}
.stat span {
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.16em;
  color: var(--faint);
}
.stat em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: calc(8px * var(--text-scale));
  color: var(--faint);
  letter-spacing: 0.08em;
}

.note-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 24px;
  max-width: 760px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.note-preview-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 104px;
  padding: 16px 18px;
  background: rgba(9, 9, 11, 0.82);
  text-align: left;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.note-preview-card:hover {
  background: rgba(201, 168, 111, 0.045);
  border-color: var(--gold-line);
}
.note-preview-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: calc(7.5px * var(--text-scale));
  letter-spacing: 0.12em;
  color: var(--faint);
}
.note-preview-meta .tag { color: var(--gold-deep); }
.note-preview-card h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(16px * var(--text-scale));
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-preview-card p {
  font-size: calc(10.5px * var(--text-scale));
  line-height: 1.75;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-preview-empty {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  color: var(--dim);
  font-size: calc(11px * var(--text-scale));
  letter-spacing: 0.06em;
  background: rgba(9, 9, 11, 0.82);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 30px;
}
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font-size: calc(11px * var(--text-scale));
  letter-spacing: 0.12em;
  transition: border-color 0.35s, color 0.35s, background 0.35s;
}
.btn-line span { color: var(--gold); font-size: calc(10px * var(--text-scale)); }
.btn-line:hover {
  border-color: var(--gold-line);
  color: var(--gold-bright);
  background: rgba(201, 168, 111, 0.045);
}
.btn-line--gold {
  border-color: var(--gold-line);
  color: var(--gold-bright);
  background: rgba(201, 168, 111, 0.05);
}
.btn-line--gold:hover { border-color: rgba(201, 168, 111, 0.5); background: rgba(201, 168, 111, 0.1); }
.btn-line--sm { height: 32px; padding: 0 14px; font-size: calc(10px * var(--text-scale)); }
.btn-line.is-danger { border-color: rgba(210, 120, 92, 0.22); color: #d99a84; }
.btn-line.is-danger:hover { border-color: rgba(210, 120, 92, 0.5); color: #ecb09a; background: rgba(180, 80, 50, 0.08); }
.btn-line.is-confirming { border-color: rgba(210, 120, 92, 0.6); background: rgba(180, 80, 50, 0.12); color: #ecb09a; }

.quote {
  margin-top: 34px;
  padding-left: 16px;
  border-left: 1px solid var(--gold-line);
  max-width: 480px;
  min-height: 50px;
}
.quote p {
  font-family: var(--font-serif);
  font-size: calc(13px * var(--text-scale));
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: opacity 0.8s;
}
.quote footer {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.16em;
  color: var(--faint);
  transition: opacity 0.8s;
}
.quote.is-fading p, .quote.is-fading footer { opacity: 0; }

/* ---------- 章节索引 ---------- */
.chapters {
  position: fixed;
  right: clamp(22px, 3.4vw, 52px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-right: 14px;
}
.chapters::before {
  content: "";
  position: absolute;
  right: -64px;
  top: -100px;
  bottom: -100px;
  width: 250px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(5, 5, 6, 0.86) 42%, rgba(5, 5, 6, 0.78));
  pointer-events: none;
}
.chapter {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border: 0;
  background: none;
  padding: 2px 0;
  color: var(--faint);
  transition: color 0.4s;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
}
.chapter em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.1em;
  color: var(--faint);
  transition: color 0.4s;
}
.chapter span {
  font-family: var(--font-serif);
  font-size: calc(13px * var(--text-scale));
  letter-spacing: 0.2em;
  transition: color 0.4s;
}
.chapter::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 1px;
  height: 0;
  background: var(--gold);
  transform: translateY(-50%);
  transition: height 0.5s var(--ease-out);
}
.chapter:hover { color: var(--muted); }
.chapter.is-active { color: var(--ink); }
.chapter.is-active em { color: var(--gold); }
.chapter.is-active::after { height: 22px; }
.chapter-line {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
  z-index: -1;
}

/* ---------- 下潜 ---------- */
.descent {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 31;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.4s, opacity 0.6s;
  opacity: 0;
}
body.ready .descent { opacity: 1; }
.descent span {
  font-family: var(--font-serif);
  font-size: calc(clamp(24px, 2.1vw, 32px) * var(--text-scale));
  letter-spacing: 0.2em;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  transition: color 0.4s;
}
.descent i {
  position: relative;
  display: block;
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--gold-line), transparent);
}
.descent i::after {
  content: "";
  position: absolute;
  left: -2.5px;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.8;
}
.descent:hover span { color: var(--gold-bright); }
.descent:hover i { background: linear-gradient(180deg, var(--gold), transparent); }

/* ---------- 遥测 ---------- */
.telemetry {
  position: fixed;
  right: clamp(22px, 3.4vw, 52px);
  bottom: 48px;
  z-index: 31;
  text-align: right;
  font-family: var(--font-mono);
  line-height: 1.9;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft) 0.6s;
}
body.ready .telemetry { opacity: 1; }
.telemetry-label {
  font-size: calc(7.5px * var(--text-scale));
  letter-spacing: 0.3em;
  color: var(--faint);
}
.telemetry-data {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.06em;
  color: var(--dim);
}
.telemetry-data span + span::before {
  content: "·";
  margin-right: 12px;
  color: var(--faint);
}

/* ---------- 底栏 ---------- */
.bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px clamp(22px, 3.4vw, 52px);
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.14em;
  color: var(--faint);
  background: linear-gradient(0deg, rgba(5, 5, 6, 0.9), transparent);
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft) 0.8s;
}
body.ready .bottombar { opacity: 1; }
.bottombar-mid { color: var(--faint); }
.bottombar-mid kbd { margin-left: 8px; margin-right: 2px; }
.bottombar-mid kbd:first-child { margin-left: 0; }
.bottombar-right em { color: var(--faint); font-style: normal; }
.bottombar-admin {
  margin-left: 12px;
  color: var(--dim);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.bottombar-admin:hover { color: var(--gold); border-color: var(--gold-line); }

/* ---------- 视界入口 ---------- */
.bh-hit {
  position: fixed;
  z-index: 9;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1.8s var(--ease-soft) 0.8s;
}
body.ready .bh-hit { opacity: 1; }
.bh-hit::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 168, 111, 0);
  transition: inset 0.6s, border-color 0.6s;
}
.bh-hit:hover::before,
.bh-hit:focus-visible::before {
  inset: -14px;
  border-color: rgba(201, 168, 111, 0.32);
  animation: spin-slow 34s linear infinite;
}
.bh-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  transition: opacity 0.5s;
  user-select: none;
}
.bh-hit:hover .bh-hint,
.bh-hit:focus-visible .bh-hint { opacity: 1; }
.bh-hint em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: calc(7.5px * var(--text-scale));
  letter-spacing: 0.4em;
  color: rgba(201, 168, 111, 0.6);
}
.bh-hint strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(12px * var(--text-scale));
  letter-spacing: 0.22em;
  color: rgba(246, 232, 208, 0.92);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
  text-shadow: 0 0 22px rgba(232, 180, 110, 0.55);
}
.bh-hit:hover .bh-hint strong,
.bh-hit:focus-visible .bh-hint strong { opacity: 1; transform: none; }

/* ---------- 视界档案库 ---------- */
.archive {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.2vw, 32px);
  background: rgba(3, 3, 4, 0.72);
  backdrop-filter: blur(22px) saturate(1.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-soft), visibility 0.5s;
}
.archive.open { opacity: 1; visibility: visible; }
.archive[hidden] { display: none; }

.archive-panel {
  width: min(1180px, 100%);
  height: min(830px, 88vh);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 12% 0%, rgba(201, 168, 111, 0.055), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 100%, rgba(90, 130, 200, 0.04), transparent 70%),
    linear-gradient(165deg, rgba(13, 13, 16, 0.98), rgba(6, 6, 8, 0.99));
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: scale(0.97) translateY(10px);
  opacity: 0;
  transition: transform 0.65s var(--ease-out), opacity 0.5s var(--ease-soft);
}
.archive.open .archive-panel { transform: none; opacity: 1; }

.archive-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px 18px;
}
.archive-heading h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(24px * var(--text-scale));
  letter-spacing: 0.16em;
  line-height: 1.3;
  color: #f6f1e7;
  margin-left: -0.04em;
}
.archive-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: calc(9px * var(--text-scale));
  letter-spacing: 0.08em;
  color: var(--dim);
}
.archive-close { flex: none; }

.archive-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 32px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.archive-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 248px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s;
}
.archive-search:focus-within { border-color: var(--gold-line); }
.archive-search svg { width: 14px; height: 14px; color: var(--dim); flex: none; }
.archive-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: calc(12px * var(--text-scale));
  letter-spacing: 0.04em;
}
.archive-search input::placeholder { color: var(--faint); }

.tag-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 100px;
  overflow-x: auto;
  padding: 3px 0;
  scrollbar-width: none;
}
.tag-row::-webkit-scrollbar { display: none; }
.tag-chip {
  flex: none;
  height: 28px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: calc(9px * var(--text-scale));
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.tag-chip:hover { color: var(--ink-soft); }
.tag-chip[aria-pressed="true"] {
  color: var(--gold);
  border-color: var(--gold-line);
  background: rgba(201, 168, 111, 0.05);
}

.archive-actions { display: flex; align-items: center; gap: 6px; }

.archive-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 336px 1fr;
}

.archive-list {
  overflow-y: auto;
  padding: 10px;
  border-right: 1px solid var(--line-soft);
}
.archive-empty {
  padding: 42px 18px;
  text-align: center;
  color: var(--dim);
  font-size: calc(11.5px * var(--text-scale));
  line-height: 2;
  letter-spacing: 0.06em;
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  text-align: left;
  color: inherit;
  transition: background 0.3s, border-color 0.3s;
}
.note-card:hover { background: rgba(255, 255, 255, 0.025); }
.note-card.active {
  background: rgba(201, 168, 111, 0.055);
  border-color: var(--gold-line);
}
.note-card h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(14.5px * var(--text-scale));
  letter-spacing: 0.03em;
  line-height: 1.55;
  color: var(--ink);
}
.note-card p {
  font-size: calc(11px * var(--text-scale));
  line-height: 1.7;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.06em;
  color: var(--faint);
  flex-wrap: wrap;
}
.note-tag {
  padding: 0 5px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: calc(7.5px * var(--text-scale));
  color: var(--dim);
}

.archive-detail {
  position: relative;
  overflow-y: auto;
  padding: 30px clamp(24px, 3.4vw, 46px) 46px;
}

.detail-empty {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  color: var(--dim);
}
.empty-orbit {
  width: 70px;
  height: 70px;
  position: relative;
  opacity: 0.75;
}
.empty-orbit::before,
.empty-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--gold-line);
}
.empty-orbit::after {
  inset: 21px;
  border-style: solid;
  background: radial-gradient(circle, rgba(201, 168, 111, 0.14), transparent 65%);
}
.detail-empty p { font-size: calc(11.5px * var(--text-scale)); letter-spacing: 0.08em; line-height: 2; }
.detail-empty .empty-actions { display: flex; gap: 8px; margin-top: 4px; }

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.detail-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(clamp(20px, 2vw, 26px) * var(--text-scale));
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: #f6f1e7;
  margin-bottom: 10px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: calc(8.5px * var(--text-scale));
  letter-spacing: 0.08em;
  color: var(--faint);
}
.detail-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.detail-actions { display: flex; gap: 6px; flex: none; }

.note-body {
  font-size: calc(13px * var(--text-scale));
  line-height: 2.05;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.note-body h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(17px * var(--text-scale));
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin: 30px 0 10px;
  padding-left: 12px;
  border-left: 1px solid var(--gold-line);
}
.note-body h3:first-child { margin-top: 0; }
.note-body p { margin: 0 0 14px; }
.note-body ul { margin: 0 0 16px; padding-left: 2px; list-style: none; }
.note-body ol { margin: 0 0 16px; padding-left: 20px; list-style: decimal; }
.note-body ol li { padding-left: 4px; }
.note-body ol li::before { display: none; }
.note-body li { position: relative; padding-left: 17px; margin-bottom: 6px; }
.note-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.9em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}
.note-body blockquote {
  margin: 18px 0;
  padding: 2px 0 2px 15px;
  border-left: 1px solid var(--gold-line);
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: calc(12.5px * var(--text-scale));
}
.note-body code {
  padding: 1px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--gold-bright);
}
.note-body a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 169, 232, 0.25);
}
.note-body a:hover { border-bottom-color: var(--blue); }
.note-body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.note-body strong { color: #fff; font-weight: 500; }

/* 编辑器 */
.note-form { display: flex; flex-direction: column; gap: 14px; }
.note-form label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.18em;
  color: var(--dim);
}
.note-form input[type="text"] {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  outline: none;
  font-size: calc(14px * var(--text-scale));
  letter-spacing: 0.03em;
  transition: border-color 0.3s;
}
.note-form input[type="text"]:focus { border-color: var(--gold-line); }
.note-form textarea {
  width: 100%;
  min-height: 290px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  outline: none;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: calc(12px * var(--text-scale));
  line-height: 1.9;
  color: var(--ink-soft);
  transition: border-color 0.3s;
}
.note-form textarea:focus { border-color: var(--gold-line); }
.form-hint { font-family: var(--font-mono); font-size: calc(8px * var(--text-scale)); letter-spacing: 0.06em; color: var(--faint); }
.form-foot { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.form-foot .spacer { flex: 1; }

.detail-back {
  display: none;
  align-items: center;
  height: 30px;
  margin-bottom: 16px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: calc(10px * var(--text-scale));
  letter-spacing: 0.08em;
}
.detail-back:hover { color: var(--ink); border-color: var(--gold-line); }

.archive-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 32px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.12em;
  color: var(--faint);
}

/* ---------- 设置 ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(3, 3, 4, 0.6);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.5s;
}
.drawer-backdrop.open { opacity: 1; }
.drawer-backdrop[hidden] { display: none; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  width: min(380px, 100vw);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--gold-line);
  background:
    radial-gradient(ellipse 80% 30% at 100% 0%, rgba(201, 168, 111, 0.05), transparent 70%),
    linear-gradient(180deg, rgba(12, 12, 15, 0.985), rgba(5, 5, 7, 0.995));
  box-shadow: -40px 0 100px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out);
  overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer[hidden] { display: none; }

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(22px * var(--text-scale));
  letter-spacing: 0.16em;
  color: #f6f1e7;
}
.drawer-body { padding: 6px 26px 40px; }

.setting { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.setting:last-child { border-bottom: 0; }
.setting h3 {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.setting-note {
  margin-top: 10px;
  font-size: calc(10px * var(--text-scale));
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--faint);
}
.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
}
.segmented button {
  flex: 1;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--dim);
  font-size: calc(11px * var(--text-scale));
  letter-spacing: 0.1em;
  transition: background 0.3s, color 0.3s;
}
.segmented button:hover { color: var(--ink-soft); }
.segmented button[aria-pressed="true"] {
  background: rgba(201, 168, 111, 0.1);
  color: var(--gold);
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: calc(11.5px * var(--text-scale));
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  cursor: pointer;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  position: relative;
  width: 38px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.3s, border-color 0.3s;
}
.switch-thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dim);
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease-out), background 0.3s;
}
.switch input:checked + .switch-track { background: rgba(201, 168, 111, 0.14); border-color: var(--gold-line); }
.switch input:checked + .switch-track .switch-thumb { transform: translate(17px, -50%); background: var(--gold); }

.text-scale { display: flex; align-items: center; gap: 9px; }
.text-scale input[type="range"] {
  flex: 1;
  min-width: 0;
  height: 2px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 99px;
  background: var(--line);
  outline: none;
}
.text-scale input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #15151a;
  box-shadow: 0 0 10px rgba(201, 168, 111, 0.45);
  cursor: pointer;
}
.text-scale input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #15151a;
  cursor: pointer;
}
.scale-btn {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: calc(10px * var(--text-scale));
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.scale-btn:hover { color: var(--gold); border-color: var(--gold-line); background: rgba(201, 168, 111, 0.05); }
.scale-val {
  flex: none;
  min-width: 50px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: none;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: calc(10px * var(--text-scale));
  letter-spacing: 0.04em;
  text-align: center;
  transition: border-color 0.3s, color 0.3s;
}
.scale-val:hover { border-color: var(--gold-line); }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips button {
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: none;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: calc(8.5px * var(--text-scale));
  letter-spacing: 0.06em;
  transition: all 0.3s;
}
.chips button:hover { color: var(--ink-soft); border-color: var(--line); }
.chips button[aria-pressed="true"] {
  color: var(--gold);
  border-color: var(--gold-line);
  background: rgba(201, 168, 111, 0.06);
}

.setting-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.setting--about p { font-size: calc(10.5px * var(--text-scale)); line-height: 2; color: var(--muted); letter-spacing: 0.03em; }
.about-name {
  font-family: var(--font-serif);
  font-size: calc(16px * var(--text-scale)) !important;
  letter-spacing: 0.12em !important;
  color: var(--ink) !important;
  margin-bottom: 8px;
}
.about-name span {
  display: block;
  font-family: var(--font-mono);
  font-size: calc(7.5px * var(--text-scale));
  letter-spacing: 0.3em;
  color: var(--faint);
  margin-top: 3px;
}
.setting-keys { margin-top: 12px; color: var(--dim) !important; }
.setting-keys kbd { margin-right: 2px; }

/* ---------- 命令面板 ---------- */
.palette {
  position: fixed;
  inset: 0;
  z-index: 97;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14vh 18px 24px;
  background: rgba(3, 3, 4, 0.55);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.palette.open { opacity: 1; visibility: visible; }
.palette[hidden] { display: none; }

.palette-panel {
  width: min(640px, 100%);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 14, 17, 0.99), rgba(7, 7, 9, 0.995));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75);
  transform: translateY(-8px) scale(0.99);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.35s;
}
.palette.open .palette-panel { transform: none; opacity: 1; }

.palette-input {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
}
.palette-input svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
.palette-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: calc(14px * var(--text-scale));
  letter-spacing: 0.03em;
}
.palette-input input::placeholder { color: var(--faint); }

.palette-results { max-height: min(46vh, 370px); overflow-y: auto; padding: 8px; }
.palette-group-label {
  padding: 8px 10px 4px;
  font-family: var(--font-mono);
  font-size: calc(7.5px * var(--text-scale));
  letter-spacing: 0.2em;
  color: var(--faint);
}
.palette-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  text-align: left;
  color: var(--ink-soft);
  transition: background 0.2s, border-color 0.2s;
}
.palette-item.active { background: rgba(201, 168, 111, 0.06); border-color: var(--gold-line-soft); }
.palette-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: calc(9px * var(--text-scale));
  color: var(--c, var(--gold));
}
.palette-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.palette-text b { font-weight: 400; font-size: calc(12px * var(--text-scale)); letter-spacing: 0.04em; line-height: 1.5; }
.palette-text small {
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  color: var(--faint);
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.palette-type { font-family: var(--font-mono); font-size: calc(7.5px * var(--text-scale)); letter-spacing: 0.1em; color: var(--faint); flex: none; }
.palette-empty { padding: 28px; text-align: center; font-size: calc(11px * var(--text-scale)); color: var(--dim); letter-spacing: 0.08em; }
.palette-foot {
  display: flex;
  gap: 16px;
  padding: 9px 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: clamp(22px, 3.4vw, 52px);
  top: 84px;
  z-index: 120;
  max-width: min(420px, 78vw);
  padding: 10px 18px;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background: rgba(13, 13, 16, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  color: var(--gold-bright);
  font-size: calc(11px * var(--text-scale));
  line-height: 1.7;
  letter-spacing: 0.05em;
  white-space: normal;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
}
.toast.show { opacity: 1; transform: none; }

/* ---------- 动画 ---------- */
@keyframes led-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 9px rgba(201, 168, 111, 0.9); }
  50% { opacity: 0.4; box-shadow: 0 0 4px rgba(201, 168, 111, 0.3); }
}
@keyframes logo-drift {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes node-ping {
  0% { box-shadow: 0 0 0 0 rgba(201, 168, 111, 0.45); }
  100% { box-shadow: 0 0 0 16px transparent; }
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}
@keyframes hud-turn { to { transform: rotate(360deg); } }

/* ---------- 降级 / 动效减弱 ---------- */
body.no-webgl #space { display: none; }
body.no-webgl .bg-stars { opacity: 0.55; }
body.motion-reduced .grain,
body.motion-reduced .brand-mark,
body.motion-reduced .horizon-status i { animation: none; }
body.motion-reduced .cursor-glow { display: none; }
body.motion-reduced .hud .hud-rotor { animation: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .topnav-item { padding: 7px 14px; }
  .horizon-status { display: none; }
  .chapters { display: none; }
  .hero-copy { width: min(560px, 56vw); }
  .section-copy { width: min(700px, 62vw); }
  .orbit-groups { gap: 26px; }
}

@media (max-width: 980px) {
  body { overflow: hidden; }
  .topbar { padding: 16px 18px; }
  .brand-cn { font-size: calc(15px * var(--text-scale)); }
  .brand-en { font-size: calc(7px * var(--text-scale)); }
  .topnav { display: none; }
  .top-actions .btn-ghost {
    display: inline-flex;
    width: auto;
    height: 34px;
    padding: 0 10px;
    justify-content: center;
    gap: 5px;
    border-radius: 999px;
    font-size: 0;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .top-actions .btn-ghost::after {
    content: "档案库";
    font-size: calc(10px * var(--text-scale));
  }
  .top-actions .btn-ghost .dot { width: 5px; height: 5px; }
  .top-actions { gap: 6px; }
  .company-entry {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .company-entry span,
  .company-entry em { display: none; }
  .company-entry::before {
    content: "三";
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--gold);
  }

  .page {
    min-height: 100svh;
    height: 100svh;
    padding: 70px 20px 96px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hero-grid { display: block; }
  .hero-copy { width: 100%; padding-top: 38vh; }
  .hud { display: none; }
  body.deep .bh-hit { opacity: 0; pointer-events: none; }
  body.deep #space { opacity: 0.16; }
  body.deep .bh-glow { opacity: 0.2; }
  .hero-title { font-size: calc(clamp(46px, 13vw, 64px) * var(--text-scale)); }
  .hero-en { margin-top: 11px; font-size: calc(7.5px * var(--text-scale)); letter-spacing: 0.4em; }
  .hero-lead { display: none; }
  .clock-row { margin-top: 16px; gap: 14px; flex-wrap: wrap; }
  .clock { font-size: calc(34px * var(--text-scale)); }
  .clock-meta { font-size: calc(7.5px * var(--text-scale)); padding-left: 12px; line-height: 1.8; }
  .search { margin-top: 18px; height: 48px; }
  .search input { font-size: calc(12.5px * var(--text-scale)); }
  .search kbd { display: none; }
  .quick-row {
    margin-top: 14px;
    padding-top: 12px;
    gap: 5px 14px;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .quick-row::-webkit-scrollbar { display: none; }
  .quick-row .quick-link { flex: none; }
  .quick-row::before { display: none; }
  .quick-link { font-size: calc(10.5px * var(--text-scale)); }
  .capture { display: none; }

  .section-copy { width: 100%; }
  .section-title { font-size: calc(clamp(40px, 12vw, 56px) * var(--text-scale)); }
  .section-lead { font-size: calc(11.5px * var(--text-scale)); margin-top: 12px; line-height: 1.9; }
  .orbit-groups { grid-template-columns: 1fr; gap: 13px; margin-top: 18px; max-width: 100%; }
  .orbit-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .orbit-link { padding: 5px 0; }
  .orbit-group { padding-top: 11px; }
  .orbit-group-name { font-size: calc(15.5px * var(--text-scale)); }
  .orbit-group-index, .orbit-group-hint { display: none; }

  .archive-stats { gap: 20px; flex-wrap: wrap; max-width: 100%; margin-top: 20px; padding: 12px 0; }
  .stat b { font-size: calc(19px * var(--text-scale)); }
  .note-preview { grid-template-columns: 1fr; max-width: 100%; margin-top: 16px; }
  .note-preview-card { min-height: 82px; padding: 12px 14px; }
  .note-preview-card h4 { font-size: calc(14px * var(--text-scale)); }
  .note-preview-card p { display: none; }
  .quote { display: none; }
  .section-actions { margin-top: 20px; gap: 8px 14px; }

  .descent { bottom: 55px; gap: 8px; }
  .descent span { font-size: calc(20px * var(--text-scale)); letter-spacing: 0.18em; }
  .descent i { height: 22px; }
  .telemetry { display: none; }
  .bottombar { justify-content: center; padding: 10px 18px; }
  .bottombar-mid, .bottombar-right { display: none; }

  .archive { padding: 0; }
  .archive-panel {
    width: 100%;
    height: 100%;
    height: 100svh;
    border: 0;
    border-radius: 0;
  }
  .archive-head { padding: 16px 16px 12px; }
  .archive-heading h2 { font-size: calc(21px * var(--text-scale)); }
  .archive-sub { display: none; }
  .archive-tools { padding: 0 14px 12px; gap: 8px; }
  .archive-search { width: 100%; order: 1; }
  .archive-actions { order: 2; margin-left: auto; }
  .tag-row { order: 3; width: 100%; flex: none; }
  .archive-body { grid-template-columns: 1fr; }
  .archive-list { border-right: 0; padding: 8px 10px 20px; }
  .archive-detail { padding: 20px 18px 40px; }
  .archive-body.is-detail .archive-list { display: none; }
  .archive-body:not(.is-detail) .archive-detail { display: none; }
  .detail-back { display: inline-flex; }
  .detail-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .detail-actions { justify-content: flex-end; }
  .archive-foot { display: none; }
  .drawer { width: 100%; }
  .palette { padding-top: 10vh; }
  .toast {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 84px;
    max-width: none;
    font-size: calc(10px * var(--text-scale));
    padding: 9px 14px;
  }
}

@media (max-width: 1450px) and (min-width: 981px) {
  .orbit-link .host { display: none; }
}

@media (max-height: 820px) and (min-width: 981px) {
  .page { padding-top: 78px; padding-bottom: 84px; }
  .hero-title { font-size: calc(clamp(46px, 5.4vw, 74px) * var(--text-scale)); }
  .hero-en { margin-top: 11px; }
  .hero-lead { margin-top: 16px; font-size: calc(13px * var(--text-scale)); line-height: 1.9; }
  .clock-row { margin-top: 16px; }
  .clock { font-size: calc(clamp(34px, 3vw, 44px) * var(--text-scale)); }
  .search { margin-top: 18px; height: 48px; }
  .engines { margin-top: 6px; }
  .quick-row { margin-top: 10px; padding-top: 10px; }
  .capture { margin-top: 14px; }
  .section-title { font-size: calc(clamp(42px, 4.6vw, 64px) * var(--text-scale)); }
  .section-lead { margin-top: 12px; font-size: calc(12.5px * var(--text-scale)); }
  .orbit-groups { margin-top: 20px; }
  .orbit-link { padding: 6px 0; }
  .orbit-group-index { margin-bottom: 6px; }
  .archive-stats { margin-top: 18px; padding: 10px 0; }
  .note-preview { margin-top: 18px; }
  .note-preview-card { min-height: 92px; }
  .section-actions { margin-top: 20px; }
  .quote { margin-top: 22px; }
  .descent { bottom: 58px; gap: 8px; }
  .descent span { font-size: calc(24px * var(--text-scale)); }
  .descent i { height: 26px; }
  .chapters { gap: 14px; }
  .telemetry { bottom: 42px; }
  .bottombar { padding: 11px clamp(22px, 3.4vw, 52px); }
}

/* ---------- 宽屏：只放大顶栏，正文保持原始大小 ---------- */
@media (min-width: 1900px) {
  .topbar { padding: 30px clamp(40px, 3.4vw, 96px); }
  .brand { gap: 18px; }
  .brand-mark { width: clamp(34px, 1.7vw, 48px); height: clamp(34px, 1.7vw, 48px); }
  .brand-cn { font-size: calc(clamp(21px, 1.15vw, 32px) * var(--text-scale)); letter-spacing: 0.26em; }
  .brand-en { font-size: calc(clamp(9.5px, 0.5vw, 14px) * var(--text-scale)); letter-spacing: 0.36em; }

  .topnav { padding: 5px; }
  .topnav-item { padding: 9px clamp(22px, 1.5vw, 40px); font-size: calc(clamp(12.5px, 0.68vw, 19px) * var(--text-scale)); }

  .top-actions { gap: 12px; }
  .horizon-status { gap: 10px; font-size: calc(clamp(10px, 0.6vw, 16px) * var(--text-scale)); }
  .horizon-status i { width: 6px; height: 6px; }
  .btn-ghost {
    height: clamp(38px, 2.2vw, 56px);
    padding: 0 clamp(18px, 1.2vw, 32px);
    font-size: calc(clamp(12px, 0.72vw, 19px) * var(--text-scale));
    gap: 10px;
  }
  .btn-ghost svg { width: clamp(16px, 0.95vw, 24px); height: clamp(16px, 0.95vw, 24px); }
  .icon-btn { width: clamp(38px, 2.2vw, 56px); height: clamp(38px, 2.2vw, 56px); }
  .icon-btn svg { width: clamp(18px, 1vw, 26px); height: clamp(18px, 1vw, 26px); }
}

@media (hover: none) {
  .cursor-glow { display: none; }
  .bh-hint strong { opacity: 0.85; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .pages { scroll-behavior: auto; }
  .grain { animation: none; }
}

/* 轨道页内容较密，隐藏下潜提示避免压住网址卡片 */
body.on-orbit .descent {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
}

/* ============================================================
   01 轨道 · 可编辑导航
   ============================================================ */
.nav-layout {
  display: flex;
  gap: 16px;
  width: min(700px, 44vw);
  margin-top: 6px;
}

.nav-rail {
  flex: none;
  width: 72px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(8, 8, 11, 0.5);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--dim);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.rail-glyph {
  font-family: var(--font-serif);
  font-size: calc(16px * var(--text-scale));
  line-height: 1;
  color: var(--c, var(--muted));
  transition: color 0.3s;
}
.rail-name {
  font-size: calc(8.5px * var(--text-scale));
  letter-spacing: 0.1em;
  line-height: 1.2;
  white-space: nowrap;
}
.rail-item:hover { color: var(--ink-soft); background: rgba(255, 255, 255, 0.03); }
.rail-item.is-active {
  color: var(--gold-bright);
  border-color: var(--gold-line);
  background: rgba(201, 168, 111, 0.06);
}
.rail-item.is-active .rail-glyph { color: var(--gold); }

.rail-sep { height: 1px; margin: 3px 6px; background: var(--line-soft); }
.rail-add, .rail-edit {
  display: grid;
  place-items: center;
  padding: 6px 2px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: calc(8.5px * var(--text-scale));
  letter-spacing: 0.08em;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.rail-add { font-size: calc(12px * var(--text-scale)); }
.rail-add:hover, .rail-edit:hover {
  color: var(--gold);
  border-color: var(--gold-line);
  background: rgba(201, 168, 111, 0.04);
}

.nav-board { flex: 1; min-width: 0; }
.nav-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 18px;
}
.nav-board-head .section-title { margin: 0; }

.nav-cat-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.nav-cat-name {
  font-family: var(--font-serif);
  font-size: calc(18px * var(--text-scale));
  letter-spacing: 0.08em;
  color: var(--ink);
}
.nav-cat-count {
  font-family: var(--font-mono);
  font-size: calc(8.5px * var(--text-scale));
  letter-spacing: 0.1em;
  color: var(--faint);
}
.nav-add-link {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--gold-deep);
  font-family: var(--font-mono);
  font-size: calc(9px * var(--text-scale));
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.nav-add-link:hover { color: var(--gold); }
.nav-add-link[hidden] { display: none; }

.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  margin-top: 12px;
  max-height: clamp(200px, calc(100svh - 540px), 560px);
  min-height: 140px;
  overflow-y: auto;
  padding: 2px 4px 4px 0;
}

.site-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 76px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(9, 9, 11, 0.68);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease-out);
}
.site-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, color-mix(in srgb, var(--c) 13%, transparent), transparent 58%);
  opacity: 0.9;
  pointer-events: none;
}
.site-tile:hover {
  border-color: color-mix(in srgb, var(--c) 42%, transparent);
  background: rgba(14, 14, 17, 0.82);
  transform: translateY(-2px);
}
.tile-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.tile-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f2ede4;
  color: #1a1a1e;
  font-family: var(--font-mono);
  font-size: calc(10px * var(--text-scale));
  overflow: hidden;
}
.tile-glyph .site-icon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #f2ede4; border-radius: inherit; z-index: 1; }
.tile-glyph .icon-fallback { position: relative; z-index: 0; }
.tile-arrow {
  font-size: calc(10px * var(--text-scale));
  color: var(--gold);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.3s, transform 0.3s;
}
.site-tile:hover .tile-arrow { opacity: 1; transform: none; }
.tile-name {
  position: relative;
  z-index: 1;
  font-size: calc(11.5px * var(--text-scale));
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-host {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: calc(7.5px * var(--text-scale));
  letter-spacing: 0.03em;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-empty {
  grid-column: 1 / -1;
  padding: 42px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--dim);
  font-size: calc(11px * var(--text-scale));
  line-height: 2;
  letter-spacing: 0.05em;
}
.nav-empty b {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold);
  font-weight: 400;
  cursor: pointer;
}

/* ---------- 导航编辑器 ---------- */
.nav-editor {
  position: fixed;
  inset: 0;
  z-index: 89;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.2vw, 32px);
  background: rgba(3, 3, 4, 0.72);
  backdrop-filter: blur(22px) saturate(1.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s;
}
.nav-editor.open { opacity: 1; visibility: visible; }
.nav-editor[hidden] { display: none; }

.nav-editor-panel {
  width: min(1120px, 94vw);
  height: min(840px, 90vh);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 12% 0%, rgba(201, 168, 111, 0.055), transparent 70%),
    linear-gradient(165deg, rgba(13, 13, 16, 0.985), rgba(6, 6, 8, 0.995));
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: scale(0.97) translateY(10px);
  opacity: 0;
  transition: transform 0.65s var(--ease-out), opacity 0.5s var(--ease-soft);
}
.nav-editor.open .nav-editor-panel { transform: none; opacity: 1; }

.nav-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 14px;
}
.nav-editor-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(26px * var(--text-scale));
  letter-spacing: 0.18em;
  color: #f6f1e7;
}
.nav-editor-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: calc(8.5px * var(--text-scale));
  letter-spacing: 0.08em;
  color: var(--dim);
}

.nav-editor-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 30px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.nav-editor-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: calc(8.5px * var(--text-scale));
  letter-spacing: 0.08em;
  color: var(--faint);
}

.nav-editor-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px 1fr;
}
.ne-cats {
  overflow-y: auto;
  padding: 12px;
  border-right: 1px solid var(--line-soft);
}
.ne-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 3px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  text-align: left;
  color: var(--ink-soft);
  transition: background 0.3s, border-color 0.3s;
}
.ne-cat:hover { background: rgba(255, 255, 255, 0.03); }
.ne-cat.active {
  background: rgba(201, 168, 111, 0.06);
  border-color: var(--gold-line);
}
.ne-cat-glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
  font-family: var(--font-mono);
  font-size: calc(10px * var(--text-scale));
}
.ne-cat-name {
  min-width: 0;
  font-size: calc(12.5px * var(--text-scale));
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ne-cat-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  color: var(--faint);
}
.ne-empty {
  padding: 30px 12px;
  text-align: center;
  color: var(--faint);
  font-size: calc(11px * var(--text-scale));
}

.ne-main {
  overflow-y: auto;
  padding: 24px 30px 40px;
}
.ne-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.ne-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(23px * var(--text-scale));
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.4;
}
.ne-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: calc(8.5px * var(--text-scale));
  letter-spacing: 0.06em;
  color: var(--faint);
}
.ne-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.ne-list { display: flex; flex-direction: column; }
.ne-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.ne-link-glyph {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f2ede4;
  color: #1a1a1e;
  font-family: var(--font-mono);
  font-size: calc(9.5px * var(--text-scale));
  overflow: hidden;
}
.ne-link-glyph .site-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: #f2ede4;
  z-index: 1;
}
.ne-link-glyph .icon-fallback { position: relative; z-index: 0; }
.ne-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ne-link-name {
  font-size: calc(13px * var(--text-scale));
  color: var(--ink);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ne-link-url {
  font-family: var(--font-mono);
  font-size: calc(8.5px * var(--text-scale));
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ne-row-actions { display: flex; gap: 4px; flex: none; }
.ne-icon {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: none;
  color: var(--dim);
  font-size: calc(10px * var(--text-scale));
  transition: color 0.3s, border-color 0.3s;
}
.ne-icon:hover { color: var(--gold); border-color: var(--gold-line); }
.ne-icon.is-danger:hover { color: #e8a08a; border-color: rgba(230, 140, 110, 0.4); }
.ne-icon.is-confirming { color: #e8a08a; border-color: rgba(230, 140, 110, 0.5); }

.ne-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}
.ne-form label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: calc(8px * var(--text-scale));
  letter-spacing: 0.18em;
  color: var(--dim);
}
.ne-form input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  outline: none;
  font-size: calc(13px * var(--text-scale));
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: border-color 0.3s;
}
.ne-form input:focus { border-color: var(--gold-line); }
.ne-form-row { display: flex; gap: 12px; }
.ne-form-row > div { flex: 1; min-width: 0; }
.ne-colors { display: flex; gap: 8px; margin-top: 4px; }
.ne-color {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.ne-color.active { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(201, 168, 111, 0.35); }
.ne-form-foot { display: flex; gap: 8px; margin-top: 4px; }
.ne-hint {
  font-size: calc(9px * var(--text-scale));
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--faint);
}
.ne-blank {
  padding: 60px 20px;
  text-align: center;
  color: var(--dim);
  font-size: calc(11.5px * var(--text-scale));
  letter-spacing: 0.06em;
  line-height: 2;
}
.ne-add-cat {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: none;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: calc(9px * var(--text-scale));
  letter-spacing: 0.1em;
  transition: color 0.3s, border-color 0.3s;
}
.ne-add-cat:hover { color: var(--gold); border-color: var(--gold-line); }

@media (max-width: 1240px) {
  .nav-layout { width: min(640px, 48vw); }
  .nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nav-layout { flex-direction: column; width: 100%; gap: 14px; }
  .nav-rail {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-rail::-webkit-scrollbar { display: none; }
  .rail-item {
    flex: none;
    flex-direction: row;
    gap: 6px;
    padding: 8px 11px;
  }
  .rail-glyph { font-size: calc(14px * var(--text-scale)); }
  .rail-name { font-size: calc(10px * var(--text-scale)); }
  .rail-sep { width: 1px; height: auto; margin: 4px; }
  .rail-add, .rail-edit { flex: none; padding: 8px 10px; }
  .rail-add { font-size: calc(12px * var(--text-scale)); }

  .nav-board-head { align-items: flex-start; gap: 8px; }
  .nav-board-head .section-title { font-size: calc(clamp(38px, 11vw, 54px) * var(--text-scale)); }
  .nav-board-head .btn-line--sm { height: 30px; padding: 0 10px; font-size: calc(9px * var(--text-scale)); }
  .nav-cat-line { margin-top: 16px; padding-top: 12px; }
  .nav-cat-name { font-size: calc(16px * var(--text-scale)); }
  .nav-grid {
    grid-template-columns: 1fr 1fr;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }
  .site-tile { min-height: 88px; padding: 11px; }

  .nav-editor { padding: 0; }
  .nav-editor-panel {
    width: 100%;
    height: 100%;
    height: 100svh;
    border: 0;
    border-radius: 0;
  }
  .nav-editor-head { padding: 16px 16px 10px; }
  .nav-editor-head h2 { font-size: calc(20px * var(--text-scale)); }
  .nav-editor-sub { display: none; }
  .nav-editor-tools { padding: 0 14px 12px; gap: 5px; }
  .nav-editor-note { display: none; }
  .nav-editor-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ne-cats {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    scrollbar-width: none;
  }
  .ne-cats::-webkit-scrollbar { display: none; }
  .ne-cat { flex: none; width: auto; margin: 0; padding: 8px 10px; }
  .ne-cat-count { display: none; }
  .ne-add-cat {
    flex: none;
    width: auto;
    margin: 0;
    padding: 8px 10px;
    white-space: nowrap;
    font-size: calc(9px * var(--text-scale));
  }
  .ne-main { padding: 18px 16px 32px; }
  .ne-head { flex-direction: column; gap: 10px; }
  .ne-actions { justify-content: flex-start; }
  .ne-title { font-size: calc(20px * var(--text-scale)); }
  .ne-form-row { flex-direction: column; gap: 14px; }
}

/* 大屏下放大档案库，避免正文过小 */
@media (min-width: 1900px) {
  .archive-panel { width: min(1600px, 90vw); height: min(960px, 86vh); }
  .archive-heading h2 { font-size: calc(clamp(24px, 1.4vw, 34px) * var(--text-scale)); }
  .archive-sub { font-size: calc(clamp(9.5px, 0.55vw, 14px) * var(--text-scale)); }
  .archive-head { padding: 30px 40px 20px; }
  .archive-tools { gap: 12px; padding: 0 40px 20px; }
  .archive-search { width: clamp(300px, 18vw, 420px); height: clamp(38px, 2.2vw, 52px); }
  .archive-search input { font-size: calc(clamp(11.5px, 0.65vw, 17px) * var(--text-scale)); }
  .tag-chip { height: clamp(30px, 1.8vw, 42px); padding: 0 15px; font-size: calc(clamp(9px, 0.55vw, 14px) * var(--text-scale)); }
  .archive-actions .btn-line--sm { height: clamp(34px, 2vw, 52px); font-size: calc(clamp(10.5px, 0.65vw, 17px) * var(--text-scale)); }
  .archive-body { grid-template-columns: clamp(380px, 24vw, 500px) 1fr; }
  .archive-list { padding: 14px; }
  .note-card { padding: 16px 18px; }
  .note-card h4 { font-size: calc(clamp(14px, 0.8vw, 19px) * var(--text-scale)); }
  .note-card p { font-size: calc(clamp(10.5px, 0.6vw, 15px) * var(--text-scale)); }
  .note-card-meta { font-size: calc(clamp(8px, 0.48vw, 12px) * var(--text-scale)); }
  .note-tag { font-size: calc(clamp(7px, 0.42vw, 10px) * var(--text-scale)); }
  .archive-detail { padding: 38px clamp(30px, 3vw, 60px) 60px; }
  .detail-title { font-size: calc(clamp(22px, 1.5vw, 32px) * var(--text-scale)); }
  .detail-meta { font-size: calc(clamp(8.5px, 0.5vw, 13px) * var(--text-scale)); }
  .note-body { font-size: calc(clamp(13px, 0.72vw, 18px) * var(--text-scale)); line-height: 2; }
  .note-body h3 { font-size: calc(clamp(17px, 0.95vw, 24px) * var(--text-scale)); }
  .archive-foot { font-size: calc(clamp(8px, 0.48vw, 12px) * var(--text-scale)); padding: 14px 40px; }
}

/* 移动端固定档案库入口 */
.mobile-archive-btn { display: none; }

@media (max-width: 640px) {
  .top-actions #btn-archive { display: none !important; }
  .mobile-archive-btn {
    position: fixed;
    right: 16px;
    bottom: 84px;
    z-index: 130;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: rgba(8, 8, 11, 0.84);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: calc(12px * var(--text-scale));
    letter-spacing: 0.1em;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  .mobile-archive-btn .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
  }
  .mobile-archive-btn:active {
    background: rgba(201, 168, 111, 0.12);
  }
}

body.is-overlay .mobile-archive-btn { display: none !important; }

[data-admin-link][hidden] { display: none !important; }

/* 起始页设置：常用轨道编辑 */
.quick-editor { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.quick-editor-row {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 8px;
  background: rgba(255,255,255,0.015);
}
.quick-editor-fields { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 6px; }
.quick-editor-fields input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px;
  outline: none;
}
.quick-editor-fields input:focus { border-color: var(--gold-line); }
.quick-editor-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; }
.quick-editor-actions button {
  width: 24px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--dim);
  font-size: 11px;
  cursor: pointer;
}
.quick-editor-actions button:hover { color: var(--ink); border-color: var(--gold-line); }
.quick-editor-empty { font-size: 10px; color: var(--dim); padding: 8px 0; }
@media (max-width: 520px) {
  .quick-editor-fields { grid-template-columns: 1fr; }
}
