:root {
  /* 配色：深黑背景 + 一种核心强调色 + 两档灰色文字 (严格满足 WCAG AA >= 4.5:1 对比度) */
  --bg: #030712;
  --bg-soft: #0b1120;
  --panel: #0d1424;
  --panel-hover: #121c32;
  --panel-solid: #0d1424;
  --line: rgba(255, 255, 255, 0.08);
  --line-subtle: rgba(255, 255, 255, 0.06);
  --line-hover: rgba(56, 189, 248, 0.4);

  --fg: #f3f4f6;       /* 主文本 (白灰, 对比度 ~16:1) */
  --fg-dim: #9ca3af;   /* 第一档灰色文本 (次要信息, 对比度 ~7.3:1) */
  --fg-muted: #8b949e; /* 第二档灰色文本 (辅助说明, 对比度 ~5.6:1) */

  --accent: #38bdf8;   /* 唯一强调色：深空天蓝 (对比度 ~9.3:1) */
  --accent-hover: #7dd3fc;
  --ok: #34d399;
  --warn: #f87171;

  /* 统一间距阶梯 (4 / 8 / 16 / 24 / 48 / 96) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 48px;
  --space-6: 96px;

  /* 统一尺寸与圆角 */
  --r: 8px;
  --maxw: 1200px;
  --blur: 16px;

  /* 动效：<=200ms */
  --transition: 0.18s ease;

  /* 一套字体栈 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
  font: 15px/1.75 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background canvas for starfield */
#cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ---------- Top Slim Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--line-subtle);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: var(--space-2);
  color: var(--fg);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-text {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
  color: var(--fg);
}
.brand-sub {
  font-weight: 400;
  font-size: 12px;
  color: var(--fg-muted);
  border-left: 1px solid var(--line);
  padding-left: var(--space-2);
  margin-left: var(--space-1);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}
.nav-link, .nav-dropdown-btn {
  padding: 8px 14px;
  min-height: 44px;
  border-radius: var(--r);
  color: var(--fg-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}
.nav-link:hover, .nav-dropdown-btn:hover,
.nav-item:hover .nav-dropdown-btn,
.nav-item.open .nav-dropdown-btn {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.nav-link[aria-current="page"],
.nav-dropdown-btn[aria-current="page"] {
  color: var(--fg);
  background: transparent;
  font-weight: 600;
  position: relative;
}
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.nav-dropdown-btn[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 14px;
  right: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.nav-arrow {
  transition: transform var(--transition);
}
.nav-item.open .nav-arrow {
  transform: rotate(180deg);
}

/* Nav Item with Dropdown */
.nav-item {
  position: relative;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--space-1);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  height: 24px;
  background: transparent;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-dropdown a {
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.nav-dropdown a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}
.nav-dropdown a[aria-current="page"] {
  color: var(--accent);
  background: transparent;
  font-weight: 600;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 840px) {
  .nav-toggle { display: inline-flex; }
  .brand-sub { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: var(--space-3) var(--space-4);
    gap: var(--space-1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
  }
  .nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-dropdown {
    position: static;
    transform: none;
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    border: none;
    padding-left: var(--space-4);
    box-shadow: none;
    transition: none;
  }
  .nav-dropdown::before {
    display: none;
  }
  .nav-link, .nav-dropdown-btn {
    padding: 12px 16px;
    min-height: 44px;
    width: 100%;
    justify-content: flex-start;
  }
  .nav-link[aria-current="page"]::after,
  .nav-dropdown-btn[aria-current="page"]::after {
    left: 16px;
    width: 24px;
    right: auto;
    bottom: 8px;
  }
}

/* ---------- Hero Section ---------- */
.hero-section {
  padding: var(--space-6) 0 calc(var(--space-6) + 6vh);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: calc(100vh - 60px);
  justify-content: center;
  box-sizing: border-box;
}
.hero-content {
  max-width: 820px;
}
.hero-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.hero-lead {
  margin: 0 0 var(--space-4);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 780px;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 44px;
  border-radius: var(--r);
  background: var(--accent);
  color: #030712;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background 150ms ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #030712;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}
.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--fg-dim);
  font-size: 14px;
  text-decoration: none;
  transition: color 150ms ease;
}
.hero-secondary-link .arrow {
  display: inline-block;
  transition: transform 150ms ease;
}
.hero-secondary-link:hover,
.hero-secondary-link:focus-visible {
  color: var(--accent);
  text-decoration: none;
}
.hero-secondary-link:hover .arrow,
.hero-secondary-link:focus-visible .arrow {
  transform: translateX(3px);
}

/* ---------- Flagship Section (Minimalist Unboxed) ---------- */
.flagship-section {
  padding: var(--space-6) 0 var(--space-4);
}
.section-title,
.flagship-section .section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-4);
  padding-bottom: 0;
  border-bottom: none;
  display: block;
}
.section-title::before,
.flagship-section .section-title::before {
  display: none;
}

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1024px) {
  .flagship-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}
@media (max-width: 640px) {
  .flagship-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.flagship-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: var(--r);
  padding: var(--space-2) 0;
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
  transition: color 180ms ease;
}
.flagship-swatch {
  width: 24px;
  height: 2px;
  border-radius: 1px;
  margin-bottom: var(--space-3);
  transition: width 180ms ease;
}
.swatch-mars { background: #ea580c; }
.swatch-jwst { background: #0284c7; }
.swatch-saturn { background: #ca8a04; }
.swatch-voyager { background: #38bdf8; }

.flagship-body {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.flagship-name {
  margin: 0 0 var(--space-2);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  transition: color 180ms ease;
}
.flagship-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-dim);
}

.flagship-card:hover .flagship-swatch,
.flagship-card:focus-visible .flagship-swatch {
  width: 48px;
}
.flagship-card:hover .flagship-name,
.flagship-card:focus-visible .flagship-name {
  color: var(--fg);
}

/* ---------- Typography & Headings ---------- */
h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.25;
  margin: 32px 0 8px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 44px 0 var(--space-4);
  padding: 0;
  border: none;
  display: block;
}
h2::before {
  display: none !important;
}
h3 {
  font-size: 16.5px;
  margin: 18px 0 8px;
  font-weight: 600;
  color: var(--fg);
}
.lede {
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 70ch;
}
.lede-link {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  color: var(--fg-muted);
  margin-left: 10px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 4px;
  transition: color var(--transition);
}
.lede-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Ordered and Unordered Lists */
ol {
  padding-left: 1.4em;
  margin: 16px 0 24px;
  line-height: 1.75;
  max-width: 70ch;
}
ol li {
  margin-bottom: 12px;
  color: var(--fg);
}
ol li::marker {
  color: var(--fg-muted);
  font-weight: 500;
}
ul {
  padding-left: 1.4em;
  margin: 16px 0 24px;
  line-height: 1.75;
  max-width: 70ch;
}
ul li {
  margin-bottom: 10px;
  color: var(--fg-dim);
}
ul li::marker {
  color: var(--fg-muted);
}

/* Long-form Documentation Layout (<= 70ch) */
.doc-wrap {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.doc-wrap p,
.doc-wrap ol,
.doc-wrap ul,
.doc-wrap .lede,
.doc-wrap .notice,
.doc-wrap .table-container,
.doc-wrap details {
  max-width: 70ch;
}

/* Technical Details Dropdown (Foldable) */
details.tech-notes,
details.doc-details {
  margin: 20px 0 24px;
  border-top: 1px solid var(--line-subtle);
  padding-top: 8px;
  max-width: 70ch;
}
details.tech-notes summary,
details.doc-details summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--fg-muted);
  cursor: pointer;
  min-height: 44px;
  user-select: none;
  transition: color 150ms ease;
}
details.tech-notes summary::-webkit-details-marker,
details.doc-details summary::-webkit-details-marker {
  display: none;
}
details.tech-notes summary::before,
details.doc-details summary::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 180ms ease;
  margin-right: 2px;
}
details.tech-notes[open] summary::before,
details.doc-details[open] summary::before {
  transform: rotate(45deg);
}
details.tech-notes summary:hover,
details.doc-details summary:hover {
  color: var(--fg);
}
details.tech-notes summary:focus-visible,
details.doc-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
details.tech-notes p,
details.doc-details p {
  margin: 8px 0 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-dim);
}

