/* 全站统一顶栏 / 页脚与明暗主题。这个文件在所有站点最后加载，负责覆盖各站自己的深色规则。 */

:root {
  --atlas-header-h: 46px;
  --atlas-footer-h: 34px;
  --atlas-light-bg: #eef3f6;
  --atlas-light-panel: #f8fbfd;
  --atlas-light-panel-solid: #ffffff;
  --atlas-light-ink: #16242d;
  --atlas-light-muted: #5d707d;
  --atlas-light-line: rgba(25, 48, 61, .16);
  --atlas-light-accent: #285a6b;
}

/* ---------- 紧凑顶栏 ---------- */
.topbar {
  height: var(--atlas-header-h);
  padding: 0 26px;
  gap: 22px;
}

.brand {
  gap: 9px;
  min-width: 170px;
}

.brand-mark {
  font-size: 28px;
}

.brand strong {
  font-size: 19px;
  letter-spacing: -.3px;
}

.brand-en {
  display: inline-block;
  padding-left: 9px;
  border-left: 1px solid rgba(181, 206, 225, .22);
  font-size: 9px;
  letter-spacing: 1.7px;
}

.topbar nav {
  gap: 19px;
}

.topbar nav a {
  font-size: 11.5px;
  gap: 7px;
  padding: 0 3px;
}

.topbar nav a span {
  font-size: 7.5px;
  letter-spacing: 1px;
}

.atlas-header {
  height: var(--atlas-header-h);
  padding: 0 32px;
  gap: 20px;
  background: rgba(5, 9, 14, .82);
  border-color: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.atlas-brand {
  min-width: 188px;
  gap: 9px;
}

.atlas-symbol {
  font-size: 27px;
}

.atlas-brand > span:last-of-type {
  font-size: 16px;
}

.brand-line {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 2px;
}

.atlas-header nav {
  gap: 18px;
}

.atlas-header nav a {
  padding: 13px 1px;
  font-size: 11.5px;
}

.header-extra {
  padding-left: 15px;
  font-size: 8px;
  letter-spacing: .7px;
}

.chrome-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  margin-left: 4px;
}

.chrome-tools button {
  appearance: none;
  border: 1px solid rgba(151, 177, 198, .2);
  background: rgba(255, 255, 255, .035);
  color: #b9cbd9;
  height: 28px;
  min-width: 30px;
  padding: 0 7px;
  border-radius: 2px;
  font: 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .05em;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.chrome-tools button:hover,
.chrome-tools button:focus-visible {
  border-color: rgba(175, 211, 226, .6);
  background: rgba(255, 255, 255, .09);
  color: #f0f8fd;
  outline: none;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.lang-toggle i {
  color: rgba(183, 203, 217, .45);
  font-style: normal;
}

.lang-toggle [data-lang-label="zh"],
.lang-toggle [data-lang-label="en"] {
  opacity: .7;
  color: #b9c9d5;
}

html[data-lang="zh-CN"] .lang-toggle [data-lang-label="zh"],
html[data-lang="en"] .lang-toggle [data-lang-label="en"] {
  opacity: 1;
  color: var(--atlas-accent, #b9dce7);
}

.theme-toggle {
  font-size: 14px;
  line-height: 1;
}

.fullscreen-toggle {
  display: inline-grid;
  place-items: center;
}

.fullscreen-toggle svg {
  width: 13px;
  height: 13px;
  display: block;
}

.fullscreen-toggle.is-active {
  border-color: rgba(175, 211, 226, .55);
  background: rgba(255, 255, 255, .1);
  color: #f0f8fd;
}

/* ---------- 统一页脚 ---------- */
.site-footer,
.atlas-footer {
  min-height: var(--atlas-footer-h);
  height: auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(4, 8, 13, .90);
  color: #71879a;
  font-size: 8.5px;
  letter-spacing: .02em;
}

.site-footer a,
.atlas-footer a {
  color: #93aabe;
  text-decoration: none;
}

.site-footer a:hover,
.atlas-footer a:hover {
  color: #d5e7f1;
}

.footer-meta {
  text-align: right;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .atlas-header {
    height: 54px;
    padding: 0 18px;
    gap: 12px;
  }

  .atlas-brand {
    min-width: 0;
  }

  .atlas-brand > span:last-of-type {
    font-size: 14px;
  }

  .atlas-header nav {
    gap: 12px;
  }

  .atlas-header nav a {
    padding: 17px 1px;
    font-size: 10px;
  }

  .header-extra {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --atlas-header-h: 52px;
    --atlas-footer-h: 34px;
  }

  .topbar,
  .atlas-header {
    height: var(--atlas-header-h);
    padding: 0 14px;
    gap: 9px;
    flex-wrap: nowrap;
  }

  .brand,
  .atlas-brand {
    min-width: 0;
    flex: 0 0 auto;
    gap: 6px;
  }

  .brand-mark,
  .atlas-symbol {
    font-size: 22px;
  }

  .brand strong,
  .atlas-brand > span:last-of-type {
    font-size: 13px;
    letter-spacing: -.2px;
  }

  .brand-en,
  .brand-line {
    display: none;
  }

  .topbar nav,
  .atlas-header nav {
    gap: 8px;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
    height: 100%;
  }

  .topbar nav::-webkit-scrollbar,
  .atlas-header nav::-webkit-scrollbar {
    display: none;
  }

  .topbar nav a,
  .atlas-header nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 9px;
    padding: 16px 0;
  }

  .topbar nav a span,
  .atlas-header nav a span {
    display: none;
  }

  .chrome-tools {
    margin-left: auto !important;
    gap: 4px;
  }

  .chrome-tools button {
    height: 26px;
    min-width: 27px;
    padding: 0 5px;
    font-size: 8px;
  }

  .site-footer,
  .atlas-footer {
    min-height: var(--atlas-footer-h);
    padding: 0 14px;
    font-size: 7px;
    gap: 8px;
  }

  .site-footer > span:last-child,
  .atlas-footer > span:last-child {
    text-align: right;
  }
}

@media (max-width: 380px) {
  .topbar nav a,
  .atlas-header nav a {
    font-size: 8px;
  }
}

/* ---------- 元素 / 质量：顶栏透明浮在舞台上方 ---------- */
.elements-page .topbar,
.mass-page .topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--atlas-header-h);
  background: rgba(4, 8, 15, .22);
  border-bottom: 1px solid rgba(161, 184, 211, .08);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
}

.elements-page .el-immersive,
.mass-page .mass-immersive {
  height: 100dvh;
  min-height: 620px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .elements-page .topbar,
  .mass-page .topbar {
    background: rgba(4, 8, 15, .22);
  }
}

/* ---------- 浅色模式 ---------- */
html[data-theme="light"] {
  color-scheme: light;
  --bg: var(--atlas-light-bg);
  --panel: var(--atlas-light-panel);
  --ink: var(--atlas-light-ink);
  --muted: var(--atlas-light-muted);
  --line: var(--atlas-light-line);
  --accent: var(--atlas-light-accent);
  --warm: #8a6b45;
  background: var(--atlas-light-bg);
  color: var(--atlas-light-ink);
}

html[data-theme="light"] body {
  background: var(--atlas-light-bg);
  color: var(--atlas-light-ink);
}

html[data-theme="light"] .atlas-header,
html[data-theme="light"] .topbar {
  background: rgba(248, 251, 253, .92) !important;
  border-color: rgba(24, 49, 63, .13) !important;
  color: var(--atlas-light-ink);
  backdrop-filter: blur(16px);
}

html[data-theme="light"] .atlas-brand,
html[data-theme="light"] .brand,
html[data-theme="light"] .atlas-brand > span:last-of-type {
  color: var(--atlas-light-ink);
}

html[data-theme="light"] .atlas-brand .brand-line,
html[data-theme="light"] .brand-en {
  color: #536a76;
  border-color: rgba(24, 49, 63, .18);
}

html[data-theme="light"] .atlas-header nav a,
html[data-theme="light"] .topbar nav a {
  color: #4c6570;
}

html[data-theme="light"] .atlas-header nav a:hover,
html[data-theme="light"] .topbar nav a:hover {
  color: #12242d;
}

html[data-theme="light"] .atlas-header nav a[aria-current="page"],
html[data-theme="light"] .topbar nav a.active {
  color: #275c6d;
  border-color: #6d9cab;
}

html[data-theme="light"] .header-extra,
html[data-theme="light"] .architecture-link {
  color: #6b7e89;
}

html[data-theme="light"] .chrome-tools button {
  color: #4e6672;
  border-color: rgba(24, 49, 63, .2);
  background: rgba(255, 255, 255, .48);
}

html[data-theme="light"] .chrome-tools button:hover {
  color: #12242d;
  border-color: #7c9ca8;
  background: #fff;
}

html[data-theme="light"] .site-footer,
html[data-theme="light"] .atlas-footer {
  background: rgba(248, 251, 253, .92);
  border-color: rgba(24, 49, 63, .14);
  color: #627680;
}

html[data-theme="light"] .site-footer a,
html[data-theme="light"] .atlas-footer a {
  color: #355d6b;
}

html[data-theme="light"] .portal-hero {
  background:
    radial-gradient(ellipse at 76% 60%, rgba(138, 175, 189, .18), transparent 55%),
    var(--atlas-light-bg);
  color: var(--atlas-light-ink);
}

html[data-theme="light"] .portal-hero .starfield {
  opacity: .18;
  mix-blend-mode: multiply;
}

