/* Original style block 1 */
:root {
      --surface: #030e22;
      --surface-container-low: rgba(6, 19, 41, 0.9);
      --surface-container: #0a1932;
      --surface-container-high: rgba(16, 31, 58, 0.78);
      --surface-container-highest: #152543;
      --primary: #ffc967;
      --secondary: #72ddfd;
      --tertiary: #ff9b48;
      --accent-cyan: #22d3ee;
      --accent-emerald: #34d399;
      --accent-rose: #fb7185;
      --text-primary: #f8fafc;
      --on-surface: #dce5ff;
      --on-surface-variant: #a0abc6;
      --outline: #6b758e;
      --outline-variant: #3d485f;
      --glass-bg: rgba(6, 19, 41, 0.62);
      --glass-border: rgba(255, 255, 255, 0.16);
      --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
      --nav-height: 64px;
      /* 时空条实际高度由 JS 按内容回写（自定义经纬度时可能换行） */
      --time-bar-height: 50px;
      --sidebar-width: 324px;
      /* 三维舞台可见区域的左边界：左栏收起后为 0 */
      --stage-left: var(--sidebar-width);
      --data-width: 320px;
      --panel-radius: 22px;
      --font-display: "Inter", "Source Han Sans SC", "思源黑体", "Noto Sans CJK SC", sans-serif;
      --font-body: "Inter", "Source Han Sans SC", "思源黑体", "Noto Sans CJK SC", sans-serif;
      --font-mono: "JetBrains Mono", "Source Code Pro", ui-monospace, monospace;
      /* BEGIN JW_COPYRIGHT_CSS */
      --copyright-owner: "动见地理";
      --copyright-work-id: "MPSLE-JW-20261104-A001";
      --copyright-work-name: "Moon Phases, Solar & Lunar Eclipses Interactive Model";
      --copyright-year: "2026";
      --copyright-version: "v4.1.1";
      --copyright-license-id: "MPSLE-JW-20261104-A001-ONLINE";
      /* © 2026 动见地理. All rights reserved. | Moon Phases, Solar & Lunar Eclipses Interactive Model | MPSLE-JW-20261104-A001 */
      /* END JW_COPYRIGHT_CSS */
    }

    * { box-sizing: border-box; }
    html, body {
      width: 100%;
      height: 100%;
      margin: 0;
      overflow: hidden;
      background: #030e22;
      overscroll-behavior: none;
      touch-action: none;
    }
    body {
      font-family: var(--font-body);
      background:
        radial-gradient(circle at top left, rgba(255,201,103,0.25), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(114,221,253,0.18), transparent 28%),
        linear-gradient(180deg, #071426 0%, #022e50 55%, #051824 100%);
      color: var(--text-primary);
      letter-spacing: 0;
      -webkit-user-select: none;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    button, input { font: inherit; }
    button {
      border: 0;
      cursor: pointer;
      color: var(--on-surface);
      background: rgba(255,255,255,0.08);
      transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
    }
    button:hover { transform: translateY(-1px); background: rgba(255,255,255,0.14); }
    button:focus-visible, input:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

    .app {
      position: absolute;
      left: 50%;
      top: 50%;
      width: var(--app-layout-width, 1440px);
      height: var(--app-layout-height, 900px);
      overflow: hidden;
      transform: translate(-50%, -50%) scale(var(--app-layout-scale, 1));
      transform-origin: center center;
    }
    :root { --scene-scale: 1; }
    body.view-model { --scene-scale: 1; }
    body.view-observe { --scene-scale: 0.78; }
    body.view-eclipse { --scene-scale: 1; }
    #bgTransitionLayer {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      z-index: 0;
      pointer-events: none;
      opacity: 0;
      transition: opacity 1s ease;
    }
    .main-stage {
      position: fixed;
      top: var(--nav-height);
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 7;
      pointer-events: auto;
      overflow: hidden;
      transform-origin: 50% 52%;
      transition: transform 320ms ease, filter 320ms ease, opacity 320ms ease;
      will-change: transform, filter, opacity;
    }
    #scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
    #labels { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
    .label {
      position: absolute;
      transform: translate(-50%, -50%);
      color: #eaf6ff;
      background: rgba(3,14,34,0.58);
      backdrop-filter: blur(10px);
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 12px;
      white-space: nowrap;
      box-shadow: 0 10px 24px rgba(0,0,0,0.24);
    }
    .hotspot-layer {
      position: absolute;
      inset: 0;
      z-index: 13;
      pointer-events: none;
    }
    .hotspot {
      position: absolute;
      display: none;
      /* Hotspot 主点大小：调这里会改变白色交互点本体直径。 */
      width: 7px;
      height: 7px;
      padding: 0;
      appearance: none;
      /* Hotspot 主点颜色：border/background 控制白点和白色描边，box-shadow 控制蓝白科技感光晕。 */
      border: 1px solid rgba(200, 200, 200, 0.897);
      border-radius: 50%;
      background: #c9c9c9;
      box-shadow:
        0 0 0 1px rgba(114,221,253,0.32),
        0 0 16px rgba(255,255,255,0.78),
        0 0 28px rgba(114,221,253,0.32);
      transform: translate(-50%, -50%);
      cursor: pointer;
      pointer-events: auto;
    }
    .hotspot::before,
    .hotspot::after {
      content: "";
      position: absolute;
      /* Hotspot 外圈大小：inset 的负值越大，脉冲光圈越大。 */
      inset: -8px;
      border-radius: inherit;
      /* Hotspot 外圈颜色：这里控制第一层白色脉冲圈。 */
      border: 1px solid rgba(255,255,255,0.28);
      animation: hotspotPulse 2.4s ease-out infinite;
    }
    .hotspot::after {
      /* Hotspot 第二层外圈大小和颜色：这一层更大、更偏 NASA 蓝。 */
      inset: -15px;
      border-color: rgba(114,221,253,0.16);
      animation-delay: 0.75s;
    }
    .hotspot:hover,
    .hotspot.active {
      background: #e9fbff;
      box-shadow: 0 0 0 1px #ffffff, 0 0 22px rgba(255,255,255,0.9), 0 0 40px rgba(114,221,253,0.58);
    }
    .hotspot-tip {
      position: absolute;
      left: 50%;
      bottom: calc(100% + 14px);
      width: max-content;
      max-width: 220px;
      transform: translateX(-50%);
      padding: 8px 10px;
      border: 1px solid rgba(114,221,253,0.28);
      border-radius: 10px;
      background: rgba(3,14,34,0.86);
      color: #eafaff;
      font-size: 11px;
      line-height: 1.35;
      opacity: 0;
      pointer-events: none;
      box-shadow: 0 14px 32px rgba(0,0,0,0.28);
      transition: opacity 0.16s ease, transform 0.16s ease;
    }
    .hotspot:hover .hotspot-tip {
      opacity: 1;
      transform: translate(-50%, -4px);
    }
    .hotspot-panel {
      position: absolute;
      z-index: 14;
      right: 24px;
      top: 44%;
      transform: translateY(-50%);
      width: 390px;
      padding: 16px;
      border: 1px solid rgba(114,221,253,0.26);
      border-radius: 18px;
      background:
        linear-gradient(180deg, rgba(8,27,55,0.92), rgba(3,14,34,0.88)),
        radial-gradient(circle at 18% 0%, rgba(114,221,253,0.16), transparent 42%);
      backdrop-filter: blur(18px);
      box-shadow: 0 22px 60px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.08);
      color: #dff9ff;
    }
    .hotspot-panel[hidden] {
      display: none;
    }
    body.view-model .hotspot-panel {
      top: auto;
      bottom: 128px;
      transform: none;
    }
    .hotspot-panel::before {
      content: "";
      position: absolute;
      left: 16px;
      right: 16px;
      top: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
    }
    .hotspot-panel-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
    .hotspot-kicker {
      color: var(--secondary);
      font: 11px var(--font-mono);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .hotspot-title {
      margin: 3px 0 0;
      color: #ffffff;
      font-size: 18px;
      line-height: 1.22;
    }
    .hotspot-close {
      width: 30px;
      height: 30px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 50%;
      background: rgba(255,255,255,0.08);
      color: #ffffff;
      cursor: pointer;
    }
    .hotspot-body {
      margin: 0;
      color: #cde9f6;
      font-size: 13px;
      line-height: 1.65;
    }
    .hotspot-footer {
      margin-top: 10px;
      color: rgba(205,233,246,0.72);
      font-size: 11px;
    }
    @keyframes hotspotPulse {
      0% { transform: scale(0.72); opacity: 0.9; }
      100% { transform: scale(1.45); opacity: 0; }
    }

    .topbar {
      position: fixed;
      z-index: 20;
      top: 0;
      left: 0;
      right: 0;
      height: var(--nav-height);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      background: rgba(3, 14, 34, 0.82);
      backdrop-filter: blur(18px);
      box-shadow: 0 18px 42px rgba(0,0,0,0.35);
    }
    .topbar::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 1px;
      background: rgba(245, 158, 11, 0.35);
    }
    .brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
    .brand-mark {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 36% 35%, #fff8db 0 14%, #ffc967 15% 38%, transparent 39%),
        conic-gradient(from 30deg, #72ddfd, #ffc967, #fb7185, #72ddfd);
      box-shadow: 0 0 24px rgba(255,201,103,0.34);
      flex: 0 0 auto;
    }
    .brand h1 {
      margin: 0;
      color: var(--primary);
      font-family: var(--font-display);
      font-size: 24px;
      line-height: 1.05;
      letter-spacing: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .brand p {
      margin: 3px 0 0;
      color: var(--on-surface-variant);
      font-size: 12px;
      white-space: nowrap;
    }
    .view-switch {
      flex: 1 1 auto;
      display: flex;
      justify-content: center;
      gap: 8px;
      min-width: 0;
      padding: 0 10px;
    }
    .view-chip {
      height: 38px;
      padding: 0 14px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      color: var(--on-surface-variant);
      font-size: 13px;
      white-space: nowrap;
    }
    .view-chip.active {
      background: rgba(114,221,253,0.18);
      color: #dff9ff;
      box-shadow: inset 0 0 0 1px rgba(114,221,253,0.24);
      font-weight: 500;
    }
    .view-switch { align-items: center; }
    .view-switch .view-chip { padding: 0 12px; }
    .view-group-label {
      margin: 0 -2px 0 6px;
      color: var(--outline);
      font-size: 11px;
      white-space: nowrap;
    }
    .view-group-label:first-child { margin-left: 0; }
    .view-switch-divider {
      width: 1px;
      height: 20px;
      margin: 0 4px;
      background: rgba(255,255,255,0.16);
    }
    /* 空间模型的视角已放到顶部标签，左栏只在日食月食页保留食象镜头按钮 */
    body.view-model .engine-view-block { display: none; }
    .nav-actions { display: flex; gap: 10px; align-items: center; }
    .icon-btn {
      min-width: 42px;
      height: 38px;
      border-radius: 999px;
      padding: 0 13px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      font-size: 13px;
      white-space: nowrap;
    }
    .icon-btn.primary {
      color: #3a2600;
      background: linear-gradient(135deg, #ffc967 0%, #ffb702 100%);
      box-shadow: 0 0 15px rgba(255, 201, 103, 0.3);
      font-weight: 500;
    }
    .icon-btn.active {
      color: #032033;
      background: var(--secondary);
      font-weight: 500;
    }

    .settings-popover {
      position: fixed;
      z-index: 35;
      top: calc(var(--nav-height) + 12px);
      right: 18px;
      width: 310px;
      padding: 16px;
      border-radius: 20px;
      background: rgba(6,19,41,0.9);
      backdrop-filter: blur(18px);
      box-shadow: var(--glass-shadow);
      color: var(--on-surface);
    }
    .settings-popover[hidden] { display: none; }
    .settings-popover h2 {
      margin: 0 0 12px;
      color: var(--primary);
      font-size: 15px;
      letter-spacing: 0;
    }
    .settings-list {
      display: grid;
      gap: 8px;
    }
    .settings-control {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      min-height: 40px;
      padding: 9px 10px;
      border-radius: 14px;
      background: rgba(255,255,255,0.07);
      color: var(--on-surface);
      font-size: 13px;
    }
    .settings-control input {
      width: 18px;
      height: 18px;
      margin: 0;
      accent-color: var(--secondary);
      flex: 0 0 auto;
    }

    .sidebar {
      position: fixed;
      z-index: 16;
      top: var(--nav-height);
      left: 0;
      bottom: 0;
      width: var(--sidebar-width);
      padding: 22px;
      background: var(--surface-container-low);
      backdrop-filter: blur(18px);
      box-shadow: var(--glass-shadow);
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      transition: transform 220ms ease;
    }
    .sidebar.collapsed { transform: translateX(-100%); }
    body.sidebar-collapsed { --stage-left: 0px; }
    /* 左栏手柄：贴在左栏右边缘的竖向小舌头，收起后停在舞台左边缘。只在有左栏的空间模型和日食月食页显示 */
    .sidebar-handle { display: none; }
    body.view-model .sidebar-handle,
    body.view-eclipse .sidebar-handle {
      display: flex;
      position: fixed;
      z-index: 17;
      left: var(--stage-left);
      top: calc((100% + var(--nav-height)) / 2);
      width: 18px;
      height: 76px;
      padding: 0;
      align-items: center;
      justify-content: center;
      border-radius: 0 10px 10px 0;
      border: 1px solid rgba(114,221,253,0.5);
      border-left: none;
      background: var(--surface-container-low);
      backdrop-filter: blur(18px);
      box-shadow: 8px 0 24px rgba(0,0,0,0.32);
      color: #72ddfd;
      transform: translateY(-50%);
      transition: left 220ms ease, background .2s, color .2s;
    }
    body.view-model .sidebar-handle {
      top: calc((100% + var(--nav-height) + var(--time-bar-height)) / 2);
    }
    .sidebar-handle:hover {
      transform: translateY(-50%);
      background: rgba(114,221,253,0.92);
      color: #032033;
    }
    .sidebar-handle svg {
      width: 12px;
      height: 12px;
      transition: transform 220ms ease;
    }
    /* 收起后箭头朝右，提示“点这里拉出左栏” */
    .sidebar-handle[aria-expanded="false"] svg { transform: rotate(180deg); }
    .sidebar .phase-panel {
      position: relative;
      left: auto;
      top: auto;
      right: auto;
      width: auto;
      min-width: 0;
      max-height: none;
      margin-bottom: 24px;
      pointer-events: auto;
      box-shadow: none;
      background: rgba(6, 19, 41, 0.86);
      border-radius: 18px;
    }
    .side-section { margin-bottom: 24px; }
    .side-section h2 {
      margin: 0 0 13px;
      color: #f8fafc;
      font-size: 14px;
      letter-spacing: 0;
    }
    .goal {
      display: grid;
      grid-template-columns: 22px 1fr;
      gap: 10px;
      align-items: start;
      padding: 10px 0;
      color: var(--on-surface);
      font-size: 13px;
      line-height: 1.45;
    }
    .goal input { margin-top: 2px; accent-color: var(--primary); }
    .formula {
      padding: 14px;
      border-radius: 18px;
      background: rgba(255,255,255,0.07);
      color: #fff2c7;
      font-family: var(--font-mono);
      font-size: 13px;
      line-height: 1.75;
    }
    .side-copy {
      margin: 0;
      color: var(--on-surface-variant);
      font-size: 13px;
      line-height: 1.65;
    }
    .pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .pill {
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(114,221,253,0.12);
      color: #c8f4ff;
      font-size: 12px;
    }

    .floating-panel {
      position: fixed;
      z-index: 17;
      display: flex;
      flex-direction: column;
      border-radius: var(--panel-radius);
      background: rgba(6, 19, 41, 0.62);
      backdrop-filter: blur(18px);
      box-shadow: var(--glass-shadow);
      overflow: hidden;
      pointer-events: auto;
      max-height: calc(var(--app-layout-height, 900px) - var(--nav-height) - 26px);
    }
    .panel-handle {
      height: 42px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
      color: var(--on-surface);
      background: rgba(255,255,255,0.05);
      font-size: 13px;
      font-weight: 500;
      user-select: none;
      cursor: move;
      touch-action: none;
    }
    .panel-handle span:last-child {
      color: var(--secondary);
      font: 12px var(--font-mono);
    }
    .phase-panel {
      /* 当前月相卡片在左栏顶部：在这里调圆角/内边距/模块宽度 */
      padding: 0;
    }
    .phase-panel .panel-handle {
      cursor: default;
    }
    .phase-summary-head {
      border-radius: 18px 18px 0 0;
    }
    .engine-panel {
      margin-bottom: 24px;
      padding: 14px;
      border-radius: 18px;
      background: rgba(6, 19, 41, 0.86);
      box-shadow: none;
    }
    .engine-panel h2 {
      margin: 0 0 12px;
      color: #f8fafc;
      font-size: 14px;
      letter-spacing: 0;
    }
    .engine-stack {
      display: grid;
      gap: 12px;
    }
    .engine-block {
      display: grid;
      gap: 8px;
    }
    .engine-label {
      color: var(--on-surface-variant);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .engine-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .follow-preset-strip {
      display: grid;
      gap: 8px;
    }
    .follow-preset-strip .location-chip {
      flex: 1;
      padding: 0 8px;
    }
    .latitude-control {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .latitude-control .latitude-slider {
      flex: 1;
      min-width: 0;
    }
    .latitude-control .latitude-value {
      color: var(--primary);
      font-family: var(--font-mono);
      font-size: 12px;
      white-space: nowrap;
      min-width: 58px;
      text-align: right;
    }
    .latitude-quick-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .observation-guidance {
      padding: 7px 9px;
      border-radius: 10px;
      background: rgba(114,221,253,0.09);
      color: #dff9ff;
      font-size: 11px;
      line-height: 1.45;
    }
    .observation-guidance.twilightCrescent {
      background: rgba(255,201,103,0.13);
      color: #ffe8a6;
    }
    .observation-guidance.difficultNearNew,
    .observation-guidance.notRecommended {
      background: rgba(251,113,133,0.13);
      color: #ffd6df;
    }
    .engine-note {
      margin: 0;
      color: var(--on-surface-variant);
      font-size: 12px;
      line-height: 1.5;
    }
    .camera-tool {
      display: grid;
      gap: 10px;
      padding: 12px;
      border-radius: 16px;
      background: rgba(255,255,255,0.04);
    }
    .camera-tool[hidden] {
      display: none;
    }
    .camera-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .camera-group {
      display: grid;
      gap: 10px;
    }
    .camera-slider {
      display: grid;
      gap: 5px;
    }
    .camera-slider .slider-head {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      color: var(--on-surface-variant);
      font-size: 12px;
      line-height: 1.2;
    }
    .camera-slider output {
      color: var(--primary);
      font-family: var(--font-mono);
      font-size: 12px;
      white-space: nowrap;
    }
    .camera-slider input,
    .camera-slider select {
      width: 100%;
    }
    .camera-slider select {
      height: 32px;
      border: 1px solid rgba(114,221,253,0.18);
      border-radius: 10px;
      background: rgba(5,18,36,0.84);
      color: var(--on-surface);
      padding: 0 10px;
      font: 12px var(--font-body);
      outline: none;
    }
    .camera-color-field {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      align-items: center;
    }
    .camera-color-field input[type="color"] {
      width: 44px;
      height: 30px;
      padding: 2px;
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 10px;
      background: rgba(255,255,255,0.08);
    }
    .camera-live-readout {
      margin: 0;
      padding: 9px 10px;
      border-radius: 12px;
      background: rgba(3,14,34,0.42);
      color: #d9fbff;
      font: 11px/1.5 var(--font-mono);
      white-space: pre-wrap;
    }
    .phase-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .phase-stat {
      padding: 9px 10px;
      border-radius: 12px;
      background: rgba(255,255,255,0.06);
      display: grid;
      gap: 4px;
      min-height: 54px;
    }
    .phase-stat span {
      color: var(--on-surface-variant);
      font-size: 11px;
      line-height: 1.2;
    }
    .phase-stat b {
      color: #ffffff;
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 400;
      line-height: 1.1;
    }
    .phase-aux {
      display: none;
    }
    .schedule-panel {
      right: 24px;
      left: auto;
      top: 86px;
      width: 360px;
      min-width: 0;
      transition: none;
      transform-origin: top right;
      will-change: transform;
    }
    .panel-subtitle {
      margin: 8px 16px 0;
      color: var(--on-surface-variant);
      font-size: 12px;
      letter-spacing: 0.02em;
    }
    .schedule-panel .observation-guidance {
      margin: 8px 16px 0;
    }
    .eclipse-panel,
    .eclipse-learning-panel {
      display: none;
      right: 24px;
      left: auto;
      top: 86px;
      width: 380px;
      min-width: 0;
    }
    .sidebar .eclipse-panel,
    .sidebar .eclipse-learning-panel {
      position: relative;
      z-index: auto;
      right: auto;
      left: auto;
      top: auto;
      width: auto;
      min-width: 0;
      max-height: none;
      margin-bottom: 24px;
      border-radius: 18px;
      background: rgba(6, 19, 41, 0.86);
      box-shadow: none;
    }
    .sidebar .eclipse-panel .panel-handle {
      cursor: default;
    }
    .eclipse-panel-inner {
      display: grid;
      gap: 10px;
      padding: 12px 14px 14px;
    }
    .eclipse-card {
      padding: 12px;
      border-radius: 16px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(114,221,253,0.13);
      color: var(--on-surface-variant);
      font-size: 12px;
      line-height: 1.55;
    }
    .eclipse-card span {
      display: block;
    }
    .eclipse-card strong {
      display: block;
      margin-bottom: 5px;
      color: var(--primary);
      font-size: 15px;
      letter-spacing: 0;
    }
    .eclipse-card.warning strong {
      color: var(--secondary);
    }
    .eclipse-preset-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .eclipse-preset-btn {
      padding: 8px 6px;
      border-radius: 12px;
      border: 1px solid rgba(114,221,253,0.2);
      background: rgba(255,255,255,0.05);
      color: var(--on-surface-variant);
      font-size: 13px;
      font-weight: 400;
      cursor: pointer;
      text-align: center;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
    }
    .eclipse-preset-btn:hover {
      background: rgba(114,221,253,0.12);
      border-color: rgba(114,221,253,0.35);
    }
    .eclipse-preset-btn.active {
      background: rgba(114,221,253,0.18);
      border-color: var(--primary);
      color: var(--primary);
    }
    .eclipse-status {
      padding: 10px 11px;
      border-radius: 13px;
      background: rgba(255,201,103,0.11);
      color: #ffe8a6;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.5;
      text-align: center;
    }
    .eclipse-conditions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .eclipse-cond {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 10px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      font-size: 12px;
      color: var(--on-surface-variant);
    }
    .eclipse-cond span:last-child {
      white-space: nowrap;
    }
    .eclipse-cond-icon {
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 500;
    }
    .eclipse-cond-icon.check {
      background: rgba(76,217,100,0.18);
      color: #4cd964;
    }
    .eclipse-cond-icon.cross {
      background: rgba(255,107,107,0.18);
      color: #ff6b6b;
    }
    .eclipse-process-hint {
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(114,221,253,0.08);
      border: 1px solid rgba(114,221,253,0.15);
      color: #c8eafa;
      font-size: 12px;
      line-height: 1.5;
    }
    .phase-panel-inner,
    .schedule-panel-inner {
      padding: 12px 14px 14px;
      overflow: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
    }
    .phase-panel-inner {
      display: grid;
      gap: 10px;
    }
    .phase-heading {
      display: grid;
      gap: 6px;
    }
    .phase-title-line {
      display: flex;
      gap: 12px;
      align-items: center;
      justify-content: space-between;
    }
    .phase-copy {
      min-width: 0;
      flex: 1 1 auto;
    }
    .phase-preview {
      /* 当前月相小圆图的尺寸：这里改 112px 就会同步改变右上角月面预览大小 */
      flex: 0 0 auto;
      width: 104px;
      height: 104px;
      border-radius: 16px;
      background:
        radial-gradient(circle at 50% 42%, rgba(114,221,253,0.14), rgba(3,14,34,0.96) 68%),
        linear-gradient(180deg, rgba(8,25,52,0.9), rgba(3,14,34,0.98));
      box-shadow: inset 0 0 0 1px rgba(114,221,253,0.06);
      overflow: hidden;
    }
    .phase-preview canvas { width: 100%; height: 100%; display: block; }
    .schedule-panel-inner {
      display: flex;
      flex-direction: column;
      gap: 9px;
      min-height: 0;
    }
    .obs-controls {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 0 0 auto;
    }
    .obs-date-group,
    .obs-loc-group {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }
    .obs-chip {
      height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid rgba(114,221,253,0.18);
      background: rgba(255,255,255,0.07);
      color: var(--on-surface);
      font-size: 12px;
      cursor: pointer;
      white-space: nowrap;
    }
    .obs-chip:hover { background: rgba(114,221,253,0.14); }
    .obs-date-input,
    .obs-select,
    .obs-custom-fields input {
      height: 30px;
      border-radius: 10px;
      border: 1px solid rgba(114,221,253,0.22);
      background: rgba(3,14,34,0.6);
      color: var(--on-surface);
      font-size: 13px;
      padding: 0 8px;
      color-scheme: dark;
    }
    .obs-date-input { width: 148px; }
    .obs-select { max-width: 150px; }
    .obs-custom-fields { display: inline-flex; gap: 6px; }
    .obs-custom-fields[hidden] { display: none; }
    .obs-custom-fields label {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      color: var(--on-surface-variant);
      font-size: 11px;
    }
    .obs-custom-fields input { width: 60px; padding: 0 6px; }
    .obs-custom-time-note {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 0 8px;
      border-radius: 9px;
      background: rgba(255,201,103,0.09);
      color: #ffd489;
      font-size: 10.5px;
      line-height: 1.25;
      white-space: nowrap;
    }
    .obs-time-stack {
      margin-left: auto;
      display: grid;
      justify-items: end;
      gap: 1px;
      min-width: 168px;
      line-height: 1.15;
    }
    .obs-time-readout {
      color: var(--secondary);
      font: 15px var(--font-mono);
      white-space: nowrap;
    }
    .obs-time-basis-note {
      color: var(--on-surface-variant);
      font-size: 9.5px;
      white-space: nowrap;
    }
    /* ---- 观测台顶部相位状态条 ---- */
    .obs-statusbar {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px 16px;
      padding: 9px 16px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      flex-wrap: wrap;
    }
    .obs-status-phase {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex-wrap: wrap;
    }
    .obs-status-moon { width: 28px; height: 28px; flex: 0 0 auto; display: block; }
    .obs-status-name { color: var(--primary); font-size: 16px; font-weight: 600; }
    .obs-status-en { color: var(--secondary); font-size: 12px; }
    .obs-status-div { width: 1px; height: 16px; background: rgba(255,255,255,0.14); }
    .obs-status-item { color: var(--on-surface-variant); font-size: 13px; white-space: nowrap; }
    .obs-status-item b { color: var(--on-surface); font-weight: 600; }
    /* ---- 时空条：顶栏下方全局一条，观测台与空间模型共用 ---- */
    .time-bar {
      position: fixed;
      z-index: 19;
      top: var(--nav-height);
      left: 0;
      right: 0;
      min-height: 50px;
      padding: 8px 20px;
      background: rgba(4,15,34,0.84);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(114,221,253,0.14);
    }
    body.view-eclipse .time-bar { display: none; }
    .best-time-btn.active {
      border-color: rgba(255,201,103,0.58);
      color: #ffe3a0;
      background: rgba(255,201,103,0.14);
    }
    .obs-info-btn {
      width: 16px;
      height: 16px;
      margin-left: 5px;
      padding: 0;
      border-radius: 50%;
      border: 1px solid rgba(114,221,253,0.55);
      background: rgba(114,221,253,0.12);
      color: var(--primary);
      font-size: 11px;
      font-weight: 700;
      font-style: italic;
      line-height: 14px;
      text-align: center;
      vertical-align: 1px;
      cursor: pointer;
    }
    .obs-info-btn:hover,
    .obs-info-btn[aria-expanded="true"] {
      background: rgba(114,221,253,0.28);
    }
    /* 卡片在初始化时移到 body 下并用 fixed 定位，避免被左栏等 overflow 容器裁切 */
    .obs-info-pop {
      display: none;
      position: fixed;
      z-index: 1000;
      width: min(300px, calc(100vw - 16px));
      box-sizing: border-box;
      padding: 12px 14px;
      border-radius: 12px;
      background: rgba(3,14,34,0.96);
      box-shadow: 0 12px 32px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(114,221,253,0.22);
      color: var(--on-surface-variant);
      font-size: 12px;
      line-height: 1.65;
      white-space: normal;
    }
    .obs-info-pop b {
      display: block;
      margin-bottom: 4px;
      color: var(--primary);
      font-size: 13px;
    }
    .obs-info-pop.open {
      display: block;
    }
    /* ---- 观测台主内容：左关系入口 + 右天空/整月 ---- */
    .obs-main {
      flex: 1 1 auto;
      display: grid;
      grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
      gap: 12px;
      min-height: 0;
    }
    .obs-relation-entry {
      position: relative;
      display: flex;
      flex-direction: column;
      border-radius: 20px;
      background: rgba(6,19,41,0.55);
      border: 1px solid rgba(255,255,255,0.12);
      overflow: hidden;
      cursor: pointer;
      transition: border-color .2s, box-shadow .2s;
      min-height: 0;
    }
    .obs-relation-entry:hover {
      border-color: rgba(255,201,103,0.6);
      box-shadow: 0 0 0 1px rgba(255,201,103,0.35), 0 20px 44px rgba(0,0,0,0.5);
    }
    .obs-entry-head {
      flex: 0 0 auto;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 16px 4px;
    }
    .obs-entry-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .obs-entry-kicker { font-size: 11px; letter-spacing: 2px; color: var(--secondary); }
    .obs-entry-titles b { font-size: 16px; color: var(--on-surface); }
    .obs-entry-sub { font-size: 12px; color: var(--on-surface-variant); flex: 0 0 auto; }
    .obs-entry-foot {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 16px 14px;
    }
    .obs-entry-cta {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      height: 36px;
      padding: 0 18px;
      border-radius: 999px;
      background: linear-gradient(135deg, #ffc967, #ffb702);
      color: #3a2600;
      font-size: 13px;
      font-weight: 600;
      box-shadow: 0 0 15px rgba(255,201,103,0.3);
    }
    .obs-entry-note { font-size: 12px; color: var(--on-surface-variant); line-height: 1.5; }
    .obs-right-col {
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 0;
      min-width: 0;
    }
    .obs-sky-panel {
      flex: 2 1 0;
      display: flex;
      flex-direction: column;
      border-radius: 20px;
      background: rgba(6,19,41,0.55);
      border: 1px solid rgba(255,255,255,0.12);
      overflow: hidden;
      min-height: 0;
    }
    .obs-month-panel {
      flex: 1 1 0;
      display: flex;
      flex-direction: column;
      border-radius: 20px;
      background: rgba(6,19,41,0.55);
      border: 1px solid rgba(255,255,255,0.12);
      padding: 10px 14px 12px;
      min-height: 0;
      overflow: hidden;
    }
    .obs-panel-head {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 11px 16px 6px;
    }
    .obs-month-panel .obs-panel-head { padding: 0 2px 6px; }
    .obs-panel-head b { font-size: 14px; color: #dce5ff; }
    .obs-panel-head #skyWindowTag,
    .obs-panel-head span { font-size: 11.5px; color: var(--on-surface-variant); }
    .obs-month-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 9px;
      min-width: 0;
    }
    .obs-panel-head .obs-month-prompt {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 28px;
      padding: 0 13px;
      border-radius: 999px;
      background: linear-gradient(135deg, #ffc967, #ffb702);
      color: #3a2600;
      font-size: 11.5px;
      font-weight: 600;
      box-shadow: 0 0 13px rgba(255,201,103,0.28);
      white-space: nowrap;
      pointer-events: none;
      cursor: default;
    }
    .obs-sky-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 9px;
      min-width: 0;
    }
    .obs-sky-follow-btn {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 28px;
      padding: 0 13px;
      border-radius: 999px;
      background: linear-gradient(135deg, #ffc967, #ffb702);
      color: #3a2600;
      font-size: 11.5px;
      font-weight: 600;
      box-shadow: 0 0 13px rgba(255,201,103,0.28);
      white-space: nowrap;
    }
    .obs-sky-follow-btn:hover {
      background: linear-gradient(135deg, #ffd57c, #ffc21a);
      box-shadow: 0 0 0 1px rgba(255,224,150,0.45), 0 0 18px rgba(255,201,103,0.38);
    }
    .obs-sky-panel .sky-shell {
      flex: 1 1 auto;
      margin: 0 14px;
      min-height: 170px;
      border-radius: 16px;
    }
    .obs-sky-panel .obs-event-strip { margin: 6px 14px 8px; }
    .obs-month-panel .obs-month-shell { flex: 1 1 auto; min-height: 0; height: auto; }
    .obs-moon-hotspot {
      position: absolute;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      border: 0;
      background: transparent;
      padding: 0;
      cursor: pointer;
      z-index: 3;
    }
    .obs-moon-hotspot:hover {
      transform: translate(-50%, -50%);
      background: transparent;
      box-shadow: 0 0 0 2px rgba(114,221,253,0.9), 0 0 30px rgba(114,221,253,0.45);
    }
    .obs-moon-hotspot[hidden],
    .obs-moon-pill[hidden] { display: none; }
    /* 空间模型已不再显示观测缩略图，隐藏这个已失效的开关 */
    #observePreviewToggle { display: none; }
    .obs-moon-pill {
      position: absolute;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      height: 26px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(3,14,34,0.74);
      border: 1px solid rgba(114,221,253,0.5);
      color: #bfefff;
      font-size: 12px;
      white-space: nowrap;
      z-index: 3;
      pointer-events: none;
      backdrop-filter: blur(6px);
    }
    .obs-event-strip {
      flex: 0 0 auto;
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 6px;
    }
    .obs-event {
      border: 1px solid rgba(114,221,253,0.14);
      border-radius: 10px;
      background: rgba(255,255,255,0.06);
      padding: 4px 4px 4px;
      text-align: center;
      cursor: pointer;
      transition: background 0.15s;
    }
    .obs-event:hover { background: rgba(114,221,253,0.13); }
    .obs-event .k { display: block; color: var(--on-surface-variant); font-size: 10px; line-height: 1.15; }
    .obs-event .v { display: block; color: var(--on-surface); font: 13px var(--font-mono); margin-top: 1px; line-height: 1.15; }
    .obs-event.moon .k { color: #8fdcf6; }
    .obs-event.sun .k { color: #ffd489; }
    .obs-event.disabled { opacity: 0.45; cursor: default; }
    .relation-shell {
      position: relative;
      flex: 1 1 auto;
      min-height: 0;
      overflow: hidden;
    }
    .relation-shell canvas { width: 100%; height: 100%; display: block; }
    .obs-explain[hidden] { display: none; }
    .obs-card {
      border-radius: 12px;
      border: 1px solid rgba(114,221,253,0.12);
      background: rgba(255,255,255,0.06);
      padding: 7px 10px;
      font-size: 12px;
      line-height: 1.5;
    }
    .obs-card b {
      display: block;
      color: var(--primary);
      font-size: 12px;
      font-weight: 500;
      margin-bottom: 2px;
    }
    .obs-card span { color: var(--on-surface-variant); }
    .obs-month-shell { cursor: grab; touch-action: none; }
    .obs-month-shell.dragging { cursor: grabbing; }
    .location-chip {
      height: 32px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      color: var(--on-surface);
      font-size: 12px;
      white-space: nowrap;
    }
    .location-chip.active {
      background: rgba(114,221,253,0.18);
      color: #dff9ff;
      box-shadow: inset 0 0 0 1px rgba(114,221,253,0.25);
    }
    .chart-shell,
    .sky-shell {
      border-radius: 18px;
      background: rgba(3,14,34,0.28);
      overflow: hidden;
    }
    .chart-shell canvas,
    .sky-shell canvas { width: 100%; height: 100%; display: block; }
    .chart-shell { min-height: 164px; }
    .sky-shell { min-height: 92px; position: relative; }
    .sky-caption {
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: 10px;
      color: rgba(248,250,252,0.8);
      font-size: 12px;
      line-height: 1.45;
      text-shadow: 0 2px 8px rgba(0,0,0,0.55);
      pointer-events: none;
    }
    .observe-method-note {
      display: none;
      flex: 0 0 auto;
      border-radius: 16px;
      background: rgba(255,255,255,0.07);
      font-size: 12px;
      line-height: 1.55;
      padding: 8px 12px;
      color: var(--on-surface-variant);
    }
    .phase-title {
      color: var(--primary);
      font-size: 34px;
      font-weight: 500;
      line-height: 1.05;
      margin-bottom: 8px;
      white-space: nowrap;
    }
    .phase-english {
      color: var(--secondary);
      font-size: 13px;
      margin-bottom: 18px;
    }
    .data-row {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      padding: 12px 0;
      color: var(--on-surface);
      font-size: 13px;
    }
    .data-row + .data-row { border-top: 1px solid rgba(61,72,95,0.26); }
    .data-row b {
      color: #ffffff;
      font-family: var(--font-mono);
      font-weight: 400;
      text-align: right;
    }
    .mini-note {
      margin-top: 12px;
      padding: 13px;
      border-radius: 16px;
      background: rgba(255,201,103,0.11);
      color: #ffe8a6;
      font-size: 12px;
      line-height: 1.55;
    }

    .controls {
      position: fixed;
      z-index: 18;
      left: 50%;
      bottom: 24px;
      width: 700px;
      transform: translateX(-50%);
      padding: 9px 18px;
      border-radius: 999px;
      background: rgba(6,19,41,0.68);
      backdrop-filter: blur(18px);
      box-shadow: var(--glass-shadow);
      display: flex;
      gap: 12px;
      align-items: center;
    }
    .controls .slider-wrap { flex: 1 1 auto; }
    .time-scale-switch {
      display: inline-flex;
      flex: 0 0 auto;
      padding: 3px;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(114,221,253,0.18);
    }
    .time-scale-switch button {
      height: 32px;
      padding: 0 13px;
      border-radius: 999px;
      background: transparent;
      color: var(--on-surface-variant);
      font-size: 13px;
      white-space: nowrap;
    }
    .time-scale-switch button:hover { transform: none; color: var(--on-surface); }
    .time-scale-switch button[aria-checked="true"] {
      background: rgba(114,221,253,0.92);
      color: #032033;
    }
    /* 时间轴下方刻度：一天档是 0/6/12/18/24 时，一个月档是可点击的新月/上弦/满月/下弦 */
    .controls .control-top { margin-bottom: 3px; }
    .slider-ticks {
      position: relative;
      height: 16px;
      margin: 0 8px;
    }
    .slider-tick {
      position: absolute;
      top: 0;
      transform: translateX(-50%);
      color: var(--on-surface-variant);
      font-size: 11px;
      line-height: 16px;
      white-space: nowrap;
    }
    button.slider-tick {
      height: 16px;
      padding: 0 6px;
      border-radius: 999px;
      background: transparent;
      color: #c8f4ff;
    }
    button.slider-tick:hover { transform: translateX(-50%); background: rgba(114,221,253,0.16); }
    button.slider-tick small { margin-left: 3px; color: var(--on-surface-variant); font-size: 10px; }
    .slider-tick.edge-start { transform: none; }
    .slider-tick.edge-end { transform: translateX(-100%); }
    button.slider-tick.edge-start:hover { transform: none; }
    button.slider-tick.edge-end:hover { transform: translateX(-100%); }
    .month-clock-chip {
      flex: 0 0 auto;
      height: 36px;
      font-size: 12px;
    }
    .month-clock-wrap {
      position: relative;
      flex: 0 0 auto;
    }
    .month-clock-wrap[hidden] { display: none; }
    .month-clock-menu {
      position: absolute;
      right: 0;
      bottom: calc(100% + 14px);
      z-index: 30;
      width: 300px;
      padding: 8px;
      display: grid;
      gap: 4px;
      border-radius: 18px;
      background: rgba(6,19,41,0.94);
      border: 1px solid rgba(114,221,253,0.18);
      backdrop-filter: blur(18px);
      box-shadow: var(--glass-shadow);
    }
    .month-clock-menu[hidden] { display: none; }
    .month-clock-menu button {
      display: grid;
      gap: 3px;
      height: auto;
      padding: 9px 12px;
      border-radius: 12px;
      background: transparent;
      color: var(--on-surface);
      text-align: left;
    }
    .month-clock-menu button:hover { transform: none; background: rgba(255,255,255,0.07); }
    .month-clock-menu button[aria-checked="true"] { background: rgba(114,221,253,0.16); }
    .month-clock-menu button[aria-checked="true"] b { color: #72ddfd; }
    .month-clock-menu b { font-size: 13px; }
    .month-clock-menu span {
      color: var(--on-surface-variant);
      font-size: 12px;
      line-height: 1.45;
    }
    .month-clock-menu b em {
      float: right;
      font-style: normal;
      font-weight: 500;
      font-size: 12px;
      color: #72ddfd;
    }
    .month-clock-time {
      padding: 12px;
      gap: 10px;
    }
    .month-clock-time-head,
    .month-clock-step,
    .month-clock-presets {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .month-clock-menu.month-clock-time button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 36px;
      padding: 0;
      border-radius: 10px;
      border: 1px solid rgba(114,221,253,0.22);
      background: rgba(255,255,255,0.04);
      color: var(--on-surface);
      font-size: 12px;
      text-align: center;
    }
    .month-clock-menu.month-clock-time button:hover { background: rgba(114,221,253,0.14); }
    .month-clock-menu.month-clock-time .month-clock-back { width: 36px; font-size: 20px; border-color: transparent; }
    .month-clock-step button { width: 44px; font-size: 18px !important; }
    .month-clock-step output {
      flex: 1;
      text-align: center;
      font-size: 18px;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      color: var(--on-surface);
    }
    .month-clock-presets button { flex: 1; }
    .month-clock-menu.month-clock-time .month-clock-presets button[aria-pressed="true"] {
      background: rgba(114,221,253,0.92);
      border-color: transparent;
      color: #032033;
    }
    .month-clock-menu.month-clock-time .month-clock-done { border-color: rgba(114,221,253,0.6); color: #72ddfd; font-size: 13px; }
    .round {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex: 0 0 auto;
    }
    .slider-wrap { min-width: 0; }
    .control-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 7px;
      color: var(--on-surface-variant);
      font-size: 12px;
    }
    .control-top b {
      color: var(--primary);
      font-family: var(--font-mono);
      font-weight: 400;
    }
    input[type="range"] {
      width: 100%;
      accent-color: var(--primary);
    }
    .select-like {
      height: 42px;
      border-radius: 999px;
      color: var(--on-surface);
      padding: 0 13px;
      background: rgba(255,255,255,0.08);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      white-space: nowrap;
    }
    .mode-toggle {
      min-width: 66px;
      justify-content: center;
    }
    .mode-toggle b {
      color: var(--primary);
      font-size: 13px;
      font-weight: 500;
    }
    .speed-chip {
      font-weight: 500;
    }
    .speed-chip span:first-child {
      color: var(--on-surface-variant);
      font-size: 11px;
      font-weight: 400;
    }
    .toggle-row {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .toggle-chip.active {
      color: #032033;
      background: var(--secondary);
      font-weight: 500;
    }

    .quiz-fab {
      position: fixed;
      z-index: 21;
      right: 22px;
      bottom: 24px;
      width: 54px;
      height: 54px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #3a2600;
      background: linear-gradient(135deg, #ffc967 0%, #ffb702 100%);
      box-shadow: 0 18px 34px rgba(0,0,0,0.32);
      font-size: 22px;
    }
    .quiz-fab[hidden],
    .quiz[hidden] {
      display: none;
    }
    .quiz {
      position: fixed;
      z-index: 22;
      right: 22px;
      bottom: 92px;
      width: 360px;
      padding: 18px;
      border-radius: var(--panel-radius);
      background: rgba(6,19,41,0.84);
      backdrop-filter: blur(18px);
      box-shadow: var(--glass-shadow);
      display: none;
    }
    .quiz.open { display: block; }
    .quiz h3 { margin: 0 0 10px; font-size: 16px; }
    .quiz p { color: var(--on-surface); line-height: 1.55; margin: 0 0 12px; font-size: 13px; }
    .quiz-options { display: grid; gap: 8px; }
    .quiz-options button {
      min-height: 40px;
      border-radius: 14px;
      padding: 9px 11px;
      text-align: left;
      font-size: 13px;
    }
    .quiz-feedback { min-height: 20px; margin-top: 10px; color: var(--secondary); font-size: 13px; }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 40;
      background: rgba(0,0,0,0.52);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 22px;
    }
    .modal-backdrop.open { display: flex; }
    .modal {
      width: 760px;
      max-height: 760px;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      border-radius: 26px;
      background: #061329;
      box-shadow: var(--glass-shadow);
      padding: 24px;
      color: var(--on-surface);
    }
    .modal h2 { margin: 0 0 10px; color: var(--primary); }
    .modal h3 { margin: 22px 0 8px; color: #fff; font-size: 15px; }
    .modal p, .modal li { color: var(--on-surface-variant); line-height: 1.65; font-size: 13px; }
    .modal a { color: var(--secondary); }
    .about-content {
      display: grid;
      gap: 14px;
      margin-top: 14px;
      color: #e2e8f0;
      line-height: 1.78;
    }
    .about-content h2,
    .about-content h3,
    .about-content p,
    .about-content ul {
      margin: 0;
    }
    .about-content h3 {
      font-size: 0.96rem;
      font-weight: 800;
      color: #f8fafc;
      font-family: var(--font-display);
    }
    .about-content p,
    .about-content li {
      font-size: 0.93rem;
      color: #dbe7f4;
      line-height: 1.78;
    }
    .about-content a {
      color: #8ff6d0;
      text-decoration: underline;
      text-underline-offset: 0.18em;
    }
    .about-content ul {
      display: grid;
      gap: 0.35rem;
      padding-left: 1.2rem;
    }
    .about-subtitle {
      margin-top: -4px;
      color: rgba(219, 231, 244, 0.72);
      font-size: 0.88rem;
      line-height: 1.5;
    }
    .about-entry-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .about-entry-link {
      display: grid;
      gap: 4px;
      min-height: 62px;
      padding: 12px 13px;
      border-radius: 14px;
      border: 1px solid rgba(114, 221, 253, 0.18);
      background: rgba(114, 221, 253, 0.07);
      color: var(--on-surface);
      text-decoration: none;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    .about-content .about-entry-link { text-decoration: none; }
    .about-entry-link:hover {
      transform: translateY(-1px);
      border-color: rgba(255, 201, 103, 0.36);
      background: rgba(255, 201, 103, 0.10);
    }
    .about-entry-link small {
      color: var(--secondary);
      font: 700 0.68rem/1 var(--font-mono);
      letter-spacing: 0.13em;
      text-transform: uppercase;
    }
    .about-entry-link span {
      color: var(--primary);
      font-size: 0.95rem;
      font-weight: 800;
    }
    .about-section-card {
      padding: 16px 17px;
      border-radius: 18px;
      border: 1px solid rgba(114, 221, 253, 0.16);
      background:
        linear-gradient(145deg, rgba(255, 201, 103, 0.08), rgba(114, 221, 253, 0.05)),
        rgba(10, 25, 50, 0.74);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
    .about-section-card h2 {
      margin: 2px 0 9px;
      color: var(--primary);
      font-size: 1.1rem;
      font-weight: 800;
      font-family: var(--font-display);
    }
    .about-section-card h3 {
      margin-top: 16px;
      color: #f8fafc;
    }
    .section-kicker {
      margin-bottom: 3px;
      color: var(--secondary);
      font: 700 11px/1 var(--font-mono);
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }
    .section-summary { color: var(--on-surface) !important; }
    .about-wechat-contact {
      display: grid;
      justify-items: center;
      gap: 6px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.10);
      text-align: center;
    }
    .about-wechat-contact img {
      display: block;
      width: 168px;
      max-width: 70vw;
      height: auto;
      border-radius: 16px;
      background: #fff;
      box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
    }
    .about-wechat-contact strong {
      margin-top: 4px;
      color: var(--primary);
      font-size: 15px;
    }
    .about-wechat-contact p {
      margin: 0;
      text-align: center;
    }
    .about-wechat-id {
      color: var(--secondary) !important;
      font-family: var(--font-mono);
      font-weight: 700;
    }
    .modal-actions { display: flex; justify-content: flex-end; margin-top: 18px; }

    .toast {
      position: fixed;
      z-index: 50;
      left: 50%;
      top: 82px;
      transform: translate(-50%, -20px);
      opacity: 0;
      pointer-events: none;
      padding: 11px 15px;
      border-radius: 999px;
      background: rgba(3,14,34,0.86);
      color: #fff3c4;
      box-shadow: var(--glass-shadow);
      transition: opacity 180ms ease, transform 180ms ease;
      font-size: 13px;
    }
    .toast.show { opacity: 1; transform: translate(-50%, 0); }
    /* 观测台和空间模型有时空条，提示落在时空条下方，不挡地点和日期 */
    body.view-observe .toast,
    body.view-model .toast {
      top: calc(var(--nav-height) + var(--time-bar-height) + 18px);
    }

    .editor-panel {
      position: fixed;
      z-index: 60;
      display: none;
      width: 340px;
      max-height: calc(var(--app-layout-height, 900px) - 104px);
      overflow: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      padding: 12px;
      border-radius: 14px;
      background: rgba(10,25,50,0.9);
      backdrop-filter: blur(14px);
      box-shadow: 0 12px 28px rgba(0,0,0,0.36);
      color: var(--on-surface);
      font-size: 12px;
    }
    .editor-panel.visible { display: block; }
    .editor-head {
      cursor: move;
      font-weight: 500;
      color: var(--primary);
      margin-bottom: 10px;
      user-select: none;
    }
    .editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .editor-panel label { display: grid; gap: 4px; color: var(--on-surface-variant); }
    .editor-panel input { width: 100%; }
    .editor-panel button { height: 32px; border-radius: 10px; font-size: 12px; }
    .editor-tool-block {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid rgba(114,221,253,0.14);
      display: grid;
      gap: 10px;
    }
    .editor-tool-title {
      color: var(--secondary);
      font-size: 12px;
      font-weight: 500;
    }
    .editor-panel .camera-tool {
      padding: 10px;
      background: rgba(3,14,34,0.38);
    }
    #paramPanel { left: 306px; top: 86px; }
    #cameraPanel { right: 350px; top: 86px; }
    #cameraReadout {
      margin: 0;
      white-space: pre-wrap;
      font-family: var(--font-mono);
      color: #d9fbff;
      line-height: 1.55;
    }

    .copyright {
      position: fixed;
      z-index: 9;
      left: 50%;
      bottom: 8px;
      transform: translateX(-50%);
	      color: rgba(220,229,255,0.45);
	      font-size: 10px;
	      line-height: 1.35;
	      max-width: min(980px, calc(100% - 32px));
	      text-align: center;
	      pointer-events: none;
	    }

    body.view-model .main-stage {
      transform: none;
      opacity: 1;
      filter: none;
    }
    /* 空间模型：侧栏和三维舞台让出顶部时空条 */
    body.view-model .main-stage,
    body.view-model .sidebar {
      top: calc(var(--nav-height) + var(--time-bar-height));
    }
    body.view-eclipse .main-stage {
      transform: none;
      opacity: 1;
      filter: none;
    }
    /* 空间模型 / 日食月食：观测台面板整个隐藏；左上角按钮返回上一个视角 */
    body.view-model .schedule-panel,
    body.view-eclipse .schedule-panel {
      display: none;
    }
    /* 返回按钮 + 视角徽标（覆盖在 3D 舞台上） */
    .stage-back-btn,
    .stage-view-badge { display: none; }
    body.view-model .stage-back-btn:not([hidden]),
    body.view-eclipse .stage-back-btn:not([hidden]) {
      display: inline-flex;
      position: fixed;
      left: calc(var(--stage-left) + 20px);
      top: 16px;
      z-index: 18;
      height: 38px;
      padding: 0 18px;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      background: rgba(6,19,41,0.72);
      border: 1px solid rgba(114,221,253,0.4);
      color: #bfefff;
      font-size: 14px;
      cursor: pointer;
      backdrop-filter: blur(10px);
      transition: background .2s, color .2s, border-color .2s;
    }
    .stage-back-btn:hover {
      background: rgba(114,221,253,0.92);
      color: #032033;
      border-color: transparent;
    }
    body.view-model .stage-view-badge {
      display: inline-flex;
      position: absolute;
      right: 20px;
      top: 16px;
      z-index: 6;
      height: 34px;
      padding: 0 16px;
      align-items: center;
      border-radius: 999px;
      background: rgba(6,19,41,0.66);
      border: 1px solid rgba(255,255,255,0.12);
      color: #dce5ff;
      font-size: 13px;
      backdrop-filter: blur(10px);
    }
    /* 追月视角：月亮在地平线下时的提示条，居中在侧栏右侧的可见舞台上方 */
    .stage-follow-hint {
      position: absolute;
      top: 64px;
      left: calc(var(--stage-left) + (100% - var(--stage-left)) / 2);
      transform: translateX(-50%);
      z-index: 6;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 5px 5px 5px 16px;
      border-radius: 999px;
      background: rgba(6,19,41,0.78);
      border: 1px solid rgba(251,113,133,0.4);
      color: #ffd6df;
      font-size: 14px;
      white-space: nowrap;
      backdrop-filter: blur(10px);
    }
    .stage-follow-hint[hidden] { display: none; }
    .stage-follow-hint button {
      height: 30px;
      padding: 0 14px;
      border: 0;
      border-radius: 999px;
      background: rgba(114,221,253,0.92);
      color: #032033;
      font-size: 13px;
      cursor: pointer;
    }
    .stage-follow-hint button:hover { background: #bfefff; }
    body.view-eclipse .eclipse-panel {
      display: block;
    }
    body.view-eclipse .eclipse-learning-panel {
      display: block;
    }
    body.view-eclipse .sidebar .eclipse-panel,
    body.view-eclipse .engine-panel {
      margin-bottom: 12px;
    }
    body.view-eclipse .sidebar .eclipse-learning-panel {
      margin-bottom: 0;
    }
    body.view-eclipse .phase-panel,
    body.view-eclipse #observePreviewToggle {
      display: none;
    }
    body.view-eclipse #learningGoalsSection,
    body.view-eclipse #coreFormulaSection,
    body.view-eclipse #principleExplanationSection,
    body.view-eclipse #realApplicationsSection {
      display: none;
    }
    /* 观测台是落地整页：隐藏 3D 舞台与左侧栏，面板铺满 */
    body.view-observe .main-stage,
    body.view-observe .sidebar {
      display: none;
    }
    body.view-observe .schedule-panel {
      position: fixed;
      left: 16px;
      right: 16px;
      top: calc(var(--nav-height) + var(--time-bar-height) + 8px);
      bottom: 80px;
      width: auto;
      max-height: none;
      border-radius: 22px;
      background: rgba(6, 19, 41, 0.62);
    }
    body.view-observe .schedule-panel-inner {
      height: 100%;
      flex: 1 1 auto;
      padding: 12px 16px 14px;
      overflow: hidden;
    }
    body.view-observe .controls {
      width: 940px;
    }
    /* 空间模型：时间轴居中在侧栏右侧的舞台上 */
    body.view-model .controls {
      left: calc(var(--stage-left) + (100% - var(--stage-left)) / 2);
      width: min(900px, calc(100% - var(--stage-left) - 40px));
    }
    body.view-eclipse .time-scale-switch,
    body.view-eclipse .month-clock-wrap,
    body.view-eclipse .slider-ticks {
      display: none;
    }
    .orientation-lock {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 28px;
      background:
        radial-gradient(circle at 50% 18%, rgba(114,221,253,0.18), transparent 34%),
        linear-gradient(180deg, #030e22, #061329);
      color: #eef8ff;
      text-align: center;
      touch-action: none;
    }
    .orientation-lock-card {
      display: grid;
      gap: 14px;
      justify-items: center;
      max-width: 320px;
    }
    .orientation-lock-icon {
      width: 74px;
      height: 74px;
      border-radius: 24px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(114,221,253,0.32);
      background: rgba(255,255,255,0.07);
      color: var(--secondary);
      font-size: 42px;
      transform: rotate(90deg);
    }
    .orientation-lock-title {
      margin: 0;
      color: var(--primary);
      font-size: 22px;
      line-height: 1.25;
    }
    .orientation-lock-copy {
      margin: 0;
      color: var(--on-surface-variant);
      font-size: 14px;
      line-height: 1.65;
    }
    @media (orientation: portrait) {
      .orientation-lock { display: flex; }
    }

/* Original style block 2 */
.pro-preview { position: fixed; z-index: 19; left: 0; right: 0; bottom: 0; top: calc(var(--nav-height) + var(--time-bar-height)); background: #02060f; overflow: hidden; cursor: pointer; }
      .pro-preview[hidden], .pro-preview img[hidden] { display: none; }
      .pro-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
      #proPreview[data-tm-locked] > * { opacity: 1; }
      .pro-preview-caption { position: absolute; left: 20px; top: 18px; max-width: 360px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(126,211,255,0.28); background: rgba(4,15,34,0.82); backdrop-filter: blur(12px); color: #e9f7ff; font: 13px/1.55 "Inter", "Source Han Sans SC", "思源黑体", sans-serif; }
      .pro-preview-caption b { font-size: 15px; margin-right: 8px; }
      .pro-preview-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(255,201,103,0.16); color: #ffc967; font-size: 12px; font-weight: 600; }
      .pro-preview-caption p { margin: 6px 0 0; color: #a9bdd0; }
      .view-chip { position: relative; }
      .view-chip .tm-lock { margin-left: 4px; }
      #prefSlot[hidden] { display: none !important; }