/* Single Primary Action Row (extension.html) */
.download-action-row {
  margin: 28px 0 36px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 70ch;
}
.download-info {
  max-width: 460px;
}
.download-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.download-desc {
  font-size: 13.5px;
  color: var(--fg-dim);
  line-height: 1.6;
}
.note-dim {
  color: var(--fg-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 12px 0 24px;
  max-width: 70ch;
}



/* ---------- Banner & Callouts (Unboxed Minimalist) ---------- */
.notice {
  background: transparent;
  border: none;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  padding: 4px 0 4px 16px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-dim);
  box-shadow: none;
  max-width: 70ch;
}
.notice strong { color: var(--fg); }
.notice a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }


/* ---------- Cards & Grids ---------- */
.grid {
  display: grid;
  gap: 16px;
}
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ---------- Minimalist Entry Cards & Lists (Phase 3) ---------- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5) var(--space-4);
  margin-top: var(--space-4);
  min-height: 400px;
  contain: layout;
}
@media (max-width: 640px) {
  .entry-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.entry-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line-subtle);
  padding: var(--space-3) 0 var(--space-2);
  border-radius: 0;
  box-shadow: none;
  transition: color 180ms ease;
  position: relative;
}

.entry-swatch {
  width: 24px;
  height: 2px;
  border-radius: 1px;
  margin-bottom: var(--space-2);
  transition: width 180ms ease;
  background: var(--accent);
}
.swatch-planet { background: var(--accent); }
.swatch-moon { background: var(--fg-muted); }
.swatch-dwarf { background: #ca8a04; }
.swatch-star { background: #eab308; }
.swatch-smallbody { background: #ea580c; }
.swatch-mission { background: var(--accent); }

.entry-card:hover .entry-swatch,
.entry-card:focus-within .entry-swatch {
  width: 48px;
}

.entry-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.entry-status-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--fg-muted);
  border-left: 1px solid var(--line);
  padding-left: 8px;
  margin-left: 4px;
  vertical-align: middle;
}

.entry-en {
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 400;
  font-family: var(--font-sans);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.entry-desc {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.6;
}

.entry-details {
  margin: var(--space-2) 0 0;
}
.entry-details summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  cursor: pointer;
  min-height: 44px;
  user-select: none;
  transition: color 150ms ease;
  outline-offset: 3px;
}
.entry-details summary::-webkit-details-marker {
  display: none;
}
.entry-details summary::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 180ms ease;
  margin-right: 2px;
}
.entry-details[open] summary::before {
  transform: rotate(45deg);
}
.entry-details summary:hover {
  color: var(--fg);
}
.entry-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.entry-details p {
  margin: 0 0 var(--space-2);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: var(--space-3);
}
.entry-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  transition: color var(--transition);
}
.entry-action-primary:hover {
  color: var(--accent-hover);
  text-decoration: none;
}
.entry-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-dim);
  font-size: 13.5px;
  text-decoration: none;
  min-height: 44px;
  transition: color var(--transition);
}
.entry-action-secondary:hover {
  color: var(--accent);
  text-decoration: none;
}
.entry-action-source {
  display: inline-flex;
  align-items: center;
  color: var(--fg-muted);
  font-size: 12.5px;
  text-decoration: none;
  min-height: 44px;
  transition: color var(--transition);
}
.entry-action-source:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  border: 1px solid transparent;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: #030712;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background 150ms ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #030712;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}
.btn-secondary {
  background: rgba(15, 23, 42, 0.7);
  color: var(--fg);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: var(--accent);
  color: var(--fg);
  transform: translateY(-2px);
  text-decoration: none;
}
/* ---------- Chips & Filter Controls ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--line-subtle);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  color: var(--fg-dim);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--fg);
  background: rgba(56, 189, 248, 0.1);
}
.chip[aria-pressed="true"] {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--fg);
  box-shadow: none;
}
.chip .en {
  color: var(--fg-muted);
  font-size: 12px;
  margin-left: 4px;
}
.chip[aria-pressed="true"] .en {
  color: var(--accent);
}

/* ---------- Status Badges (Unboxed Minimalist) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  line-height: 1.4;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line-subtle);
  color: var(--fg-muted);
  background: transparent;
  vertical-align: middle;
  margin-left: 6px;
  white-space: nowrap;
}
.badge.std,
.badge.common,
.badge.code,
.badge.keep,
.badge.en-left,
.badge.new {
  color: var(--fg-muted);
  border-color: var(--line-subtle);
  background: transparent;
  box-shadow: none;
}

/* ---------- 3D Stage / Iframe Viewport (视窗为主角) ---------- */
.stage {
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: none;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.stage-viewport {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 480px;
  height: clamp(480px, calc(100vh - 330px), 880px);
  background: #000;
}
.stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.stage-bar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--line-subtle);
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13.5px;
  color: var(--fg-dim);
}
.stage-bar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--fg-muted);
  font-size: 12.5px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}
