/* ============================================================
   星渊 · 宇宙主题样式 —— 宏大 · 浩渺 · 神秘
   ============================================================ */
:root {
  --bg: #030512;
  --panel: rgba(10, 16, 38, 0.72);
  --panel-border: rgba(120, 160, 255, 0.16);
  --ink: #dfe8ff;
  --ink-dim: #8fa3cc;
  --accent: #7fb8ff;
  --accent2: #c9a2ff;
  --gold: #ffd9a0;
}
.scene-status { position:absolute; z-index:12; left:50%; top:38%; transform:translate(-50%,-50%); width:min(420px,90vw); padding:24px; border:1px solid var(--panel-border); background:var(--bg); text-align:center; border-radius:16px; }
.scene-status p { margin-bottom:16px; }
#texture-feedback { position:absolute; top:calc(var(--observation-top,64px) + 8px); right:12px; z-index:9; font-size:12px; max-width:65vw; background:var(--panel); border-radius:8px; }
#render-mode { width:100%; color:var(--ink); background:var(--bg); padding:8px; border:1px solid var(--panel-border); border-radius:6px; }
.viewer-key-help { padding:8px 20px; color:var(--ink-dim); font-size:12px; user-select:text; }
.hero-summary { color:var(--ink-dim); font-size:14px; line-height:1.8; margin:24px auto 12px; max-width:38em; }
.hero-reading { display:flex; justify-content:center; flex-wrap:wrap; gap:12px 24px; font-size:14px; }
.hero-reading a,.card-reading a,.explorer-reading-link a { color:var(--gold); text-underline-offset:4px; }
.hero-reading a:focus-visible,.card-reading a:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
.card-reading { margin:16px 0; font-size:13px; }.explorer-reading-link { margin-top:18px; font-size:13px; }
@media(max-width:760px){.hero-summary{font-size:12px;max-width:27em;margin-top:18px}.hero-reading{font-size:12px;gap:10px 18px}#body-card:not(.expanded) .card-reading{display:none}}
/* Short screens keep the entry content and attribution in one scrollable flow. */
@media(max-height:700px){
  body #hero{flex-direction:column;justify-content:flex-start;overflow-y:auto;padding-block:24px;}
  body #hero .hero-inner{flex:0 0 auto;margin-top:auto;max-width:100%;}
  body #hero .author-credit{position:relative;left:auto;right:auto;bottom:auto;flex:0 0 auto;width:100%;margin:28px 0 auto;padding:0 16px;}
}
.explorer-tabs { display:flex; gap:4px; padding:4px; margin:14px 0 20px; background:#060b1b; border:1px solid var(--panel-border); border-radius:9px; }
.explorer-tabs button { flex:1; padding:10px 6px; color:var(--ink-dim); border-radius:6px; font-size:13px; }
.explorer-tabs [aria-selected="true"] { background:#1c2942; color:var(--gold); }
.route-card { padding:20px 0; border-bottom:1px solid var(--panel-border); }
.route-card h3 { font-size:19px; font-weight:500; margin-bottom:8px; }
.route-card p { color:var(--ink-dim); font-size:13px; line-height:1.8; }
.route-card ol { margin:12px 0 16px 20px; color:var(--ink-dim); font-size:13px; line-height:1.9; }
.route-readout { padding:16px 18px; border:1px solid var(--panel-border); border-radius:12px; background:rgba(6,12,28,.95); font-size:13px; line-height:1.6; }
.route-readout strong { color:var(--gold); font-weight:500; }
.route-step-title { display:block; margin-top:3px; font-size:16px; }
.route-readout p { color:var(--ink-dim); margin:8px 0; }
.route-readout a { font-size:11px; color:var(--accent); }
.route-hint-toggle { display:none; }
.route-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
#route-solar { position:absolute; z-index:14; left:50%; transform:translateX(-50%); bottom:18px; width:min(440px,calc(100vw - 24px)); max-height:38vh; overflow:auto; }
#route-image { margin:12px 16px; }
.route-active #journey-readout { bottom:auto; top:calc(var(--observation-top,64px) + 14px); }
.comparison-dialog { width:min(920px,calc(100vw - 24px)); max-width:920px; max-height:calc(100dvh - 24px); overflow:auto; }
.comparison-dialog select,.comparison-dialog input[type="date"] { color:var(--ink); background:#080f22; border:1px solid var(--panel-border); padding:9px; border-radius:7px; min-width:0; }
#compare-choices { display:flex; flex-wrap:wrap; gap:10px 16px; padding:14px 0; border:0; font-size:12px; }
#compare-choices legend { font-size:12px; color:var(--ink-dim); }
#compare-choices label { display:flex; align-items:center; gap:5px; }
.lab-base { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:14px 0; font-size:12px; }
.lab-base label { min-width:180px; }.lab-base input { flex:1; min-width:120px; }
.lab-tools { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:11px; color:var(--ink-dim); }
#compare-stage { height:300px; overflow:hidden; touch-action:none; margin:14px 0; border:1px solid var(--panel-border); border-radius:10px; background:radial-gradient(ellipse at 50% 65%,#101b30,#050a16); }
#compare-svg { width:100%; height:100%; display:block; }
.lab-table-wrap { overflow:auto; }.lab-table { width:100%; border-collapse:collapse; text-align:left; font-size:12px; font-variant-numeric:tabular-nums; }
.lab-table th { font-weight:400; color:var(--ink-dim); }.lab-table td,.lab-table th { padding:10px 8px; border-bottom:1px solid var(--panel-border); white-space:nowrap; }
.lab-distance-select { display:flex; align-items:end; gap:12px; }.lab-distance-select label { flex:1; font-size:12px; color:var(--ink-dim); }.lab-distance-select select { display:block; width:100%; margin-top:8px; }
.lab-readings { display:grid; grid-template-columns:2fr 1fr 1fr; gap:20px; padding:24px 0; }.lab-readings dt { font-size:12px; color:var(--ink-dim); margin-bottom:8px; }.lab-readings dd { font-size:19px; font-variant-numeric:tabular-nums; }.lab-assumption { color:var(--ink-dim); font-size:12px; line-height:1.8; }
.signal-line { display:flex; align-items:center; gap:16px; padding:36px 4px 18px; color:var(--gold); font-size:13px; }.signal-line i { flex:1; height:1px; background:linear-gradient(90deg,var(--accent),var(--gold)); position:relative; }.signal-line i::before,.signal-line i::after { content:''; position:absolute; width:6px;height:6px; border-radius:50%; background:var(--gold); top:-2px; }.signal-line i::after { right:0; }
button:disabled { cursor:default; opacity:.45; }
@media(max-width:760px){#route-solar{bottom:var(--route-bottom,76px);max-height:31vh;padding:12px 14px;}#route-image{margin:8px;padding:12px;}.route-readout p{font-size:12px;}.route-hint-toggle{display:block;color:var(--accent);font-size:12px;margin-top:6px;}.route-readout[data-phase="ready"]:not(.prompt-open) .route-prompt-text{display:none;}.route-active #target-visibility{display:none;}.route-active #body-card.expanded ~ #route-solar{display:none;}.lab-readings{grid-template-columns:1fr;gap:18px;}#compare-stage{height:250px;}.comparison-dialog{padding:18px;}.lab-distance-select{gap:6px;}}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.hidden { display: none !important; }
.utility-btn { border: 1px solid var(--panel-border); border-radius: 8px; padding: 8px 11px; font-size: 12px; white-space: nowrap; }
.utility-btn:hover, .utility-btn[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
#detail-expand { display: none; }
.immersive #control-panel, .immersive #body-card, .immersive #observation-hud, .immersive #solar-hint, .immersive #target-visibility { display: none !important; }
.deep-space #immersive-toggle { display: none; }
.stat-v, #observation-hud, .time-readout { font-variant-numeric: tabular-nums; }

/* ---------------- 开场 ---------------- */
#hero {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(ellipse at 50% 120%, #131c45 0%, #070b1f 45%, #02030a 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 1.4s ease, transform 1.4s ease;
}
#hero.leaving { opacity: 0; transform: scale(1.6); pointer-events: none; }
.hero-sky { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.hero-stars, .hero-stars::before, .hero-stars::after {
  position: absolute; inset: -100%;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 60% 70%, #cdd8ff, transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, #fff, transparent),
    radial-gradient(1px 1px at 35% 85%, #ffe9c4, transparent),
    radial-gradient(1px 1px at 90% 55%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 10% 60%, #cdd8ff, transparent);
  background-size: 400px 400px;
  content: "";
  animation: warp 60s linear infinite;
}
.hero-stars.s2 { background-size: 260px 260px; animation-duration: 38s; opacity: 0.7; }
.hero-stars.s3 { background-size: 620px 620px; animation-duration: 95s; opacity: 0.4; }
@keyframes warp { to { transform: translateY(400px); } }
.hero-inner { position: relative; text-align: center; padding: 0 24px; animation: heroIn 2s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }
.hero-logo { font-size: 28px; color: var(--gold); text-shadow: 0 0 24px var(--gold); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; text-shadow: 0 0 42px var(--gold); } }
.hero-title {
  font-size: clamp(56px, 10vw, 118px); font-weight: 200; letter-spacing: 0.32em; margin: 12px 0 4px;
  background: linear-gradient(180deg, #fff 20%, #9db9ff 70%, #5a76c9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 80px rgba(127, 184, 255, 0.35);
}
.hero-sub { letter-spacing: 0.5em; font-size: clamp(10px, 1.6vw, 14px); color: var(--ink-dim); }
.hero-quote {
  max-width: 560px; margin: 34px auto 0; color: #aebbdf; font-size: 14px; line-height: 2;
  font-style: italic; opacity: 0.85;
}
#enter-btn {
  margin-top: 44px; padding: 15px 58px; border-radius: 999px;
  border: 1px solid rgba(159, 190, 255, 0.45); color: #e8f0ff;
  font-size: 16px; letter-spacing: 0.45em; text-indent: 0.45em;
  background: linear-gradient(135deg, rgba(127,184,255,0.12), rgba(201,162,255,0.12));
  backdrop-filter: blur(6px);
  transition: all 0.45s ease; position: relative; overflow: hidden;
}
#enter-btn:hover {
  box-shadow: 0 0 42px rgba(127, 184, 255, 0.45), inset 0 0 24px rgba(127, 184, 255, 0.15);
  border-color: rgba(190, 214, 255, 0.9); transform: translateY(-2px);
}
.hero-tip { margin-top: 26px; font-size: 12px; color: var(--ink-dim); letter-spacing: 0.1em; }
/* 作者署名：由核心 JS 动态注入（非静态节点，删 HTML 无效） */
.author-credit {
  position: absolute; left: 0; right: 0; bottom: 20px; z-index: 2;
  text-align: center; font-size: 12px; letter-spacing: 0.06em;
  color: rgba(174, 187, 223, 0.62); pointer-events: auto;
}
.author-credit a {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(255, 217, 160, 0.4);
}
.author-credit a:hover { filter: brightness(1.15); }

/* ---------------- 顶栏 ---------------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(3,5,18,0.85), rgba(3,5,18,0));
  pointer-events: none;
}
#topbar > * { pointer-events: auto; }
.brand { font-size: 18px; letter-spacing: 0.3em; font-weight: 300; color: #e8f0ff; }
.brand-star { color: var(--gold); text-shadow: 0 0 12px var(--gold); }
#nav { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; padding: 4px; backdrop-filter: blur(14px); }
.nav-btn {
  padding: 7px 20px; border-radius: 999px; font-size: 14px; letter-spacing: 0.15em;
  color: var(--ink-dim); transition: all 0.3s;
}
.nav-btn:hover { color: var(--ink); }
.nav-btn.active {
  color: #081020; background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(127, 184, 255, 0.5); font-weight: 600;
}
.audio-ctl { display: flex; gap: 8px; }
.audio-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--panel-border); backdrop-filter: blur(14px);
  font-size: 12px; color: var(--ink-dim); transition: all 0.3s;
}
.audio-btn i { font-style: normal; }
.audio-btn.on { color: var(--gold); border-color: rgba(255, 217, 160, 0.35); }
.audio-btn.playing i { animation: noteBob 1.6s ease-in-out infinite; display: inline-block; }
.music-controls { display:flex; align-items:center; }
.music-controls #music-btn { border-top-right-radius:0; border-bottom-right-radius:0; }
#music-settings { border-top-left-radius:0; border-bottom-left-radius:0; padding-inline:9px; border-left:0; min-width:28px; }
#music-settings:hover { color:var(--gold); }
#music-dialog { width:min(420px,calc(100vw - 24px)); overflow:auto; }
#music-dialog .music-eyebrow { color:var(--gold); font-size:11px; letter-spacing:.15em; }
#music-title { font-weight:400; font-size:22px; line-height:1.35; overflow-wrap:anywhere; margin-top:8px; }
#music-dialog #music-mood { margin-top:7px; font-size:12px; }
#music-status { min-height:22px; margin:16px 0; }
#music-dialog #music-status[data-state="error"] { color:#edb6a4; }
#music-track { width:100%; min-width:0; margin-top:8px; padding:11px 9px; border:1px solid #344459; border-radius:7px; background:#131f32; color:var(--ink); font:inherit; font-size:13px; }
.music-volume-label { display:flex; justify-content:space-between; margin-top:22px; font-size:12px; color:var(--ink-dim); }
#music-volume { width:100%; margin:12px 0 18px; accent-color:var(--gold); }
#music-toggle { width:100%; min-height:40px; color:var(--gold); }
#music-dialog .music-behavior { margin:14px 0 20px; font-size:12px; }
.music-credit { border-top:1px solid var(--panel-border); padding-top:14px; }
#music-dialog .music-credit p { font-size:11px; margin-top:5px; }
.music-credit a { color:#b0c9e9; text-underline-offset:3px; }
#music-track:focus-visible,#music-volume:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
@keyframes noteBob { 50% { transform: translateY(-2px) rotate(-8deg); } }

/* ---------------- 页面容器 ---------------- */
.page { position: fixed; inset: 0; display: none; }
.page.visible { display: block; }
#scene-container, #scene-container canvas { position: absolute; inset: 0; }
#label-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.label-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.label-leader { stroke: rgba(159, 190, 255, 0.34); stroke-width: 1; stroke-dasharray: 2 3; }

/* 星体标签 */
.body-label {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 11px; letter-spacing: 0.2em; color: rgba(220, 232, 255, 0.9);
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 20px rgba(127,184,255,0.5);
  white-space: nowrap; transition: opacity 0.3s, color 0.2s, text-shadow 0.2s;
  padding: 3px 5px; line-height: 1; border-radius: 5px;
}
/* 真实比例下：星体按真实半径缩到亚像素级时球体即不可见（不存在任何人工放大/星点）。
   名称标签居中落在轨道线上的星体位置，仅作名称锚点随轨道移动——不绘制任何人工标记。 */
.body-label.struct {
  color: rgba(160, 200, 255, 0.66); font-size: 10px; letter-spacing: 0.12em;
  padding: 4px 7px; background: rgba(3, 7, 20, 0.52); border: 1px solid rgba(127,184,255,0.12);
}
.body-label.struct-asteroid { color: rgba(231, 205, 158, 0.82); border-color: rgba(231,205,158,0.18); }
.body-label.struct-kuiper { color: rgba(159, 202, 255, 0.78); }
.body-label.struct-oort { color: rgba(139, 177, 224, 0.72); border-color: rgba(139,177,224,0.16); }
.struct-leader-asteroid { stroke: rgba(231, 205, 158, 0.3); stroke-dasharray: 2 3; }
/* 名称与区域标签均可点击：星体进入跟随，区域切换到对应尺度。 */
.body-label { pointer-events: auto; cursor: pointer; }
.body-label:hover { color: #fff; text-shadow: 0 0 10px rgba(0,0,0,1), 0 0 26px rgba(160,200,255,0.95); }
.body-label.followed { color: var(--gold); text-shadow: 0 0 10px #000, 0 0 22px rgba(255,217,160,0.8); }
#solar-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.2em; color: var(--ink-dim);
  background: var(--panel); padding: 8px 22px; border-radius: 999px;
  border: 1px solid var(--panel-border); backdrop-filter: blur(10px);
  transition: opacity 2s; pointer-events: none; z-index: 5;
}
#solar-hint.fade { opacity: 0; }

/* ---------------- 控制面板 ---------------- */
#control-panel {
  position: absolute; top: 74px; left: 16px; z-index: 10;
  width: 284px; max-height: calc(100% - 110px); overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 18px; padding: 16px; backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  transition: width 0.35s ease, padding 0.35s ease, border-radius 0.35s ease;
}
#control-panel::-webkit-scrollbar { width: 4px; }
#control-panel::-webkit-scrollbar-thumb { background: rgba(127,184,255,0.3); border-radius: 4px; }
#control-panel.collapsed {
  width: fit-content; width: -webkit-fit-content;
  padding: 8px 12px; overflow: hidden; cursor: pointer;
  border-radius: 999px; display: flex; align-items: center; gap: 6px;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 28px; flex-shrink: 0; padding-bottom: 8px;
}
#control-panel.collapsed .panel-header {
  justify-content: flex-start; gap: 8px; width: auto;
}
.panel-header-title { font-size: 12px; letter-spacing: 0.25em; color: var(--ink-dim); white-space: nowrap; }
.panel-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(127,184,255,.3) transparent; transition: opacity 0.3s ease, transform 0.35s ease; opacity: 1; transform: scaleY(1); transform-origin: top; }
#control-panel.collapsed { flex-direction: row; }
#control-panel.collapsed .panel-header { padding-bottom: 0; }
#control-panel.collapsed .panel-content { position: absolute; visibility: hidden; opacity: 0; pointer-events: none; transform: scaleY(0); }
.panel-toggle {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  border: 1px solid var(--panel-border); background: rgba(127,184,255,0.08);
  color: var(--ink-dim); display: grid; place-items: center;
  transition: all 0.3s; font-size: 14px; line-height: 1;
}
.panel-toggle:hover { border-color: var(--gold); color: var(--gold); background: rgba(127,184,255,0.14); }
#control-panel.collapsed .panel-toggle { width: 24px; height: 24px; font-size: 13px; }
.panel-sec { margin-bottom: 16px; }
.panel-title { font-size: 12px; letter-spacing: 0.25em; color: var(--ink-dim); margin-bottom: 8px; }
.panel-hint { font-size: 11px; color: var(--ink-dim); line-height: 1.7; margin-top: 8px; opacity: 0.8; }
.date-navigation { margin: 12px 0; }
.date-navigation label { display: block; font-size: 11px; color: var(--ink-dim); margin-bottom: 6px; }
.date-navigation label small { margin-left: 6px; opacity: .7; }
.date-navigation > div { display: flex; gap: 6px; }
.date-navigation input { color-scheme: dark; min-width: 0; width: 100%; padding: 7px; border: 1px solid var(--panel-border); border-radius: 7px; color: var(--ink); background: #0d1528; font-size: 12px; font-family: inherit; }
.date-navigation input[aria-invalid="true"] { border-color: #dfa098; }
.date-navigation button { flex: none; padding: 7px 10px; border: 1px solid var(--panel-border); border-radius: 7px; font-size: 12px; }
.date-navigation [role="status"] { font-size: 11px; color: var(--ink-dim); margin-top: 5px; line-height: 1.5; }
.date-navigation :disabled { opacity: .45; cursor: default; }
#target-visibility { position: absolute; z-index: 9; top: calc(var(--observation-top, 64px) + 10px); left: 50%; transform: translateX(-50%); max-width: min(390px, calc(100vw - 32px)); padding: 9px 12px; border: 1px solid var(--panel-border); border-radius: 10px; background: #0b1425e8; color: var(--ink-dim); font-size: 11px; line-height: 1.6; }
#target-visibility[hidden], #approach-target[hidden] { display: none; }
#target-visibility button { padding: 5px 9px; margin-top: 5px; border: 1px solid var(--panel-border); border-radius: 6px; color: var(--gold); font-size: 11px; }
.real-scale-control {
  padding: 12px; border: 1px solid rgba(127,184,255,0.16); border-radius: 12px;
  background: rgba(3, 7, 22, 0.38);
}
.real-scale-heading, .real-scale-label, .scale-ticks { display: flex; align-items: center; justify-content: space-between; }
.real-scale-heading .panel-title { margin-bottom: 0; }
.scale-reset {
  color: var(--accent); font-size: 10px; letter-spacing: 0.08em; padding: 4px 7px;
  border: 1px solid rgba(127,184,255,0.24); border-radius: 6px; transition: color 0.2s, border-color 0.2s;
}
.scale-reset:hover { color: #fff; border-color: rgba(127,184,255,0.55); }
.real-scale-label { margin-top: 12px; color: #b8c6e4; font-size: 11px; }
.real-scale-label output { color: var(--gold); font-variant-numeric: tabular-nums; }
#real-scale-slider { width: 100%; height: 20px; accent-color: var(--gold); }
.scale-ticks { margin-top: -4px; color: rgba(143,163,204,0.66); font-size: 9px; font-variant-numeric: tabular-nums; }
.real-scale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.real-scale-grid span { min-width: 0; padding: 7px 5px; border-radius: 8px; background: rgba(127,184,255,0.07); }
.real-scale-grid small { display: block; color: var(--ink-dim); font-size: 9px; white-space: nowrap; }
.real-scale-grid b {
  display: block; margin-top: 3px; color: #e8f0ff; font-size: 10px; font-weight: 500;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.real-scale-formula { margin-top: 9px; }
.real-structure-note { margin-top: 7px; color: rgba(143,163,204,0.68); font-size: 9px; line-height: 1.55; }
.zoom-row { display: flex; align-items: center; gap: 8px; }
.zoom-row input[type="range"] { flex: 1; accent-color: var(--accent); height: 20px; }
.zoom-ico {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--panel-border); color: var(--ink-dim);
  font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.zoom-ico:hover { color: var(--gold); border-color: rgba(255,217,160,0.5); }
.view-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.view-preset, .reset-view {
  border: 1px solid var(--panel-border); color: var(--ink-dim); border-radius: 8px;
  min-height: 30px; padding: 6px 8px; font-size: 11px; transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.view-preset:hover, .reset-view:hover { color: var(--ink); border-color: rgba(127,184,255,0.42); background: rgba(127,184,255,0.08); }
.view-preset.active { color: var(--gold); border-color: rgba(255,217,160,0.38); background: rgba(255,217,160,0.08); }
.view-preset:disabled { opacity: 0.34; cursor: not-allowed; background: transparent; }
.reset-view { width: 100%; margin-top: 6px; color: var(--accent); }
.mode-row { display: flex; gap: 6px; }
.mode-btn {
  flex: 1; padding: 8px 0; border-radius: 10px; font-size: 13px;
  border: 1px solid var(--panel-border); color: var(--ink-dim); transition: all 0.3s;
}
.mode-btn:hover { color: var(--ink); border-color: rgba(127,184,255,0.4); }
.mode-btn.active {
  color: #081020; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 14px rgba(127, 184, 255, 0.4);
}
.speed-val { color: var(--gold); letter-spacing: 0; float: right; }
#speed-slider { width: 100%; accent-color: var(--accent); height: 20px; }
.time-presets { display: flex; gap: 6px; margin: 10px 0 4px; }
.time-presets button { flex: 1; min-width: 0; min-height: 44px; padding: 6px 4px; border: 1px solid var(--panel-border); border-radius: 6px; color: var(--ink-dim); font-size: 11px; }
.time-presets button span { display: block; line-height: 1.4; white-space: nowrap; }
.time-presets button[aria-pressed="true"] { color: var(--gold); border-color: rgba(255,217,160,.45); }
.time-presets button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#speed-slider:disabled { opacity: .35; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.panel-heading .panel-title { margin-bottom:0; }
.probe-switch { min-width:44px; min-height:36px; margin-left:auto; justify-content:flex-end; }
#probe-list[hidden] { display: none; }
.time-readout {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 3px; font-variant-numeric: tabular-nums;
}
.time-readout time { color: #edf3ff; font-size: 13px; letter-spacing: 0.03em; }
.time-readout span { color: rgba(143,163,204,0.72); font-size: 9px; white-space: nowrap; }
.time-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 4px; }
.time-actions button {
  min-height: 28px; padding: 5px 3px; border: 1px solid var(--panel-border); border-radius: 7px;
  color: var(--ink-dim); font-size: 10px; transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.time-actions button:hover { color: #fff; border-color: rgba(127,184,255,0.45); background: rgba(127,184,255,0.08); }
.time-actions #time-play[aria-pressed="true"] { color: var(--gold); border-color: rgba(255,217,160,0.4); background: rgba(255,217,160,0.08); }
.ephemeris-note { margin-top: 7px; color: rgba(143,163,204,0.62); font-size: 9px; line-height: 1.5; }
.switch-row { display: flex; gap: 18px; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-dim); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 34px; height: 24px; }
.switch input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 3px; }
.switch i {
  width: 34px; height: 18px; border-radius: 999px; background: rgba(255,255,255,0.12);
  position: relative; transition: background 0.3s; flex-shrink: 0;
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #cdd8f5; transition: transform 0.3s;
}
.switch input:checked + i { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.switch input:checked + i::after { transform: translateX(16px); background: #081020; }

#body-list, #structure-list { display: flex; flex-wrap: wrap; gap: 6px; }
.body-chip {
  padding: 5px 12px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--panel-border); color: var(--ink-dim); transition: all 0.25s;
}
.body-chip:hover { color: var(--gold); border-color: rgba(255,217,160,0.5); box-shadow: 0 0 10px rgba(255,217,160,0.2); }
.body-chip.active { color: #081020; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(255,217,160,0.32); }
.structure-chip { color: rgba(159, 202, 255, 0.84); }
.structure-chip[data-id="asteroid"] { color: rgba(231, 205, 158, 0.9); }
.structure-chip:disabled { opacity: 0.34; cursor: not-allowed; }
button:active:not(:disabled):not(.body-label) { transform: translateY(1px) scale(0.985); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

#stop-follow {
  width: 100%; padding: 9px; border-radius: 10px; font-size: 13px;
  background: rgba(255, 120, 120, 0.12); border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffb0a8; transition: all 0.3s;
}
#stop-follow:hover { background: rgba(255, 120, 120, 0.22); }

/* ---------------- 观测读数 ---------------- */
#observation-hud {
  position: absolute; right: 18px; bottom: 18px; z-index: 7; width: 250px;
  padding: 12px 13px 11px; border: 1px solid rgba(127,184,255,0.16); border-radius: 14px;
  background: rgba(5, 10, 26, 0.68); backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.035);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-variant-numeric: tabular-nums; pointer-events: none;
}
#observation-hud header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
#observation-hud header span { color: var(--accent); font-size: 10px; letter-spacing: 0.2em; }
#quality-status { color: rgba(143,163,204,0.72); font-size: 9px; font-weight: 400; }
#observation-hud dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
#observation-hud dl div { min-width: 0; }
#observation-hud dt { color: rgba(143,163,204,0.65); font-size: 9px; }
#observation-hud dd { margin-top: 2px; overflow: hidden; color: #e5edff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.scene-ruler { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: rgba(201,218,250,0.78); font-size: 9px; }
.scene-ruler i {
  position: relative; display: block; width: 72px; height: 7px;
  border-right: 1px solid rgba(201,218,250,0.72); border-bottom: 1px solid rgba(201,218,250,0.72); border-left: 1px solid rgba(201,218,250,0.72);
}
.scene-ruler i::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 3px; border-left: 1px solid rgba(201,218,250,0.55); }

/* ---------------- 星体详情卡片 ---------------- */
#body-card {
  position: absolute; top: 74px; right: 16px; z-index: 10;
  width: min(360px, calc(100vw - 32px)); max-height: calc(100% - 110px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 20px; padding: 22px; backdrop-filter: blur(18px);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: cardIn 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}
#body-card::-webkit-scrollbar { width: 4px; }
#body-card::-webkit-scrollbar-thumb { background: rgba(127,184,255,0.3); border-radius: 4px; }
@keyframes cardIn { from { opacity: 0; transform: translateX(30px) scale(0.96); } }
#card-close, #ds-modal-close {
  z-index: 12; background: rgba(3, 5, 18, 0.85);
  position: absolute; top: 12px; right: 14px; font-size: 14px; color: var(--ink-dim);
  width: 30px; height: 30px; border-radius: 50%; transition: all 0.3s;
}
#card-close:hover, #ds-modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.card-type { font-size: 11px; letter-spacing: 0.3em; color: var(--accent); }
#body-card h2 { font-size: 26px; font-weight: 500; letter-spacing: 0.1em; margin: 4px 0 0; }
.card-en { font-size: 12px; color: var(--ink-dim); letter-spacing: 0.12em; margin-bottom: 12px; }
#card-photo-wrap {
  margin: 0 0 12px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(159, 190, 255, 0.22);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 30px rgba(127,184,255,0.08);
}
#card-photo { width: 100%; height: auto; display: block; }
#card-photo-cap {
  font-size: 10px; color: var(--ink-dim); padding: 6px 10px;
  background: rgba(127,184,255,0.06); letter-spacing: 0.05em; line-height: 1.5;
}
.card-desc { font-size: 13px; line-height: 1.9; color: #c2cfea; text-align: justify; user-select: text; }
.card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.stat { background: rgba(127, 184, 255, 0.07); border: 1px solid rgba(127,184,255,0.1); border-radius: 10px; padding: 8px 10px; }
.stat-k { font-size: 10px; color: var(--ink-dim); letter-spacing: 0.15em; }
.stat-v { font-size: 12px; color: #e8f0ff; margin-top: 3px; line-height: 1.5; }
.card-facts-wrap ul { list-style: none; }
.card-sources { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; font-size: 11px; line-height: 1.7; }
.card-sources a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.card-facts-wrap li {
  font-size: 12px; color: #b8c6e4; line-height: 1.7; padding-left: 16px; position: relative; margin-bottom: 6px;
}
.card-facts-wrap li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 9px; top: 4px; }

/* ---------------- 深空板块 ---------------- */
.ds-page {
  overflow-y: auto; padding: 96px 5vw 60px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(60, 40, 120, 0.18), transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(30, 70, 140, 0.15), transparent 50%),
    var(--bg);
}
.ds-page::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(200,215,255,0.6), transparent),
    radial-gradient(1.4px 1.4px at 45% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255,233,196,0.6), transparent),
    radial-gradient(1px 1px at 30% 55%, rgba(255,255,255,0.45), transparent);
  background-size: 500px 500px;
}
.ds-head { text-align: center; margin-bottom: 40px; }
.ds-head h2 {
  font-size: clamp(34px, 5vw, 54px); font-weight: 200; letter-spacing: 0.5em; text-indent: 0.5em;
  background: linear-gradient(180deg, #fff, #8fa8e8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ds-head p { color: var(--ink-dim); margin-top: 10px; font-size: 14px; letter-spacing: 0.2em; }
.ds-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px; max-width: 1400px; margin: 0 auto; position: relative;
}
.ds-card {
  border-radius: 18px; overflow: hidden; cursor: pointer;
  background: rgba(10, 16, 38, 0.6); border: 1px solid var(--panel-border);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.45s, border-color 0.45s;
  animation: cardUp 0.7s ease both;
}
@keyframes cardUp { from { opacity: 0; transform: translateY(28px); } }
.ds-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(159, 190, 255, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(127, 184, 255, 0.12);
}
.ds-card canvas { width: 100%; height: auto; display: block; }
.ds-info { padding: 14px 16px 16px; }
.ds-info h3 { font-size: 17px; font-weight: 500; letter-spacing: 0.08em; }
.ds-en { font-size: 11px; color: var(--ink-dim); margin-top: 2px; letter-spacing: 0.1em; }
.ds-type { font-size: 11px; color: var(--accent); margin-top: 6px; letter-spacing: 0.12em; }

/* ---------------- 深空弹窗 ---------------- */
#ds-modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 4, 12, 0.82); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity 0.35s;
}
#ds-modal.open { opacity: 1; }
.ds-modal-box {
  position: relative; width: min(880px, 100%); max-height: 92vh; overflow-y: auto;
  background: rgba(10, 16, 38, 0.95); border: 1px solid rgba(159, 190, 255, 0.25);
  border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,0.7), 0 0 60px rgba(127,184,255,0.1);
  transform: scale(0.94) translateY(16px); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
#ds-modal.open .ds-modal-box { transform: none; }
.ds-modal-canvas-wrap { border-radius: 22px 22px 0 0; overflow: hidden; position: relative; background: #050818; aspect-ratio: 16 / 10; }
#ds-modal-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; display: block; }
.ds-card-fallback {
  width: 100%; aspect-ratio: 8 / 5; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #16203f 0%, #050818 70%);
  color: var(--ink-dim); font-size: 14px; letter-spacing: 0.08em;
}
.ds-photo-cap {
  position: absolute; left: 14px; top: 14px; max-width: 62%;
  font-size: 10px; color: rgba(223, 232, 255, 0.85); letter-spacing: 0.05em;
  background: rgba(5, 8, 22, 0.6); border: 1px solid var(--panel-border);
  border-radius: 8px; padding: 4px 10px; backdrop-filter: blur(8px); z-index: 4;
}
/* 统一的底部导航条：永远固定在头图区底部，布局一致、不随图片漂移 */
.ds-stage-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px;
  min-height: 58px;
  background: linear-gradient(to top, rgba(3, 5, 14, 0.92), rgba(3, 5, 14, 0));
}
.ds-thumbs {
  flex: 0 0 auto; display: flex; justify-content: center; align-items: center; gap: 6px; overflow-x: auto;
  padding: 2px 6px; max-width: 100%; min-height: 42px;
  scrollbar-width: thin; scrollbar-color: var(--panel-border) transparent;
}
.ds-thumbs::-webkit-scrollbar { height: 4px; }
.ds-thumbs::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 4px; }
.ds-thumbs img {
  flex: none; width: 56px; height: 38px; object-fit: cover; border-radius: 7px; cursor: pointer;
  border: 1px solid transparent; opacity: 0.6; transition: all 0.25s;
}
.ds-thumbs img:hover { opacity: 1; }
.ds-thumbs img.active { border-color: var(--gold); opacity: 1; box-shadow: 0 0 10px rgba(255, 217, 160, 0.45); }
/* 移动端：缩略图条占满宽度并可横向滚动 */
@media (max-width: 760px) {
  .ds-stage-bar { flex-wrap: wrap; padding-bottom: 50px; }
  .ds-thumbs { max-width: 100%; }
}
.band-btn.active {
  color: #081020; font-weight: 600; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.ds-modal-body { padding: 20px 26px 26px; }
.viewer-toolbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 10px 50px 10px 12px; background: #0a1026; border-bottom: 1px solid var(--panel-border); }
.viewer-toolbar button { min-height: 36px; padding: 6px 10px; border-radius: 8px; font-size: 12px; }
.viewer-toolbar button:hover { color: var(--gold); background: rgba(255,217,160,.08); }
.viewer-toolbar button:disabled { opacity: .35; cursor: default; }
.viewer-toolbar #ds-modal-close { position: absolute; right: 10px; top: 10px; }
#viewer-count { font-size: 12px; font-variant-numeric: tabular-nums; }
.ds-modal-canvas-wrap { border-radius: 0; height: min(58dvh, 620px); aspect-ratio: auto; touch-action: none; cursor: grab; }
.ds-modal-canvas-wrap:active { cursor: grabbing; }
#ds-modal-photo, #ds-compare-photo { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; user-select: none; pointer-events: none; }
#ds-modal-photo[hidden], #ds-compare-photo[hidden] { display: none; }
.comparing #ds-modal-photo { width: 50%; }
.comparing #ds-compare-photo { left: 50%; width: 50%; border-left: 1px solid var(--panel-border); }
.ds-photo-cap { position: static; max-width: none; border: 0; border-radius: 0; padding: 12px 18px; font-size: 11px; line-height: 1.7; user-select: text; }
.ds-photo-cap a { color: var(--gold); }
.photo-record + .photo-record { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--panel-border); }
.photo-record strong, .photo-metadata, .photo-credit { display: block; }
.photo-record strong { font-weight: 500; color: var(--ink); }
.photo-metadata { margin-top: 3px; color: #b1c0d7; }
.photo-credit { color: var(--ink-dim); font-size: 10px; overflow-wrap: anywhere; }
.ds-thumbs { padding: 8px 14px; justify-content: flex-start; }
.ds-thumbs button { flex-shrink: 0; padding: 3px; border-radius: 8px; border: 1px solid transparent; }
.ds-thumbs button[aria-pressed="true"] { border-color: var(--gold); }
.ds-thumbs button[aria-pressed="true"] img { opacity: 1; }
.viewer-feedback { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 14px; pointer-events: none; font-size: 13px; color: var(--ink-dim); }
.viewer-feedback button { pointer-events: auto; padding: 10px 18px; border: 1px solid var(--panel-border); border-radius: 8px; }
.viewer-fullscreen { padding: 0 !important; }
.viewer-fullscreen .ds-modal-box { width: 100%; max-height: 100dvh; border-radius: 0; }
.viewer-fullscreen .ds-modal-canvas-wrap { height: calc(100dvh - 190px); }
.viewer-fullscreen .ds-modal-body { display: none; }
.ds-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.ds-modal-body h2 { font-size: 24px; font-weight: 500; letter-spacing: 0.1em; margin-top: 4px; }
.ds-sec { margin-top: 18px; }
.ds-era {
  font-size: 14px; line-height: 1.9; color: var(--gold);
  background: linear-gradient(90deg, rgba(255,217,160,0.08), transparent);
  border-left: 3px solid rgba(255, 217, 160, 0.5);
  padding: 10px 14px; border-radius: 0 10px 10px 0;
}
.scale-bar { display: grid; gap: 16px; margin: 14px 4px; }
.scale-row-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--ink-dim); }
.scale-row-label b { font-weight: 400; font-variant-numeric: tabular-nums; }
.scale-row.main .scale-row-label { color: var(--gold); }
.scale-row .scale-track { position: relative; top: auto; margin: 9px 5px 0; height: 3px; }
.scale-row .scale-track i { position: absolute; top: -3px; width: 9px; height: 9px; transform: translateX(-50%); border-radius: 50%; background: var(--accent); }
.scale-row.main .scale-track i { background: var(--gold); }
.scale-track {
  position: absolute; left: 0; right: 0; top: 34px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(127,184,255,0.15), rgba(127,184,255,0.5), rgba(201,162,255,0.5));
}
.scale-mark { position: absolute; top: 0; transform: translateX(-50%); text-align: center; }
.scale-mark i {
  display: block; width: 9px; height: 9px; border-radius: 50%; margin: 31px auto 4px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.scale-mark.main i { width: 14px; height: 14px; margin-top: 28px; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.scale-mark span { font-size: 10px; color: var(--ink-dim); line-height: 1.4; display: block; white-space: nowrap; }
.scale-mark.main span { color: var(--gold); font-size: 11px; }
.scale-note { font-size: 11px; color: var(--ink-dim); margin-top: 4px; opacity: 0.8; }
.ds-facts { list-style: none; }
.ds-facts li {
  font-size: 13px; color: #b8c6e4; line-height: 1.8; padding-left: 18px; position: relative; margin-bottom: 8px;
}
.ds-facts li::before { content: "✦"; position: absolute; left: 0; top: 2px; color: var(--accent2); font-size: 10px; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 760px) {
  #topbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .brand { font-size: 15px; }
  #nav { order: 3; width: 100%; justify-content: space-between; }
  .nav-btn { flex: 1; padding: 7px 0; font-size: 13px; }
  .audio-btn span { display: none; }
  .audio-btn { padding: 7px 10px; }
  #control-panel {
    top: auto; bottom: 12px; left: 12px; right: auto; width: auto;
    max-width: calc(100% - 24px); max-height: 42vh; padding: 12px; border-radius: 16px;
  }
  .real-scale-grid b { font-size: 9px; }
  #control-panel.collapsed {
    width: auto; right: auto; border-radius: 999px;
  }
  #control-panel.collapsed .panel-toggle { width: 40px; height: 40px; }
  .view-preset, .reset-view, .body-chip { min-height: 38px; }
  .time-actions button { min-height: 36px; }
  .zoom-ico { width: 34px; height: 34px; }
  .panel-sec { margin-bottom: 12px; }
  #body-card {
    top: auto; bottom: 78px; right: 12px; left: 12px; width: auto; max-height: 48dvh; padding: 16px;
  }
  #detail-expand { display: block; float: right; margin: 24px 0 0 12px; color: var(--gold); padding: 8px 0; }
  #body-card:not(.expanded) #card-photo-wrap, #body-card:not(.expanded) #card-desc,
  #body-card:not(.expanded) #card-stats, #body-card:not(.expanded) .card-facts-wrap { display: none; }
  #observation-hud { right: 12px; bottom: 82px; width: min(238px, calc(100vw - 24px)); }
  .controls-expanded #observation-hud { display: none; }
  body.body-card-open #observation-hud { opacity: 0; transform: translateY(8px); }
  #solar-hint { bottom: auto; top: 108px; font-size: 11px; width: max-content; max-width: 90vw; }
  .ds-grid { grid-template-columns: 1fr; }
  .ds-page { padding: 120px 16px 40px; }
  .card-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #observation-hud, .body-label, #control-panel, .panel-content { transition-duration: 0.01ms; }
}
/* Utility overlays retain the existing restrained observatory palette. */
.utility-dialog { margin:auto; color:var(--text, #d4dce8); background:#0c1423; border:1px solid #344459; border-radius:16px; padding:24px; width:min(560px,calc(100vw - 24px)); max-height:85dvh; box-sizing:border-box; }
.utility-dialog::backdrop { background:#02050bcc; backdrop-filter:blur(8px); }
#comparison-dialog { width:min(920px,calc(100vw - 24px));max-height:calc(100dvh - 24px); }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.dialog-heading h2 { font-size:20px; font-weight:500; margin:0; }
.utility-dialog p { color:#9eacbf; line-height:1.7; font-size:13px; }
.search-label { display:grid; gap:8px; font-size:12px; color:#a5b7cc; }
.search-label input, .explorer-filters select { min-height:42px; color:#e2e9f1; background:#131f32; border:1px solid #344459; border-radius:7px; padding:9px 12px; box-sizing:border-box; width:100%; font:inherit; }
.search-label input:focus-visible,.utility-dialog button:focus-visible { outline:2px solid #c5a76e; outline-offset:3px; }
.explorer-filters { display:flex; align-items:center; gap:16px; margin-top:14px; font-size:12px; }
.explorer-filters select { width:45%; }.explorer-filters label { display:flex; align-items:center; gap:5px; }
#explorer-results { max-height:48dvh; overflow:auto; overscroll-behavior:contain; }
.explorer-result { display:flex; align-items:center; border-bottom:1px solid #ffffff0b; }
.explorer-pick { flex:1; text-align:left; padding:14px 8px; display:grid; gap:5px; color:#dde6ef; background:none; border:0; cursor:pointer; }
.explorer-pick strong { font-weight:500; font-size:15px; }.explorer-pick span { font-size:11px; color:#859ab3; }
.explorer-pick:hover { background:#ffffff08; }.favorite-star { width:44px; height:44px; border:0; background:none; color:#c5a76e; font-size:24px; cursor:pointer; }
#copy-share { margin-top:16px; }#resume-view { margin:16px auto 0; display:block; color:#b8c6d6; border:0; background:none; cursor:pointer; font:inherit; font-size:13px; padding:10px; }
#app-notice { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:250; max-width:calc(100vw - 32px); background:#15253a; border-radius:8px; font-size:13px; color:#e1e6ed; }
#app-notice:not(:empty) { padding:12px 18px; }
@media(max-width:760px) { .immersive #immersive-toggle::after { content:'退出'; } }
.journey-endpoints { display:grid; grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr); align-items:center; gap:4px; }
.journey-endpoint { position:relative; min-width:0; min-height:66px; padding:10px 19px 10px 10px; text-align:left; border:1px solid var(--panel-border); border-radius:8px; background:#101623; }
.journey-endpoint small { display:block; color:var(--ink-dim); font-size:10px; margin-bottom:6px; }
.journey-endpoint-value { color:var(--ink); font-size:13px; display:block; overflow-wrap:anywhere; line-height:1.5; }
.journey-chevron { position:absolute; right:7px; top:29px; color:var(--ink-dim); }
.journey-endpoint:hover { border-color:#83bfd0; }
.journey-endpoint:focus-visible,#journey-swap:focus-visible,.journey-choice:focus-visible { outline:2px solid #9fdae5; outline-offset:2px; }
#journey-swap { width:30px; min-height:44px; color:#9bcbd5; font-size:20px; }
.journey-estimate { font-size:11px; line-height:1.7; margin:9px 0 3px; color:#a9dce6; font-variant-numeric:tabular-nums; }
.journey-endpoints button:disabled { cursor:default; opacity:.5; }
.journey-picker { width:420px; max-width:calc(100vw - 28px); padding:22px; background:#0e131d; border-color:#343f50; }
.journey-picker-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }
.journey-picker-heading p { font-size:11px; color:#9eafbf; margin-bottom:5px; }
.journey-picker-heading h2 { font-size:22px; font-weight:500; letter-spacing:.04em; }
#journey-picker-close { width:36px; height:36px; color:#bac8d6; font-size:16px; }
.journey-search { display:block; }
.journey-search > span { font-size:12px; color:#b4c2d0; }
.journey-search input { display:block; width:100%; margin-top:7px; padding:11px 12px; min-height:44px; font-size:14px; color:#edf1f6; border:1px solid #374253; border-radius:7px; background:#161d28; }
.journey-picker-context { margin:15px 0 7px; color:#a9d5df; font-size:12px; line-height:1.7; }
.journey-options { max-height:min(420px,48dvh); overflow-y:auto; overscroll-behavior:contain; padding:3px; margin:0 -3px; scrollbar-width:thin; }
.journey-choice { display:flex; align-items:center; gap:12px; width:100%; min-height:68px; padding:9px 8px; text-align:left; border-radius:7px; color:#e6edf5; }
.journey-choice:hover,.journey-choice:focus-visible { background:#1c2733; }
.journey-choice[aria-selected="true"] { background:#1a2b35; }
.journey-choice:disabled { opacity:.42; cursor:default; }
.journey-body-preview { flex:none; width:36px; height:36px; border-radius:50%; background-size:auto 100%; background-position:center; box-shadow:inset -8px -3px 12px rgba(0,0,0,.65),inset 2px 2px 4px rgba(255,255,255,.15); }
.journey-choice-copy { min-width:0; flex:1; }
.journey-choice-copy strong { font-size:14px; font-weight:500; }
.journey-choice-copy small { display:block; color:#a2b1c1; font-size:11px; margin-top:5px; line-height:1.5; }
.journey-choice-time { flex:none; max-width:108px; font-size:11px; color:#c1e2e9; font-variant-numeric:tabular-nums; text-align:right; line-height:1.7; }
.journey-picker-note,#journey-empty { margin-top:13px; color:#9eafbf; font-size:11px; line-height:1.7; }
#journey-readout select { color:#d8e2ef; background:#142034; border:1px solid #344459; border-radius:5px; padding:6px; }
#journey-readout { position:absolute; left:50%; bottom:25px; transform:translateX(-50%); z-index:18; width:360px; max-width:calc(100vw - 28px); padding:16px; background:#0c1423ed; border:1px solid #395969; border-radius:12px; box-sizing:border-box; display:grid; gap:8px; color:#b9e9f1; }
#journey-readout strong { font-size:14px; font-weight:500; }#journey-time { font:12px monospace; color:#c5cedb; font-variant-numeric:tabular-nums; }
#journey-readout progress { width:100%; height:5px; accent-color:#a5e2ee; }
#journey-distance { font-size:11px; color:#a8c6d0; font-variant-numeric:tabular-nums; }
#journey-readout > div { display:flex; align-items:center; gap:7px; }#journey-readout button { padding:7px 9px; border:1px solid #344459; border-radius:5px; color:#c5cedb; font-size:11px; background:#182437; cursor:pointer; }
#journey-readout small { font-size:10px; color:#8d9db4; }
body:has(#journey-readout:not(.hidden)) #observation-hud { display:none; }
.deep-space #journey-readout { display:none; }
.body-card-open #observation-hud { display:none; }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition-duration:0.01ms!important; scroll-behavior:auto!important; } }
@media(max-width:760px) { #journey-readout { bottom:80px; } .controls-expanded #journey-readout { display:none; } #journey-readout select { min-width:0; } }
@media(max-width:420px) { .journey-picker { padding:16px; } .journey-choice { gap:9px; padding:8px 4px; } .journey-choice-time { max-width:88px; } .journey-body-preview { width:32px; height:32px; } }
@media(max-width:760px) { #target-visibility { width: calc(100vw - 24px); max-width: none; } .controls-expanded #target-visibility { display: none; } }
@media(max-width:1100px) { .audio-btn span { display:none; } .audio-ctl { gap:6px; } #topbar .utility-btn { font-size:11px; padding:7px; } }
@media(max-width:760px) { #topbar { flex-wrap:wrap; height:auto; min-height:88px; gap:4px; padding:8px 12px; } #nav { order:3; width:100%; justify-content:center; } #topbar .brand { font-size:17px; } .audio-ctl { margin-left:auto; } #immersive-toggle { font-size:0!important; } #immersive-toggle::after { content:'沉浸'; font-size:11px; } .utility-dialog { padding:18px; } }

/* Shared learning content: quiet reading layers beside the existing observation. */
.gallery-learning { max-width:1400px; margin:0 auto 26px; }
.section-learning { padding:18px 22px; background:#0c1323; border-radius:10px; color:#dce5ef; }
.section-learning summary,.learning-detail summary,.image-reading summary { cursor:pointer; font-size:15px; line-height:1.7; color:#dce5ef; }
.section-learning summary:focus-visible,.learning-detail summary:focus-visible,.image-reading summary:focus-visible,.learning-target:focus-visible,.learning-filters button:focus-visible { outline:2px solid #d8bd86; outline-offset:4px; }
.learning-intro,.learning-note { color:#aab9ca; font-size:13px; line-height:1.8; margin-top:14px; }
.learning-questions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-top:22px; }
.learning-questions h3 { font-size:16px; font-weight:500; line-height:1.6; margin-bottom:10px; }
.learning-questions p,.learning-detail p,.learning-detail li,.image-reading li { font-size:14px; line-height:1.9; color:#bccbdb; overflow-wrap:anywhere; }
.learning-target { display:inline-block; font:inherit; font-size:13px; line-height:1.7; color:#ddc48e; padding:8px 10px; min-height:40px; cursor:pointer; text-align:left; }
.learning-questions .learning-target { margin:10px 0 0 -10px; }
.learning-target:hover { color:#f3deb2; text-decoration:underline; text-underline-offset:4px; }
.learning-detail { margin-top:20px; padding-top:8px; }
.learning-detail p,.learning-detail ul { margin-top:13px; }
.learning-detail ul,.image-reading ul { padding-left:20px; }
.learning-detail li+li,.image-reading li+li { margin-top:8px; }
.learning-related { margin:16px 0 8px; }
.learning-related p { color:#9fb0c4; font-size:12px; }
.learning-related .learning-target { margin-left:-10px; margin-right:12px; }
.learning-detail > a { color:#d8bd86; font-size:13px; line-height:1.8; text-underline-offset:4px; }
.learning-sources { display:flex; gap:12px; flex-wrap:wrap; }.learning-sources a { color:#b9cbdc; font-size:12px; }
.image-reading { margin:14px 26px 0; background:#101a2a; padding:12px 16px; border-radius:8px; }
.image-reading ul { margin-top:12px; }
.learning-filters { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.learning-filters button { padding:10px 14px; font:inherit; font-size:13px; color:#b9c8d9; background:#101929; border-radius:6px; min-height:42px; }
.learning-filters button[aria-pressed="true"] { background:#26384a; color:#f1e0b9; }
.learning-group-count { font-size:12px; margin-top:10px; color:#93a6ba; }
.ds-card[hidden] { display:none; }
.learning-table-wrap { max-width:100%; overflow-x:auto; margin-top:24px; }
.learning-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:13px; line-height:1.8; color:#c8d6e5; text-align:left; }
.learning-table caption { text-align:left; font-size:16px; margin-bottom:14px; color:#e3eaf2; }
.learning-table th,.learning-table td { padding:12px 10px; vertical-align:top; overflow-wrap:anywhere; background:#152034; border:2px solid #0c1323; }
.learning-table th { font-weight:500; }.learning-table th:first-child { width:20%; }.learning-table .learning-target { padding:0; }
#card-learning .learning-table { font-size:12px; }#card-learning .learning-table th,#card-learning .learning-table td { padding:8px 5px; }
.solar-learning .section-learning { padding:4px 0 14px; background:none; }.solar-learning .learning-questions { grid-template-columns:1fr;gap:20px; }
@media(max-width:760px) { .learning-questions { grid-template-columns:1fr; gap:24px; }.section-learning { padding:16px; }.gallery-learning { margin-bottom:20px; }.learning-filters { gap:6px; }.learning-filters button { padding:9px 10px; }.image-reading { margin:12px 16px 0; padding:12px; }#body-card:not(.expanded) #card-learning { display:none; }.learning-table th,.learning-table td { padding:10px 6px; } }
.comparison-explanation { margin:14px 0 22px; padding:14px 16px; background:#132134; border-radius:7px; line-height:1.9!important; color:#c8d9e7!important; font-size:14px!important; }
#compare-questions { margin-top:18px; }#compare-questions button[hidden] { display:none; }
#flight-events .flight-discovery { color:#b3c5d6; font-size:12px; line-height:1.8; margin:6px 0 14px; padding-left:6px; }
