/* 仅在原版 theme.css + cover.css 之上做轻量增量样式：
   严格保留原版首页布局、配色、字体与按钮质感，只为顶栏「数据工作台」按钮、星图辅助 HUD 和侧滑工作台抽屉补齐样式。 */

/* 禁止封面无意义下滑（已移除下滑后的旧分析区块） */
body.page-cover {
  overflow-x: hidden;
}

/* 顶栏右侧「数据工作台」柔和胶囊按钮（与原版浅色新拟态 / 深色液态玻璃一致） */
.topbar-workbench-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    5px 5px 12px var(--shade),
    -5px -5px 12px var(--light);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 140ms var(--ease);
}

:root[data-theme="dark"] .topbar-workbench-btn {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

.topbar-workbench-btn:hover {
  color: var(--accent);
}
:root[data-theme="dark"] .topbar-workbench-btn:hover {
  border-color: rgba(255, 210, 122, 0.6);
}
.topbar-workbench-btn:active {
  transform: scale(0.96);
}

/* 星图左上角 HUD 按钮组 */
.galaxy-hud-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 星图底部领域星系导航胶囊 */
.galaxy-legend-bar {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 34px);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: min(680px, calc(100vw - 260px));
  overflow-x: auto;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 26, 0.56);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  scrollbar-width: none;
}
.galaxy-legend-bar:empty {
  display: none;
}
.galaxy-legend-bar::-webkit-scrollbar {
  display: none;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 236, 244, 0.85);
  font-family: inherit;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.legend-chip:hover,
.legend-chip.active {
  border-color: rgba(255, 210, 122, 0.65);
  background: rgba(255, 210, 122, 0.13);
  color: #ffd27a;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.galaxy-empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.galaxy-reset.primary-pill {
  border-color: rgba(255, 210, 122, 0.65);
  color: #ffd27a;
  background: rgba(255, 210, 122, 0.1);
}

/* 星球详情卡增量字段（分支色点、权重条、关联星链） */
.atlas-node-card {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.node-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.branch-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}
.node-weight-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.node-weight-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(232, 236, 244, 0.72);
  margin-bottom: 6px;
}
.node-weight-row strong {
  font-family: var(--font-mono);
  color: #ffd27a;
}
.node-weight-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 8px;
}
.node-weight-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #72bcff, #ffd27a);
  transition: width 0.35s var(--ease);
}
.node-links-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.node-links-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(232, 236, 244, 0.5);
}
.node-links-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.node-link-btn {
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecf4;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.node-link-btn:hover {
  border-color: rgba(255, 210, 122, 0.6);
  background: rgba(255, 210, 122, 0.1);
}
.node-link-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}
.node-link-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(114, 188, 255, 0.16);
  color: #8ccaff;
}
.node-link-tag.cross {
  background: rgba(255, 210, 122, 0.18);
  color: #ffd27a;
}
.node-link-reason {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: rgba(232, 236, 244, 0.62);
}

/* 数据工作台侧滑抽屉（浅色新拟态 / 深色液态玻璃自适应） */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 20, 32, 0.34);
  backdrop-filter: blur(4px);
}
.atlas-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: min(510px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--bg);
  color: var(--text);
  box-shadow:
    12px 12px 30px var(--shade),
    -8px -8px 24px var(--light);
  overflow: hidden;
  animation: drawer-in 0.28s var(--ease) both;
}
:root[data-theme="dark"] .atlas-drawer,
body.galaxy-open .atlas-drawer {
  background: linear-gradient(180deg, rgba(18, 22, 34, 0.94) 0%, rgba(10, 13, 22, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e8ecf4;
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 30px 80px rgba(0, 0, 0, 0.65);
}
@keyframes drawer-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.drawer-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.drawer-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.drawer-tab.active {
  color: var(--accent);
  border-color: rgba(169, 119, 34, 0.42);
  background: rgba(217, 154, 43, 0.1);
}
.tab-count {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.85;
}
.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 20px;
  cursor: pointer;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 22px;
}
.drawer-pane {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.drawer-pane.active {
  display: flex;
}

.panel-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}
:root[data-theme="dark"] .panel-card,
body.galaxy-open .panel-card {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.panel-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.panel-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}
.panel-desc code {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(120, 130, 150, 0.14);
}

.drawer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 4px 4px 10px var(--shade), -4px -4px 10px var(--light);
  transition: transform 140ms var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
:root[data-theme="dark"] .drawer-btn,
body.galaxy-open .drawer-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e8ecf4;
  box-shadow: none;
}
.drawer-btn.primary {
  color: var(--accent);
  border-color: rgba(169, 119, 34, 0.55);
}
:root[data-theme="dark"] .drawer-btn.primary,
body.galaxy-open .drawer-btn.primary {
  background: rgba(255, 210, 122, 0.14);
  border-color: rgba(255, 210, 122, 0.55);
  color: #ffd27a;
}
.drawer-btn.danger {
  color: var(--danger);
}
.drawer-btn.sm {
  padding: 5px 11px;
  font-size: 11.5px;
}
.drawer-btn:active {
  transform: scale(0.97);
}
.drawer-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: rgba(100, 145, 210, 0.14);
  color: var(--text-2);
}
.status-chip.ok {
  background: rgba(58, 175, 125, 0.16);
  color: #2f8f66;
}
:root[data-theme="dark"] .status-chip.ok,
body.galaxy-open .status-chip.ok {
  color: #63d8a3;
}
.status-chip.warn {
  background: rgba(217, 154, 43, 0.18);
  color: var(--accent);
}

.check-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-2);
}
.check-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.stat-item {
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.stat-item span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 3px;
}
.stat-item strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

.pipeline-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pipeline-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(120, 130, 150, 0.08);
}
.pipe-state {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.pipe-state.active {
  color: #2f8f66;
}
:root[data-theme="dark"] .pipe-state.active,
body.galaxy-open .pipe-state.active {
  color: #63d8a3;
}
.pipe-state.running {
  color: var(--accent);
}
.pipe-state.error {
  color: var(--danger);
}

.log-box {
  max-height: 165px;
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(120, 130, 150, 0.08);
  font-size: 11.5px;
  line-height: 1.65;
}
.log-entry {
  margin: 0 0 5px;
  color: var(--text-2);
}
.log-entry strong {
  color: var(--accent);
  margin-right: 6px;
}
.muted-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-3);
}

.profile-summary {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.8;
}
.domain-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.domain-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 4px;
}
.domain-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(120, 130, 150, 0.16);
  overflow: hidden;
}
.domain-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #72bcff, #d99a2b);
}
.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.topic-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  border: 1px solid var(--line);
  color: var(--text-2);
}