.stage-bar a:hover {
  color: var(--fg);
}
.btn-fs {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  border-radius: 6px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  box-shadow: none;
}
.btn-fs:hover {
  border-color: var(--line-hover);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}
.btn-fs:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .stage {
    height: auto;
  }
  .stage-viewport {
    height: 60vh;
    min-height: 380px;
  }
}

/* ---------- Explore Layout & Full-Width Section ---------- */
.explore-layout {
  display: block;
  width: 100%;
  position: relative;
}
.stage-section {
  width: 100%;
}

/* Preset Bar Drawer Button (天体列表快捷唤出按钮) */
.btn-drawer-toggle,
.preset-drawer-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line-subtle);
  border-radius: var(--r);
  padding: 6px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  margin-right: 2px;
}
.btn-drawer-toggle:hover,
.preset-drawer-btn:hover {
  border-color: var(--line-hover);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}
.btn-drawer-toggle:focus-visible,
.preset-drawer-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-drawer-toggle[aria-expanded="true"],
.preset-drawer-btn[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--fg);
  background: rgba(56, 189, 248, 0.08);
}
.drawer-toggle-icon {
  font-size: 14px;
  line-height: 1;
}

/* ---------- Overlay Drawer (覆盖式抽屉) ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
body.drawer-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.explore-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--line);
  z-index: 950;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.7);
}
body.drawer-open .explore-drawer {
  transform: translateX(0);
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .drawer-backdrop { transition: none !important; }
  .explore-drawer { transition: none !important; }
}

@media (max-width: 640px) {
  .explore-drawer {
    width: 100%;
    max-width: 100%;
    border-right: none;
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-subtle);
  flex-shrink: 0;
}
.drawer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.drawer-close-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition);
}
.drawer-close-btn:hover {
  color: var(--fg);
  border-color: var(--line);
}
.drawer-close-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.drawer-search-wrap {
  position: relative;
  padding: 12px 14px 8px;
  flex-shrink: 0;
}
.drawer-search-wrap input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  padding: 10px 14px;
  font: inherit;
  font-size: 13.5px;
  min-height: 44px;
  transition: border-color var(--transition);
}
.drawer-search-wrap input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}

.drawer-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 10px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* Category accordions inside drawer: no outer box, subtle bottom rule */
.side-cat-group {
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid var(--line-subtle);
  border-radius: 0;
  background: transparent;
}
.side-cat-group[open] {
  border-color: var(--line-subtle);
  background: transparent;
}
.side-cat-summary {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  min-height: 44px;
  transition: background 0.15s, color 0.15s;
}
.side-cat-summary::-webkit-details-marker { display: none; }
.side-cat-summary:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
}
.side-cat-summary::after {
  content: '▾';
  font-size: 11px;
  color: var(--fg-muted);
  transition: transform 0.18s ease;
}
.side-cat-group[open] .side-cat-summary::after {
  transform: rotate(180deg);
  color: var(--accent);
}
.side-cat-count {
  font-size: 11px;
  padding: 0 4px;
  color: var(--fg-muted);
  background: transparent;
  margin-left: auto;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.side-cat-group .list {
  padding: 2px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-top: none;
}
.side-cat-group .list button {
  font-size: 13.5px;
  padding: 8px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0;
  color: var(--fg-dim);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.side-cat-group .list button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
}
.side-cat-group .list button[aria-current="true"] {
  background: rgba(56, 189, 248, 0.08);
  color: var(--fg);
  border-left-color: var(--accent);
  box-shadow: none;
  font-weight: 500;
}
.side-cat-group .list button .en {
  color: var(--fg-muted);
  font-size: 11.5px;
  margin-left: auto;
}
.side-cat-group .list button[aria-current="true"] .en {
  color: var(--accent);
}

/* In-Page Immersive Mode */
body.stage-immersive-mode {
  overflow: hidden !important;
}
body.stage-immersive-mode .site-header,
body.stage-immersive-mode footer,
body.stage-immersive-mode .explore-header,
body.stage-immersive-mode .preset-bar-wrap,
body.stage-immersive-mode .user-guide-tip,
body.stage-immersive-mode .side,
body.stage-immersive-mode .side-mobile-toggle-bar,
body.stage-immersive-mode .explore-drawer,
body.stage-immersive-mode .drawer-backdrop,
body.stage-immersive-mode .btn-drawer-toggle,
body.stage-immersive-mode .theater-narrative-panel,
body.stage-immersive-mode .sop-tip-box,
body.stage-immersive-mode .tip-card-box,
body.stage-immersive-mode .guided-section,
body.stage-immersive-mode #cosmic-canvas {
  display: none !important;
}
body.stage-immersive-mode .wrap {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.stage-immersive-mode .explore-layout {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.stage-immersive-mode .stage-section {
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.stage-immersive-mode .stage {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: #000 !important;
}
body.stage-immersive-mode .stage-viewport {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
}
body.stage-immersive-mode .stage iframe {
  width: 100vw !important;
  height: 100vh !important;
  border: none !important;
}
body.stage-immersive-mode .user-guide-tip {
  display: none !important;
}
body.stage-immersive-mode .stage-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100000 !important;
  background: rgba(3, 7, 18, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 8px 16px !important;
  transform: translateY(calc(100% - 6px));
  transition: transform 0.25s ease !important;
}
body.stage-immersive-mode .stage-bar:hover,
body.stage-immersive-mode .stage-bar:focus-within {
  transform: translateY(0) !important;
}
.side h3 {
  font-size: 12.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 22px 0 10px;
}
/* ---------- Scale Comparison List (Unboxed) ---------- */
.scale {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 14px;
}
.scale li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-bottom: 1px solid var(--line-subtle);
  border-radius: 0;
}
.bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: none;
}

/* ---------- Tables & Responsive Wrapper (Unboxed) ---------- */
.table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: 0;
  border: none;
  background: transparent;
}
.table-container table {
  margin: 0;
  border: 0;
  min-width: 560px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  border: none;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-subtle);
  vertical-align: middle;
}
th {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
td.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--fg-muted);
}

