/* 溟渊 · 视觉系统 */
:root {
  --ink: #070912;
  --ink-2: #0c1020;
  --paper: #ece6d8;
  --muted: #9aa3b8;
  --line: rgba(220, 226, 255, 0.14);
  --gold: #d9b878;
  --gold-dim: rgba(217, 184, 120, 0.18);
  --c: #ff9b54;
  --accent: #ffd168;
  --glass: rgba(12, 16, 30, 0.72);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

#starfield, .nebula-haze, .grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#starfield { z-index: 0; }
.nebula-haze { z-index: 0; filter: blur(70px); opacity: .5; }
.haze-a {
  background: radial-gradient(circle at 22% 28%, rgba(255, 130, 70, .20), transparent 42%),
              radial-gradient(circle at 78% 74%, rgba(126, 92, 255, .18), transparent 45%);
}
.haze-b {
  background: radial-gradient(circle at 72% 22%, rgba(45, 202, 184, .16), transparent 40%),
              radial-gradient(circle at 24% 80%, rgba(125, 202, 86, .13), transparent 42%);
}
.grain {
  z-index: 1;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

#app { position: relative; z-index: 2; height: 100vh; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 76px;
  padding: 0 clamp(22px, 4vw, 68px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 9, 18, .80), rgba(7, 9, 18, .18));
  backdrop-filter: blur(10px);
}
.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px 0;
}
.brand-sigil { position: relative; width: 30px; height: 30px; display: block; }
.brand-sigil i {
  position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 50%;
  transform: rotate(35deg) scaleY(.42);
}
.brand-sigil i:nth-child(2) { transform: rotate(-35deg) scaleY(.42); opacity: .7; }
.brand-sigil i:nth-child(3) { transform: rotate(90deg) scaleY(.42); opacity: .4; }
.brand-sigil::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--gold);
}
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-text strong { font-family: var(--serif); font-size: 21px; letter-spacing: .32em; font-weight: 500; }
.brand-text small { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .28em; }

.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.breadcrumb button {
  border: 0; background: transparent; color: inherit; cursor: pointer; padding: 6px 2px;
}
.breadcrumb button:hover { color: var(--paper); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--gold); }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.ghost-btn {
  height: 36px; padding: 0 13px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 999px;
  color: #cdd3e3; font-size: 12px; cursor: pointer; transition: .25s ease;
}
.ghost-btn:hover { border-color: rgba(217,184,120,.55); color: var(--paper); background: rgba(217,184,120,.08); }
.ghost-btn.icon-only { width: 36px; padding: 0; justify-content: center; font-family: var(--serif); }
.btn-icon { font-size: 17px; line-height: 1; }
kbd { font-family: var(--sans); font-size: 9px; color: var(--muted); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; }

/* ---------- 视图容器 ---------- */
.stage { position: relative; height: calc(100vh - 76px); overflow: hidden; }
.view {
  position: absolute; inset: 0; padding: clamp(24px, 4vh, 54px) clamp(24px, 5vw, 86px);
  opacity: 0; visibility: hidden; transform: scale(1.04);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1), visibility .7s;
}
.view.is-active { opacity: 1; visibility: visible; transform: scale(1); }

.eyebrow {
  margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
}
.eyebrow span { width: 32px; height: 1px; background: var(--gold); }