.atlas-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.atlas-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 10px;
}
.atlas-form input,
.atlas-form textarea {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
  font: inherit;
  font-size: 12.5px;
}
:root[data-theme="dark"] .atlas-form input,
:root[data-theme="dark"] .atlas-form textarea,
body.galaxy-open .atlas-form input,
body.galaxy-open .atlas-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.atlas-form input:focus,
.atlas-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.planets-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}
.planet-row {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.18s var(--ease);
}
.planet-row:hover {
  border-color: var(--accent);
}
.planet-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.planet-row-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
}
.planet-row-title {
  font-weight: 500;
  font-size: 13px;
}
.planet-row-summary {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.planet-row-source {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--text-3);
}
.planet-row-source a {
  color: var(--accent);
  text-decoration: none;
}
.planet-row-source a:hover {
  text-decoration: underline;
}

/* 原版 .node-card 内的知识点出处溯源区 */
.ks-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stellar-bands {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #494235;
  border-radius: 8px;
}
.stellar-bands[hidden], .ks-box .node-card-collapse[hidden] { display: none; }
.stellar-bands button {
  flex: auto;
  min-height: 38px;
  font: inherit;
  font-size: 12px;
  color: #bdc3ce;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.stellar-bands button[aria-pressed="true"] { background: #413427; color: #ffdda3; }
.stellar-bands button:focus-visible { outline: 2px solid #ffdda3; }
@media (pointer: coarse) { .stellar-bands button { min-height: 44px; } }
.ks-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(232, 236, 244, 0.55);
}
.ks-empty {
  margin: 0;
  font-size: 12px;
  color: rgba(232, 236, 244, 0.52);
}
.ks-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ks-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.ks-link {
  font-size: 12px;
  line-height: 1.5;
  color: #ffd27a;
  text-decoration: none;
  word-break: break-word;
}
.ks-link:hover {
  text-decoration: underline;
}
.ks-read-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}
.ks-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}
.ks-sub {
  font-size: 10.5px;
  color: rgba(232, 236, 244, 0.55);
}
.ks-ext-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(140, 202, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.ks-ext-link:hover {
  color: #ffe6b8;
  text-decoration: underline;
}
.ks-explore-bar {
  margin-top: 14px;
}
.ks-warp-btn {
  margin-top: 0 !important;
  font-weight: 500;
}

/* ========== 星球探索 · 跃迁目标选择面板 & 站内一体化阅读器 ========== */
.explore-backdrop {
  position: fixed;
  inset: 0;
  z-index: 62;
  background: rgba(5, 7, 14, 0.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.explore-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 64;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(19, 24, 38, 0.94) 0%, rgba(10, 13, 22, 0.97) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 32px 84px rgba(0, 0, 0, 0.65);
  color: #e8ecf4;
  overflow: hidden;
  animation: explore-pop 0.24s var(--ease) both;
}
@keyframes explore-pop {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(0.985); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.explore-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.explore-kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255, 210, 122, 0.8);
}
.explore-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: #ffd27a;
}
.explore-sub {
  margin: 0;
  font-size: 12.5px;
  color: rgba(232, 236, 244, 0.65);
}
.explore-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 236, 244, 0.72);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.explore-close:hover {
  color: #ffd27a;
  border-color: rgba(255, 210, 122, 0.6);
}
.explore-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 24px;
}
.explore-loading-box,
.explore-error-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  text-align: center;
  color: rgba(232, 236, 244, 0.78);
  font-size: 13.5px;
}
.explore-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 210, 122, 0.22);
  border-top-color: #ffd27a;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.warp-queries-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.warp-queries-label {
  font-size: 11.5px;
  color: rgba(232, 236, 244, 0.52);
}
.warp-query-chip {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: rgba(232, 236, 244, 0.78);
}

.warp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.warp-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.warp-card:hover {
  border-color: rgba(255, 210, 122, 0.55);
  background: rgba(255, 210, 122, 0.045);
  transform: translateY(-2px);
}
.warp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.warp-angle-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 210, 122, 0.16);
  color: #ffd27a;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.warp-metrics {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(232, 236, 244, 0.55);
}
.warp-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.5;
  color: #f4f7fc;
}
.warp-block {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.warp-block.gain {
  background: rgba(255, 210, 122, 0.07);
  border-color: rgba(255, 210, 122, 0.24);
}
.warp-block-label {
  display: block;
  margin: 0 0 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(232, 236, 244, 0.55);
}
.warp-block.gain .warp-block-label {
  color: rgba(255, 210, 122, 0.88);
}
.warp-block-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(232, 236, 244, 0.86);
}
.warp-select-btn {
  margin-top: auto !important;
}

/* 站内一体化知乎阅读器 */
.reader-modal {
  --reader-side-w: clamp(350px, 28vw, 404px);
  color-scheme: dark;
  position: fixed;
  inset: 22px clamp(16px, 5vw, 72px);
  z-index: 66;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(16, 20, 32, 0.96) 0%, rgba(9, 12, 20, 0.98) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 34px 90px rgba(0, 0, 0, 0.72);
  color: #e8ecf4;
  overflow: hidden;
  animation: explore-pop-static 0.22s var(--ease) both;
  transition: max-width 0.28s var(--ease), inset 0.28s var(--ease);
}
.reader-modal[hidden] {
  display: none;
}
.reader-modal.has-chat-open {
  max-width: min(1320px, calc(100vw - 32px));
  inset: 22px clamp(16px, 3vw, 48px);
}
.reader-body-grid {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.reader-modal.has-chat-open .reader-body-grid {
  grid-template-columns: minmax(0, 1fr) var(--reader-side-w);
}
.reader-chat-sidebar {
  display: none;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 24, 0.72);
}
.reader-modal.has-chat-open .reader-chat-sidebar {
  display: flex;
}
.reader-side-scrim {
  position: absolute;
  inset: 0;
  z-index: 11;
  background: rgba(4, 7, 14, 0.56);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.reader-side-scrim[hidden] {
  display: none;
}
@media (min-width: 961px) {
  .reader-side-scrim {
    display: none !important;
  }
}
@keyframes explore-pop-static {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.reader-topbar-left,
.reader-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.reader-pill-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e8ecf4;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.reader-pill-btn.accent {
  border-color: rgba(255, 210, 122, 0.6);
  color: #ffd27a;
  background: rgba(255, 210, 122, 0.12);
}
.reader-account-chip {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(232, 236, 244, 0.8);
}
.reader-account-chip.ok {
  background: rgba(99, 216, 163, 0.16);
  color: #7ee6b6;
}
.reader-account-chip.warn {
  background: rgba(255, 210, 122, 0.16);
  color: #ffd27a;
}
.reader-pipeline-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(114, 188, 255, 0.35);
  background: rgba(114, 188, 255, 0.12);
  color: #a8d4ff;
  font: inherit;
  font-size: 11.5px;
  cursor: default;
}
.reader-pipeline-chip.ready {
  border-color: rgba(99, 216, 163, 0.6);
  background: rgba(99, 216, 163, 0.18);
  color: #8bf0c2;
  cursor: pointer;
}
.reader-qr-bar {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 210, 122, 0.06);
}
.reader-qr-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.reader-qr-img {
  width: 148px;
  height: 148px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}