@media (max-width: 640px) {
  .col-id {
    display: none !important;
  }
}

/* ---------- Tab Navigation (Phase 3 Underline Style) ---------- */
.tab-nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line-subtle);
  margin: 20px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--fg-dim);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 2px 14px;
  min-height: 44px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  font-family: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.tab-btn:hover {
  color: var(--fg);
}
.tab-btn[aria-pressed="true"] {
  color: var(--fg);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ---------- Glossary Overview & Status ---------- */
.glossary-overview {
  margin: 18px 0 20px;
  font-size: 14px;
  color: var(--fg-dim);
  background: transparent;
  border: none;
  padding: 0;
}
.overview-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.overview-details {
  display: inline-block;
  font-size: 13px;
}
.overview-details summary {
  color: var(--fg-muted);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.overview-details summary:hover {
  color: var(--accent);
}
.overview-content {
  margin-top: 10px;
  padding: 12px 16px;
  border-left: 2px solid var(--line);
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.6;
}
.status-text {
  font-size: 12.5px;
  color: var(--fg-muted);
}
.status-text.std { color: var(--fg-dim); }
.status-text.common { color: var(--fg-dim); }
.status-text.code { color: var(--fg-muted); }

/* ---------- Search & Forms ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}
input[type="search"] {
  flex: 1 1 260px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  padding: 10px 14px;
  font: inherit;
  font-size: 14.5px;
  min-height: 44px;
  box-sizing: border-box;
  transition: border-color var(--transition);
}
input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: none;
}
.select-control {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color var(--transition);
}
.select-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: none;
}
label.opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-dim);
  cursor: pointer;
}
label.opt input {
  accent-color: var(--accent);
}

/* ---------- Key-Value Lists & Kbd (Unboxed Minimalist) ---------- */
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  font-size: 14px;
  line-height: 1.65;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line-subtle);
  border-radius: 0;
  max-width: 100%;
}
.kv dt { color: var(--fg); font-weight: 600; white-space: nowrap; }
.kv dd { margin: 0; color: var(--fg-dim); min-width: 0; overflow-wrap: break-word; }
.kv dd a,
.doc-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 640px) {
  .kv {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
pre {
  background: transparent;
  border: none;
  border-left: 2px solid var(--line);
  padding: 10px 0 10px 16px;
  margin: 16px 0;
  max-width: 100%;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-dim);
}
pre code {
  word-break: normal;
  overflow-wrap: normal;
  background: transparent;
  padding: 0;
}

kbd {
  display: inline-block;
  min-width: 26px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.6);
  padding: 2px 8px;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--fg);
}

/* ---------- Hero Section Styles ---------- */
.hero {
  padding: 44px 0 16px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

/* ==========================================================================
   Phase 5: Feature Pages Unified Minimalist Template
   (saturn.html, mars.html, jwst.html, voyager-1.html)
   ========================================================================== */

.feature-page {
  --page-tint: var(--accent);
}

/* Feature Section Headings (首页「旗舰目标」同款小号灰色标记，去除蓝色竖条与下划线) */
.feature-page h2,
.feature-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 48px 0 var(--space-4);
  padding: 0;
  border: none;
  display: block;
}
.feature-page h2::before,
.feature-heading::before {
  display: none !important;
}

/* Feature Hero Header */
.feature-hero {
  padding: 40px 0 20px;
}
.feature-kicker {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
  background: transparent;
  border: none;
  padding: 0;
}
.feature-title {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 14px;
}
.feature-lede {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.65;
  max-width: 40em;
  text-wrap: balance;
  margin: 0 0 16px;
}

/* Feature Stats Row (无盒子卡片，低对比度顶细线，纯白大字，灰色小字，手机端 2x2) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 28px;
  margin: 24px 0 36px;
}
.stat-col {
  border-top: 1px solid var(--line-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.stat-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted);
}
.stat-desc {
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}
@media (max-width: 768px) {
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 18px;
  }
}
@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 14px;
  }
}

/* Feature View Tabs (文字标签，当前项白色+2px下划线，其余灰色，横向滚动不换行，点击区域 >= 44px) */
.view-tabs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 4px 14px;
  margin: 16px 0 20px;
  padding: 4px 0 2px;
}
.view-tabs::-webkit-scrollbar {
  display: none;
}
.view-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--fg-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 0 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  box-shadow: none !important;
}
.view-tab-btn:hover {
  color: var(--fg);
}
.view-tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.view-tab-btn[aria-pressed="true"] {
  color: var(--fg);
  font-weight: 600;
  border-bottom-color: var(--accent);
  background: transparent !important;
}