/* ---------- 宇宙视图 ---------- */
.universe-copy { position: relative; z-index: 3; max-width: 600px; pointer-events: none; }
.universe-copy h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 3.6vw, 50px); line-height: 1.34; letter-spacing: .02em;
  text-shadow: 0 6px 40px rgba(0,0,0,.7);
}
.universe-copy h1 span { display: block; white-space: nowrap; }
.universe-copy h1 em { font-style: normal; color: var(--gold); }
.lede { margin: 24px 0 0; max-width: 500px; color: #aeb6c8; font-size: 14px; line-height: 2; }
.universe-meta { margin-top: 32px; display: flex; gap: 28px; flex-wrap: wrap; }
.universe-meta span { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.universe-meta b { color: var(--paper); font-family: var(--serif); font-size: 20px; font-weight: 400; margin-right: 6px; }

.galaxy-connections { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.galaxy-connections path {
  fill: none; stroke: rgba(217,184,120,.17); stroke-width: 1;
  stroke-dasharray: 3 9; animation: dashFlow 26s linear infinite;
}
.galaxy-connections path:nth-child(2n) { stroke: rgba(140,170,255,.12); animation-duration: 34s; }
@keyframes dashFlow { to { stroke-dashoffset: -240; } }

.galaxy-layer { position: absolute; inset: 0; z-index: 2; }
.galaxy-node {
  position: absolute; width: 118px; height: 118px; margin: -59px 0 0 -59px;
  border: 0; background: transparent; cursor: pointer; padding: 0;
  animation: nodeFloat 7s ease-in-out infinite alternate;
}
.galaxy-node:nth-child(2) { animation-delay: -2s; }
.galaxy-node:nth-child(3) { animation-delay: -4s; }
.galaxy-node:nth-child(4) { animation-delay: -6s; }
@keyframes nodeFloat { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

.galaxy-orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 45% 42%, var(--c) 0%, transparent 13%),
              radial-gradient(circle at 50% 50%, var(--glow) 0%, transparent 55%);
  filter: blur(.2px);
}
.galaxy-orb::before, .galaxy-orb::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px solid var(--c); opacity: .55; transform: rotate(28deg) scaleY(.28);
  box-shadow: 0 0 18px var(--glow);
}
.galaxy-orb::after { transform: rotate(-38deg) scaleY(.22); opacity: .32; inset: 4%; }
.galaxy-core-dot {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 18px 5px var(--c);
}
.galaxy-ring {
  position: absolute; inset: -9px; border: 1px solid rgba(255,255,255,.10); border-radius: 50%;
  transition: transform .5s ease, border-color .5s ease;
}
.galaxy-ring::after {
  content: ""; position: absolute; right: 16px; top: 6px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c);
}
.galaxy-node:hover .galaxy-ring, .galaxy-node:focus-visible .galaxy-ring { transform: scale(1.16) rotate(40deg); border-color: var(--c); }
.galaxy-node:hover .galaxy-orb { filter: brightness(1.25); }
.galaxy-label {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
  text-align: center; white-space: nowrap;
}
.galaxy-label strong { display: block; font-family: var(--serif); font-size: 14px; font-weight: 500; letter-spacing: .12em; }
.galaxy-label small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .2em; }
.galaxy-label em { display: block; margin-top: 8px; color: var(--c); font-style: normal; font-size: 10px; letter-spacing: .08em; opacity: 0; transform: translateY(-4px); transition: .3s ease; }
.galaxy-node:hover .galaxy-label em, .galaxy-node:focus-visible .galaxy-label em { opacity: 1; transform: translateY(0); }