.reader-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px clamp(20px, 5vw, 56px) 44px;
}
.reader-modal.has-chat-open .reader-content {
  padding-left: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
}
.reader-content,
#pioneerReadSatPane {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 210, 122, 0.26) transparent;
}
.reader-content::-webkit-scrollbar,
#pioneerReadSatPane::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.reader-content::-webkit-scrollbar-track,
#pioneerReadSatPane::-webkit-scrollbar-track {
  background: transparent;
}
.reader-content::-webkit-scrollbar-thumb,
#pioneerReadSatPane::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 210, 122, 0.24);
}
.reader-content::-webkit-scrollbar-thumb:hover,
#pioneerReadSatPane::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 210, 122, 0.44);
}
.reader-article-meta {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(232, 236, 244, 0.56);
}
.reader-article-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.45;
  color: #ffffff;
}
.reader-gain-banner {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 210, 122, 0.32);
  background: rgba(255, 210, 122, 0.08);
  font-size: 13px;
  line-height: 1.65;
  color: #ffe2a4;
}
.reader-question-detail {
  margin: 0 0 20px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid rgba(114, 188, 255, 0.5);
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(232, 236, 244, 0.78);
}
.reader-article-body {
  font-size: 15.5px;
  line-height: 1.92;
  color: rgba(236, 240, 248, 0.9);
  overflow-wrap: anywhere;
}
.reader-article-body p {
  margin: 0 0 1.05em;
}
.reader-article-body h1,
.reader-article-body h2,
.reader-article-body h3 {
  margin: 1.4em 0 0.6em;
  font-family: var(--font-serif);
  color: #ffd27a;
}
.reader-article-body blockquote {
  margin: 1em 0;
  padding: 8px 14px;
  border-left: 3px solid rgba(255, 210, 122, 0.55);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(232, 236, 244, 0.78);
}
.reader-article-body pre,
.reader-article-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
}
.reader-article-body pre {
  padding: 12px 14px;
  overflow-x: auto;
}
.reader-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
}
.reader-article-body a {
  color: #8ccaff;
}
.reader-article-foot {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(232, 236, 244, 0.55);
}
.reader-article-foot a {
  color: #ffd27a;
  text-decoration: none;
}

@media (max-width: 860px) {
  .warp-grid {
    grid-template-columns: 1fr;
  }
  .reader-modal {
    inset: 10px;
  }
}

@media (max-width: 720px) {
  .galaxy-legend-bar {
    max-width: calc(100vw - 32px);
    bottom: 72px;
  }
}

/* ========== 星球探索 · 开拓（黑暗迷雾叠加层、子星图缩略图切换器、热点/自选开拓面板） ========== */
.fog-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.galaxy-hud,
.galaxy-back,
.galaxy-hint,
.galaxy-empty-overlay,
.node-card {
  z-index: 4;
}

.galaxy-fog-badge {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 122, 0.45);
  background: rgba(255, 210, 122, 0.12);
  color: #ffe2a4;
  font-size: 11.5px;
  max-width: min(560px, calc(100vw - 140px));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* 同步后发现全新领域的系统探索建议横幅 */
.frontier-suggest-banner {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  width: min(640px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 210, 122, 0.46);
  background: linear-gradient(180deg, rgba(22, 27, 44, 0.92) 0%, rgba(11, 14, 24, 0.95) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
  color: #eef2fa;
}
.frontier-suggest-copy {
  flex: 1 1 280px;
}
.frontier-suggest-kicker {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #ffd27a;
}
.frontier-suggest-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(236, 240, 248, 0.88);
}
.frontier-suggest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 子星图缩略图切换器 */
.submap-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.submap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.submap-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecf4;
  font: inherit;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.submap-card:hover {
  border-color: rgba(255, 210, 122, 0.62);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}
.submap-card.active {
  border-color: rgba(255, 210, 122, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.4), 0 16px 36px rgba(0, 0, 0, 0.45);
}
.submap-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  background: #060913;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.submap-thumb {
  width: 100%;
  height: 100%;
  display: block;
}
.submap-thumb-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.submap-mode-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.submap-mode-badge.atlas {
  background: rgba(114, 188, 255, 0.2);
  border: 1px solid rgba(114, 188, 255, 0.42);
  color: #a8d4ff;
}
.submap-mode-badge.explore {
  background: rgba(255, 210, 122, 0.22);
  border: 1px solid rgba(255, 210, 122, 0.5);
  color: #ffe2a4;
}
.submap-active-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  background: rgba(99, 216, 163, 0.24);
  border: 1px solid rgba(99, 216, 163, 0.55);
  color: #8bf0c2;
}
.submap-card-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.submap-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.submap-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 16px;
  color: #f4f7fc;
}
.submap-card-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 210, 122, 0.86);
  flex-shrink: 0;
}
.submap-card-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(232, 236, 244, 0.64);
}
.submap-galaxies-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}
.submap-galaxies-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(232, 236, 244, 0.48);
}
.submap-galaxies-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.submap-galaxy-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(236, 240, 248, 0.88);
}

/* 「开拓」发起面板（热点知识话题 + 自定义兴趣主题） */
.frontier-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
}
.frontier-tab {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(232, 236, 244, 0.72);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.frontier-tab.active {
  border-color: rgba(255, 210, 122, 0.65);
  background: rgba(255, 210, 122, 0.14);
  color: #ffd27a;
}
.frontier-refresh-btn {
  margin-left: auto;
}
.frontier-pane {
  display: none;
}
.frontier-pane.active {
  display: block;
}
.frontier-hot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.frontier-custom-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 4px;
}
.frontier-input-label {
  font-family: var(--font-serif);
  font-size: 17px;
  color: #f4f7fc;
}
.frontier-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.frontier-input {
  flex: 1 1 320px;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
}
.frontier-input:focus {
  outline: none;
  border-color: rgba(255, 210, 122, 0.72);
}
.frontier-submit-btn {
  margin-top: 0 !important;
  width: auto !important;
  padding: 12px 20px !important;
}
.frontier-custom-hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(232, 236, 244, 0.64);
}
.frontier-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.frontier-chip-btn {
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
}
.frontier-chip-btn:hover {
  border-color: rgba(255, 210, 122, 0.62);
  color: #ffd27a;
}