/* Feature 3D Stage (宽度满内容区，高度 >= 60vh / 55vh，无厚边框发光，圆角一致) */
.feature-stage {
  position: relative;
  width: 100%;
  margin: 16px 0 36px;
  border: 1px solid var(--line-subtle);
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}
.feature-stage .stage-viewport {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 480px;
  height: clamp(480px, 62vh, 840px);
  background: #000;
}
@media (max-width: 768px) {
  .feature-stage .stage-viewport {
    min-height: 360px;
    height: 55vh;
  }
}
.feature-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* Feature Stage Bar (视窗下方说明行降为一行灰色小字) */
.feature-stage-bar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid var(--line-subtle);
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px;
  color: var(--fg-muted);
}
.feature-stage-bar strong {
  color: var(--fg-dim);
  font-weight: 600;
}
.feature-stage-bar a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  color: var(--fg-muted);
  font-size: 12.5px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.feature-stage-bar a:hover {
  color: var(--fg);
}

/* Feature Content Columns (解读区无盒子纯文字块，左上 24px*2px 主题色指示线，小标题加粗纯白，正文灰色) */
.col-grid {
  display: grid;
  gap: 32px 36px;
  margin: 20px 0 40px;
}
.col-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.col-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.col-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .col-grid.cols-3,
  .col-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .col-grid.cols-2,
  .col-grid.cols-3,
  .col-grid.cols-4 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.text-block {
  display: flex;
  flex-direction: column;
}
.text-block-swatch {
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: var(--page-tint, var(--accent));
  margin-bottom: 12px;
}
.text-block-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
  margin: 0 0 8px;
}
.text-block-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-left: 6px;
}
.text-block-content {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-dim);
  margin: 0;
}

/* Feature Narrative & Theater Row */
.feature-narrative {
  max-width: 70ch;
  line-height: 1.7;
  color: var(--fg-dim);
  font-size: 15px;
  margin: 0 0 24px;
}
.theater-launch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 18px 0;
  margin: 12px 0 36px;
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}
.theater-launch-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.theater-launch-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.btn-theater-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #030712 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  min-height: 44px;
  white-space: nowrap;
  box-shadow: none !important;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn-theater-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.btn-theater-primary:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* Feature Page Table & Scale list Unboxing */
.feature-page .table-container {
  border: none;
  background: transparent;
  box-shadow: none;
  margin: 16px 0 36px;
  padding: 0;
}
.feature-page table {
  border-collapse: collapse;
}
.feature-page th {
  border-bottom: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  background: transparent;
}
.feature-page td {
  border-bottom: 1px solid var(--line-subtle);
  color: var(--fg-dim);
  font-size: 13.5px;
  padding: 12px 14px;
  background: transparent;
}
.feature-page .scale li {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line-subtle);
  border-radius: 0;
  padding: 12px 0;
}

/* Feature Cross-links (探索其他旗舰特写：3列响应式网格，无盒子发光，短线悬停延长) */
.feature-more-grid {
  margin: 16px 0 44px;
}
@media (min-width: 1025px) {
  .feature-more-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Feature Attribution & Source Section (降噪灰色小字，链接hover强调) */
.feature-source {
  margin: 44px 0 24px;
  border-top: 1px solid var(--line-subtle);
  padding-top: 14px;
}
.feature-src {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 8px 0;
}
.feature-src a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
  display: inline-block;
  padding: 12px 2px;
  margin: -12px -2px;
}
.feature-src a:hover {
  color: var(--accent);
}
.feature-src strong {
  color: var(--fg-dim);
  font-weight: 600;
}
.feature-src code {
  color: var(--fg-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11.5px;
}

/* ---------- Minimalist Footer ---------- */
footer, .site-footer {
  margin-top: var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line-subtle);
  background: rgba(3, 7, 18, 0.6);
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer-wrap {
  text-align: center;
}
.footer-text {
  margin: 0;
  color: var(--fg-muted);
}
.footer-text a {
  color: var(--fg-dim);
  text-decoration: underline;
  display: inline-block;
  padding: 12px 2px;
  margin: -12px -2px;
}
.footer-text a:hover {
  color: var(--accent);
}

.src { font-size: 12.5px; color: var(--fg-dim); }
.src code { font-size: 12px; color: #bae6fd; }
.empty { color: var(--fg-muted); font-style: italic; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 3D Stage Loading & Error Recovery ---------- */
.stage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 10;
  padding: 24px;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.stage-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.stage-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
  animation: stagePulse 1.4s ease-in-out infinite;
}
@keyframes stagePulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .stage-overlay { transition: none !important; }
  .stage-pulse-dot { animation: none !important; }
}
.stage-loading-text {
  font-size: 13.5px;
  color: var(--fg-dim);
  letter-spacing: 0.4px;
}
.stage-recovery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 440px;
  text-align: center;
}
.stage-error-text {
  font-size: 13.5px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.stage-error-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-stage-retry {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 6px 16px;
  border-radius: var(--r);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition);
}
.btn-stage-retry:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.stage-link-official {
  color: var(--accent);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Guided Exploration Cards (极简无框排版) ---------- */
.guided-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-subtle);
}
.guided-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin: 18px 0 28px;
}
@media (max-width: 900px) {
  .guided-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}