/* ---------- 彗星 / 流星 / 小行星 ---------- */
.object-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.object-layer-galaxy { z-index: 5; }
.object-node {
  position: absolute; border: 0; background: transparent; padding: 0; cursor: pointer;
  pointer-events: auto; width: 132px; height: 34px; margin: -17px 0 0 -66px;
}
.object-shape {
  position: absolute; left: 0; top: 50%; width: 100%; height: 14px; transform: translateY(-50%);
  animation: objectDrift var(--o-duration, 24s) ease-in-out infinite alternate;
  animation-delay: var(--o-delay, 0s);
}
@keyframes objectDrift {
  from { transform: translate(-22px, -50%) rotate(-8deg); opacity: .45; }
  to { transform: translate(26px, -50%) rotate(6deg); opacity: 1; }
}
.object-node.comet .object-shape {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.02) 18%, var(--o-glow) 72%, rgba(255,255,255,.85));
  clip-path: polygon(0 42%, 74% 0, 100% 38%, 74% 100%, 0 58%);
  filter: blur(.4px);
}
.object-node.comet .object-shape::after {
  content: ""; position: absolute; right: 0; top: 2px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 16px 4px var(--o-color);
}
.object-node.meteor { width: 108px; margin-left: -54px; }
.object-node.meteor .object-shape {
  height: 3px; background: linear-gradient(90deg, transparent, var(--o-glow) 55%, #fff);
  box-shadow: 0 0 8px var(--o-glow); transform: rotate(-18deg);
}
.object-node.meteor .object-shape::after {
  content: ""; position: absolute; right: -2px; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 3px var(--o-color);
}
.object-node.asteroid { width: 86px; margin-left: -43px; }
.object-node.asteroid .object-shape {
  height: 26px;
  background:
    radial-gradient(circle at 12% 60%, var(--o-color) 0 2px, transparent 3px),
    radial-gradient(circle at 32% 30%, var(--o-color) 0 3px, transparent 4px),
    radial-gradient(circle at 56% 68%, var(--o-color) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 36%, var(--o-color) 0 4px, transparent 5px),
    radial-gradient(circle at 94% 62%, var(--o-color) 0 2px, transparent 3px);
  opacity: .65;
}
.object-label {
  position: absolute; left: 50%; top: calc(100% - 1px); transform: translateX(-50%);
  white-space: nowrap; color: #6f7890; font-size: 9px; letter-spacing: .14em; opacity: .55; transition: .3s ease;
}
.object-node:hover .object-label, .object-node:focus-visible .object-label { opacity: 1; color: var(--o-color); }

.universe-footer {
  position: absolute; left: clamp(24px, 5vw, 86px); right: clamp(24px, 5vw, 86px); bottom: 26px;
  z-index: 3; display: flex; align-items: center; gap: 12px;
  color: #6f788d; font-size: 10px; letter-spacing: .12em;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #7be0b0; box-shadow: 0 0 10px #7be0b0; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.footer-line { flex: 1; height: 1px; background: var(--line); }

/* ---------- 星云与恒星系视图 ---------- */
.view-galaxy, .view-system { --c: #ff9b54; --glow: rgba(255,155,84,.2); }
.galaxy-heading, .system-heading { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.galaxy-heading h2 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.5vw, 58px); letter-spacing: .12em;
}
.galaxy-subtitle { margin: 12px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .1em; }
.galaxy-core-card {
  min-width: 180px; padding: 14px 18px; border: 1px solid var(--line);
  background: rgba(10,13,24,.55); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 5px;
}
.galaxy-core-card span, .galaxy-core-card small { color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.galaxy-core-card strong { font-family: var(--serif); font-size: 17px; font-weight: 400; color: var(--c); letter-spacing: .12em; }

/* 星云中的子恒星系星图 */
.system-map {
  position: absolute; left: clamp(24px, 5vw, 86px); right: clamp(24px, 5vw, 86px);
  top: 29%; bottom: 13%; z-index: 2;
  border: 1px solid rgba(220,226,255,.07);
  background: radial-gradient(ellipse at 50% 50%, var(--glow), transparent 62%);
}
.system-map::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(220,226,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(220,226,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.system-map-caption {
  position: absolute; left: 14px; top: 12px; color: #6f788d; font-size: 9px; letter-spacing: .18em;
}
.system-node {
  position: absolute; width: 152px; height: 152px; margin: -76px 0 0 -76px;
  border: 0; background: transparent; padding: 0; cursor: pointer; z-index: 3;
  animation: nodeFloat 7s ease-in-out infinite alternate;
}
.system-node:nth-child(2n) { animation-delay: -2.4s; }
.system-node:nth-child(3n) { animation-delay: -4.8s; }
.system-node:hover { z-index: 6; }
.system-star {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff 0%, var(--s-color) 40%, rgba(0,0,0,.4) 76%);
  box-shadow: 0 0 22px 7px var(--s-glow);
}
.system-star::before, .system-star::after {
  content: ""; position: absolute; inset: -9px; border: 1px solid var(--s-color); border-radius: 50%;
  opacity: .38; transform: scaleY(.32) rotate(24deg);
}
.system-star::after { inset: -18px; opacity: .2; transform: scaleY(.28) rotate(-32deg); }
.system-orbit {
  position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; margin: -64px 0 0 -64px;
  border: 1px dashed rgba(255,255,255,.13); border-radius: 50%; transform: scaleY(.42);
  transition: transform .5s ease, border-color .5s ease;
}
.system-orbit.inner { width: 78px; height: 78px; margin: -39px 0 0 -39px; border-color: rgba(255,255,255,.08); }
.system-node:hover .system-orbit { transform: scaleY(.42) rotate(30deg); border-color: var(--s-color); }
.sys-planet-dot {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--d-color); box-shadow: 0 0 10px var(--d-color);
}
.sys-planet-dot::after {
  content: ""; position: absolute; left: -5px; top: -5px; right: -5px; bottom: -5px;
  border: 1px solid var(--d-color); border-radius: 50%; opacity: .3;
}
.system-label {
  position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%);
  text-align: center; white-space: nowrap;
}
.system-label strong { display: block; font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .14em; }
.system-label small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: .18em; }
.system-label em {
  display: block; margin-top: 6px; color: var(--s-color); font-size: 10px; font-style: normal;
  letter-spacing: .06em; opacity: .85;
}
.object-layer-nebula { z-index: 5; }

/* 恒星系切换条 */
.system-switcher {
  position: relative; z-index: 6; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.system-switcher button {
  border: 1px solid var(--line); background: rgba(10,13,24,.66); color: var(--muted);
  padding: 7px 15px; font-size: 11px; letter-spacing: .1em; cursor: pointer; transition: .25s ease;
}
.system-switcher button:hover { color: var(--paper); border-color: rgba(217,184,120,.5); }
.system-switcher button.is-active { color: var(--paper); border-color: var(--c); background: rgba(255,255,255,.05); }
.system-switcher button small { margin-left: 7px; color: #6f788d; font-size: 9px; }

.orbital-system {
  position: absolute; left: 50%; top: 53%; width: min(76vh, 72vw); height: min(76vh, 72vw);
  transform: translate(-50%, -50%);
}
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-rings ellipse { fill: none; stroke: rgba(255,255,255,.09); stroke-width: .18; stroke-dasharray: .6 1.2; }
.orbit-rings ellipse:nth-child(2) { stroke: rgba(255,255,255,.13); }
.orbit-rings ellipse:nth-child(3) { stroke: rgba(255,255,255,.07); }
.system-core {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.core-glow {
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 24px 9px var(--c), 0 0 70px 22px var(--glow);
  animation: coreBreathe 5s ease-in-out infinite;
}
@keyframes coreBreathe { 50% { transform: scale(.82); opacity: .85; } }
.core-ring { position: absolute; inset: 0; border: 1px solid var(--c); border-radius: 50%; opacity: .35; animation: spin 22s linear infinite; }
.core-ring::after { content: ""; position: absolute; top: -2px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--c); }
.core-ring-2 { inset: -12px; opacity: .18; animation-duration: 36s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.core-label {
  position: absolute; top: calc(100% + 8px); white-space: nowrap;
  color: var(--c); font-family: var(--serif); font-size: 11px; letter-spacing: .16em;
}

.planet-node {
  position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border: 0; background: transparent; cursor: pointer; padding: 0;
  animation: planetFloat 6s ease-in-out infinite alternate;
}
@keyframes planetFloat { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
.planet-disc {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.72), transparent 12%),
    radial-gradient(circle at 36% 34%, var(--accent), var(--p-color) 46%, #0a0d18 92%);
  box-shadow: inset -12px -8px 20px rgba(0,0,0,.55), 0 0 26px var(--p-glow);
  transition: transform .4s ease, box-shadow .4s ease;
}
.planet-disc::after {
  content: ""; position: absolute; left: -20%; right: -20%; top: 47%; height: 8%;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%; transform: rotate(-18deg);
  opacity: .65;
}
.planet-node:hover .planet-disc, .planet-node:focus-visible .planet-disc { transform: translate(-50%, -50%) scale(1.14); box-shadow: inset -12px -8px 20px rgba(0,0,0,.55), 0 0 44px var(--p-glow); }
.planet-halo { position: absolute; inset: 4px; border: 1px solid transparent; border-radius: 50%; transition: .4s ease; }
.planet-node:hover .planet-halo { border-color: var(--p-color); transform: scale(1.18) rotate(45deg); }
.planet-marker {
  position: absolute; left: 50%; top: calc(100% - 2px); transform: translateX(-50%);
  text-align: center; white-space: nowrap;
}
.planet-marker strong { display: block; font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .16em; }
.planet-marker small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: .18em; }
.planet-marker em { display: block; margin-top: 7px; color: var(--p-color); font-size: 10px; font-style: normal; opacity: .8; }

.galaxy-footnote {
  position: absolute; left: clamp(24px, 5vw, 86px); right: clamp(24px, 5vw, 86px); bottom: 26px;
  z-index: 4; display: flex; align-items: flex-end; gap: 30px;
}
.galaxy-footnote p { max-width: 580px; margin: 0; color: #838ca1; font-size: 11px; line-height: 1.9; }
.text-btn { margin-left: auto; border: 0; background: transparent; color: var(--gold); font-size: 11px; letter-spacing: .12em; cursor: pointer; white-space: nowrap; }
.text-btn:hover { text-decoration: underline; }

/* ---------- 侧边栏 ---------- */
.side-dock {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; gap: 8px;
}
.side-dock button {
  width: 48px; min-height: 58px; border: 1px solid var(--line); background: rgba(10,13,24,.62);
  backdrop-filter: blur(8px); cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; transition: .25s ease;
}
.side-dock button:hover { border-color: var(--gold); background: rgba(217,184,120,.1); }
.side-dock span { font-size: 16px; color: var(--gold); }
.side-dock small { font-size: 8px; color: var(--muted); letter-spacing: .05em; writing-mode: vertical-rl; }

/* ---------- 侧滑面板 ---------- */
.search-panel, .guide-panel {
  position: fixed; right: 84px; top: 92px; width: min(390px, calc(100vw - 110px));
  max-height: calc(100vh - 120px); overflow: auto; z-index: 40;
  background: rgba(9, 12, 22, .94); border: 1px solid rgba(217,184,120,.26);
  box-shadow: 0 30px 80px rgba(0,0,0,.55); backdrop-filter: blur(16px);
  padding: 24px; opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: .35s ease;
}
.search-panel.is-open, .guide-panel.is-open { opacity: 1; visibility: visible; transform: translateX(0); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.panel-head .eyebrow { margin-bottom: 8px; }
.panel-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .12em; }
.close-btn {
  width: 30px; height: 30px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; transition: .2s ease;
}
.close-btn:hover { color: var(--paper); border-color: var(--gold); transform: rotate(90deg); }

.search-box {
  display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 42px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.search-box span { color: var(--gold); font-size: 18px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--paper); font-size: 12px; outline: none; }
.search-box input::placeholder { color: #636c80; }
.search-results { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; }
.result-item {
  width: 100%; border: 1px solid transparent; background: rgba(255,255,255,.025);
  padding: 11px 12px; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px;
}
.result-item:hover { border-color: var(--gold); background: rgba(217,184,120,.08); }
.result-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--r-color); box-shadow: 0 0 12px var(--r-color); flex: none; }
.result-copy { flex: 1; min-width: 0; }
.result-copy strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 14px; letter-spacing: .1em; }
.result-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-item > em { color: var(--muted); font-size: 9px; font-style: normal; }
.panel-hint, .no-result { color: #6d768b; font-size: 10px; line-height: 1.8; }
.no-result { padding: 18px 0; }

.guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.guide-list li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.guide-list b { color: var(--gold); font-family: var(--serif); font-size: 13px; font-weight: 400; letter-spacing: .1em; }
.guide-list span { color: #aab2c4; font-size: 11px; line-height: 1.8; }
.guide-quote { margin-top: 22px; color: var(--muted); font-family: var(--serif); font-size: 13px; line-height: 1.9; border-left: 2px solid var(--gold); padding-left: 14px; }

.object-panel {
  position: fixed; right: 84px; top: 92px; width: min(360px, calc(100vw - 110px));
  max-height: calc(100vh - 120px); overflow: auto; z-index: 41;
  background: rgba(9, 12, 22, .95); border: 1px solid var(--object-color, rgba(160,220,255,.45));
  box-shadow: 0 30px 80px rgba(0,0,0,.6); backdrop-filter: blur(16px);
  padding: 24px; opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: .35s ease;
}
.object-panel.is-open { opacity: 1; visibility: visible; transform: translateX(0); }
.object-kicker { color: var(--object-color, #bfe9ff); font-size: 10px; letter-spacing: .2em; margin-bottom: 16px; }
.object-rows { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.object-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.object-row span { color: #6f788c; font-size: 10px; letter-spacing: .12em; }
.object-row b { color: #d8deeb; font-weight: 400; font-size: 11px; line-height: 1.7; }
.object-note { margin: 18px 0 0; color: #9ba4b8; font-size: 11px; line-height: 1.9; }

/* ---------- 星球弹窗 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(3, 5, 11, .76); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  padding: 24px;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.planet-modal {
  width: min(1050px, 96vw); height: min(760px, 92vh); display: flex; flex-direction: column;
  background: linear-gradient(150deg, rgba(15,19,33,.98), rgba(8,10,19,.98));
  border: 1px solid rgba(217,184,120,.30); box-shadow: 0 40px 120px rgba(0,0,0,.7);
  transform: translateY(18px) scale(.985); transition: transform .45s cubic-bezier(.2,.8,.2,1);
  position: relative; overflow: hidden;
}
.modal-backdrop.is-open .planet-modal { transform: translateY(0) scale(1); }
.planet-modal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 6%, var(--modal-glow, rgba(255,155,84,.13)), transparent 42%);
}
.modal-header {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line);
}
.modal-title-wrap { display: flex; align-items: center; gap: 16px; }
.planet-emblem {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75), transparent 11%),
              radial-gradient(circle at 36% 34%, var(--accent), var(--c) 48%, #090c16 92%);
  box-shadow: inset -10px -8px 18px rgba(0,0,0,.5), 0 0 26px var(--modal-glow);
}
.modal-header .eyebrow { margin: 0 0 6px; font-size: 9px; }
.modal-header h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: .16em; }
.modal-en { margin: 5px 0 0; color: var(--muted); font-size: 9px; letter-spacing: .3em; }
.modal-alias { margin: 6px 0 0; color: var(--gold); font-family: var(--serif); font-size: 11px; letter-spacing: .12em; }
.modal-header-right { display: flex; align-items: center; gap: 14px; }
.status-chip { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--c); font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
.modal-close { width: 34px; height: 34px; font-size: 22px; }

.modal-tabs {
  position: relative; z-index: 2; display: flex; gap: 0; padding: 0 28px; border-bottom: 1px solid var(--line);
}
.modal-tabs button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 14px 20px; font-size: 12px; letter-spacing: .14em; position: relative;
}
.modal-tabs button::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 1px; background: var(--c); transform: scaleX(0); transition: .3s ease; }
.modal-tabs button:hover { color: var(--paper); }
.modal-tabs button.is-active { color: var(--paper); }
.modal-tabs button.is-active::after { transform: scaleX(1); }

.modal-body { position: relative; z-index: 2; flex: 1; overflow: auto; padding: 26px 28px 34px; scrollbar-width: thin; scrollbar-color: rgba(217,184,120,.35) transparent; }
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(217,184,120,.35); }
.tagline {
  margin: 0 0 22px; padding: 14px 18px; border-left: 2px solid var(--c);
  background: linear-gradient(90deg, var(--modal-glow), transparent);
  font-family: var(--serif); font-size: 16px; line-height: 1.8; letter-spacing: .06em;
}
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 26px; }
.stat { background: rgba(10,13,24,.9); padding: 14px 12px; min-height: 74px; }
.stat span { display: block; color: #6e778b; font-size: 9px; letter-spacing: .14em; margin-bottom: 8px; }
.stat strong { display: block; color: var(--paper); font-family: var(--serif); font-size: 16px; font-weight: 400; letter-spacing: .04em; }
.stat.is-accent strong { color: var(--c); }
.section-title { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
.section-title h4 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 400; letter-spacing: .18em; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-title i { width: 5px; height: 5px; background: var(--c); transform: rotate(45deg); }
.prose { color: #aeb6c8; font-size: 12px; line-height: 2.05; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.info-card { border: 1px solid var(--line); background: rgba(255,255,255,.025); padding: 14px; min-height: 94px; transition: .25s ease; }
.info-card:hover { border-color: var(--c); background: rgba(255,255,255,.045); transform: translateY(-2px); }
.info-card b { display: block; color: var(--accent); font-family: var(--serif); font-size: 14px; font-weight: 400; letter-spacing: .1em; margin-bottom: 8px; }
.card-en { display: block; margin: -4px 0 7px; color: #6f788d; font-family: var(--sans); font-size: 8px; font-weight: 400; letter-spacing: .22em; }
.info-card p { margin: 0; color: #939cb0; font-size: 11px; line-height: 1.8; }
.info-card .index { display: block; color: #5d6679; font-size: 9px; margin-bottom: 8px; letter-spacing: .1em; }

.map-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.map-head .tagline { flex: 1; margin-bottom: 18px; }
.map-redraw {
  flex: none; align-self: flex-start; margin-bottom: 18px; padding: 8px 16px;
  border: 1px solid var(--c); background: rgba(217,184,120,.06); color: var(--c);
  font-family: var(--serif); font-size: 11px; letter-spacing: .14em; cursor: pointer; transition: .22s ease;
}
.map-redraw:hover { background: var(--c); color: #0a0d18; }
.map-wrap { border: 1px solid var(--line); background: #0d1420; padding: 14px; }
.map-wrap svg { display: block; width: 100%; max-width: 100%; height: auto; max-height: min(52vh, 480px); margin: 0 auto; border: 1px solid rgba(255,255,255,.1); }
.map-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: #788196; font-size: 10px; line-height: 1.7; }
.map-caption strong { color: var(--c); font-weight: 400; }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; color: #8b94a8; font-size: 10px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

.anomaly-list { display: flex; flex-direction: column; gap: 12px; }
.anomaly-item {
  display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 16px;
  border: 1px solid var(--line); background: linear-gradient(90deg, var(--modal-glow), rgba(255,255,255,.015));
}
.anomaly-no { font-family: var(--serif); color: var(--c); font-size: 24px; opacity: .8; }
.anomaly-item b { display: block; font-family: var(--serif); font-size: 15px; font-weight: 400; letter-spacing: .12em; margin-bottom: 7px; }
.anomaly-item p { margin: 0; color: #9ba4b8; font-size: 11px; line-height: 1.9; }
.rule-box { margin-top: 24px; padding: 18px; border: 1px dashed rgba(217,184,120,.3); }
.rule-box b { color: var(--gold); font-family: var(--serif); font-weight: 400; font-size: 13px; letter-spacing: .14em; }
.rule-box p { margin: 10px 0 0; color: #9ba4b8; font-size: 11px; line-height: 2; }

.modal-footer {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; border-top: 1px solid var(--line); color: #6f788c; font-size: 10px; letter-spacing: .14em;
}
.nav-planet { border: 0; background: transparent; color: var(--paper); font-size: 11px; cursor: pointer; letter-spacing: .1em; }
.nav-planet:hover { color: var(--c); }

/* ---------- 跃迁效果 ---------- */
.warp-flash {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.32), transparent 18%),
              repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.035) 18px 19px);
}
.warp-flash.is-active { animation: warp .72s ease-out; }
@keyframes warp {
  0% { opacity: 0; transform: scale(1.2); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: scale(.9); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .universe-copy { max-width: 440px; }
  .galaxy-node { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
  .orbital-system { width: min(68vh, 78vw); height: min(68vh, 78vw); }
  .system-node { width: 128px; height: 128px; margin: -64px 0 0 -64px; }
  .system-orbit { width: 108px; height: 108px; margin: -54px 0 0 -54px; }
  .system-orbit.inner { width: 66px; height: 66px; margin: -33px 0 0 -33px; }
  .planet-node { width: 82px; height: 82px; margin: -41px 0 0 -41px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  #app { height: auto; min-height: 100vh; }
  .topbar { height: 64px; grid-template-columns: auto 1fr auto; padding: 0 16px; }
  .brand-text strong { font-size: 17px; }
  .breadcrumb { display: none; }
  .ghost-btn span:not(.btn-icon), .ghost-btn kbd { display: none; }
  .stage { height: calc(100vh - 64px); min-height: 620px; }
  .view { padding: 26px 18px 90px; overflow: auto; }
  .universe-copy h1 { font-size: 27px; }
  .lede { font-size: 12px; }
  .universe-meta { gap: 14px; }
  .galaxy-node { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
  .galaxy-label strong { font-size: 12px; }
  .galaxy-label small, .galaxy-label em { display: none; }
  .galaxy-heading { flex-direction: column; gap: 14px; }
  .galaxy-core-card { min-width: 0; width: 100%; }
  .orbital-system { top: 52%; width: 88vw; height: 88vw; }
  .system-map { top: 30%; bottom: 14%; }
  .system-node { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
  .system-node:nth-child(2) { left: 24% !important; top: 26% !important; }
  .system-node:nth-child(3) { left: 66% !important; top: 30% !important; }
  .system-node:nth-child(4) { left: 46% !important; top: 70% !important; }
  .system-orbit { width: 82px; height: 82px; margin: -41px 0 0 -41px; }
  .system-orbit.inner { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .system-label strong { font-size: 11px; }
  .system-label small, .system-map-caption { display: none; }
  .system-label em { font-size: 9px; }
  .sys-planet-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
  .planet-node { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
  .planet-disc { width: 42px; height: 42px; }
  .planet-marker strong { font-size: 12px; }
  .planet-marker small, .planet-marker em { display: none; }
  .galaxy-footnote { left: 18px; right: 18px; bottom: 14px; align-items: center; }
  .galaxy-footnote p { display: none; }
  .side-dock { right: 10px; }
  .side-dock button { width: 38px; min-height: 48px; }
  .side-dock small { display: none; }
  .search-panel, .guide-panel, .object-panel { right: 56px; top: 74px; width: calc(100vw - 72px); padding: 18px; }
  .object-node { transform: scale(.82); }
  .modal-backdrop { padding: 8px; }
  .planet-modal { width: 100%; height: 96vh; }
  .modal-header { padding: 18px 18px 14px; }
  .modal-header h2 { font-size: 22px; }
  .modal-tabs { padding: 0 10px; overflow-x: auto; }
  .modal-tabs button { padding: 12px 12px; white-space: nowrap; }
  .modal-body { padding: 20px 18px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .map-wrap svg { max-height: 38vh; }
  .map-caption { flex-direction: column; gap: 6px; }
  .modal-footer { padding: 12px 18px; }
  .universe-footer { left: 18px; right: 18px; font-size: 9px; }
  .universe-footer span:last-child { display: none; }
}

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