/* 工作台同步新领域开拓提醒卡片 */
.wb-frontier-banner {
  border-radius: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(217, 154, 43, 0.45);
  background: linear-gradient(135deg, rgba(217, 154, 43, 0.12), rgba(114, 188, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wb-frontier-banner h2 {
  margin: 4px 0 4px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
}
.wb-frontier-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

@media (max-width: 820px) {
  .frontier-hot-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 宇宙星际转场引擎 & 新增模块宇宙视觉美化（严格不改原版封面/galaxy.js 样式） ========== */

/* 1. 全屏宇宙星际转场层（替代枯燥加载页，兼顾跨页面、子星图切换、跃迁与开拓破境） */
.cosmic-transition {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  clip-path: circle(0% at 50% 50%);
  transition:
    opacity 0.36s var(--ease),
    clip-path 0.52s var(--ease);
}
.cosmic-transition.instant {
  transition: none;
}
.cosmic-transition.on {
  opacity: 1;
  clip-path: circle(145vmax at 50% 50%);
}
.cosmic-transition.leaving {
  opacity: 0;
  clip-path: circle(145vmax at 50% 50%);
  pointer-events: none;
  transition: opacity 0.42s var(--ease);
}
.cosmic-transition-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.cosmic-transition-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 32px;
  max-width: min(520px, calc(100vw - 40px));
  animation: cosmic-center-in 0.45s var(--ease) both;
}
@keyframes cosmic-center-in {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 天文星盘旋转核心（呼应封面星球 .orbit -13deg 轨道美学） */
.cosmic-astrolabe {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
}
.cosmic-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 210, 122, 0.32);
}
.cosmic-ring.r1 {
  inset: 0;
  border-style: solid;
  border-top-color: rgba(255, 210, 122, 0.92);
  border-right-color: rgba(255, 210, 122, 0.16);
  animation: cosmic-spin 3.2s linear infinite;
}
.cosmic-ring.r2 {
  inset: 12px;
  transform: rotate(-13deg) scaleY(0.46);
  border-color: rgba(255, 230, 184, 0.42);
  animation: cosmic-orbit-tilt 4.6s ease-in-out infinite alternate;
}
.cosmic-ring.r3 {
  inset: 22px;
  border-color: rgba(140, 202, 255, 0.34);
  border-bottom-color: rgba(255, 210, 122, 0.78);
  animation: cosmic-spin-rev 2.3s linear infinite;
}
.cosmic-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ffe6b8 48%, #d99a2b 100%);
  box-shadow:
    0 0 16px rgba(255, 210, 122, 0.85),
    0 0 42px rgba(255, 210, 122, 0.4);
  animation: cosmic-core-pulse 1.8s ease-in-out infinite;
}
.cosmic-transition[data-mode="warp"] .cosmic-ring.r1 {
  animation-duration: 1.4s;
}
.cosmic-transition[data-mode="frontier"] .cosmic-core {
  box-shadow:
    0 0 22px rgba(255, 210, 122, 0.95),
    0 0 58px rgba(255, 210, 122, 0.5);
}
@keyframes cosmic-spin {
  to { transform: rotate(360deg); }
}
@keyframes cosmic-spin-rev {
  to { transform: rotate(-360deg); }
}
@keyframes cosmic-orbit-tilt {
  from { transform: rotate(-18deg) scaleY(0.44); opacity: 0.65; }
  to { transform: rotate(-8deg) scaleY(0.52); opacity: 1; }
}
@keyframes cosmic-core-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.86; }
  50% { transform: scale(1.16); opacity: 1; }
}

.cosmic-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255, 210, 122, 0.78);
}
.cosmic-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: 0.06em;
  color: #ffe6b8;
}
.cosmic-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(232, 236, 244, 0.68);
}

/* 白天跨页转场配色适配（浅色新拟态微光星幕） */
.cosmic-transition[data-surface="light"] .cosmic-ring {
  border-color: rgba(169, 119, 34, 0.28);
}
.cosmic-transition[data-surface="light"] .cosmic-ring.r1 {
  border-top-color: rgba(169, 119, 34, 0.85);
}
.cosmic-transition[data-surface="light"] .cosmic-ring.r3 {
  border-color: rgba(88, 106, 134, 0.24);
  border-bottom-color: rgba(217, 154, 43, 0.78);
}
.cosmic-transition[data-surface="light"] .cosmic-kicker {
  color: #a97722;
}
.cosmic-transition[data-surface="light"] .cosmic-title {
  color: #262c35;
}
.cosmic-transition[data-surface="light"] .cosmic-sub {
  color: #5b6674;
}

/* 2. 迷你旋转星盘加载器（用于弹窗内局部检索等待） */
.cosmic-orb-loader {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.cosmic-orb-loader::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 14px rgba(255, 210, 122, 0.85);
  animation: cosmic-core-pulse 1.6s ease-in-out infinite;
}
.cosmic-orb-loader span:first-child {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 210, 122, 0.24);
  border-top-color: #ffd27a;
  animation: cosmic-spin 1.6s linear infinite;
}
.cosmic-orb-loader span:last-child {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(140, 202, 255, 0.25);
  border-bottom-color: rgba(255, 230, 184, 0.75);
  animation: cosmic-spin-rev 2.4s linear infinite;
}

/* 3. 新增浮层与 HUD 宇宙液态玻璃精修（仅作用于新增模块元素） */
#galaxySwitchMapBtn,
#galaxyFrontierBtn {
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.34);
}
#galaxyFrontierBtn {
  background: linear-gradient(180deg, rgba(255, 210, 122, 0.2) 0%, rgba(255, 210, 122, 0.08) 100%);
  border-color: rgba(255, 210, 122, 0.56);
  color: #ffe6b8;
}
#galaxyFrontierBtn:hover {
  background: linear-gradient(180deg, rgba(255, 210, 122, 0.28) 0%, rgba(255, 210, 122, 0.12) 100%);
  border-color: rgba(255, 210, 122, 0.85);
}

.galaxy-fog-badge {
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 184, 0.2),
    0 10px 26px rgba(0, 0, 0, 0.38);
}
.galaxy-fog-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ffd27a;
  box-shadow: 0 0 10px #ffd27a;
  animation: cosmic-core-pulse 2.2s ease-in-out infinite;
}

/* 弹窗顶部的微弱暖金星云折射层（镜像 cover.css 夜晚质感） */
.explore-modal::before,
.reader-modal::before {
  content: "";
  position: absolute;
  top: -80px;
  right: 10%;
  width: 420px;
  height: 220px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 210, 122, 0.11), transparent 64%),
    radial-gradient(ellipse at 25% 40%, rgba(140, 202, 255, 0.07), transparent 65%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}