html[data-theme="light"] .hero-copy h1,
html[data-theme="light"] .hero-copy h1 span,
html[data-theme="light"] .hero-description,
html[data-theme="light"] .hero-footnote,
html[data-theme="light"] .world-card h2,
html[data-theme="light"] .world-card h2 > span,
html[data-theme="light"] .world-card p,
html[data-theme="light"] .card-link,
html[data-theme="light"] .earth-coordinate {
  color: var(--atlas-light-ink);
}

html[data-theme="light"] .hero-description,
html[data-theme="light"] .hero-footnote,
html[data-theme="light"] .world-card p,
html[data-theme="light"] .earth-coordinate {
  color: #536975;
}

html[data-theme="light"] .earth-coordinate {
  border-color: #9db3bc;
}

html[data-theme="light"] .earth-coordinate strong {
  color: #1f3540;
}

html[data-theme="light"] .earth-coordinate small {
  color: #5f7380;
}

html[data-theme="light"] .lang-toggle i {
  color: #8297a1;
}

html[data-theme="light"] .lang-toggle [data-lang-label="zh"],
html[data-theme="light"] .lang-toggle [data-lang-label="en"] {
  color: #6f838d;
  opacity: .55;
}

html[data-theme="light"][data-lang="zh-CN"] .lang-toggle [data-lang-label="zh"],
html[data-theme="light"][data-lang="en"] .lang-toggle [data-lang-label="en"] {
  color: #275c6d;
  opacity: 1;
}

html[data-theme="light"] .world-card,
html[data-theme="light"] .entry-tile,
html[data-theme="light"] .journey-strip,
html[data-theme="light"] .open-statement,
html[data-theme="light"] .quiz-welcome,
html[data-theme="light"] .quiz-result,
html[data-theme="light"] .learning-item,
html[data-theme="light"] .qa-item,
html[data-theme="light"] .article-facts,
html[data-theme="light"] .mini-stage {
  background: var(--atlas-light-panel-solid);
  color: var(--atlas-light-ink);
  border-color: var(--atlas-light-line);
}

html[data-theme="light"] .world-card:hover,
html[data-theme="light"] .entry-tile:hover {
  background: #fff;
  border-color: rgba(39, 92, 109, .35);
}

html[data-theme="light"] .journey-strip {
  background: linear-gradient(110deg, #ffffff, #e7eff3);
}

html[data-theme="light"] .entry-tile h3,
html[data-theme="light"] .journey-detail li > div > a,
html[data-theme="light"] .learning-steps a,
html[data-theme="light"] .qa-item summary,
html[data-theme="light"] .data-table td a {
  color: var(--atlas-light-ink);
}

html[data-theme="light"] .entry-tile > p,
html[data-theme="light"] .journey-detail p,
html[data-theme="light"] .learning-item p,
html[data-theme="light"] .learning-block > p,
html[data-theme="light"] .qa-item p,
html[data-theme="light"] .data-table td,
html[data-theme="light"] .article-prose p,
html[data-theme="light"] .article-prose li,
html[data-theme="light"] .article-sources p,
html[data-theme="light"] .article-sources li,
html[data-theme="light"] .article-lead {
  color: #4e6672;
}

html[data-theme="light"] .knowledge-article h1,
html[data-theme="light"] .article-prose h2,
html[data-theme="light"] .article-prose strong,
html[data-theme="light"] .article-sources h2,
html[data-theme="light"] .article-facts > strong,
html[data-theme="light"] .article-facts dd,
html[data-theme="light"] .page-title,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .open-statement h2,
html[data-theme="light"] .journey-detail h2 {
  color: var(--atlas-light-ink);
}

html[data-theme="light"] .article-facts dt,
html[data-theme="light"] .provenance,
html[data-theme="light"] .breadcrumbs,
html[data-theme="light"] .article-english {
  color: #647985;
}

html[data-theme="light"] .article-sources,
html[data-theme="light"] .related-section,
html[data-theme="light"] .scale-position,
html[data-theme="light"] .learning-block,
html[data-theme="light"] .data-table-wrap {
  border-color: var(--atlas-light-line);
}

html[data-theme="light"] .data-table th {
  color: #657a85;
  border-color: var(--atlas-light-line);
}

html[data-theme="light"] .data-table td {
  border-color: rgba(24, 49, 63, .08);
}

html[data-theme="light"] .data-table tr:hover td {
  background: rgba(39, 92, 109, .05);
}

html[data-theme="light"] .library-search input,
html[data-theme="light"] .data-toolbar select {
  background: #fff;
  color: var(--atlas-light-ink);
  border-color: var(--atlas-light-line);
}

html[data-theme="light"] .filter-group button {
  color: #607681;
}

html[data-theme="light"] .filter-group button[aria-pressed="true"] {
  color: #234e5d;
  border-color: rgba(39, 92, 109, .4);
  background: rgba(39, 92, 109, .08);
}

html[data-theme="light"] .notice {
  background: #fff6df;
  border-color: #d5bd85;
  color: #66522e;
}

html[data-theme="light"] .solid-button {
  background: #285a6b;
  border-color: #285a6b;
  color: #f7fbfd;
}

html[data-theme="light"] .text-button {
  color: #355d6b;
}

html[data-theme="light"] .atlas-earth {
  box-shadow: inset 8px 3px 18px rgba(76, 121, 139, .16), inset -12px -9px 25px rgba(10, 31, 43, .35), 0 0 2px 1px rgba(55, 100, 116, .25), 0 0 38px 3px rgba(112, 155, 168, .18);
}

html[data-theme="light"] .space-page,
html[data-theme="light"] .station-page,
html[data-theme="light"] .elements-page,
html[data-theme="light"] .mass-page {
  background: var(--atlas-light-bg);
  color: var(--atlas-light-ink);
}

html[data-theme="light"] .space-page .topbar {
  background: rgba(248, 251, 253, .62) !important;
}

html[data-theme="light"] .elements-page .topbar,
html[data-theme="light"] .mass-page .topbar {
  background: rgba(248, 251, 253, .22) !important;
}

html[data-theme="light"] .space-page .catalog,
html[data-theme="light"] .space-page .inspector,
html[data-theme="light"] .space-page .scale-console,
html[data-theme="light"] .station-page .station-rail,
html[data-theme="light"] .station-page .station-card,
html[data-theme="light"] .station-page .station-console {
  background: rgba(248, 251, 253, .82);
  border-color: rgba(24, 49, 63, .12);
  color: var(--atlas-light-ink);
  backdrop-filter: blur(14px);
}

html[data-theme="light"] .space-page .catalog-heading h1,
html[data-theme="light"] .space-page .catalog-heading p,
html[data-theme="light"] .space-page .object-button,
html[data-theme="light"] .space-page .inspector h2,
html[data-theme="light"] .space-page .detail-summary,
html[data-theme="light"] .station-page .station-card h3,
html[data-theme="light"] .station-page .station-rail h1 {
  color: var(--atlas-light-ink);
}

html[data-theme="light"] .space-page .object-button.active {
  background: rgba(39, 92, 109, .12);
  color: #173f4b;
}

html[data-theme="light"] .station-page .chapter-button {
  color: #526a76;
}

html[data-theme="light"] .station-page .chapter-button.active {
  color: #285a6b;
}

html[data-theme="light"] .elements-page .el-immersive,
html[data-theme="light"] .mass-page .mass-immersive {
  /* 3D 舞台本身保持深色，浮层 chrome 与页脚进入浅色。 */
  background: #04070b;
}

html[data-theme="light"] .elements-page .site-footer,
html[data-theme="light"] .mass-page .site-footer,
html[data-theme="light"] .station-page .site-footer,
html[data-theme="light"] .space-page .site-footer {
  background: rgba(248, 251, 253, .9);
  color: #607681;
  border-color: rgba(24, 49, 63, .12);
}

html[data-theme="light"] .skip-link {
  background: #285a6b;
  color: #fff;
}

/* ---------- 浅色模式：空间站面板与时间/温度站浮层 ---------- */
html[data-theme="light"] .space-page .category-chip {
  color: #7a633f;
}

html[data-theme="light"] .space-page .english-name,
html[data-theme="light"] .space-page .measurement > span:first-child,
html[data-theme="light"] .space-page .measurement > span:last-child,
html[data-theme="light"] .space-page .human-reference > span:first-child,
html[data-theme="light"] .space-page .inspector-bottom {
  color: #5b707b;
}

html[data-theme="light"] .space-page .measurement strong {
  color: #1f3540;
}

html[data-theme="light"] .space-page .measurement strong small {
  color: #506772;
}

html[data-theme="light"] .space-page .detail-summary {
  color: #435c68 !important;
}

html[data-theme="light"] .space-page .human-reference {
  border-left-color: #a9bec7;
}

html[data-theme="light"] .space-page .human-reference strong {
  color: #2c4653;
}

html[data-theme="light"] .space-page .human-reference > span:last-child,
html[data-theme="light"] .space-page .inspector-bottom p {
  color: #6b808b;
}

html[data-theme="light"] .space-page .inspector-bottom button {
  color: #285a6b;
}

html[data-theme="light"] .space-page .secondary-button {
  border-color: #9eb2ba;
  background: #fff;
  color: #285a6b;
}

html[data-theme="light"] .space-page .scale-console .mode-switch button,
html[data-theme="light"] .space-page .scale-value-row,
html[data-theme="light"] .space-page .scale-value-row label,
html[data-theme="light"] .space-page .scale-ticks,
html[data-theme="light"] .space-page .scale-ticks span:first-child,
html[data-theme="light"] .space-page .scale-ticks span:last-child {
  color: #5b707b;
}

html[data-theme="light"] .space-page .mode-switch button.active {
  color: #1f3540;
  border-color: #6d9cab;
}

html[data-theme="light"] .space-page .scale-value-row strong {
  color: #1f3540;
}

html[data-theme="light"] .space-page .tour-button {
  border-color: #275c6d !important;
  background: #275c6d !important;
  color: #fff !important;
}

html[data-theme="light"] .space-page .catalog-meta,
html[data-theme="light"] .space-page .catalog-foot,
html[data-theme="light"] .space-page .catalog-foot > span:last-child {
  color: #5b707b;
}

html[data-theme="light"] .station-page {
  color: #dce6f4;
}

html[data-theme="light"] .station-page .station-rail-footer {
  background: linear-gradient(180deg, rgba(248, 251, 253, .9), #f8fbfd 40%);
  border-top-color: rgba(24, 49, 63, .16);
  color: #5f7480;
}

html[data-theme="light"] .station-page .chapter-number,
html[data-theme="light"] .station-page .chapter-button small {
  color: #6b7f89;
}

html[data-theme="light"] .station-page .chapter-button.active {
  color: #285a6b;
  border-left-color: #6d9cab;
}

html[data-theme="light"] .station-page .station-rail .station-eyebrow,
html[data-theme="light"] .station-page .station-card .station-eyebrow,
html[data-theme="light"] .station-page .station-card .event-en {
  color: #5f7581;
}

html[data-theme="light"] .station-page .station-card .event-value {
  color: #8a5b25;
  border-color: rgba(24, 49, 63, .16);
}

html[data-theme="light"] .station-page[data-station="temperature"] .station-card .event-value {
  color: #2f6f82;
}

html[data-theme="light"] .station-page .station-card .event-summary {
  color: #3d5662;
}

html[data-theme="light"] .station-page .station-card a {
  color: #285a6b;
}

html[data-theme="light"] .station-page .read-notes {
  border-color: #275c6d;
  background: #275c6d;
  color: #fff;
}

html[data-theme="light"] .station-page .station-review {
  color: #6a7f8a;
}

html[data-theme="light"] .station-page .station-console .station-modes button {
  color: #5f7480;
}

html[data-theme="light"] .station-page .station-console .station-modes button.active {
  color: #1f3540 !important;
  border-color: #6d9cab !important;
}

html[data-theme="light"] .station-page .station-console .play-button {
  border-color: #275c6d;
  background: #275c6d;
  color: #fff;
}

html[data-theme="light"] .station-page .station-console .slider-labels,
html[data-theme="light"] .station-page .station-console .station-ticks,
html[data-theme="light"] .station-page .station-console small,
html[data-theme="light"] .station-page .interval-pickers label {
  color: #5f7480;
}

html[data-theme="light"] .station-page .station-console .slider-labels strong,
html[data-theme="light"] .station-page .station-console #interval-result {
  color: #8a5b25;
}

html[data-theme="light"] .station-page[data-station="temperature"] .station-console .slider-labels strong,
html[data-theme="light"] .station-page[data-station="temperature"] .station-console #interval-result {
  color: #2f6f82;
}