.guided-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: none;
}
.guided-card:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}
.guided-swatch {
  width: 24px;
  height: 2px;
  margin-bottom: 12px;
  border-radius: 1px;
}
.guided-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.guided-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
}
.guided-tag {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.guided-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1 1 auto;
}
.guided-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}
.guided-action-primary {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.guided-action-primary:hover {
  color: var(--fg);
}
.guided-action-secondary {
  color: var(--fg-muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.15s ease;
}
.guided-action-secondary:hover {
  color: var(--fg);
}

/* ---------- Mobile & Responsive Overrides ---------- */
@media (max-width: 900px) {
  .hero-container {
    padding: 36px 0 20px;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hero-primary {
    width: 100%;
    text-align: center;
    align-items: center;
  }
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .big { grid-template-columns: 1fr; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .flagship-grid { grid-template-columns: 1fr; }
  .guided-grid { grid-template-columns: 1fr; }
  .stage-viewport { height: 60vh; min-height: 380px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
}

@media (max-width: 480px) {
  .stage-viewport { height: 60vh; min-height: 380px; }
  .stage-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- Accessibility: Prefers Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- Explore Page & Story Theater Styles ---------- */

  /* ---------- Streamlined Header ---------- */
  .explore-header {
    margin: 16px 0 12px;
    padding: 0;
  }
  .explore-page-title {
    margin: 0 0 6px;
    font-size: 32px;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.5px;
    line-height: 1.25;
  }
  .explore-page-sub {
    margin: 0;
    font-size: 14px;
    color: var(--fg-muted);
    line-height: 1.5;
  }

  /* Distinct UI state: In theater mode, hide roam header & preset bar to eliminate noise */
  .theater-active-mode .explore-header {
    display: none !important;
  }
  .theater-active-mode .preset-bar-wrap {
    display: none !important;
  }

  /* ---------- Streamlined Preset Bar (Single-line Text Tabs) ---------- */
  .preset-bar-wrap {
    margin: 8px 0 14px;
    border-bottom: 1px solid var(--line-subtle);
  }
  .preset-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .preset-bar::-webkit-scrollbar { display: none; }
  .preset-bar-label {
    font-size: 13px;
    color: var(--fg-muted);
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 6px;
  }
  .preset-bar .chip {
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 8px 12px;
    font: inherit;
    font-size: 13.5px;
    color: var(--fg-muted);
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .preset-bar .chip:hover {
    color: var(--fg);
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .preset-bar .chip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  .preset-bar .chip[aria-pressed="true"] {
    color: var(--fg);
    border-bottom: 2px solid var(--accent);
    background: transparent;
    box-shadow: none;
    font-weight: 600;
  }

  /* Story Theater trigger chip: accent text + arrow, no orange capsule */
  .preset-bar .chip-theater {
    color: var(--accent) !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    font-weight: 600;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
  }
  .preset-bar .chip-theater:hover {
    color: var(--fg) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .preset-bar .chip-theater[aria-expanded="true"] {
    border-bottom: 2px solid var(--accent) !important;
  }

  /* Preset Bar Drawer Toggle Button */
  .preset-drawer-btn {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid var(--line-subtle);
    border-radius: var(--r);
    padding: 6px 12px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg);
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    margin-right: 2px;
  }
  .preset-drawer-btn:hover {
    color: var(--fg);
    border-color: var(--line-hover);
    background: rgba(255, 255, 255, 0.05);
  }
  .preset-drawer-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .preset-drawer-btn[aria-expanded="true"] {
    border-color: var(--accent);
    color: var(--fg);
    background: rgba(56, 189, 248, 0.08);
  }
  .preset-bar-divider {
    width: 1px;
    height: 18px;
    background: var(--line-subtle);
    margin: 0 4px;
    flex-shrink: 0;
  }

  /* Operation Tip Bar (Relocated below 3D viewport, above stage-bar) */
  .user-guide-tip {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(11, 17, 32, 0.95);
    border-top: 1px solid var(--line-subtle);
    padding: 6px 18px;
    font-size: 12px;
    color: var(--fg-muted);
    line-height: 1.4;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
  }
  .guide-tip-content {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--fg-muted);
  }
  .guide-tip-sep { color: var(--line); }
  .guide-tip-link {
    color: var(--fg-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
  }
  .guide-tip-link:hover { color: var(--fg); }
  .guide-tip-close {
    background: transparent;
    border: 0;
    color: var(--fg-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
    min-height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
  }
  .guide-tip-close:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.1);
  }
  .theater-active-mode .user-guide-tip {
    display: none !important;
  }

  /* Floating exit banner for in-page immersive mode */
  .immersive-exit-banner {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 100001;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    padding: 5px 6px 5px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    color: var(--fg);
    font-size: 12.5px;
    transition: opacity 0.2s ease;
  }
  .immersive-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: none;
  }
  .btn-exit-immersive {
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid rgba(239, 68, 68, 0.55);
    color: var(--warn);
    border-radius: 999px;
    padding: 4px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    min-height: 32px;
    transition: all 0.18s ease;
  }
  .btn-exit-immersive:hover {
    background: rgba(239, 68, 68, 0.45);
    color: var(--fg);
  }

  /* ---------- Drawer Search & Results ---------- */
  .drawer-search-wrap {
    position: relative;
    padding: 12px 14px 8px;
    flex-shrink: 0;
  }
  .search-results-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 290px;
    overflow-y: auto;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.7);
    z-index: 150;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    color: var(--fg);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
    width: 100%;
    min-height: 44px;
    transition: background 0.15s ease;
  }
  .search-result-item:hover, .search-result-item:focus {
    background: rgba(56, 189, 248, 0.14);
    color: var(--fg);
  }
  .search-no-results {
    padding: 14px 12px;
    text-align: center;
    color: var(--fg-muted);
    font-size: 13px;
    line-height: 1.5;
  }



  /* Advanced Settings Collapsible */
  .side-advanced-group {
    margin-top: 12px;
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    background: rgba(11, 17, 32, 0.55);
    overflow: hidden;
  }
  .side-advanced-summary {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
    min-height: 38px;
  }
  .side-advanced-summary::-webkit-details-marker { display: none; }
  .side-advanced-summary:hover {
    color: var(--fg);
    background: rgba(56, 189, 248, 0.08);
  }
  .side-advanced-summary::after {
    content: '▾';
    font-size: 11px;
    color: var(--fg-muted);
    transition: transform 0.18s ease;
  }
  .side-advanced-group[open] .side-advanced-summary::after {
    transform: rotate(180deg);
  }
  .side-advanced-content {
    padding: 10px;
    border-top: 1px solid var(--line-subtle);
    background: rgba(3, 7, 18, 0.4);
  }
  .side-subhead {
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 6px;
  }



  /* ---------- Compact Story Theater HUD Panel ---------- */
  .theater-panel {
    background: rgba(13, 20, 36, 0.96);
    border: 1px solid rgba(251, 146, 60, 0.38);
    border-radius: var(--r);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
    padding: 8px 12px 8px;
    margin-bottom: 8px;
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .theater-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(251, 146, 60, 0.16);
  }
  .theater-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
  }
  .theater-title-group {
    display: flex;
    align-items: center;
    gap: 6px 8px;
    flex-wrap: wrap;
    min-width: 0;
  }
  .badge-theater-tag {
    background: rgba(251, 146, 60, 0.2);
    color: #fdba74;
    border: 1px solid rgba(251, 146, 60, 0.4);
    flex-shrink: 0;
    font-size: 11px;
    padding: 2px 7px;
  }
  .theater-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .theater-header-actions {
    flex-shrink: 0;
  }
  .theater-status-strip {
    display: inline-flex;
    align-items: center;
    gap: 6px 8px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: var(--fg-dim);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px 8px;
  }
  .theater-status-label {
    font-size: 11px;
    color: var(--fg-muted);
  }
  .theater-status-idx {
    font-weight: 700;
    color: #fed7aa;
  }
  .theater-status-sep {
    color: rgba(255, 255, 255, 0.2);
  }
  .theater-status-clock {
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
  }
  .theater-btn-exit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-subtle);
    color: var(--fg-dim);
    font: inherit;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
  .theater-btn-exit:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: var(--warn);
    color: var(--fg);
  }

  .theater-detached-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #fef08a;
  }
  .theater-btn-resume {
    background: rgba(234, 179, 8, 0.25);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: var(--fg);
    font: inherit;
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    min-height: 30px;
  }
  .theater-btn-resume:hover {
    background: rgba(234, 179, 8, 0.45);
  }
  .theater-btn-mini-exit {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--fg-dim);
    font: inherit;
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    min-height: 30px;
  }

  /* Compact Integrated Row: Stepper + Controls */
  .theater-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .theater-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 340px;
  }
  .theater-step-btn {
    flex: 1 1 0;
    background: var(--bg-soft);
    border: 1px solid var(--line-subtle);
    border-radius: 6px;
    padding: 5px 8px;
    color: var(--fg-dim);
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
    min-height: 38px;
  }
  .theater-step-btn:hover {
    border-color: rgba(251, 146, 60, 0.4);
    background: rgba(22, 33, 58, 0.7);
    color: var(--fg);
  }
  .theater-step-btn.active {
    background: rgba(251, 146, 60, 0.16);
    border-color: var(--accent);
    color: var(--fg);
    box-shadow: none;
  }
  .theater-step-btn .step-num {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
  }
  .theater-step-btn .step-title {
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .theater-controls-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .btn-theater-ctrl {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--fg);
    padding: 6px 12px;
    border-radius: 6px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
    min-height: 38px;
    white-space: nowrap;
  }
  .btn-theater-ctrl:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent);
  }
  .btn-theater-ctrl:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }
  .btn-theater-ctrl.btn-theater-accent {
    background: rgba(251, 146, 60, 0.2);
    border-color: var(--accent);
    color: var(--fg);
    font-weight: 600;
  }
  .btn-theater-ctrl.btn-theater-accent:hover:not(:disabled) {
    background: rgba(251, 146, 60, 0.35);
    box-shadow: none;
  }

  /* Telemetry & Timing Bar (collapsible details, focused on essentials) */
  .theater-telemetry-strip {
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px dashed rgba(251, 146, 60, 0.16);
    font-size: 11.5px;
  }
  .theater-telemetry-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--fg-muted);
    font-size: 11.5px;
    user-select: none;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s ease;
  }
  .theater-telemetry-summary::-webkit-details-marker { display: none; }
  .theater-telemetry-summary:hover {
    color: var(--fg);
    background: rgba(251, 146, 60, 0.08);
  }
  .telemetry-summary-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .telemetry-summary-hint {
    color: var(--accent);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }
  .theater-telemetry-strip[open] .telemetry-summary-hint {
    color: var(--fg-dim);
  }
  .telemetry-expanded-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid var(--line-subtle);
    border-radius: 5px;
    font-size: 11px;
  }
  .meta-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--fg);
  }
  .meta-val.accent {
    color: var(--accent);
    font-weight: 600;
  }
  .meta-val.dim {
    color: var(--fg-dim);
  }

  /* ---------- 3D Stage & Bottom Bar ---------- */
  .btn-fs {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--line);
    color: var(--fg-dim);
    border-radius: 6px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    box-shadow: none;
  }
  .btn-fs:hover {
    border-color: var(--line-hover);
    color: var(--fg);
    background: rgba(255, 255, 255, 0.05);
  }
  .btn-fs:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  #open-raw {
    color: var(--fg-muted);
    font-size: 12.5px;
    text-decoration: underline;
    text-underline-offset: 2px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    transition: color 0.18s ease;
  }
  #open-raw:hover {
    color: var(--fg);
  }

  /* ---------- 2-Column Narrative & Archive (Below 3D Stage) ---------- */
  .theater-narrative-panel {
    background: transparent;
    border: 1px solid var(--line-subtle);
    border-radius: var(--r);
    box-shadow: none;
    padding: 14px 18px;
    margin-top: 12px;
    margin-bottom: 16px;
  }
  .theater-workflow-guide {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 10px;
    background: rgba(251, 146, 60, 0.06);
    border: 1px dashed rgba(251, 146, 60, 0.28);
    border-radius: 6px;
    font-size: 12px;
    color: var(--fg);
    margin-bottom: 12px;
  }
  .workflow-step {
    color: #fed7aa;
    font-weight: 500;
  }
  .workflow-arrow {
    color: var(--accent);
    font-weight: 700;
    font-size: 10px;
  }
  .theater-narrative-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    align-items: start;
  }
  .narrative-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fg);
  }
  .narrative-subtitle {
    margin: 0 0 8px;
    font-size: 12.5px;
    color: var(--accent);
  }
  .narrative-body {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--fg);
  }
  .narrative-body p {
    margin: 0 0 6px;
  }
  .narrative-focus-box {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--accent);
    line-height: 1.5;
    margin-top: 10px;
  }
  .historic-archive-box {
    background: rgba(3, 7, 18, 0.7);
    border: 1px solid var(--line-subtle);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--fg-dim);
  }
  .archive-body {
    color: var(--fg-dim);
    line-height: 1.55;
  }
  .archive-image-wrap {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
  }
  .archive-image-container {
    text-align: center;
    margin-bottom: 6px;
  }
  .archive-image-container img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 5px;
    border: 1px solid var(--line-subtle);
    display: inline-block;
  }

  .sop-tip-box,
  .tip-card-box {
    margin: 12px 0 0;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--line-subtle);
    border-radius: 6px;
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.6;
  }
  .sop-tip-main,
  .tip-card-main {
    margin: 0;
  }
  .sop-tip-details,
  .tip-card-details {
    margin-top: 6px;
    border-top: 1px dashed var(--line-subtle);
    padding-top: 6px;
  }
  .sop-tip-summary,
  .tip-card-summary {
    cursor: pointer;
    color: var(--fg-dim);
    font-size: 12px;
    user-select: none;
  }
  .sop-tip-summary:hover,
  .tip-card-summary:hover {
    color: var(--fg);
  }
  .sop-tip-content,
  .tip-card-content {
    margin-top: 6px;
    font-size: 12px;
    color: var(--fg-muted);
    line-height: 1.6;
  }
  .sop-tip-content a,
  .tip-card-content a {
    color: var(--accent);
    text-decoration: underline;
  }

  /* ---------- Responsive Adjustments ---------- */
  @media (max-width: 990px) {
    .theater-narrative-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {
    .theater-panel {
      padding: 6px 10px 5px;
      margin-bottom: 6px;
    }
    .theater-header {
      margin-bottom: 4px;
      padding-bottom: 4px;
      border-bottom: 1px solid rgba(251, 146, 60, 0.16);
    }
    .theater-top-row {
      display: grid;
      grid-template-columns: 1fr auto;
      grid-template-rows: auto auto;
      align-items: center;
      gap: 3px 8px;
      width: 100%;
    }
    .theater-title-group {
      display: contents;
    }
    .badge-theater-tag {
      display: none;
    }
    .theater-title {
      grid-column: 1 / 2;
      grid-row: 1 / 2;
      font-size: 13.5px;
      line-height: 1.25;
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .theater-header-actions {
      grid-column: 2 / 3;
      grid-row: 1 / 2;
      display: flex;
      justify-content: flex-end;
    }
    .theater-btn-exit {
      min-height: 32px;
      padding: 3px 10px;
      font-size: 11.5px;
      font-weight: 500;
      flex-shrink: 0;
    }
    .theater-status-strip {
      grid-column: 1 / 3;
      grid-row: 2 / 3;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
      font-size: 10.5px;
      padding: 2px 6px;
      box-sizing: border-box;
      margin: 0;
      flex-wrap: nowrap;
      overflow: hidden;
      white-space: nowrap;
    }
    .theater-status-idx, .theater-rate-badge {
      flex-shrink: 0;
    }
    .theater-status-clock {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
      flex: 1 1 auto;
      text-align: right;
    }
    .theater-toolbar-row {
      gap: 4px;
    }
    .theater-stepper {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
      margin-bottom: 4px;
      flex: 1 1 100%;
    }
    .theater-step-btn {
      min-height: 40px;
      padding: 4px 2px;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 2px;
      line-height: 1.15;
    }
    .theater-step-btn .step-num {
      font-size: 10.5px;
      font-weight: 700;
      color: var(--accent);
    }
    .theater-step-btn .step-title {
      font-size: 11.5px;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }
    .theater-controls-bar {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 4px;
      margin-top: 0;
    }
    .btn-theater-ctrl {
      min-height: 44px;
      font-size: 12px;
      padding: 4px 2px;
      justify-content: center;
      line-height: 1.15;
      display: flex;
      align-items: center;
    }
    .theater-btn-resume, .theater-btn-mini-exit {
      min-height: 44px;
      padding: 6px 10px;
      font-size: 12px;
    }
    .btn-fs {
      min-height: 44px;
      padding: 8px 12px;
    }
    .theater-telemetry-strip {
      margin-top: 4px;
      padding-top: 4px;
    }
    .theater-telemetry-summary {
      font-size: 11px;
      padding: 2px 4px;
    }
  }

  @media (max-width: 480px) {
    .explore-header {
      margin: 12px 0 8px;
    }
    .explore-page-title {
      font-size: 24px;
      margin-bottom: 4px;
    }
    .explore-page-sub {
      font-size: 13px;
      display: block;
    }
    .user-guide-tip {
      top: 60px;
      left: 12px;
      right: auto;
      bottom: auto;
      max-width: calc(100% - 24px);
      font-size: 11px;
      padding: 4px 8px;
    }
    .theater-panel {
      padding: 5px 8px 4px;
      margin-bottom: 5px;
    }
    .theater-header {
      margin-bottom: 3px;
      padding-bottom: 3px;
    }
    .theater-top-row {
      gap: 2px 6px;
    }
    .theater-title {
      font-size: 13px;
    }
    .theater-btn-exit {
      min-height: 32px;
      padding: 2px 8px;
      font-size: 11px;
    }
    .theater-status-strip {
      font-size: 10px;
      padding: 1px 4px;
    }
    .theater-toolbar-row {
      gap: 3px;
    }
    .theater-stepper {
      gap: 3px;
      margin-bottom: 3px;
    }
    .theater-step-btn {
      min-height: 38px;
      padding: 2px 1px;
      gap: 1px;
    }
    .theater-step-btn .step-num {
      font-size: 10px;
    }
    .theater-step-btn .step-title {
      font-size: 11px;
    }
    .theater-controls-bar {
      gap: 3px;
    }
    .btn-theater-ctrl {
      min-height: 42px;
      font-size: 11.5px;
      padding: 2px 1px;
    }
    .theater-telemetry-strip {
      margin-top: 3px;
      padding-top: 3px;
    }
    .theater-telemetry-summary {
      font-size: 10px;
      padding: 1px 2px;
    }
    .telemetry-summary-label {
      font-size: 10px;
    }
    .theater-narrative-panel {
      padding: 10px 12px;
    }
  }