.explore-modal > *,
.reader-modal > * {
  position: relative;
  z-index: 1;
}
.explore-head {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 100%);
}
.explore-close {
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 140ms var(--ease), background 0.2s var(--ease);
}
.explore-close:hover {
  background: rgba(255, 210, 122, 0.1);
}
.explore-close:active {
  transform: scale(0.92);
}

/* 子星图切换卡：天文图版质感 + 阶梯入场动画 + 缩略图轻缓缩放 */
.submap-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.32);
  animation: cosmic-card-rise 0.36s var(--ease) both;
}
.submap-card:nth-child(2) { animation-delay: 0.04s; }
.submap-card:nth-child(3) { animation-delay: 0.08s; }
.submap-card:nth-child(4) { animation-delay: 0.12s; }
.submap-card:nth-child(5) { animation-delay: 0.16s; }
.submap-thumb {
  transition: transform 0.55s var(--ease);
}
.submap-card:hover .submap-thumb {
  transform: scale(1.04);
}
.submap-sector-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: rgba(255, 210, 122, 0.62);
}

/* 跃迁与开拓话题卡片：液态玻璃质感 + 序号坐标 + 阶梯动效 */
.warp-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.28);
  animation: cosmic-card-rise 0.38s var(--ease) both;
}
.warp-card:nth-child(2) { animation-delay: 0.06s; }
.warp-card:nth-child(3) { animation-delay: 0.12s; }
.warp-card:nth-child(4) { animation-delay: 0.18s; }
@keyframes cosmic-card-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.warp-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 184, 0.24),
    0 16px 38px rgba(0, 0, 0, 0.44);
}
.warp-order-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 210, 122, 0.58);
  margin-right: 6px;
}

/* 站内知乎阅读器：天文观测舱沉浸排版 */
.reader-content {
  scroll-behavior: smooth;
}
.reader-article-head,
.reader-question-detail,
.reader-article-body,
.reader-article-foot {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}
.reader-pill-btn {
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 140ms var(--ease);
}
.reader-pill-btn:hover {
  border-color: rgba(255, 210, 122, 0.58);
  color: #ffe6b8;
}
.reader-pill-btn:active {
  transform: scale(0.96);
}
.reader-pipeline-chip.ready {
  box-shadow: 0 0 18px rgba(99, 216, 163, 0.24);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.reader-pipeline-chip.ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(99, 216, 163, 0.36);
}

/* 同步发现全新领域的建议横幅微光动效 */
.frontier-suggest-banner {
  animation: cosmic-card-rise 0.38s var(--ease) both;
}
.wb-frontier-banner {
  position: relative;
  overflow: hidden;
  box-shadow:
    6px 6px 18px var(--shade),
    -6px -6px 18px var(--light);
  animation: wb-card-enter 0.45s var(--ease) both;
}
:root[data-theme="dark"] .wb-frontier-banner {
  border-color: rgba(255, 210, 122, 0.42);
  background: linear-gradient(135deg, rgba(255, 210, 122, 0.12) 0%, rgba(18, 24, 42, 0.86) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 184, 0.2),
    0 18px 42px rgba(0, 0, 0, 0.46);
}

/* 新增卡片内跃迁按钮：呼应宇宙星光金 */
.ks-warp-btn {
  background: linear-gradient(180deg, rgba(255, 210, 122, 0.16) 0%, rgba(255, 210, 122, 0.06) 100%) !important;
  border-color: rgba(255, 210, 122, 0.52) !important;
  box-shadow: inset 0 1px 0 rgba(255, 230, 184, 0.2);
}
.ks-warp-btn:hover {
  background: linear-gradient(180deg, rgba(255, 210, 122, 0.26) 0%, rgba(255, 210, 122, 0.12) 100%) !important;
  border-color: rgba(255, 210, 122, 0.85) !important;
}

/* ========== 星球探索 · 拓星子模块（3D 星球宇宙俯瞰检视 + 4 阶段阅读引导 + 卫星侧栏阅读） ========== */
.pioneer-view {
  position: fixed;
  inset: 0;
  z-index: 68;
  background: #05070e;
  color: #e8ecf4;
  display: flex;
  flex-direction: column;
  animation: explore-pop-static 0.34s var(--ease) both;
}
.pioneer-view[hidden] {
  display: none;
}
.pioneer-layout {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 470px);
}

/* 左侧：3D 可拖拽星球检视舞台 */
.pioneer-stage-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #101526 0%, #07080f 60%, #030408 100%);
}
.pioneer-planet-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.pioneer-stage-hud {
  position: absolute;
  top: clamp(20px, 3.2vh, 36px);
  left: clamp(20px, 3.2vw, 40px);
  z-index: 2;
  pointer-events: none;
  max-width: min(480px, calc(100% - 48px));
}
.pioneer-planet-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: 0.04em;
  color: #ffe6b8;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.72);
}
.pioneer-stage-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 8, 15, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(232, 236, 244, 0.62);
  white-space: nowrap;
  pointer-events: none;
}

/* 右侧：液态玻璃四阶段拓星引导舱 */
.pioneer-cabin {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(18, 23, 38, 0.94) 0%, rgba(9, 12, 22, 0.98) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08), -20px 0 60px rgba(0, 0, 0, 0.45);
}
.pioneer-cabin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pioneer-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pstep {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  color: rgba(232, 236, 244, 0.45);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.pstep em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  opacity: 0.78;
}
.pstep.active {
  border-color: rgba(255, 210, 122, 0.65);
  background: rgba(255, 210, 122, 0.14);
  color: #ffe6b8;
}
.pstep.done {
  border-color: rgba(126, 230, 182, 0.45);
  background: rgba(126, 230, 182, 0.1);
  color: #8bf0c2;
}
.pioneer-stage-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pstage-title {
  margin: 4px 0 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 21px;
  color: #ffe6b8;
}
.pstage-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(232, 236, 244, 0.74);
}
.pioneer-prereq-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.pioneer-prereq-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255, 210, 122, 0.34);
  background: rgba(255, 210, 122, 0.08);
  color: #ffe2a4;
}