html[data-theme="light"] .station-page .station-console .interval-pickers select {
  border-color: #9eb2ba;
  background: #fff;
  color: #1f3540;
}

/* ---------- 浅色模式：首页卡片、文章页与元素/质量知识层的可读性 ---------- */
html[data-theme="light"] .brand-line,
html[data-theme="light"] .header-extra {
  color: #536a76;
}

html[data-theme="light"] .lang-toggle [data-lang-label="zh"],
html[data-theme="light"] .lang-toggle [data-lang-label="en"] {
  color: #4f6874;
  opacity: 1;
}

html[data-theme="light"][data-lang="zh-CN"] .lang-toggle [data-lang-label="zh"],
html[data-theme="light"][data-lang="en"] .lang-toggle [data-lang-label="en"] {
  color: #234e5d;
  opacity: 1;
}

html[data-theme="light"] .world-card .world-number {
  color: #8a5b25;
}

html[data-theme="light"] .world-card .eyebrow,
html[data-theme="light"] .entry-tile .eyebrow,
html[data-theme="light"] .entry-tile .tile-bottom span,
html[data-theme="light"] .related-section .entry-tile .eyebrow,
html[data-theme="light"] .related-section .entry-tile .tile-bottom span {
  color: #5f7480;
}

html[data-theme="light"] .world-card .card-link,
html[data-theme="light"] .world-card a {
  color: #275c6d;
}

html[data-theme="light"] .breadcrumbs,
html[data-theme="light"] .breadcrumbs a,
html[data-theme="light"] .breadcrumbs span {
  color: #4e6672;
}

html[data-theme="light"] article > .eyebrow,
html[data-theme="light"] .article-facts .eyebrow,
html[data-theme="light"] .provenance .eyebrow,
html[data-theme="light"] .section-heading .eyebrow {
  color: #2f6f82;
}

html[data-theme="light"] .article-status {
  color: #4e6672;
}

html[data-theme="light"] .article-english {
  color: #435c68;
}

html[data-theme="light"] .citation-link,
html[data-theme="light"] .article-sources a,
html[data-theme="light"] .article-sources a[rel="noopener noreferrer"],
html[data-theme="light"] .provenance a,
html[data-theme="light"] .sidebar-link {
  color: #2f6f82;
}

html[data-theme="light"] .provenance p,
html[data-theme="light"] .provenance .muted,
html[data-theme="light"] .scale-position .muted,
html[data-theme="light"] .scale-position .muted a {
  color: #435c68;
}

html[data-theme="light"] .scale-ends span {
  color: #4e6672;
}

html[data-theme="light"] .elements-page .el-block-head p,
html[data-theme="light"] .elements-page .el-f-label {
  color: #4e6672;
}

html[data-theme="light"] .el-detail-grid dt {
  color: #a9bac9 !important;
}

html[data-theme="light"] .el-detail-grid dd,
html[data-theme="light"] .el-detail-grid dd strong,
html[data-theme="light"] .el-detail-grid dd small,
html[data-theme="light"] .el-delta-grid dd,
html[data-theme="light"] .el-delta-grid dd strong,
html[data-theme="light"] .el-delta-grid dd small {
  color: #2f4f5f !important;
}

html[data-theme="light"] .mass-page .mass-block-head p,
html[data-theme="light"] .mass-page .mass-excludes,
html[data-theme="light"] .mass-page .mass-excludes li {
  color: #4e6672;
}

html[data-theme="light"] .mass-block-head p {
  color: #4e6672;
}

html[data-theme="light"] .mass-figure-head > .eyebrow:nth-child(1),
html[data-theme="light"] .mass-figure-foot > span,
html[data-theme="light"] .mass-figure-foot a,
html[data-theme="light"] .mass-figure-note,
html[data-theme="light"] .mass-band-labels > span {
  color: #4e6672 !important;
}

html[data-theme="light"] .mass-figure-head > .eyebrow:nth-child(2) {
  color: #8a5b25 !important;
}

html[data-theme="light"] .mass-band-labels > .is-current {
  color: #1f3540 !important;
}

html[data-theme="light"] .mass-figure-foot b {
  color: #1f3540 !important;
}

html[data-theme="light"] .mass-page #mass-summary {
  color: #2f6f82;
}

html[data-theme="light"] .mass-page .mass-excludes strong {
  color: #1f3540;
}

html[data-theme="light"] .mass-page #band-zero {
  color: #2f4f5f;
}