/* 阶段 1：前置知识调查卡片 */
.psurvey-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.psurvey-card {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: cosmic-card-rise 0.34s var(--ease) both;
}
.psurvey-q-head {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.psurvey-concept {
  font-size: 11.5px;
  color: #ffd27a;
}
.psurvey-q-text {
  margin: 0 0 11px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #f4f7fc;
}
.psurvey-opts {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.psurvey-opt {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(232, 236, 244, 0.8);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.psurvey-opt:hover {
  border-color: rgba(255, 210, 122, 0.5);
  color: #ffe6b8;
}
.psurvey-opt.active {
  border-color: rgba(255, 210, 122, 0.82);
  background: rgba(255, 210, 122, 0.16);
  color: #ffe6b8;
}

/* 阶段 2：卫星列表 */
.psat-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.psat-list-item {
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 210, 122, 0.28);
  background: linear-gradient(180deg, rgba(255, 210, 122, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
  color: #e8ecf4;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.psat-list-item:hover {
  border-color: rgba(255, 210, 122, 0.72);
  transform: translateY(-1px);
}
.psat-list-item.read {
  border-color: rgba(126, 230, 182, 0.36);
  background: linear-gradient(180deg, rgba(126, 230, 182, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.psat-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.psat-item-top strong {
  font-size: 14px;
  font-weight: 500;
  color: #fff6e0;
}
.psat-badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  background: rgba(255, 210, 122, 0.18);
  color: #ffd27a;
}
.psat-badge.done {
  background: rgba(126, 230, 182, 0.2);
  color: #8bf0c2;
}
.psat-item-why {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(232, 236, 244, 0.7);
}

/* 阶段 4：开拓点火摘要卡 */
.ppioneer-summary-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 210, 122, 0.42);
  background: linear-gradient(180deg, rgba(255, 210, 122, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 184, 0.24), 0 18px 42px rgba(0, 0, 0, 0.38);
}
.ppioneer-kp {
  margin: 6px 0 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  color: #ffe6b8;
}
.ppioneer-sum {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(236, 240, 248, 0.86);
}
.ppioneer-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 210, 122, 0.8);
}
.pstage-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.pioneer-primary-btn,
.pioneer-ignite-btn {
  padding: 13px 16px !important;
  font-size: 13px !important;
}
.pioneer-ignite-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.36),
    0 0 28px rgba(255, 210, 122, 0.26) !important;
}

/* 卫星知识悬浮小窗（检视页与阅读页共用） */
.psat-popup {
  position: absolute;
  left: 24px;
  bottom: 62px;
  z-index: 6;
  width: min(440px, calc(100% - 48px));
  max-height: min(520px, calc(100% - 140px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(255, 210, 122, 0.42);
  background: linear-gradient(180deg, rgba(18, 24, 40, 0.96) 0%, rgba(10, 13, 24, 0.98) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 184, 0.22), 0 28px 70px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  animation: cosmic-card-rise 0.26s var(--ease) both;
}
.psat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.psat-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  color: #ffe6b8;
}
.psat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.psat-explain {
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(236, 240, 248, 0.9);
}
.psat-takeaways ul,
.psat-sources ul {
  margin: 6px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(232, 236, 244, 0.82);
}
.psat-sources a {
  color: #ffd27a;
  text-decoration: none;
}
.psat-sources a:hover {
  text-decoration: underline;
}
.psat-sources em {
  font-style: normal;
  color: rgba(232, 236, 244, 0.5);
  font-size: 11px;
}

/* 阶段 3：主文阅读页 + 右侧「卫星检视与璇玑伴航」页签栏 */
.pioneer-read-overlay {
  --reader-side-w: clamp(350px, 28vw, 404px);
  color-scheme: dark;
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(14, 18, 30, 0.98) 0%, rgba(7, 9, 16, 0.99) 100%);
  animation: explore-pop-static 0.28s var(--ease) both;
}
.pioneer-read-overlay[hidden] {
  display: none;
}
.pread-side-toggle-btn {
  display: none;
}
.pioneer-read-stage-pill {
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  background: rgba(255, 210, 122, 0.14);
  border: 1px solid rgba(255, 210, 122, 0.36);
  color: #ffd27a;
}
.pioneer-read-body-grid {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--reader-side-w);
}
.pioneer-read-complete-bar {
  max-width: 72ch;
  margin: 28px auto 8px;
}
.pioneer-read-sidebar {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 24, 0.72);
  padding: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pioneer-read-sidebar .rc-side-pane {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
.pioneer-read-sidebar .rc-side-pane.active {
  display: flex;
}
.pioneer-read-sidebar .rc-side-pane[hidden] {
  display: none;
}
#pioneerReadSatPane {
  padding: 18px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  gap: 14px;
}
.rc-side-pane-chat {
  overflow: hidden;
}
.psat-ask-bar {
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 24, 0.55);
  flex-shrink: 0;
}
.psat-ask-ai-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
}
.pread-side-head h3 {
  margin: 2px 0 6px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  color: #ffe6b8;
}
.pread-side-head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(232, 236, 244, 0.58);
}
.pread-sat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pread-sat-btn {
  width: 100%;
  text-align: left;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 210, 122, 0.24);
  background: rgba(255, 255, 255, 0.035);
  color: #e8ecf4;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.pread-sat-btn:hover,
.pread-sat-btn.active {
  border-color: rgba(255, 210, 122, 0.75);
  background: rgba(255, 210, 122, 0.12);
}
.pread-sat-btn.read {
  border-color: rgba(126, 230, 182, 0.35);
}
.pread-sat-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 210, 122, 0.75);
}
.pread-sat-btn.read .pread-sat-code {
  color: #8bf0c2;
}
.pread-sat-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #fff6e0;
}
.pread-sat-why {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(232, 236, 244, 0.6);
}
.pread-sat-popup {
  left: auto;
  right: calc(var(--reader-side-w) + 18px);
  width: min(420px, calc(100% - var(--reader-side-w) - 36px));
  bottom: 24px;
}

/* 拓星与站内阅读深空视图打开时，轻提示自动匹配暗色液态玻璃质感（不影响原版封面浅色提示） */
body:has(.pioneer-view:not([hidden]), .reader-modal:not([hidden])) .toast {
  background: linear-gradient(180deg, rgba(22, 28, 44, 0.92) 0%, rgba(12, 16, 28, 0.95) 100%);
  border: 1px solid rgba(255, 210, 122, 0.36);
  color: #ffe6b8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 38px rgba(0, 0, 0, 0.52);
}

/* ========== 星域主星检视（已点亮星球直跳列表）与「星域折叠」交互样式 ========== */
.mainstar-planet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}
.mainstar-jump-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 122, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f7fc;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 140ms var(--ease);
}
.mainstar-jump-btn:hover {
  border-color: rgba(255, 210, 122, 0.72);
  background: rgba(255, 210, 122, 0.13);
  color: #ffe6b8;
}
.mainstar-jump-btn em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 210, 122, 0.72);
  flex-shrink: 0;
}

/* 星图左上角「星域折叠」提示胶囊（位于切换星图按钮正下方） */
.galaxy-fold-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
}
.fold-notice-pill {
  margin-top: 0 !important;
  border-color: rgba(255, 210, 122, 0.62) !important;
  background: linear-gradient(180deg, rgba(255, 210, 122, 0.22) 0%, rgba(130, 182, 255, 0.12) 100%) !important;
  color: #ffe6b8 !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 196, 0.26),
    0 0 22px rgba(255, 210, 122, 0.2);
  animation: cosmic-card-rise 0.34s var(--ease) both;
}
.fold-notice-pill:hover {
  border-color: rgba(255, 224, 162, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.36),
    0 0 28px rgba(255, 210, 122, 0.34);
}

/* 切换星图界面内的星域折叠常驻区块 */
.submap-fold-section {
  margin-bottom: 18px;
  padding: 15px 17px;
  border-radius: 18px;
  border: 1px solid rgba(255, 210, 122, 0.36);
  background: linear-gradient(135deg, rgba(255, 210, 122, 0.1) 0%, rgba(114, 188, 255, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 184, 0.18);
}
.submap-fold-hint {
  margin: 2px 0 12px;
  font-size: 12px;
  color: rgba(232, 236, 244, 0.72);
}
.submap-fold-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fold-pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 20, 0.56);
}
.fold-pair-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fold-pair-title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: #ffe6b8;
}
.fold-pair-meta {
  font-size: 11.5px;
  color: rgba(232, 236, 244, 0.64);
}

.fold-modal {
  width: min(560px, calc(100vw - 32px));
}
.fold-confirm-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fold-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.fold-sector-card {
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
}
.fold-sector-card.base {
  border-color: rgba(255, 210, 122, 0.48);
  background: rgba(255, 210, 122, 0.08);
}
.fold-sector-card h4 {
  margin: 4px 0 4px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15.5px;
  color: #ffe6b8;
}
.fold-sector-card p {
  margin: 0;
  font-size: 12px;
  color: rgba(232, 236, 244, 0.68);
}
.fold-arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  color: #ffd27a;
}
.fold-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 960px) {
  .pioneer-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 44vh) 1fr;
  }
  .pioneer-cabin {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .pread-side-toggle-btn {
    display: inline-flex;
    align-items: center;
  }
  .reader-modal,
  .reader-modal.has-chat-open {
    inset: 12px;
    max-width: none;
  }
  .reader-body-grid,
  .reader-modal.has-chat-open .reader-body-grid,
  .pioneer-read-body-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .reader-modal.has-chat-open .reader-content {
    padding-left: clamp(18px, 4vw, 36px);
    padding-right: clamp(18px, 4vw, 36px);
  }
  .reader-chat-sidebar,
  .pioneer-read-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 12;
    width: min(396px, 92%);
    max-height: none;
    display: flex;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 0;
    background: linear-gradient(180deg, rgba(16, 21, 35, 0.98) 0%, rgba(9, 12, 22, 0.99) 100%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.65);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.28s var(--ease),
      opacity 0.22s var(--ease),
      visibility 0s linear 0.28s;
  }
  .reader-modal.has-chat-open .reader-chat-sidebar,
  .pioneer-read-overlay.side-drawer-open .pioneer-read-sidebar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.28s var(--ease),
      opacity 0.22s var(--ease),
      visibility 0s;
  }
  .pread-sat-popup {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 16px;
  }
}

@media (max-width: 760px) {
  .reader-modal,
  .reader-modal.has-chat-open {
    inset: 8px;
    border-radius: 18px;
  }
  .reader-chat-sidebar,
  .pioneer-read-sidebar {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 76dvh;
    max-height: 76dvh;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.72);
    transform: translateY(100%);
  }
  .reader-modal.has-chat-open .reader-chat-sidebar,
  .pioneer-read-overlay.side-drawer-open .pioneer-read-sidebar {
    transform: translateY(0);
  }
}