/* ---------- 浅色 3D 舞台：元素 ---------- */
html[data-theme="light"] .elements-page .el-immersive {
  --bg: #f1f7fa;
  --ink: #10252f;
  --muted: #506b79;
  --faint: #78909d;
  --cyan: #0c6d80;
  --blue: #245d9f;
  --orange: #a75a20;
  --violet: #66519c;
  --gold: #8a6a1d;
  --accent: var(--cyan);
  --stage-glow: rgba(88, 151, 172, .18);
  --stage-glow-2: rgba(90, 116, 174, .13);
  background:
    radial-gradient(ellipse 54% 46% at 46% 42%, var(--stage-glow), transparent 70%),
    radial-gradient(ellipse 40% 50% at 68% 36%, var(--stage-glow-2), transparent 72%),
    linear-gradient(180deg, #f8fbfd 0%, #eff6fa 55%, #e8f1f6 100%);
}
html[data-theme="light"] .elements-page .el-immersive .vignette {
  background:
    radial-gradient(ellipse 78% 72% at 50% 46%, transparent 38%, rgba(237, 245, 249, .18) 74%, rgba(226, 237, 244, .58) 100%),
    linear-gradient(180deg, rgba(248, 251, 253, .12) 0%, transparent 20%, transparent 72%, rgba(228, 239, 245, .52) 100%);
}
html[data-theme="light"] .elements-page .el-immersive .scanlines {
  opacity: .10;
  background: repeating-linear-gradient(180deg, rgba(16, 37, 47, .06) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
html[data-theme="light"] .elements-page .el-immersive .el-axis {
  border-color: rgba(16, 37, 47, .14);
  background: linear-gradient(180deg, transparent, rgba(12, 109, 128, .12), transparent);
}
html[data-theme="light"] .elements-page .el-immersive .el-watermark { color: rgba(16, 37, 47, .07); }
html[data-theme="light"] .elements-page .el-immersive .el-card,
html[data-theme="light"] .elements-page .el-immersive .console {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(241, 248, 251, .48));
  border-color: rgba(28, 95, 112, .2);
  box-shadow: 0 20px 60px rgba(30, 65, 82, .1), inset 0 1px 0 rgba(255, 255, 255, .72);
}
html[data-theme="light"] .elements-page .el-immersive .el-card .pill,
html[data-theme="light"] .elements-page .el-immersive .el-card .pill.muted {
  color: #1c6676;
  background: rgba(12, 109, 128, .08);
  border-color: rgba(12, 109, 128, .2);
}
html[data-theme="light"] .elements-page .el-immersive .el-card .pill.muted { color: #61737e; background: rgba(16, 37, 47, .045); border-color: rgba(16, 37, 47, .14); }
html[data-theme="light"] .elements-page .el-immersive .el-card .name span { color: var(--ink); }
html[data-theme="light"] .elements-page .el-immersive .el-card .name em,
html[data-theme="light"] .elements-page .el-immersive .el-card .config,
html[data-theme="light"] .elements-page .el-immersive .el-card .stat label,
html[data-theme="light"] .elements-page .el-immersive .el-card .summary,
html[data-theme="light"] .elements-page .el-immersive .el-card .el-footnote { color: #4b6472; }
html[data-theme="light"] .elements-page .el-immersive .el-card .stat .num strong { color: #10252f; }
html[data-theme="light"] .elements-page .el-immersive .el-card .delta { color: #2e6c7a; background: rgba(12, 109, 128, .08); border-top-color: rgba(12, 109, 128, .16); }
html[data-theme="light"] .elements-page .el-immersive .console .label,
html[data-theme="light"] .elements-page .el-immersive .console .meta,
html[data-theme="light"] .elements-page .el-immersive .console .hint { color: #47626f; }
html[data-theme="light"] .elements-page .el-immersive .console .ticks i { background: rgba(16, 37, 47, .25); }
html[data-theme="light"] .elements-page .el-immersive .console input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) 0%, rgba(12, 109, 128, .24) 62%, rgba(16, 37, 47, .14) 100%); }
html[data-theme="light"] .elements-page .el-immersive .console input[type="range"]::-moz-range-track { background: linear-gradient(90deg, var(--accent) 0%, rgba(12, 109, 128, .24) 62%, rgba(16, 37, 47, .14) 100%); }
html[data-theme="light"] .elements-page .el-immersive .console input[type="range"]::-webkit-slider-thumb { border-color: #fff; box-shadow: 0 0 0 5px rgba(12, 109, 128, .1), 0 0 16px rgba(12, 109, 128, .35); }
html[data-theme="light"] .elements-page .el-immersive .periods button { color: #4d6673; border-color: rgba(16, 37, 47, .16); background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .elements-page .el-immersive .periods button.active { color: #0c6d80; border-color: rgba(12, 109, 128, .45); background: rgba(12, 109, 128, .1); }
html[data-theme="light"] .elements-page .el-immersive .btn { color: #43606e; border-color: rgba(16, 37, 47, .18); background: rgba(255, 255, 255, .62); }
html[data-theme="light"] .elements-page .el-immersive .btn:hover { color: #0c6d80; border-color: rgba(12, 109, 128, .45); background: #fff; }
html[data-theme="light"] .elements-page .el-immersive .btn.active { color: #0c6d80; border-color: rgba(12, 109, 128, .55); background: rgba(12, 109, 128, .12); }
html[data-theme="light"] .elements-page .el-immersive .btn.ghost { color: #607582; border-color: rgba(16, 37, 47, .13); background: rgba(255, 255, 255, .4); }
html[data-theme="light"] .elements-page .el-immersive .article-link { color: #2f6674; border-top-color: rgba(16, 37, 47, .12); }
html[data-theme="light"] .elements-page .el-immersive #chart .dot { stroke: #fff; }
html[data-theme="light"] .elements-page .el-immersive .el-trend .area { fill: rgba(12, 109, 128, .08); }
html[data-theme="light"] .elements-page .el-immersive .el-trend .legend { color: #4d6673; }

/* ---------- 浅色 3D 舞台：质量 ---------- */
html[data-theme="light"] .mass-page .mass-immersive {
  --bg: #f2f7fa;
  --ink: #122530;
  --muted: #526b78;
  --faint: #7b909c;
  --cyan: #0d6b7c;
  --gold: #8b681d;
  --accent: var(--gold);
  --stage-glow: rgba(174, 142, 58, .16);
  --stage-glow-2: rgba(77, 126, 168, .16);
  background:
    radial-gradient(ellipse 54% 46% at 46% 42%, var(--stage-glow), transparent 70%),
    radial-gradient(ellipse 40% 50% at 68% 36%, var(--stage-glow-2), transparent 72%),
    linear-gradient(180deg, #f8fbfd 0%, #f0f6fa 55%, #e9f1f6 100%);
}
html[data-theme="light"] .mass-page .mass-immersive .vignette {
  background:
    radial-gradient(ellipse 78% 72% at 50% 46%, transparent 38%, rgba(237, 245, 249, .16) 74%, rgba(226, 237, 244, .56) 100%),
    linear-gradient(180deg, rgba(248, 251, 253, .1) 0%, transparent 20%, transparent 72%, rgba(228, 239, 245, .5) 100%);
}
html[data-theme="light"] .mass-page .mass-immersive .scanlines {
  opacity: .10;
  background: repeating-linear-gradient(180deg, rgba(18, 37, 48, .06) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
html[data-theme="light"] .mass-page .mass-immersive .mass-axis { border-color: rgba(18, 37, 48, .14); background: linear-gradient(180deg, transparent, rgba(139, 104, 29, .12), transparent); }
html[data-theme="light"] .mass-page .mass-immersive .mass-watermark { color: rgba(18, 37, 48, .07); }
html[data-theme="light"] .mass-page .mass-immersive .mass-card,
html[data-theme="light"] .mass-page .mass-immersive .console {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, .74), rgba(243, 248, 250, .5));
  border-color: rgba(139, 104, 29, .2);
  box-shadow: 0 20px 60px rgba(42, 62, 76, .1), inset 0 1px 0 rgba(255, 255, 255, .72);
}
html[data-theme="light"] .mass-page .mass-immersive .mass-card .pill,
html[data-theme="light"] .mass-page .mass-immersive .mass-card .pill.muted { color: #7b5b18; background: rgba(139, 104, 29, .08); border-color: rgba(139, 104, 29, .2); }
html[data-theme="light"] .mass-page .mass-immersive .mass-card .pill.muted { color: #61737e; background: rgba(18, 37, 48, .045); border-color: rgba(18, 37, 48, .14); }
html[data-theme="light"] .mass-page .mass-immersive .mass-card .name span { color: var(--ink); }
html[data-theme="light"] .mass-page .mass-immersive .mass-card .name em,
html[data-theme="light"] .mass-page .mass-immersive .mass-card .mass-measure,
html[data-theme="light"] .mass-page .mass-immersive .mass-card .stat label,
html[data-theme="light"] .mass-page .mass-immersive .mass-card .summary { color: #4b6472; }
html[data-theme="light"] .mass-page .mass-immersive .mass-card .mass-value { color: #7b5b18; }
html[data-theme="light"] .mass-page .mass-immersive .mass-card .stat strong { color: #122530; }
html[data-theme="light"] .mass-page .mass-immersive .mass-card .mass-ratio { color: #4b6472; background: rgba(139, 104, 29, .07); border-color: rgba(139, 104, 29, .16); }
html[data-theme="light"] .mass-page .mass-immersive .mass-card .mass-ratio strong { color: #7b5b18; }
html[data-theme="light"] .mass-page .mass-immersive .mass-rail { scrollbar-color: rgba(18, 37, 48, .22) transparent; }
html[data-theme="light"] .mass-page .mass-immersive .mass-rail::-webkit-scrollbar-thumb { background: rgba(18, 37, 48, .22); }
html[data-theme="light"] .mass-page .mass-immersive .mass-rail button { color: #506b79; border-color: rgba(18, 37, 48, .14); background: rgba(255, 255, 255, .48); }
html[data-theme="light"] .mass-page .mass-immersive .mass-rail button.active { color: #7b5b18; border-color: rgba(139, 104, 29, .46); background: rgba(139, 104, 29, .1); }
html[data-theme="light"] .mass-page .mass-immersive .console .label,
html[data-theme="light"] .mass-page .mass-immersive .console .meta,
html[data-theme="light"] .mass-page .mass-immersive .console .hint { color: #506b79; }
html[data-theme="light"] .mass-page .mass-immersive .console .ticks i { background: rgba(18, 37, 48, .25); }
html[data-theme="light"] .mass-page .mass-immersive .console input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) 0%, rgba(139, 104, 29, .26) 62%, rgba(18, 37, 48, .14) 100%); }
html[data-theme="light"] .mass-page .mass-immersive .console input[type="range"]::-moz-range-track { background: linear-gradient(90deg, var(--accent) 0%, rgba(139, 104, 29, .26) 62%, rgba(18, 37, 48, .14) 100%); }
html[data-theme="light"] .mass-page .mass-immersive .console input[type="range"]::-webkit-slider-thumb { border-color: #fff; box-shadow: 0 0 0 5px rgba(139, 104, 29, .1), 0 0 16px rgba(139, 104, 29, .3); }
html[data-theme="light"] .mass-page .mass-immersive .btn { color: #526a76; border-color: rgba(18, 37, 48, .18); background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .mass-page .mass-immersive .btn:hover { color: #7b5b18; border-color: rgba(139, 104, 29, .45); background: #fff; }
html[data-theme="light"] .mass-page .mass-immersive .btn.active { color: #7b5b18; border-color: rgba(139, 104, 29, .55); background: rgba(139, 104, 29, .12); }
html[data-theme="light"] .mass-page .mass-immersive .btn.ghost { color: #627885; border-color: rgba(18, 37, 48, .13); background: rgba(255, 255, 255, .4); }
html[data-theme="light"] .mass-page .mass-immersive .article-link { color: #6d5318; border-top-color: rgba(18, 37, 48, .12); }
html[data-theme="light"] .mass-page .mass-immersive .mass-figures,
html[data-theme="light"] .mass-page .mass-immersive .mass-figure { color: var(--ink); }
html[data-theme="light"] .mass-page .mass-immersive .mass-figure { background: rgba(255, 255, 255, .55); border-color: rgba(18, 37, 48, .12); }
html[data-theme="light"] .mass-page .mass-immersive .mass-figure-head .eyebrow { color: #5a6f7b; }
html[data-theme="light"] .mass-page .mass-immersive .mass-figure-note { color: #5a6f7b; }

/* ---------- 浅色 3D 舞台：空间/时间/温度舞台文字 ---------- */
html[data-theme="light"] .space-page .stage-top,
html[data-theme="light"] .space-page .stage-caption,
html[data-theme="light"] .space-page .stage-bottom,
html[data-theme="light"] .space-page .reference-label,
html[data-theme="light"] .space-page .compare-labels { color: #203844; text-shadow: none; }
html[data-theme="light"] .space-page .stage-top > div:first-child,
html[data-theme="light"] .space-page .stage-version,
html[data-theme="light"] .space-page .observatory-status,
html[data-theme="light"] .space-page .scene-status { color: #4f6976; text-shadow: none; }
html[data-theme="light"] .space-page .stage-caption .eyebrow { color: #57727f; text-shadow: none; }
html[data-theme="light"] .space-page .stage-caption h2 { color: #102a35; text-shadow: none; }
html[data-theme="light"] .space-page .stage-caption p,
html[data-theme="light"] .space-page .scene-description { color: #385764; text-shadow: none; }
html[data-theme="light"] .space-page .stage-bottom span,
html[data-theme="light"] .space-page .stage-bottom strong,
html[data-theme="light"] .space-page .interaction-hint { color: #4b6672; text-shadow: none; }
html[data-theme="light"] .space-page .scale-line { background: rgba(24, 66, 80, .28); }
html[data-theme="light"] .space-page .mobile-disclaimer { color: #617884; }
html[data-theme="light"] .space-page .scene-actions button,
html[data-theme="light"] .space-page .stage-tools button { color: #405c68; background: rgba(255, 255, 255, .7); border-color: rgba(30, 70, 86, .22); box-shadow: 0 2px 10px rgba(30, 60, 75, .08); }
html[data-theme="light"] .space-page .reference-label { background: rgba(255, 255, 255, .68); border-color: rgba(30, 70, 86, .16); }
html[data-theme="light"] .space-page .compare-labels span { color: #203844; }

html[data-theme="light"] .station-page .station-caption .station-eyebrow,
html[data-theme="light"] .station-page .station-canvas-note { color: #58717d; text-shadow: none; }
html[data-theme="light"] .station-page .station-caption h2 { color: #122d3a; text-shadow: none; }
html[data-theme="light"] .station-page .station-english { color: #718692; text-shadow: none; }
html[data-theme="light"] .station-page .station-intro { color: #3f5c69; text-shadow: none; }
html[data-theme="light"] .station-page .scene-phase { color: #2c5563; background: rgba(255, 255, 255, .58); border-color: rgba(34, 75, 90, .2); box-shadow: 0 6px 24px rgba(30, 60, 75, .08); }
html[data-theme="light"] .station-page .stage-readout { background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(242, 248, 250, .78)); border-color: rgba(38, 82, 96, .2); box-shadow: 0 16px 50px rgba(30, 60, 75, .12); color: #16303b; }
html[data-theme="light"] .station-page .stage-readout .readout-label,
html[data-theme="light"] .station-page .stage-readout .readout-context { color: #4f6976; text-shadow: none; }
html[data-theme="light"] .station-page .stage-readout .readout-value { color: #122d3a; text-shadow: none; }
html[data-theme="light"] .station-page .station-hint { color: #4b6672; text-shadow: none; }
html[data-theme="light"] .station-page .station-actions button { color: #405c68; background: rgba(255, 255, 255, .72); border-color: rgba(30, 70, 86, .22); box-shadow: 0 2px 10px rgba(30, 60, 75, .08); }
html[data-theme="light"] .station-page .station-rail h1 { color: #122d3a; }
html[data-theme="light"] .station-page .station-rail .station-eyebrow { color: #58717d; }
html[data-theme="light"] .station-page .chapter-item { color: #4b6672; }
html[data-theme="light"] .station-page .chapter-item.active { color: #0d6073; }

/* 元素/质量舞台正文对比度 */
html[data-theme="light"] .elements-page .el-immersive .el-lede,
html[data-theme="light"] .elements-page .el-immersive .el-cloud-note,
html[data-theme="light"] .elements-page .el-immersive .el-footnote,
html[data-theme="light"] .elements-page .el-immersive .eyebrow { color: #3f5d6b; }
html[data-theme="light"] .elements-page .el-immersive .el-footnote { color: #58717e; }
html[data-theme="light"] .mass-page .mass-immersive .mass-lede,
html[data-theme="light"] .mass-page .mass-immersive .eyebrow { color: #405d6a; }
html[data-theme="light"] .mass-page .mass-immersive .mass-depth { color: #173642; }
html[data-theme="light"] .mass-page .mass-immersive .mass-depth small,
html[data-theme="light"] .mass-page .mass-immersive .mass-depth span { color: #4f6976; }
html[data-theme="light"] .mass-page .mass-immersive .mass-rail button { color: #4a6370; }

/* ---------- 浅色 3D 舞台：第二轮可读性收口 ---------- */
html[data-theme="light"] .station-page .station-caption { text-shadow: none !important; }
html[data-theme="light"] .station-page .station-caption h2 { color: #071e29 !important; font-weight: 380; letter-spacing: -.02em; }
html[data-theme="light"] .station-page .station-caption .station-intro { color: #274a56 !important; font-size: 12px; line-height: 1.8; }
html[data-theme="light"] .station-page .station-caption .station-english { color: #3d5b66 !important; }
html[data-theme="light"] .station-page .station-caption .station-eyebrow { color: #3c5a65 !important; }
html[data-theme="light"] .station-page .station-canvas-note { color: #304f5b !important; }
html[data-theme="light"] .station-page #motion-clock,
html[data-theme="light"] .station-page .station-hint { color: #2d4f5c !important; }
html[data-theme="light"] .station-page .event-summary,
html[data-theme="light"] .space-page #detail-summary,
html[data-theme="light"] .elements-page .el-immersive .el-summary,
html[data-theme="light"] .mass-page .mass-immersive .mass-card .summary { color: #1d3d49 !important; font-size: 12px; line-height: 1.9; }
html[data-theme="light"] .station-page .stage-readout .readout-label,
html[data-theme="light"] .station-page .stage-readout .readout-context,
html[data-theme="light"] .space-page #measure-label,
html[data-theme="light"] .elements-page .el-immersive .el-readout-label { color: #3a5a66 !important; }
html[data-theme="light"] .station-page .chapter-item { color: #345560 !important; }
html[data-theme="light"] .station-page .chapter-item small,
html[data-theme="light"] .station-page .chapter-item em { color: #55717b !important; }
html[data-theme="light"] .mass-page .mass-immersive .mass-card .mass-measure,
html[data-theme="light"] .mass-page .mass-immersive .mass-card .stat span,
html[data-theme="light"] .mass-page .mass-immersive .mass-card .stat strong { color: #1d3d49; }
html[data-theme="light"] .elements-page .el-immersive .el-footnote { color: #3b5a66 !important; }
html[data-theme="light"] .elements-page .el-immersive .el-cloud-note { color: #34545f !important; }
html[data-theme="light"] select,
html[data-theme="light"] option { color: #163642; background: #f2f7fa; }
html[data-theme="light"] .space-page .stage-bottom,
html[data-theme="light"] .space-page .scene-actions button,
html[data-theme="light"] .space-page .stage-tools button { color: #274a56; }
html[data-theme="light"] .station-page .stage-readout .readout-value { color: #0b2733 !important; }

/* Final premium readability pass */
html[data-theme="light"] .el-immersive .el-summary,
html[data-theme="light"] .el-immersive .el-footnote,
html[data-theme="light"] .mass-immersive .panel .summary,
html[data-theme="light"] .mass-immersive .panel .measure,
html[data-theme="light"] .mass-immersive .panel .measure-line {
  font-size: 12px !important;
  line-height: 1.85 !important;
  color: #1d3d49 !important;
}
html[data-theme="light"] .el-immersive .el-footnote { color: #48636c !important; }
.mass-page .mass-immersive .band-row span { font-size: 10px; }
.mass-page .mass-immersive .band-row b { font-size: 10px; }
html[data-theme="light"] .elements-page .el-intro h1 { color: #0d2b37 !important; }
html[data-theme="light"] .elements-page .el-intro h1 em { color: #0c6c8c !important; font-style: normal; }
html[data-theme="light"] .elements-page .el-lede { color: #365563; }
html[data-theme="light"] .elements-page .el-intro .eyebrow { color: #57727f; }
html[data-theme="light"] .mass-page .mass-intro h1 { color: #0d2b37 !important; }
html[data-theme="light"] .mass-page .mass-intro h1 em { color: #a06c2c !important; font-style: normal; }
html[data-theme="light"] .mass-page .mass-lede { color: #365563; }
html[data-theme="light"] .mass-page .mass-intro .eyebrow { color: #57727f; }
html[data-theme="light"] .mass-page .mass-depth { color: #365563; }

/* Brand mark · Cosmic Spiral 01 */
.atlas-symbol,
.brand-mark {
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
  overflow: hidden;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-indent: -9999px;
  background: url('/symbol.svg?v=1.3.0-01') center / contain no-repeat !important;
}
html[data-theme="light"] .atlas-symbol,
html[data-theme="light"] .brand-mark {
  background-image: url('/symbol-light.svg?v=1.3.0-01') !important;
}
@media (max-width: 760px) {
  .atlas-symbol, .brand-mark { width: 24px !important; height: 24px !important; flex-basis: 24px; }
}
@media (max-width: 600px) {
  .atlas-symbol, .brand-mark { width: 22px !important; height: 22px !important; flex-basis: 22px; }
}

/* Language-aware navigation labels. */
.nav-label-zh{display:inline!important}
.nav-label-en{display:none!important}
html[data-lang="en"] .nav-label-zh{display:none!important}
html[data-lang="en"] .nav-label-en{display:inline!important}
.topbar nav a .nav-label,
.atlas-header nav a .nav-label,
.app-dock-label .nav-label{font:inherit!important;letter-spacing:inherit!important;color:inherit!important;text-transform:none!important;white-space:nowrap}

/* ---------- 全站统一：页头高度、页脚高度、移动端信息层级 ---------- */
/* 桌面页脚统一 40px。station/space 的站点级规则优先级更高，这里显式覆盖。 */
.station-page .site-footer,
.space-page .site-footer {
  height: 40px;
  min-height: 40px;
  padding: 0 24px;
  font-size: 8.5px;
}
.site-footer,
.atlas-footer {
  height: 40px !important;
  min-height: 40px !important;
}

@media (max-width: 600px) {
  /* 所有站点移动端页头统一 52px；舞台为页头 + 内容 + 底部 Dock 留出 57px。 */
  .station-page .topbar,
  .space-page .topbar {
    height: var(--atlas-header-h);
    min-height: var(--atlas-header-h);
    padding: 0 14px;
  }
  .station-page .station-main { height: calc(100dvh - 109px); }
  .space-page .explorer { height: calc(100dvh - 109px); }
  .space-page .brand-preview { top: 60px; }
  .space-page .architecture-link { top: 66px; }

  /* 可滚动页面在底部预留 Dock 高度，让页脚能完整滚到 Dock 上方。 */
  body { padding-bottom: 57px; }

  /* 移动页脚统一 44px：隐藏品牌长句，保留“关于/版权/许可”和“法律/域名”。 */
  .site-footer,
  .atlas-footer,
  .station-page .site-footer,
  .space-page .site-footer {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 7px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    overflow: hidden;
  }
  .site-footer .footer-brand,
  .atlas-footer .footer-brand { display: none !important; }
  .station-page .site-footer > span:last-child,
  .space-page .site-footer > span:last-child { display: inline-flex !important; align-items: center; gap: 4px; }
  .site-footer > span,
  .atlas-footer > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .site-footer .footer-meta,
  .atlas-footer .footer-meta {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .site-footer .footer-legal,
  .atlas-footer .footer-legal { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; white-space: nowrap; }

  /* 3D 舞台页：页脚压缩为 Dock 上方的一条法律信息条，保证始终可见。 */
  .station-page .site-footer,
  .space-page .site-footer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 57px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    background: linear-gradient(180deg, rgba(4, 8, 15, .55), rgba(4, 8, 15, .78));
    border-top: 1px solid rgba(160, 190, 220, .1);
    font-size: 8px !important;
    z-index: 30;
    pointer-events: auto;
  }
  .station-page .site-footer .footer-brand,
  .station-page .site-footer .footer-meta,
  .space-page .site-footer .footer-brand,
  .space-page .site-footer .footer-meta { display: none !important; }
  .station-page .site-footer .footer-legal,
  .space-page .site-footer .footer-legal { display: inline-flex !important; align-items: center; gap: 5px; white-space: nowrap; }

  /* 移动端 3D 与文字分层：标题区加局部压暗，站台读数改为半透明 HUD。 */
  .space-page .stage-caption {
    padding: 10px 14px 12px;
    margin: -8px 0 0 -10px;
    background: linear-gradient(100deg, rgba(3, 8, 16, .84), rgba(3, 8, 16, .5) 62%, rgba(3, 8, 16, 0));
    border-radius: 8px;
    text-shadow: 0 1px 18px rgba(0, 0, 0, .75);
  }
  .station-page .station-caption {
    text-shadow: 0 1px 18px rgba(0, 0, 0, .8), 0 0 4px rgba(0, 0, 0, .6);
  }
  .station-page .stage-readout {
    max-width: 82%;
    padding: 10px 14px 11px;
    background: linear-gradient(120deg, rgba(4, 9, 16, .86), rgba(4, 9, 16, .5));
    border: 1px solid rgba(154, 183, 214, .16);
    border-left: 2px solid var(--station-accent);
    border-radius: 6px;
    backdrop-filter: blur(12px) saturate(110%);
    -webkit-backdrop-filter: blur(12px) saturate(110%);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
  }
}

html[data-theme="light"] .space-page .stage-caption {
  background: linear-gradient(100deg, rgba(248, 251, 253, .9), rgba(248, 251, 253, .55) 62%, rgba(248, 251, 253, 0));
  text-shadow: 0 1px 12px rgba(255, 255, 255, .7);
}
html[data-theme="light"] .station-page .site-footer,
html[data-theme="light"] .space-page .site-footer {
  background: linear-gradient(180deg, rgba(248, 251, 253, .6), rgba(248, 251, 253, .86));
  border-top-color: rgba(20, 48, 66, .12);
}
html[data-theme="light"] .station-page .station-caption { text-shadow: 0 1px 14px rgba(255, 255, 255, .8); }
html[data-theme="light"] .station-page .stage-readout {
  background: linear-gradient(120deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .62));
  border-color: rgba(20, 48, 66, .16);
  text-shadow: none;
}



/* 页脚法律信息：六站统一字号与单行节奏 */
.site-footer .footer-legal,.atlas-footer .footer-legal{font-size:10px!important;line-height:1.4!important;flex-wrap:nowrap!important;white-space:nowrap!important}
@media (max-width:600px){.site-footer .footer-legal,.atlas-footer .footer-legal{font-size:9px!important;line-height:1.4!important}}


.site-footer .footer-legal,.atlas-footer .footer-legal{height:auto!important;min-height:0!important;max-height:none!important;padding-block:0!important;align-self:center!important}

/* 浅色 3D 舞台：读数与标题的可读性修正 */
html[data-theme="light"] .space-page .mobile-measure{
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(243,248,250,.9))!important;
  border:1px solid rgba(24,49,63,.12);
  box-shadow:0 10px 28px rgba(29,57,70,.12);
}
html[data-theme="light"] .space-page .mobile-measure span,
html[data-theme="light"] .space-page .mobile-measure em,
html[data-theme="light"] .space-page .mobile-measure i{color:#315463!important;text-shadow:none!important}
html[data-theme="light"] .space-page .mobile-measure strong{color:#0f2e3d!important;text-shadow:none!important}
html[data-theme="light"] .space-page .stage-bottom span,
html[data-theme="light"] .space-page .stage-bottom strong{color:#315463!important;text-shadow:0 1px 0 rgba(255,255,255,.65)}
html[data-theme="light"] .station-page .station-caption{
  background:linear-gradient(100deg,rgba(250,252,253,.94),rgba(250,252,253,.55) 72%,rgba(250,252,253,0));
  padding:8px 12px 10px;margin:-8px 0 0 -10px;border-radius:10px;
}
html[data-theme="light"] .elements-page .el-intro,
html[data-theme="light"] .mass-page .mass-intro{
  background:linear-gradient(100deg,rgba(248,251,253,.94),rgba(248,251,253,.55) 76%,rgba(248,251,253,0));
  border-radius:10px;padding:8px 12px 10px;top:58px;left:8px;
}

/* v18f-hud */
@media (min-width:901px){
  .station-page .station-card{
    bottom:8px !important;
    right:24px !important;
    width:290px !important;
    max-height:none !important;
    padding:20px 18px !important;
    scrollbar-width:thin;
  }
  .station-page .station-card .event-value{
    font-size:17.5px !important;
    line-height:26px !important;
    margin:18px 0 14px !important;
  }
  .station-page .station-card .event-summary{
    font-size:11px !important;
    line-height:20.5px !important;
    margin-bottom:16px !important;
  }
  .station-page .station-caption{
    width:420px;
    max-width:calc(100vw - 590px);
    padding:10px 14px 12px;
    border-radius:12px;
    background:linear-gradient(100deg,rgba(5,12,20,.78),rgba(5,12,20,.3) 60%,rgba(5,12,20,0) 96%);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
  }
  html[data-theme="light"] .station-page .station-caption{
    background:linear-gradient(100deg,rgba(249,252,253,.92),rgba(249,252,253,.44) 60%,rgba(249,252,253,0) 96%);
  }
  html[data-theme="dark"] .station-page .stage-readout{
    background:linear-gradient(90deg,rgba(3,10,22,.72),rgba(3,10,22,.16));
  }
  html[data-theme="light"] .station-page .stage-readout{
    background:linear-gradient(120deg,rgba(255,255,255,.88),rgba(255,255,255,.58));
  }
}
@media (max-width:900px){
  html[data-theme="light"] .station-page .station-caption{
    background:linear-gradient(100deg,rgba(249,252,253,.88),rgba(249,252,253,.48) 74%,rgba(249,252,253,0));
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
  }
  html[data-theme="light"] .station-page .stage-readout{
    background:linear-gradient(120deg,rgba(255,255,255,.7),rgba(255,255,255,.42)) !important;
    -webkit-backdrop-filter:blur(14px) saturate(1.08);
    backdrop-filter:blur(14px) saturate(1.08);
  }
  html[data-theme="light"] .station-page .station-console{
    background:rgba(249,252,253,.64) !important;
    -webkit-backdrop-filter:blur(16px) saturate(1.08);
    backdrop-filter:blur(16px) saturate(1.08);
  }
  .station-page .stage-readout{
    padding:8px 12px 9px !important;
  }
  .station-page .stage-readout .readout-label{
    font-size:9px !important;
    line-height:1.35 !important;
  }
  .station-page .stage-readout .readout-value{
    font-size:24px !important;
    line-height:1.18 !important;
    margin:2px 0 3px !important;
  }
  .station-page .stage-readout .readout-context{
    font-size:9px !important;
    line-height:1.35 !important;
  }
  .station-page .station-console{
    padding:10px 14px 12px !important;
  }
  html[data-theme="light"] .space-page .mobile-measure{
    background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(243,248,250,.68)) !important;
    -webkit-backdrop-filter:blur(14px) saturate(1.06);
    backdrop-filter:blur(14px) saturate(1.06);
  }
  html[data-theme="light"] .space-page .scale-console{
    background:rgba(249,252,253,.74) !important;
    -webkit-backdrop-filter:blur(16px) saturate(1.08);
    backdrop-filter:blur(16px) saturate(1.08);
  }
}

/* v18f-light-canvas */
html[data-theme="light"] .station-page canvas{
  filter:saturate(1.18) contrast(1.1) brightness(.98);
}
/* v19-unified-chrome */
.atlas-header .brand-line{display:none!important}
@media (max-width:600px){
  .site-footer,.atlas-footer{
    position:fixed!important;left:0;right:0;bottom:57px!important;
    height:30px!important;min-height:30px!important;
    padding:0 12px!important;display:flex!important;align-items:center!important;
    justify-content:flex-end!important;gap:0!important;
    background:linear-gradient(180deg,rgba(4,8,15,.55),rgba(4,8,15,.78));
    border-top:1px solid rgba(160,190,220,.1);
    z-index:30;overflow:hidden;white-space:nowrap;pointer-events:auto;
  }
  .site-footer a,.atlas-footer a{display:inline-flex;align-items:center;min-height:30px}
  .site-footer .footer-brand,.atlas-footer .footer-brand{display:none!important}
  .site-footer .footer-meta,.atlas-footer .footer-meta{display:inline-flex!important;align-items:center;gap:4px;font-size:8px!important;flex:0 0 auto}
  .site-footer .footer-meta a,.atlas-footer .footer-meta a{font-size:8px!important}
  .station-page .site-footer .footer-meta,.space-page .site-footer .footer-meta{display:inline-flex!important}
  .site-footer .footer-meta>a:first-child{display:none!important}
  .site-footer .footer-meta>.footer-divider{display:none!important}
  .site-footer .footer-legal>span:last-child{display:none!important}
  .site-footer .footer-legal .footer-divider:nth-of-type(2){display:none!important}
  .site-footer .footer-meta{margin-left:auto!important}
  .site-footer .footer-legal{margin-left:0!important;width:auto!important;flex:0 0 auto!important}
  .site-footer .footer-legal,.atlas-footer .footer-legal{display:inline-flex!important;align-items:center;gap:5px;white-space:nowrap;font-size:8px!important}
  html[data-theme="light"] .site-footer,html[data-theme="light"] .atlas-footer{
    background:linear-gradient(180deg,rgba(248,251,253,.66),rgba(248,251,253,.9));
    border-top-color:rgba(20,48,66,.12);
  }
  body{padding-bottom:87px!important}
  .topbar .brand{min-height:36px;padding-block:7px}
}
html[data-theme="light"] .station-page .station-caption h2{font-weight:400!important}
html[data-theme="light"] .station-page .station-backdrop{background:#e8f0f5!important}
html[data-theme="light"] .station-page .station-caption{
  background:#f8fbfc!important;
  border:1px solid rgba(18,50,66,.08)!important;
  box-shadow:0 10px 30px rgba(20,52,68,.12)!important;
  z-index:8!important;
}
html[data-theme="light"] .station-page .station-caption::before{display:none!important}
html[data-theme="light"] .station-page .station-caption .eyebrow{color:#5d7b85!important;text-shadow:none!important}
html[data-theme="light"] .station-page .station-caption h2{color:#0a2733!important;text-shadow:none!important}
html[data-theme="light"] .station-page .station-caption .scene-description{color:#4a6670!important;text-shadow:none!important}
@media (max-width:600px){
  html[data-theme="light"] .site-footer,
  html[data-theme="light"] .atlas-footer{
    background:#f8fbfc!important;
    border-top:1px solid rgba(18,50,66,.12)!important;
    box-shadow:0 -4px 18px rgba(20,52,68,.06)!important;
  }
  html[data-theme="light"] .site-footer .footer-meta,
  html[data-theme="light"] .site-footer .footer-legal,
  html[data-theme="light"] .atlas-footer .footer-meta,
  html[data-theme="light"] .atlas-footer .footer-legal{color:#5b7380!important}
  html[data-theme="light"] .site-footer .footer-meta a,
  html[data-theme="light"] .site-footer .footer-legal a,
  html[data-theme="light"] .atlas-footer .footer-meta a,
  html[data-theme="light"] .atlas-footer .footer-legal a{color:#36515f!important}
  html[data-theme="light"] .site-footer .footer-divider,
  html[data-theme="light"] .atlas-footer .footer-divider{color:#9db0ba!important}
  html[data-theme="dark"] .site-footer,
  html[data-theme="dark"] .atlas-footer{
    background:#04070d!important;
  }
  html[data-theme="dark"] .site-footer .footer-meta,
  html[data-theme="dark"] .site-footer .footer-legal,
  html[data-theme="dark"] .atlas-footer .footer-meta,
  html[data-theme="dark"] .atlas-footer .footer-legal{color:#93a8ba!important}
  html[data-theme="dark"] .site-footer .footer-meta a,
  html[data-theme="dark"] .site-footer .footer-legal a,
  html[data-theme="dark"] .atlas-footer .footer-meta a,
  html[data-theme="dark"] .atlas-footer .footer-legal a{color:#b8c9d8!important}
  .site-footer .footer-meta,.atlas-footer .footer-meta,
  .site-footer .footer-legal,.atlas-footer .footer-legal{font-size:10px!important;line-height:1.35!important}
  .site-footer .footer-meta a,.atlas-footer .footer-meta a{font-size:10px!important}
}
html[data-theme="light"] .prose-page>p,
html[data-theme="light"] .prose-page .article-lead,
html[data-theme="light"] .prose-page .page-intro,
html[data-theme="light"] .article-prose p,
html[data-theme="light"] .article-sources p,
html[data-theme="light"] .article-sources li,
html[data-theme="light"] .legal-content p,
html[data-theme="light"] .legal-content li{color:#35515f!important}
.mass-page .mass-immersive .summary{-webkit-line-clamp:4!important}
@media (max-width:600px){
  .mass-page .mass-immersive .console{bottom:24px!important;padding-bottom:9px!important}
  .mass-page .mass-immersive .console .actions{margin-top:5px!important}
}
/* v19-space-mobile: 收起快捷对象条，压缩标题与读数，让地球回到画面中心 */
@media (max-width:600px){
  .space-page .catalog-meta,
  .space-page .object-list{display:none!important}
  .space-page .catalog{padding-bottom:8px!important}
  .space-page #scene-subtitle{display:none!important}
  .space-page .stage-caption #scene-title{font-size:30px!important;line-height:1.1!important;margin:4px 0 2px!important}
  .space-page .stage-caption .scene-description{font-size:10.5px!important;line-height:1.45!important;margin:4px 0 6px!important}
  .space-page .stage-caption{width:220px!important;max-width:calc(100vw - 32px)!important;padding:10px 12px 8px!important}
  .space-page .mobile-measure{width:196px!important;max-width:calc(100vw - 32px)!important;padding:7px 9px!important}
}
/* v19-space-mobile-2: 收紧舞台信息层，给地球让出高度 */
@media (max-width:600px){
  .space-page .stage-top{top:110px!important}
  .space-page .scene-actions{top:140px!important}
  .space-page .stage-caption{top:202px!important}
  .space-page .stage-tools{top:252px!important}
  .space-page .stage-caption .eyebrow{display:block!important;font-size:7px!important;line-height:1.3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .space-page .stage-caption #scene-title{font-size:26px!important;line-height:1.1!important}
  .space-page .stage-caption .scene-description{display:none!important}
  .space-page .mobile-measure{padding:5px 8px!important}
  .space-page .mobile-measure span{font-size:7px!important;line-height:1.2!important}
  .space-page .mobile-measure strong{font-size:15px!important;line-height:1.2!important}
  .space-page .mobile-measure em{font-size:8px!important;line-height:1.3!important}
  .space-page .mobile-measure .mobile-disclaimer{font-size:6px!important;line-height:1.3!important}
}
/* v19-elements-mobile: 底部控制条上移，避免被固定页脚遮住 */
@media (max-width:600px){
  .el-immersive .console{bottom:44px!important}
  .el-immersive .console .actions{margin-top:4px!important}
}

/* v19-light-content: 元素/质量内容区在浅色主题下不再保留深色黑板 */
html[data-theme="light"] .elements-page{--el-bg:#eef4f7;--el-ink:#14232b;--el-dim:#3f5865;--el-line:rgba(26,58,73,.16);--el-accent:#9a6a24;--el-teal:#0b6b7a;--el-violet:#5d4b92;--el-amber:#8a5a1c;background:#eef4f7;color:#14232b}
html[data-theme="light"] .elements-page :where(.el-facts>div,.el-step,.el-links a,.el-detail-card,.el-cell){background:#f8fbfc!important;color:#35515f!important;border-color:rgba(26,58,73,.16)!important}
html[data-theme="light"] .elements-page .el-cell:hover,html[data-theme="light"] .elements-page .el-links a:hover{background:#eaf3f7!important}
html[data-theme="light"] .elements-page .el-detail-card :where(h3,h4,p,dt,dd,div,span,code){color:#35515f!important}
html[data-theme="light"] .elements-page .el-detail-card .el-symbol{color:#9a6a24!important}
html[data-theme="light"] .elements-page .el-links a :where(span,small,p,strong){color:#35515f!important}
html[data-theme="light"] .mass-page{--m-bg:#eef4f7;--m-ink:#14232b;--m-dim:#3f5865;--m-line:rgba(26,58,73,.16);--m-accent:#8a5a1c;--m-teal:#0b6b7a;--m-violet:#5d4b92;background:#eef4f7;color:#14232b}
html[data-theme="light"] .mass-page :where(.mass-facts>div,.mass-band,.mass-band-special,.mass-anchor,.mass-measures li){background:#f8fbfc!important;color:#35515f!important;border-color:rgba(26,58,73,.16)!important}
html[data-theme="light"] .mass-page .mass-measures h3{color:#8a5a1c!important}
html[data-theme="light"] .mass-page .mass-measures p{color:#35515f!important}
html[data-theme="light"] .mass-page .mass-band :where(p,dd,span){color:#35515f!important}

/* v19-space-summary: 桌面端简介改为三行截断，避免出现只有 1.5 行的小滚动框 */
@media (min-width:901px){
  .space-page .inspector .detail-summary{max-height:none!important;height:auto!important;flex:0 0 auto!important;overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}
}

/* v19-article-light: 知识文章内质量零值图的浅色文字 */
html[data-theme="light"] .knowledge-article .mass-figure-zero .mass-zero-line strong{color:#35515f!important}
html[data-theme="light"] .knowledge-article .mass-figure-zero .mass-zero-line small{color:#4a6470!important}
html[data-theme="light"] .knowledge-article .mass-figure-caption{color:#4e6672!important}


/* v19-home-card: 首页地球坐标卡在浅色主题下改为浅底深字 */
html[data-theme="light"] .earth-coordinate{background:rgba(248,251,252,.92)!important;border-color:rgba(18,50,66,.22)!important;color:#35515f!important;box-shadow:0 10px 30px rgba(18,50,66,.14)!important}
html[data-theme="light"] .earth-coordinate strong{color:#14232b!important}
html[data-theme="light"] .earth-coordinate :where(span,small,p){color:#4e6672!important}

/* v19-compact-nav: 桌面端导航点击区与 46px 页头对齐 */
@media (min-width:901px){.atlas-header nav a{padding:13px 1px!important}}

/* v19-mobile-labels: 元素详情卡英文标签换行，避免两列标签叠字 */
@media (max-width:600px){
  .el-card .stats{gap:8px 8px!important}
  .el-card .stats label{display:block!important;white-space:normal!important;font-size:7px!important;line-height:1.3!important;min-height:18px}
}
@media (max-width:700px){
  .site-footer{gap:9px!important}
  .site-footer .footer-meta,.site-footer .footer-legal{gap:7px!important}
  .site-footer .footer-legal{margin-left:9px!important}
}

/* v20 light-theme contrast: legal kicker, library filters, source metadata */
html[data-theme="light"] .legal-page .eyebrow{color:#425b66}
html[data-theme="light"] .filter-group button,
html[data-theme="light"] .filter-group button > span{color:#4f6672}
html[data-theme="light"] .filter-group button > span{opacity:1}
html[data-theme="light"] .filter-group button[aria-pressed="true"]{color:#234e5d}
html[data-theme="light"] .el-step-button,
html[data-theme="light"] .el-action{background:#f8fbfc;color:#18343f;border-color:rgba(26,58,73,.28)}

/* v21-touch: 平板与手机的导航、工具、搜索和舞台按钮扩大命中区 */
@media (max-width:1200px){
  .chrome-tools button{height:36px;min-width:36px;padding:0 7px;font-size:9px}
  .chrome-tools .lang-toggle{font-size:10px}
  .chrome-tools .theme-toggle{font-size:14px}
  .search input{height:32px}
  input[type="range"]{min-height:28px}
}
@media (min-width:901px) and (max-width:1200px){
  .atlas-header nav{gap:14px}
  .topbar nav{gap:18px}
  .atlas-header nav a,.topbar nav a{min-width:36px;text-align:center}
}
@media (min-width:601px) and (max-width:900px){
  .atlas-header nav,.topbar nav{gap:6px}
  .atlas-header nav a,.topbar nav a{min-width:36px;text-align:center;padding-left:0;padding-right:0}
  .station-modes button{min-height:34px;display:inline-flex;align-items:center;padding-bottom:0}
  .play-button,.station-actions button{min-height:34px;display:inline-flex;align-items:center}
}
@media (max-width:600px){
  .chrome-tools button{height:38px;min-width:38px}
  .search input{height:30px}
  .asset-status{bottom:92px;max-width:calc(100vw - 32px);font-size:9px;line-height:1.6;text-align:center}
  .station-actions button,.station-modes button,.play-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center}
  .elements-page .el-immersive .actions .btn,
  .mass-page .mass-immersive .actions .btn{min-height:34px;display:inline-flex;align-items:center}
}
@media (max-width:1200px){
  .atlas-header .atlas-brand,
  .topbar .brand{display:inline-flex;align-items:center;min-height:36px;padding-block:7px}
  .site-footer a,
  .atlas-footer a{display:inline-flex;align-items:center;justify-content:center;min-height:30px;min-width:30px}
}
@media (min-width:901px) and (max-width:1200px){
  html[data-theme="light"] .station-page .station-card{background:#f8fbfd!important;backdrop-filter:none!important}
  html[data-theme="dark"] .station-page .station-card{background:#08111e!important;backdrop-filter:none!important}
  .station-page .station-hint{right:320px!important}
}
@media (max-width:600px){
  .space-page .object-list.search-results{
    display:flex!important;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    z-index:8;
    min-height:0;
    max-height:72px;
    margin:4px 0 0;
    padding:7px;
    overflow-x:auto;
    overflow-y:hidden;
    gap:7px;
    flex-direction:row!important;
    background:#071321f2;
    border:1px solid rgba(147,185,241,.28);
    border-radius:5px;
    box-shadow:0 16px 40px #0009;
    backdrop-filter:blur(14px);
  }
  html[data-theme="light"] .space-page .object-list.search-results{background:#f8fbfceb;border-color:rgba(24,49,63,.2);box-shadow:0 14px 34px rgba(18,50,66,.18)}
  html[data-theme="light"] .space-page .object-list.search-results .object-button{background:#fff;color:#264653;border-color:rgba(24,49,63,.18)}
  /* 3D 页的舞台/底部控制条已经占满可视高度，去掉额外的 87px 文档尾部留白，避免多出 30px 无意义纵向滚动。 */
  .space-page,.station-page{padding-bottom:0!important}
}

/* v22-stage-boot: 3D 首帧前给舞台一个明确的加载态，避免手机端出现纯黑空屏 */
@keyframes atlas-stage-spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
html:not([data-three="ready"]) .space-page .cosmic-backdrop::after,
html:not([data-three="ready"]) .station-page .station-backdrop::after{
  content:"图景生成中 · 3D";
  position:absolute;left:50%;top:calc(50% + 22px);transform:translateX(-50%);
  z-index:2;pointer-events:none;
  padding:6px 10px;border:1px solid rgba(137,169,199,.22);border-radius:3px;
  background:rgba(5,12,20,.58);color:#9bb3ca;
  font-size:10px;letter-spacing:.18em;line-height:1.4;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
html:not([data-three="ready"]) .space-page .cosmic-backdrop::before,
html:not([data-three="ready"]) .station-page .station-backdrop::before{
  content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;
  margin:0;transform:translate(-50%,-50%);
  border:1px solid rgba(137,169,199,.28);border-top-color:#b7d0e5;border-radius:50%;
  z-index:2;pointer-events:none;animation:atlas-stage-spin 1.1s linear infinite;
}
html:not([data-three="ready"]) .space-page .cosmic-backdrop,
html:not([data-three="ready"]) .station-page .station-backdrop{
  background:radial-gradient(circle at 62% 44%,rgba(47,88,122,.24),transparent 34%),#04070d;
}
html[data-theme="light"]:not([data-three="ready"]) .space-page .cosmic-backdrop,
html[data-theme="light"]:not([data-three="ready"]) .station-page .station-backdrop{
  background:radial-gradient(circle at 62% 44%,rgba(125,166,194,.2),transparent 36%),#eef4f8;
}
html[data-theme="light"]:not([data-three="ready"]) .space-page .cosmic-backdrop::after,
html[data-theme="light"]:not([data-three="ready"]) .station-page .station-backdrop::after{
  background:rgba(248,252,253,.72);border-color:rgba(28,62,78,.18);color:#536d7a;
}
html[data-theme="light"]:not([data-three="ready"]) .space-page .cosmic-backdrop::before,
html[data-theme="light"]:not([data-three="ready"]) .station-page .station-backdrop::before{
  border-color:rgba(28,62,78,.2);border-top-color:#3d6575;
}
@media (prefers-reduced-motion:reduce){
  html:not([data-three="ready"]) .space-page .cosmic-backdrop::before,
  html:not([data-three="ready"]) .station-page .station-backdrop::before{animation:none}
}