/* 星图观测视窗 */
#deepSky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.galaxy {
  --atlas-gutter: clamp(20px, 4vw, 60px);
  --atlas-top: max(clamp(22px, 5vh, 54px), env(safe-area-inset-top));
  --atlas-bottom: max(clamp(16px, 3.8vh, 38px), env(safe-area-inset-bottom));
}
.galaxy .galaxy-hud {
  top: var(--atlas-top);
  left: var(--atlas-gutter);
  max-width: calc(100% - 2 * var(--atlas-gutter));
  text-shadow: 0 1px 10px #04070e, 0 0 32px #04070e;
}
.galaxy-eyebrow {
  margin: 0;
  color: #f4ede1;
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.65vw, 40px);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.galaxy-count {
  margin: 8px 0 16px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #bdc6d3;
  letter-spacing: .065em;
}
.galaxy-hud-actions {
  display: inline-flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 100%;
  border: 1px solid #a3adc236;
  border-radius: 7px;
  background: rgba(7, 13, 22, .8);
}
.galaxy-hud-actions .galaxy-reset {
  margin: 0;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #d8dfe8;
  font-size: 12px;
  letter-spacing: .025em;
}
.galaxy-hud-actions .primary-pill { color: #f4d9a7; }
.galaxy-hud-actions .galaxy-reset:disabled { color: #abb3c0; }
@media (hover: hover) {
  .galaxy-hud-actions .galaxy-reset:hover:enabled,
  .frontier-suggest-banner summary:hover { background: rgba(153, 177, 203, .14); }
}
.galaxy .frontier-suggest-banner {
  inset: var(--atlas-top) var(--atlas-gutter) auto auto;
  width: max-content;
  max-width: min(340px, calc(100% - 2 * var(--atlas-gutter)));
  display: block;
  padding: 0;
  border-radius: 7px;
  border-color: #c7ae804a;
  box-shadow: none;
  background: #0a0f19eb;
  animation: none;
  transform: none;
}
.galaxy .frontier-suggest-banner[hidden] { display: none; }
.frontier-suggest-banner summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  border-radius: inherit;
  color: #ead5ae;
  padding: 0 13px;
  font-size: 12px;
  list-style: none;
}
.frontier-suggest-banner summary::-webkit-details-marker { display: none; }
.frontier-suggest-banner summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-1px) rotate(45deg);
  margin-left: 5px;
}
.frontier-suggest-banner details[open] summary { border-bottom: 1px solid #acb7ca26; }
.frontier-suggest-banner details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.frontier-suggest-banner details[open] .frontier-suggest-copy { padding: 12px 14px 0; }
.frontier-suggest-banner details[open] .frontier-suggest-actions { padding: 12px 14px; }
.galaxy .galaxy-back { left: var(--atlas-gutter); bottom: var(--atlas-bottom); }
.galaxy .galaxy-hint {
  right: var(--atlas-gutter);
  bottom: calc(var(--atlas-bottom) + 24px);
  color: #d2d8e1;
  text-shadow: 0 1px 6px #030810, 0 0 18px #030810;
}
.galaxy .galaxy-hint.dim { opacity: .65; }
.galaxy .node-card {
  right: var(--atlas-gutter);
  width: clamp(278px, 28vw, 364px);
  padding: 0;
  border-color: #aab8ca45;
  border-radius: 13px;
  background: #0e1521f5;
  box-shadow: 0 18px 50px #02040b66;
}
.node-card-content {
  max-height: min(68dvh, 700px);
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
  padding: 22px clamp(18px, 2vw, 27px);
  scrollbar-width: thin;
  scrollbar-color: #657184 #121923;
  border-radius: inherit;
}
.galaxy .node-card-close {
  z-index: 1;
  top: 5px;
  right: 5px;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: #0e1521;
  color: #bec6d2;
}
.galaxy .node-card-cluster { padding-right: 27px; color: #d3bc94; }
.galaxy .node-card-name { margin-right: 12px; color: #f3e7cf; }
.galaxy .node-card-text { color: #d6dce5; line-height: 1.75; }
.galaxy .node-card-meta { color: #aab5c4; }
.galaxy .node-card-content:focus-visible { outline-offset: -4px; }
.galaxy .node-card-close:focus-visible,
.galaxy .frontier-suggest-banner summary:focus-visible,
.galaxy .galaxy-reset:focus-visible { outline: 2px solid #edd3a3; outline-offset: 2px; }
@media (pointer: coarse), (max-width: 760px) {
  .galaxy-hud-actions .galaxy-reset,
  .galaxy .galaxy-back,
  .frontier-suggest-banner summary,
  .frontier-suggest-actions button { min-height: 44px; }
  .galaxy .node-card-close { width: 44px; height: 44px; }
}
@media (max-width: 760px) {
  .galaxy {
    --atlas-top: max(20px, env(safe-area-inset-top));
    --atlas-bottom: max(16px, env(safe-area-inset-bottom));
    --atlas-gutter: max(16px, env(safe-area-inset-left));
  }
  .galaxy-count { margin: 5px 0 12px; }
  .galaxy .frontier-suggest-banner {
    inset: auto var(--atlas-gutter) calc(var(--atlas-bottom) + 54px) auto;
  }
  .galaxy:has(.node-card:not([hidden])) .frontier-suggest-banner { visibility: hidden; }
  .galaxy .node-card {
    width: auto;
    inset: auto var(--atlas-gutter) calc(var(--atlas-bottom) + 54px);
  }
  .node-card-content { max-height: 39dvh; padding: 18px 20px; }
  .galaxy .node-card-name { font-size: 21px; }
}
@media (max-height: 510px) and (min-width: 600px) {
  .galaxy { --atlas-top: 14px; --atlas-bottom: 10px; }
  .galaxy .node-card { width: min(310px, 38vw); left: auto; bottom: auto; top: 50%; transform: translateY(-50%); animation: none; }
  .node-card-content { max-height: 72dvh; }
}

/* 靠近知识星球时降低远景曝光，让亮侧地貌保留层次。 */
#deepSky { transition: opacity .65s ease; }
.galaxy:has(.node-card:not([hidden])) #deepSky { opacity: .52; }
@media (prefers-reduced-motion: reduce) {
  #deepSky { transition: none; }
  .galaxy.on { animation: none; clip-path: none; }
}

.sky-credits {
  position: absolute;
  z-index: 4;
  bottom: var(--atlas-bottom);
  right: var(--atlas-gutter);
  margin: 0;
  color: #adb6c5;
  font: 11px/1.5 system-ui, sans-serif;
  text-shadow: 0 1px 5px #03060c;
}
.sky-credits a { color: inherit; text-underline-offset: .2em; }
.sky-credits a:hover, .sky-credits a:focus-visible { color: #fff1d7; }

.galaxy-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 2px 0 8px;
}
.galaxy-status .galaxy-count { margin: 0; }
.galaxy-motion {
  pointer-events: auto;
  padding: 2px 4px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #d8c6a8;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.galaxy-motion:hover { color: #ffedca; }
.galaxy-motion:focus-visible { outline: 2px solid #edd3a3; outline-offset: 2px; }
@media (pointer: coarse), (max-width: 760px) {
  .galaxy-status { margin: 0; }
  .galaxy-motion { min-height: 44px; }
}

/* 星域重命名、阅读日期与跨星域迁移弹窗样式（与新版星空 HUD 兼容） */
.galaxy-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.galaxy-rename-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 18, 30, 0.56);
  color: rgba(232, 236, 244, 0.72);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.galaxy-rename-btn:hover {
  border-color: rgba(255, 210, 122, 0.62);
  color: #ffe6b8;
  background: rgba(255, 210, 122, 0.14);
}
.ks-filter-rule {
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(232, 236, 244, 0.72);
}
.ks-read-date {
  white-space: nowrap;
  color: rgba(255, 218, 148, 0.84);
}
.ks-mainstar-actions {
  margin-bottom: 12px;
}
.ks-explore-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ks-move-btn {
  border-color: rgba(130, 188, 255, 0.36) !important;
  color: rgba(212, 232, 255, 0.92) !important;
  background: rgba(130, 188, 255, 0.08) !important;
}
.ks-move-btn:hover {
  border-color: rgba(130, 188, 255, 0.72) !important;
  background: rgba(130, 188, 255, 0.16) !important;
  color: #fff !important;
}
.submap-rename-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 12, 22, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(232, 236, 244, 0.86);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.submap-rename-btn:hover {
  border-color: rgba(255, 210, 122, 0.7);
  color: #ffe6b8;
  background: rgba(255, 210, 122, 0.18);
}
.rename-modal,
.move-planet-modal {
  width: min(540px, calc(100vw - 32px));
}
.rename-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filter-rule-box {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 210, 122, 0.24);
  background: rgba(255, 210, 122, 0.05);
}
.filter-rule-box p {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(232, 236, 244, 0.82);
}
.move-target-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}
.move-target-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: #eef2fa;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.move-target-item:hover {
  border-color: rgba(255, 210, 122, 0.6);
  background: rgba(255, 210, 122, 0.09);
  transform: translateY(-1px);
}
.move-target-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.move-target-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.move-target-head strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  color: #ffe6b8;
}
.move-target-meta {
  margin: 0;
  font-size: 12px;
  color: rgba(232, 236, 244, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.move-target-go {
  flex-shrink: 0;
  font-size: 12px;
  color: #ffd27a;
}
