/* Original style block 1 */
:root {
      color-scheme: dark;
      --bg: #01040a;
      --panel: rgba(5, 12, 22, 0.45);
      --panel-strong: rgba(10, 25, 45, 0.6);
      --line: rgba(128, 199, 255, 0.15);
      --line-strong: rgba(133, 211, 255, 0.3);
      --text: #eef7ff;
      --muted: #8ab4f8;
      --soft: #5e8bbb;
      --cyan: #00e5ff;
      --blue: #2979ff;
      --violet: #b388ff;
      --teal: #1de9b6;
      --orange: #ff9100;
      --gold: #ffc400;
      --red: #ff5252;
      --green: #00e676;
      --shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
      --radius: 12px;
      /* 参考图菜单面板质感：半透明玻璃 + 强模糊 + 柔和亮边 */
      --glass: linear-gradient(180deg, rgba(22, 40, 66, 0.62), rgba(9, 19, 37, 0.5));
      --glass-border: rgba(132, 184, 244, 0.2);
      --glass-blur: blur(26px) saturate(1.3);
      --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
      --side-panel-width: 308px;
      --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;
      font-family: var(--font-body);

      /* BEGIN JW_COPYRIGHT_CSS */
      --copyright-owner: "动见地理";
      --copyright-work-id: "ACL-JW-20261029-A001";
      --copyright-work-name: "Atmospheric Criculation Lab";
      --copyright-year: "2026";
      --copyright-version: "v2.3.4";
      --copyright-license-id: "ACL-JW-20261029-A001-ONLINE";
      /* © 2026 动见地理. All rights reserved. | Atmospheric Criculation Lab | ACL-JW-20261029-A001 */
      /* END JW_COPYRIGHT_CSS */
    }

    .copyright-notice {
      position: fixed;
      left: 0;
      right: var(--side-panel-width);
      bottom: 6px;
      text-align: center;
      font-size: 10px;
      opacity: 0.38;
      pointer-events: none;
      user-select: none;
      z-index: 10;
      color: var(--text);
      transition: right 220ms ease;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      overflow: hidden;
      color: var(--text);
      background:
        linear-gradient(135deg, #010308 0%, #030815 46%, #010205 100%);
    }

    body.panel-collapsed {
      --side-panel-width: 0px;
    }

    button,
    input {
      font: inherit;
    }

    button {
      color: inherit;
    }

    .app {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) var(--side-panel-width);
      width: 100vw;
      height: 100vh;
      min-height: 640px;
      isolation: isolate;
      transition: grid-template-columns 220ms ease;
    }

    .app::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(111, 191, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 191, 255, 0.035) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: linear-gradient(90deg, transparent, #000 16%, #000 86%, transparent);
      opacity: 0.4;
      z-index: -2;
    }

    .app::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 46% 42%, rgba(56, 170, 255, 0.2), transparent 34%),
        radial-gradient(circle at 72% 50%, rgba(255, 137, 46, 0.12), transparent 30%),
        linear-gradient(90deg, rgba(2, 7, 17, 0.18), transparent 24%, transparent 78%, rgba(2, 7, 17, 0.38));
      z-index: -1;
    }

    .stage {
      position: relative;
      min-width: 0;
      overflow: hidden;
    }

    .top-copy {
      position: absolute;
      left: 42px;
      top: 26px;
      z-index: 4;
      width: min(350px, calc(100% - 84px));
      pointer-events: none;
    }

    .eyebrow {
      margin: 0 0 8px;
      color: var(--cyan);
      font-size: 13px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    h1 {
      margin: 0;
      max-width: 330px;
      font-size: clamp(30px, 3.4vw, 44px);
      line-height: 0.96;
      letter-spacing: 0;
    }

    .subtitle {
      margin: 18px 0 0;
      max-width: 330px;
      color: #a9bfd4;
      font-size: clamp(14px, 1.25vw, 17px);
      line-height: 1.58;
    }

    .scene-wrap {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(1, 5, 12, 0.08), rgba(1, 5, 12, 0.08)),
        url("../assets/asset-e82b5c81b47782f3.png") center / cover no-repeat,
        #010308;
    }

    #scene {
      display: block;
      width: 100%;
      height: 100%;
      cursor: grab;
      touch-action: none;
      background: transparent;
    }

    #scene:active {
      cursor: grabbing;
    }

    .label-layer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 6;
    }

    /* 参考图式文字标注：无边框、无背景，纯文字 + 阴影，简洁优雅 */
    .model-label {
      position: absolute;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1px;
      padding: 0;
      border: 0;
      background: none;
      box-shadow: none;
      color: #e8f6ff;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.16;
      letter-spacing: 0.012em;
      white-space: nowrap;
      text-shadow: 0 1px 3px rgba(0, 6, 14, 0.92), 0 0 16px rgba(2, 12, 24, 0.72);
      transform: translate(-50%, -50%);
    }

    .model-label .ml-main {
      font-weight: 700;
    }

    .model-label .ml-sub {
      font-size: 12px;
      font-weight: 600;
      opacity: 0.82;
      letter-spacing: 0.02em;
    }

    .model-label.hadley { color: #ffb765; }
    .model-label.ferrel { color: #7fe9d8; }
    .model-label.polar { color: #86bcff; }
    .model-label.pressure-low { color: #d3ebff; }
    .model-label.pressure-high { color: #d3ebff; }
    .model-label.slp-high { color: #ffc98f; }
    .model-label.slp-low { color: #9fdcff; }
    .model-label.monsoon-wind { color: #ffb14f; }
    .model-label.geo-reference {
      color: rgba(210, 235, 249, 0.82);
      font-size: 10.5px;
      font-weight: 500;
      line-height: 1;
      text-shadow: 0 1px 3px rgba(0, 5, 14, 0.95), 0 0 7px rgba(5, 24, 42, 0.8);
    }
    .model-label.geo-reference .ml-main { font-weight: 500; }
    .model-label.force-vel { color: #ffffff; }
    .model-label.force-cor { color: #ff9d45; }
    .model-label.force-pgf { color: #4fe3ff; }
    .model-label.force-fric { color: #b9c8d4; }
    .model-label.band-low .ml-main { color: #d3c0e0; font-size: 13px; }
    .model-label.band-high .ml-main { color: #b7d4ba; font-size: 13px; }
    .model-label.band-wind .ml-main { color: #bfeee4; font-size: 12.5px; }
    .model-label.tropic-line .ml-main { color: #ffd977; font-size: 12px; font-weight: 600; }
    .model-label.polar-front .ml-main {
      color: #cfa9ff;
      font-size: 15px;
      font-weight: 700;
      text-shadow: 0 2px 8px rgba(6, 10, 24, 0.9), 0 0 14px rgba(120, 70, 200, 0.55);
    }
    .model-label.slp-glyph .ml-main {
      font-size: 30px;
      font-weight: 800;
      letter-spacing: 0;
      text-shadow: 0 2px 10px rgba(2, 10, 22, 0.9), 0 0 22px rgba(2, 12, 24, 0.7);
    }
    .model-label.slp-glyph-high { color: #ffd8a8; }
    .model-label.slp-glyph-low { color: #bfe7ff; }
    /* Beat 3 海陆升降标注：与 Beat 4 的 H/L 字模同款——发光大字形(箭头) + 下方名称。 */
    .model-label.slp-heat-vert { gap: 3px; }
    .model-label.slp-heat-vert .slp-heat-arrow-svg {
      display: block;
      width: 17px;
      height: 34px;
      fill: currentColor;
      filter: drop-shadow(0 2px 8px rgba(2, 10, 22, 0.92)) drop-shadow(0 0 14px rgba(2, 12, 24, 0.62));
    }
    .model-label.slp-heat-vert.slp-heat-down .slp-heat-arrow-svg { transform: scaleY(-1); }
    .model-label.slp-heat-vert .ml-name {
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.03em;
      text-shadow: 0 1px 3px rgba(0, 6, 14, 0.92), 0 0 16px rgba(2, 12, 24, 0.72);
    }
    .model-label.slp-heat-vert.slp-heat-up { color: #bfe7ff; }
    .model-label.slp-heat-vert.slp-heat-down { color: #ffd8a8; }
    .model-label.slp-heat-vert.slp-heat-up .ml-name { color: #9fdcff; }
    .model-label.slp-heat-vert.slp-heat-down .ml-name { color: #ffc98f; }
    .model-label.wind { color: #d3ebff; }
    .model-label.jet { color: #cbb9ff; }
    .model-label.hidden { display: none; }

    .slp-legend {
      position: absolute;
      z-index: 4;
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 10px 13px 9px;
      border: 1px solid rgba(127, 198, 255, 0.28);
      border-radius: 8px;
      background: rgba(4, 15, 31, 0.66);
      backdrop-filter: blur(10px);
      box-shadow: 0 10px 28px rgba(0, 8, 18, 0.32);
      color: #edf8ff;
      pointer-events: none;
    }

    .slp-legend[hidden] {
      display: none;
    }

    .slp-legend.map {
      left: 50%;
      bottom: 92px;
      transform: translateX(-50%);
    }

    .slp-legend.globe {
      left: 34px;
      top: 50%;
      transform: translateY(-50%);
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .slp-legend-title {
      display: flex;
      align-items: baseline;
      white-space: nowrap;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 0;
      text-shadow: 0 1px 4px rgba(0, 4, 12, 0.82);
    }

    .slp-legend-unit {
      margin-left: 4px;
      color: #b7d0e6;
      font-size: 12px;
      font-weight: 700;
    }

    .slp-legend-scale {
      display: grid;
      gap: 4px;
    }

    .slp-legend-ramp {
      display: grid;
      grid-template-columns: repeat(8, 34px);
      height: 21px;
      overflow: hidden;
      border: 1px solid rgba(255, 232, 190, 0.74);
      box-shadow: inset 0 0 0 1px rgba(0, 12, 24, 0.2);
    }

    .slp-legend.globe .slp-legend-scale {
      grid-template-columns: auto auto;
      column-gap: 7px;
      align-items: stretch;
    }

    .slp-legend.globe .slp-legend-ramp {
      display: flex;
      flex-direction: column-reverse;
      width: 24px;
      height: 184px;
    }

    .slp-legend-ramp span {
      background: var(--c);
      border-right: 1px solid rgba(255, 235, 196, 0.72);
    }

    .slp-legend.globe .slp-legend-ramp span {
      flex: 1 1 0;
      border-right: 0;
      border-top: 1px solid rgba(255, 235, 196, 0.72);
    }

    .slp-legend-ramp span:last-child {
      border-right: 0;
    }

    .slp-legend.globe .slp-legend-ramp span:last-child {
      border-top: 0;
    }

    .slp-legend-ticks {
      position: relative;
      height: 15px;
      color: #dfeaf2;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
    }

    .slp-legend-ticks span {
      position: absolute;
      left: var(--x);
      transform: translateX(-50%);
      text-shadow: 0 1px 4px rgba(0, 4, 12, 0.86);
    }

    .slp-legend.globe .slp-legend-ticks {
      width: 38px;
      height: 184px;
    }

    .slp-legend.globe .slp-legend-ticks span {
      left: 0;
      top: var(--y);
      transform: translateY(-50%);
    }

    .boundary-callout,
    .boundary-leader,
    .boundary-anchor-dot {
      position: absolute;
      pointer-events: none;
    }

    .boundary-callout {
      z-index: 5;
      display: flex;
      align-items: center;
      gap: 7px;
      max-width: 210px;
      padding: 6px 10px;
      border: 1px solid rgba(139, 218, 255, 0.42);
      border-radius: 8px;
      background: rgba(4, 14, 28, 0.72);
      color: #dff6ff;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.25;
      white-space: nowrap;
      text-shadow: 0 0 10px currentColor;
      box-shadow: 0 0 22px rgba(38, 172, 255, 0.18);
      transform: translate(-50%, -50%);
    }

    .boundary-callout::before {
      content: "";
      width: 8px;
      height: 8px;
      flex: 0 0 auto;
      border-radius: 999px;
      background: currentColor;
      box-shadow: 0 0 14px currentColor;
    }

    .boundary-callout.warm { color: #ffb14f; }
    .boundary-callout.cold { color: #75dfff; }
    .boundary-callout.jet { color: #d7c2ff; }
    .boundary-callout.front { color: #c9b7ff; }
    .boundary-callout.equator { color: #7ee7ff; }
    .boundary-callout.latitude { color: #b9ddff; }
    .boundary-callout.pressure-low { color: #ff9db4; }
    .boundary-callout.pressure-high { color: #ffcf82; }
    .boundary-callout.rise { color: #ffcf82; }
    .boundary-callout.direct {
      gap: 6px;
      padding: 5px 8px;
      background: rgba(4, 14, 28, 0.64);
      box-shadow: 0 0 18px rgba(38, 172, 255, 0.12);
    }

    .boundary-leader {
      z-index: 4;
      height: 2px;
      border-radius: 999px;
      background: currentColor;
      opacity: 0.82;
      transform-origin: 0 50%;
      filter: drop-shadow(0 0 8px currentColor);
    }

    .boundary-leader::after {
      content: "";
      position: absolute;
      right: -1px;
      top: -4px;
      width: 0;
      height: 0;
      border-left: 8px solid currentColor;
      border-top: 5px solid transparent;
      border-bottom: 5px solid transparent;
    }

    .boundary-anchor-dot {
      z-index: 4;
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: currentColor;
      transform: translate(-50%, -50%);
      box-shadow: 0 0 14px currentColor;
    }

    .boundary-hidden {
      display: none;
    }

    .bottom-controls {
      position: absolute;
      left: auto;
      right: 24px;
      bottom: 24px;
      z-index: 4;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: center;
      gap: 8px;
      width: min(560px, calc(100% - 520px));
      min-width: 380px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--glass);
      backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shadow);
      transform: none;
    }

    .control-btn,
    .chip {
      min-height: 42px;
      border: 1px solid rgba(121, 190, 255, 0.22);
      border-radius: var(--radius);
      background: rgba(12, 37, 63, 0.72);
      color: #d7efff;
      cursor: pointer;
      transition: 170ms ease;
    }

    .control-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 14px;
      white-space: nowrap;
    }

    .control-btn:hover,
    .chip:hover {
      border-color: rgba(105, 199, 255, 0.5);
      background: rgba(24, 85, 136, 0.72);
    }

    .control-btn.active,
    .chip.active {
      border-color: rgba(72, 204, 255, 0.68);
      background: linear-gradient(145deg, rgba(44, 137, 220, 0.86), rgba(16, 63, 111, 0.82));
      box-shadow: inset 0 0 22px rgba(92, 202, 255, 0.24), 0 0 24px rgba(62, 174, 255, 0.15);
    }

    .slider-line {
      display: grid;
      grid-template-columns: auto minmax(90px, 1fr) 42px;
      align-items: center;
      gap: 10px;
      min-width: 190px;
      padding: 0 10px;
      color: var(--muted);
      font-size: 13px;
    }

    .bottom-controls .slider-line {
      grid-column: span 3;
      min-width: 0;
    }

    input[type="range"] {
      width: 100%;
      accent-color: #63c5ff;
    }

    .editor-debug-panel {
      position: fixed;
      top: 18px;
      right: calc(var(--side-panel-width) + 22px);
      z-index: 30;
      display: flex;
      flex-direction: column;
      width: 380px;
      min-width: 260px;
      max-width: min(760px, calc(100vw - 24px));
      height: 520px;
      min-height: 44px;
      max-height: calc(100vh - 24px);
      border: 1px solid rgba(126, 219, 255, 0.42);
      border-radius: 10px;
      background: var(--glass);
      color: #dff6ff;
      box-shadow: var(--glass-shadow);
      backdrop-filter: var(--glass-blur);
      overflow: hidden;
      pointer-events: auto;
    }

    .editor-debug-panel.collapsed {
      height: 44px !important;
      min-height: 44px;
    }

    .editor-debug-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-height: 44px;
      padding: 0 10px 0 12px;
      border-bottom: 1px solid rgba(126, 219, 255, 0.18);
      background: rgba(12, 37, 63, 0.78);
      cursor: move;
      user-select: none;
    }

    .editor-debug-title {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #ffffff;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .editor-debug-title::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 16px rgba(0, 230, 118, 0.76);
    }

    .editor-debug-actions {
      display: flex;
      gap: 6px;
    }

    .editor-debug-actions button {
      display: grid;
      place-items: center;
      width: 28px;
      height: 26px;
      border: 1px solid rgba(126, 219, 255, 0.22);
      border-radius: 7px;
      background: rgba(7, 23, 42, 0.82);
      color: #bdeeff;
      cursor: pointer;
    }

    .editor-debug-content {
      flex: 1;
      margin: 0;
      padding: 12px;
      overflow: auto;
      color: #bfe8ff;
      font: 11px/1.48 var(--font-mono);
      white-space: pre-wrap;
      tab-size: 2;
    }

    .editor-debug-resize {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 18px;
      height: 18px;
      cursor: nwse-resize;
    }

    .editor-debug-resize::after {
      content: "";
      position: absolute;
      right: 5px;
      bottom: 5px;
      width: 8px;
      height: 8px;
      border-right: 2px solid rgba(126, 219, 255, 0.68);
      border-bottom: 2px solid rgba(126, 219, 255, 0.68);
    }

    .editor-wind-panel {
      left: 18px;
      right: auto;
      width: 330px;
      height: min(690px, calc(100vh - 36px));
    }

    .editor-wind-content {
      flex: 1;
      min-height: 0;
      padding: 10px 12px 14px;
      overflow: auto;
    }

    .editor-wind-note {
      margin: 0 0 10px;
      color: #83a9c3;
      font-size: 10.5px;
      line-height: 1.45;
    }

    .editor-wind-row {
      display: grid;
      grid-template-columns: 88px minmax(0, 1fr) 54px;
      align-items: center;
      gap: 8px;
      min-height: 34px;
      border-bottom: 1px solid rgba(126, 219, 255, 0.08);
    }

    .editor-wind-row label {
      color: #c5e8f8;
      font-size: 11px;
      font-weight: 500;
    }

    .editor-wind-row input[type="range"] { min-width: 0; }

    .editor-wind-value {
      color: #7edcff;
      font: 10.5px/1 var(--font-mono);
      text-align: right;
    }

    .editor-wind-color {
      width: 100%;
      height: 24px;
      padding: 1px;
      border: 1px solid rgba(126, 219, 255, 0.25);
      border-radius: 5px;
      background: rgba(4, 17, 31, 0.76);
      cursor: pointer;
    }

    /* ===== 课堂演示流程 ===== */
    .flow-section { display: flex; flex-direction: column; gap: 12px; }
    .flow-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .flow-stage { font-size: 13px; font-weight: 600; color: var(--cyan); }
    .flow-nav { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
    .flow-nav-btn.restart {
      grid-column: 1 / -1;
      min-height: 38px;
      border-color: rgba(96, 226, 205, 0.34);
      background: rgba(12, 44, 52, 0.6);
      color: #a9f0e2;
      font-size: 13.5px;
      letter-spacing: 0.04em;
    }
    .flow-nav-btn.restart:hover:not(:disabled) {
      border-color: rgba(96, 226, 205, 0.6);
      background: rgba(18, 74, 82, 0.72);
    }
    .flow-nav-btn { min-height: 46px; border: 1px solid rgba(121, 190, 255, 0.28); border-radius: var(--radius); background: rgba(12, 37, 63, 0.72); color: #d7efff; font-size: 15px; font-weight: 600; cursor: pointer; transition: 170ms ease; }
    .flow-nav-btn:hover:not(:disabled) { border-color: rgba(105, 199, 255, 0.5); background: rgba(24, 85, 136, 0.72); }
    .flow-nav-btn.primary { border-color: rgba(72, 204, 255, 0.68); background: linear-gradient(145deg, rgba(44, 137, 220, 0.92), rgba(16, 63, 111, 0.86)); box-shadow: inset 0 0 22px rgba(92, 202, 255, 0.24); }
    .flow-nav-btn:disabled, .control-btn:disabled { opacity: 0.38; cursor: default; }
    .flow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
    .flow-stage-head { font-size: 11px; color: var(--soft); letter-spacing: 0.04em; margin: 8px 0 2px; padding-left: 2px; }
    .flow-part-head { margin: 6px 0 1px 34px; color: #7ea7c8; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 5px; }
    .flow-part-head.fixed-open { cursor: default; }
    .flow-part-head:hover { color: #a9cdea; }
    .flow-part-caret { display: inline-block; width: 9px; font-size: 9px; transition: transform 150ms ease; }
    .flow-part-head.collapsed .flow-part-caret { transform: rotate(-90deg); }
    .flow-step-item.flow-part-hidden { display: none; }
    .flow-step-item { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; color: #cfe6ff; font-size: 13px; cursor: pointer; transition: 150ms ease; }
    .flow-step-item:hover { background: rgba(24, 85, 136, 0.4); }
    .flow-step-item.active { border-color: rgba(72, 204, 255, 0.6); background: linear-gradient(145deg, rgba(44, 137, 220, 0.4), rgba(16, 63, 111, 0.4)); }
    .flow-step-dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; color: var(--muted); }
    .flow-step-item.active .flow-step-dot { background: var(--cyan); border-color: var(--cyan); color: #04121f; font-weight: 700; }
    .flow-season-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: -1px 0 4px 34px; }
    .flow-season-choices[hidden] { display: none; }
    .flow-season-btn { min-height: 32px; border: 1px solid rgba(121, 190, 255, 0.26); border-radius: 8px; background: rgba(8, 29, 51, 0.68); color: #b9d7ed; font-size: 12px; font-weight: 700; cursor: pointer; transition: 150ms ease; }
    .flow-season-btn:hover { border-color: rgba(255, 217, 119, 0.52); color: #ffe5a0; background: rgba(53, 43, 20, 0.58); }
    .flow-season-btn.active { border-color: rgba(255, 217, 119, 0.9); color: #07131e; background: linear-gradient(145deg, #ffe08d, #f5bd5f); box-shadow: 0 0 12px rgba(255, 205, 104, 0.32); }
    .flow-hint { margin: 2px 0 0; font-size: 11px; line-height: 1.5; color: var(--soft); }

    /* 节拍点：当前步内的过程小节导航 */
    .flow-beats {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 18px;
      margin: 0 0 4px;
      padding: 3px 0 5px;
    }
    .flow-beats[hidden] { display: none; }
    .flow-beat-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      border: 1px solid rgba(140, 190, 240, 0.4);
      background: rgba(140, 190, 240, 0.14);
      cursor: pointer;
      transition: 140ms ease;
    }
    .flow-beat-dot.done { background: rgba(140, 190, 240, 0.55); }
    /* 免费版里的 Pro 拍：虚线空心点，点击弹出 Pro 版说明 */
    .flow-beat-dot.pro-locked { background: transparent; border-style: dashed; border-color: rgba(141, 220, 251, 0.6); }
    .flow-beat-dot.active {
      background: var(--cyan);
      border-color: var(--cyan);
      box-shadow: 0 0 8px rgba(0, 229, 255, 0.55);
    }
    .info-card {
      position: absolute;
      left: 42px;
      bottom: 24px;
      z-index: 4;
      width: min(430px, calc(100% - 88px));
      min-height: 178px;
      padding: 18px 20px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--glass);
      backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shadow);
      cursor: pointer;
      transition: min-height 180ms ease, padding 180ms ease, border-color 180ms ease, background 180ms ease;
    }

    .info-card h2 {
      margin: 0 0 8px;
      color: #ffffff;
      font-size: 19px;
      letter-spacing: 0;
    }

    .info-card h2::after {
      content: "收起";
      float: right;
      margin-left: 12px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
    }

    .info-card.collapsed {
      width: auto;
      min-width: min(360px, calc(100% - 88px));
      min-height: 0;
      padding: 12px 16px;
      border-color: rgba(72, 204, 255, 0.48);
      background: rgba(6, 22, 39, 0.72);
    }

    .info-card.collapsed h2 {
      margin: 0;
      font-size: 18px;
    }

    .info-card.collapsed h2::after {
      content: "展开";
    }

    .info-card.collapsed .info-meta,
    .info-card.collapsed ul {
      display: none;
    }

    .info-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 10px;
    }

    .info-meta span {
      padding: 3px 8px;
      border: 1px solid rgba(117, 194, 255, 0.22);
      border-radius: 999px;
      color: #9fc8e9;
      background: rgba(14, 44, 74, 0.55);
      font-size: 12px;
    }

    .info-card ul {
      margin: 0;
      padding: 0 0 0 18px;
      color: #b8cede;
      font-size: 14px;
      line-height: 1.55;
    }

    .info-card li + li {
      margin-top: 4px;
    }

    .panel {
      position: relative;
      z-index: 5;
      width: 290px;
      height: calc(100% - 92px);
      margin: 74px 18px 18px 0;
      min-width: 0;
      overflow-y: auto;
      padding: 24px 20px;
      border: 1px solid var(--glass-border);
      border-radius: 18px;
      background: var(--glass);
      backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shadow);
      transition: opacity 180ms ease, transform 220ms ease;
    }

    body.panel-collapsed .panel {
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateX(calc(100% + 18px));
    }

    .panel-handle {
      position: absolute;
      right: var(--side-panel-width);
      top: 50%;
      z-index: 8;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 80px;
      padding: 0;
      border: 1px solid rgba(126, 171, 220, 0.32);
      border-right: 0;
      border-radius: 14px 0 0 14px;
      background: rgba(13, 25, 45, 0.78);
      color: #cbe1f7;
      box-shadow: -12px 0 28px rgba(0, 0, 0, 0.28), inset 1px 0 0 rgba(255, 255, 255, 0.06);
      backdrop-filter: blur(18px) saturate(1.2);
      cursor: pointer;
      transform: translateY(-50%);
      transition: right 220ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
    }

    .panel-handle:hover {
      border-color: rgba(122, 197, 255, 0.52);
      background: rgba(20, 48, 82, 0.88);
      color: #f0f9ff;
    }

    .panel-handle svg {
      display: block;
      width: 14px;
      height: 14px;
      stroke: currentColor;
      transition: transform 180ms ease;
    }

    body.panel-collapsed .panel-handle svg {
      transform: rotate(180deg);
    }

    .panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }

    .panel-header h2 {
      margin: 0;
      font-size: 19px;
    }

    .status-pill {
      color: #a3c0d8;
      font-size: 13px;
    }

    .tab-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-bottom: 14px;
    }

    .tab-row button {
      display: grid;
      place-items: center;
      gap: 4px;
      min-height: 56px;
      padding: 8px 6px;
      font-size: 13px;
      border: 1px solid rgba(121, 190, 255, 0.18);
      border-radius: var(--radius);
      background: rgba(8, 28, 49, 0.66);
      color: #a7bed3;
      cursor: pointer;
    }

    .tab-row button strong {
      color: #f1fbff;
      font-size: 20px;
      line-height: 1;
    }

    .tab-row button.active {
      color: #fff;
      border-color: rgba(97, 192, 255, 0.54);
      background: rgba(35, 118, 193, 0.62);
    }

    .panel-section {
      padding: 18px 0;
      border-top: 1px solid rgba(121, 190, 255, 0.17);
    }

    .panel-section:first-of-type {
      border-top: 0;
      padding-top: 0;
    }

    .panel-section h3 {
      margin: 0 0 12px;
      color: #d7ecff;
      font-size: 15px;
      letter-spacing: 0;
    }

    .toggle-list {
      display: grid;
      gap: 10px;
    }

    .toggle-row {
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-height: 34px;
      color: #c8d8e6;
      font-size: 14px;
    }

    .toggle-row[hidden] {
      display: none;
    }

    .toggle-row .icon {
      display: grid;
      place-items: center;
      width: 26px;
      height: 26px;
      color: #86b4d7;
      border: 1px solid rgba(126, 193, 255, 0.16);
      border-radius: 7px;
      background: rgba(7, 24, 43, 0.54);
    }

    .switch {
      position: relative;
      width: 44px;
      height: 24px;
    }

    .switch input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .switch span {
      position: absolute;
      inset: 0;
      border: 1px solid rgba(116, 185, 243, 0.22);
      border-radius: 999px;
      background: rgba(14, 34, 54, 0.95);
      cursor: pointer;
      transition: 170ms ease;
    }

    .switch span::after {
      content: "";
      position: absolute;
      top: 3px;
      left: 3px;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      background: #8faec7;
      transition: 170ms ease;
    }

    .switch input:checked + span {
      background: rgba(40, 136, 221, 0.85);
      box-shadow: 0 0 18px rgba(73, 188, 255, 0.28);
    }

    .switch input:checked + span::after {
      left: 23px;
      background: #e8f8ff;
    }

    .toggle-row:has(input:disabled) {
      color: #6d8294;
    }

    .toggle-row:has(input:disabled) .icon,
    .switch input:disabled + span {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .chip-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 7px;
    }

    .chip {
      padding: 8px 9px;
      color: #cfe1ee;
      font-size: 12.5px;
      text-align: left;
    }

    .flyout-highlights .chip-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flyout-highlights .chip {
      padding: 8px 6px;
      font-size: 12px;
      text-align: center;
      white-space: nowrap;
    }

    .data-strip {
      position: absolute;
      right: calc(var(--side-panel-width) + 22px);
      bottom: 24px;
      z-index: 4;
      display: none;
      grid-template-columns: repeat(4, auto);
      gap: 18px;
      padding: 13px 18px;
      border: 1px solid rgba(121, 190, 255, 0.17);
      border-radius: var(--radius);
      background: var(--glass);
      backdrop-filter: var(--glass-blur);
      color: #9eb8cd;
      font-size: 13px;
      box-shadow: var(--glass-shadow);
    }

    .data-strip strong {
      display: block;
      margin-top: 2px;
      color: #e9f7ff;
      font-size: 15px;
      font-weight: 650;
    }

    .fallback {
      position: absolute;
      inset: 0;
      display: none;
      place-items: center;
      padding: 24px;
      color: #dbeeff;
      background: #020711;
      z-index: 20;
      text-align: center;
    }

    .fallback.show {
      display: grid;
    }

    @media (max-width: 1500px) {
      .data-strip {
        display: none;
      }
    }

    @media (max-width: 1180px) {
      .app {
        grid-template-columns: minmax(0, 1fr);
      }

      .panel {
        position: absolute;
        right: 18px;
        top: 74px;
        bottom: 18px;
        width: min(290px, calc(100vw - 36px));
        height: auto;
        margin: 0;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
      }

      body.panel-collapsed .panel {
        transform: translateX(calc(100% + 18px));
      }

      .panel-handle {
        right: min(308px, calc(100vw - 14px));
      }

      body.panel-collapsed .panel-handle {
        right: 0;
      }

      .data-strip {
        right: 24px;
        bottom: 132px;
        display: none;
        grid-template-columns: repeat(2, auto);
      }

      .info-card {
        width: min(390px, calc(100% - 88px));
      }
    }

    @media (max-width: 760px) {
      body {
        overflow-x: hidden;
        overflow-y: auto;
      }

      .app {
        display: block;
        min-height: 1120px;
        height: auto;
      }

      .stage {
        height: 780px;
      }

      .top-copy {
        left: 18px;
        top: 18px;
        width: calc(100% - 36px);
      }

      h1 {
        max-width: 300px;
        font-size: 31px;
      }

      .subtitle {
        max-width: 270px;
        font-size: 13px;
        line-height: 1.55;
      }

      .info-card {
        left: 14px;
        right: auto;
        bottom: 172px;
        width: calc(100% - 28px);
        max-width: 362px;
        max-height: 244px;
        overflow: auto;
      }

      .bottom-controls {
        left: 14px;
        right: auto;
        bottom: 16px;
        width: calc(100% - 28px);
        max-width: 362px;
        min-width: 0;
        transform: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .bottom-controls .control-btn {
        min-width: 0;
        padding: 0 6px;
        font-size: 12px;
      }

      .bottom-controls .control-btn:nth-of-type(3) {
        grid-column: span 2;
      }

      .bottom-controls .slider-line {
        grid-column: span 2;
        grid-template-columns: auto minmax(72px, 1fr) 36px;
        padding: 0 4px;
        font-size: 12px;
      }

      .info-card li {
        overflow-wrap: anywhere;
      }

      .data-strip {
        display: none;
      }

      .panel {
        position: relative;
        inset: auto;
        width: calc(100% - 24px);
        max-width: 366px;
        margin: 0 12px 84px;
        max-height: none;
      }

      body.panel-collapsed .panel {
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
        transform: none;
      }

      .panel-handle {
        display: none;
      }

      .model-label {
        font-size: 12px;
      }
    }
    /* ===== 布局方案切换器 ===== */
    .layout-switcher {
      position: absolute;
      left: 50%;
      top: 20px;
      transform: translateX(-50%);
      z-index: 6;
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 5px 6px 5px 13px;
      border: 1px solid rgba(132, 184, 244, 0.18);
      border-radius: 999px;
      background: rgba(9, 20, 38, 0.55);
      backdrop-filter: blur(20px) saturate(1.25);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .ls-label {
      margin-right: 3px;
      font-size: 10.5px;
      font-weight: 600;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: #7f9fbf;
    }

    .ls-opt {
      height: 28px;
      padding: 0 13px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: #a9c4de;
      font-size: 12.5px;
      font-weight: 600;
      letter-spacing: 0.01em;
      cursor: pointer;
      transition: 150ms ease;
      white-space: nowrap;
    }

    .ls-opt:hover {
      color: #e8f6ff;
      background: rgba(120, 190, 255, 0.12);
    }

    .ls-opt.active {
      color: #051423;
      background: linear-gradient(145deg, #7cd0ff, #4aa6f0);
      box-shadow: 0 2px 12px rgba(74, 166, 240, 0.4);
    }

    /* ===== 播放控制 dock（三种布局共享的基础样式）===== */
    .playback-dock {
      z-index: 4;
      display: flex;
      align-items: center;
    }

    .pd-title {
      display: none;
      color: #cfe6ff;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.02em;
    }

    .pd-btns {
      display: flex;
      gap: 8px;
    }

    .pd-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      height: 34px;
      padding: 0 15px;
      border: 1px solid rgba(140, 190, 240, 0.16);
      border-radius: 9px;
      background: rgba(12, 30, 52, 0.5);
      color: #d7efff;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.01em;
      white-space: nowrap;
      cursor: pointer;
      transition: 150ms ease;
    }

    .pd-btn .pd-ico {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      height: 14px;
      font-size: 12px;
      opacity: 0.92;
    }

    .pd-btn .pd-ico svg {
      display: block;
      width: 100%;
      height: 100%;
      stroke: currentColor;
    }

    .pd-btn:hover {
      border-color: rgba(120, 200, 255, 0.42);
      background: rgba(24, 72, 120, 0.58);
    }

    .pd-slider[hidden] { display: none; }
    .pd-btn[hidden] { display: none; }
    body.stage-single #playBtn { display: none; }

    /* 双视图开关：三维地球 ↔ 世界地图（仅阶段四/五显示） */
    .view-mode-switch {
      position: absolute;
      top: 18px;
      right: 18px;
      z-index: 6;
      display: flex;
      gap: 4px;
      padding: 4px;
      border: 1px solid var(--glass-border);
      border-radius: 999px;
      background: var(--glass);
      backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shadow);
    }
    .view-mode-switch[hidden] { display: none; }
    .view-mode-switch button {
      min-height: 30px;
      padding: 0 14px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: #bcd9f2;
      font-size: 12.5px;
      font-weight: 600;
      cursor: pointer;
      transition: 150ms ease;
    }
    .view-mode-switch button.active {
      background: linear-gradient(145deg, rgba(44, 137, 220, 0.75), rgba(16, 63, 111, 0.75));
      color: #eaf7ff;
      box-shadow: inset 0 0 12px rgba(92, 202, 255, 0.22);
    }

    [data-tip] {
      position: relative;
    }
    [data-tip]::after {
      content: attr(data-tip);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 8px);
      transform: translateX(-50%);
      padding: 4px 10px;
      border-radius: 6px;
      background: rgba(8, 18, 34, 0.92);
      border: 1px solid rgba(120, 180, 240, 0.18);
      color: #d7efff;
      font-size: 12px;
      font-weight: 500;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity 120ms ease;
      z-index: 20;
    }
    [data-tip]:hover::after {
      opacity: 1;
      transition-delay: 200ms;
    }

    .pd-btn.active {
      border-color: rgba(90, 200, 255, 0.5);
      background: linear-gradient(145deg, rgba(44, 137, 220, 0.7), rgba(16, 63, 111, 0.72));
      box-shadow: inset 0 0 16px rgba(92, 202, 255, 0.2);
    }

    .pd-sliders {
      display: flex;
      align-items: center;
    }

    .pd-slider {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 9px;
    }

    .pd-label {
      font-size: 10.5px;
      font-weight: 600;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      color: #7f9fbf;
    }

    .pd-slider input[type="range"] {
      width: 100%;
      accent-color: #63c5ff;
    }

    .pd-val {
      min-width: 36px;
      color: #e9f7ff;
      font-size: 12px;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      text-align: right;
    }

    /* ---- 方案 A：扁平底栏 ---- */
    body.layout-a .playback-dock {
      position: absolute;
      left: 50%;
      bottom: 20px;
      transform: translateX(-50%);
      flex-direction: row;
      gap: 16px;
      height: 52px;
      padding: 0 16px;
      border: 1px solid rgba(132, 184, 244, 0.16);
      border-radius: 13px;
      background: linear-gradient(180deg, rgba(18, 34, 58, 0.5), rgba(9, 19, 37, 0.42));
      backdrop-filter: blur(20px) saturate(1.25);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    body.layout-a .pd-btns {
      position: relative;
      padding-right: 16px;
    }

    body.layout-a .pd-btns::after {
      content: "";
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 1px;
      height: 22px;
      background: rgba(140, 190, 240, 0.2);
    }

    body.layout-a .pd-sliders {
      gap: 22px;
    }

    body.layout-a .pd-slider {
      min-width: 152px;
    }

    /* ---- 方案 B：并入右侧栏 ---- */
    body.layout-b .playback-dock {
      position: static;
      transform: none;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      width: 100%;
      margin-bottom: 16px;
      padding: 14px;
      border: 1px solid rgba(121, 190, 255, 0.16);
      border-radius: 12px;
      background: rgba(10, 26, 46, 0.46);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    body.layout-b .pd-title {
      display: block;
    }

    body.layout-b .pd-btns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    body.layout-b .pd-btn {
      height: 40px;
    }

    body.layout-b .pd-sliders {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }

    body.layout-b .pd-slider {
      gap: 12px;
    }

    body.layout-b .pd-label {
      min-width: 30px;
    }

    /* ---- 方案 C：悬浮胶囊 ---- */
    body.layout-c .playback-dock {
      position: absolute;
      left: auto;
      right: 24px;
      bottom: 22px;
      transform: none;
      flex-direction: row;
      gap: 14px;
      height: 46px;
      padding: 0 12px 0 8px;
      border: 1px solid rgba(150, 200, 255, 0.2);
      border-radius: 999px;
      background: rgba(9, 21, 39, 0.62);
      backdrop-filter: blur(24px) saturate(1.3);
      box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    body.layout-c .pd-btn {
      height: 32px;
      width: 32px;
      padding: 0;
      border-radius: 999px;
    }

    body.layout-c .pd-txt {
      display: none;
    }

    body.layout-c .pd-btn .pd-ico {
      font-size: 13px;
    }

    body.layout-c .pd-sliders {
      gap: 16px;
    }

    body.layout-c .pd-slider {
      min-width: 118px;
      gap: 8px;
    }

    body.layout-c .pd-label {
      display: none;
    }

    body.layout-c .pd-slider::before {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      height: 14px;
      font-size: 13px;
      line-height: 1;
      color: #8fb4d7;
    }

    body.layout-c .pd-speed::before {
      content: "";
      background: currentColor;
      clip-path: polygon(58% 0, 20% 52%, 47% 52%, 36% 100%, 84% 38%, 56% 38%);
      filter: drop-shadow(0 0 5px rgba(120, 200, 255, 0.28));
    }

    body.layout-c .pd-atm::before {
      content: "◐";
    }

    body.layout-c .pd-val {
      min-width: 30px;
      font-size: 11px;
    }

    /* 中等宽度：右侧面板浮动叠在舞台上，扁平/胶囊 dock 需靠左避开面板 */
    @media (max-width: 1180px) and (min-width: 761px) {
      body.layout-a #playbackDock,
      body.layout-c #playbackDock {
        left: auto;
        right: 344px;
        transform: none;
      }

      body.panel-collapsed.layout-a #playbackDock,
      body.panel-collapsed.layout-c #playbackDock {
        right: 24px;
      }

      body.layout-c .info-card {
        bottom: 86px;
      }

      body.panel-collapsed.layout-c .info-card {
        bottom: 24px;
      }
    }

    @media (max-width: 760px) {
      .layout-switcher {
        top: 12px;
        padding: 4px 5px 4px 10px;
      }

      .ls-opt {
        padding: 0 9px;
        font-size: 11.5px;
      }

      body.layout-a .playback-dock,
      body.layout-c .playback-dock {
        left: 14px;
        right: 14px;
        bottom: 16px;
        transform: none;
        flex-wrap: wrap;
        height: auto;
        padding: 12px;
        gap: 12px;
        border-radius: 14px;
      }

      body.layout-a .pd-sliders,
      body.layout-c .pd-sliders {
        flex: 1 1 100%;
        gap: 16px;
      }

      body.layout-a .pd-slider,
      body.layout-c .pd-slider {
        flex: 1;
        min-width: 0;
      }

      .slp-legend,
      .slp-legend.globe,
      .slp-legend.map {
        left: 14px;
        right: 14px;
        top: auto;
        bottom: 126px;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
      }

      .slp-legend-ramp {
        width: calc(100vw - 56px);
        grid-template-columns: repeat(8, minmax(0, 1fr));
      }
    }

    /* ===== 2026-07 界面重设计：五阶段主线 + 常驻图层 + 突出月份控制 ===== */

    /* 舞台右上工具簇：图层 / 重置 / 全屏 / 关于 */
    .stage-tools {
      position: fixed;
      top: 18px;
      right: 18px;
      z-index: 9;
      display: flex;
      gap: 10px;
    }

    .fab-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      padding: 0 18px;
      border: 1px solid var(--glass-border);
      border-radius: 999px;
      background: var(--glass);
      backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shadow);
      color: #d9edff;
      font-size: 13.5px;
      font-weight: 600;
      letter-spacing: 0.01em;
      cursor: pointer;
      transition: 150ms ease;
    }

    .fab-btn .fab-ico {
      font-size: 15px;
      line-height: 1;
      opacity: 0.9;
    }

    .fab-btn:hover {
      border-color: rgba(120, 200, 255, 0.5);
      background: rgba(24, 72, 120, 0.6);
      color: #f0f9ff;
    }

    .fab-btn.active {
      border-color: rgba(72, 204, 255, 0.68);
      background: linear-gradient(145deg, rgba(44, 137, 220, 0.85), rgba(16, 63, 111, 0.8));
      color: #fff;
      box-shadow: inset 0 0 18px rgba(92, 202, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.35);
    }

    /* 双视图开关让位到舞台顶部居中 */
    .view-mode-switch {
      right: auto;
      left: 50%;
      transform: translateX(-50%);
    }

    /* 常驻图层浮层 */
    .layers-flyout {
      position: absolute;
      top: 74px;
      right: 18px;
      z-index: 8;
      width: 216px;
      max-height: calc(100% - 170px);
      overflow-y: auto;
      padding: 14px 12px 6px;
      border: 1px solid var(--glass-border);
      border-radius: 18px;
      background: var(--glass);
      backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shadow);
    }

    .layers-flyout[hidden] { display: none; }

    .lf-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 6px;
    }

    .lf-head h3 {
      margin: 0;
      font-size: 15px;
      color: #ffffff;
      letter-spacing: 0.01em;
    }

    .layers-flyout .toggle-list { gap: 8px; }

    .layers-flyout .toggle-row {
      grid-template-columns: 24px minmax(0, 1fr) auto;
      gap: 7px;
      min-height: 36px;
      font-size: 12.5px;
    }

    .layers-flyout .toggle-row .icon {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      font-size: 12px;
    }

    .layers-flyout .switch {
      width: 36px;
      height: 20px;
    }

    .layers-flyout .switch span::after {
      top: 2px;
      left: 2px;
      width: 14px;
      height: 14px;
    }

    .layers-flyout .switch input:checked + span::after {
      left: 18px;
    }

    body.stage-late .flyout-explore { display: none; }
    body.stage-single .flyout-highlights { display: none; }
    body.stage2-formation-early .flyout-highlights { display: none; }
    body.stage2-boundary-detail .flyout-highlights { display: none; }

    /* 阶段四、五的教学控件需要压住地图符号与文字，避免图例、说明或播放区被场景标注穿透。 */
    body.stage-monsoon .info-card,
    body.stage-monsoon .season-console,
    body.stage-monsoon .slp-legend,
    body.stage-monsoon .playback-dock,
    body.stage-monsoon .data-strip,
    body.stage-monsoon .view-mode-switch,
    body.stage-monsoon .stage-tools {
      z-index: 12;
    }

    /* 季节切换控制台：阶段三/四/五统一为 46px 高的底部快切胶囊。 */
    .season-console {
      position: absolute;
      left: 50%;
      bottom: 22px;
      transform: translateX(-50%);
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 46px;
      padding: 0 12px;
      border: 1px solid rgba(255, 214, 130, 0.32);
      border-radius: 999px;
      background: var(--glass);
      backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shadow), 0 0 36px rgba(255, 190, 90, 0.1);
    }

    .season-console[hidden] { display: none; }

    .sc-main {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .sc-cap {
      font-size: 9.5px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #ffd98f;
      writing-mode: horizontal-tb;
    }

    .sc-quick {
      display: flex;
      gap: 7px;
      margin-top: 0;
    }

    .sc-quick[hidden] { display: none; }

    .sc-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 78px;
      min-height: 34px;
      height: 34px;
      padding: 0 11px;
      border: 1px solid rgba(121, 190, 255, 0.26);
      border-radius: 10px;
      background: rgba(10, 30, 52, 0.66);
      color: #cfe4f6;
      cursor: pointer;
      transition: 160ms ease;
    }

    .sc-btn strong {
      font-size: 16px;
      line-height: 1;
      color: #ffffff;
    }

    .sc-btn:hover {
      border-color: rgba(120, 200, 255, 0.5);
      background: rgba(24, 72, 120, 0.6);
    }

    #seasonJanBtn.active {
      border-color: rgba(124, 208, 255, 0.92);
      background: linear-gradient(145deg, #7cd0ff, #4aa6f0);
      box-shadow: 0 0 18px rgba(94, 182, 255, 0.35);
    }

    #seasonJanBtn.active strong { color: #051423; }

    #seasonJulBtn.active {
      border-color: rgba(255, 217, 119, 0.92);
      background: linear-gradient(145deg, #ffe08d, #f5bd5f);
      box-shadow: 0 0 18px rgba(255, 205, 104, 0.35);
    }

    #seasonJulBtn.active strong { color: #241503; }

    .season-console.month-mode {
      width: 300px;
    }

    .season-console.month-mode #seasonJanBtn {
      margin-left: 20px;
    }

    .season-console.month-mode #seasonJulBtn {
      margin-left: 34px;
    }

    .sc-term-btn.active {
      border-color: rgba(255, 217, 119, 0.92);
      background: linear-gradient(145deg, #ffe08d, #f5bd5f);
      box-shadow: 0 0 18px rgba(255, 205, 104, 0.35);
    }

    .sc-term-btn.active strong { color: #241503; }

    @media (max-width: 1180px) {
      /* 右侧面板浮在舞台上：工具簇固定在右侧栏上方，浮层避开面板 */
      .stage-tools { right: 18px; }
      body.panel-collapsed .stage-tools { right: 18px; }
      .layers-flyout { right: 326px; }
      body.panel-collapsed .layers-flyout { right: 18px; }

      /* 季节切换控制台在可见舞台区域内居中，并抬到 dock 上方 */
      .season-console {
        left: calc((100% - 326px) / 2);
        bottom: 88px;
      }

      body.panel-collapsed .season-console {
        left: 50%;
        bottom: 88px;
      }
    }

    /* 右侧面板 = 教学流程 */
    .panel {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding: 20px 18px 14px;
    }

    .panel-brand {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex: 0 0 auto;
      padding: 0 4px 12px;
      border-bottom: 1px solid rgba(121, 190, 255, 0.14);
      margin-bottom: 10px;
    }

    .pb-text {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }

    .pb-kicker {
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #7f9fbf;
    }

    .panel-brand .flow-stage { font-size: 14px; }

    .flow-wrap {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      margin: 0 -6px;
      padding: 0 6px 8px;
    }

    .flow-nav {
      flex: 0 0 auto;
      margin-top: 12px;
    }

    .flow-nav-btn {
      min-height: 54px;
      border-radius: 14px;
      font-size: 16px;
    }

    /* 阶段卡片式列表 */
    .flow-stage-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 8px 0 3px;
      padding: 11px 12px;
      border: 1px solid rgba(121, 190, 255, 0.14);
      border-radius: 12px;
      background: rgba(9, 26, 47, 0.5);
      color: #b9d3ec;
      font-size: 13.5px;
      font-weight: 700;
      letter-spacing: 0.01em;
      cursor: pointer;
      transition: 150ms ease;
    }

    .flow-stage-head:hover {
      border-color: rgba(105, 199, 255, 0.45);
      background: rgba(20, 60, 100, 0.55);
      color: #e8f6ff;
    }

    .flow-stage-head.active {
      border-color: rgba(72, 204, 255, 0.55);
      background: linear-gradient(145deg, rgba(44, 137, 220, 0.42), rgba(16, 63, 111, 0.4));
      color: #ffffff;
    }

    .fsh-num {
      display: grid;
      place-items: center;
      width: 24px;
      height: 24px;
      flex: 0 0 auto;
      border: 1px solid var(--line-strong);
      border-radius: 50%;
      font-size: 12.5px;
      color: var(--muted);
    }

    .flow-stage-head.active .fsh-num {
      background: var(--cyan);
      border-color: var(--cyan);
      color: #04121f;
      font-weight: 800;
    }

    .fsh-name {
      flex: 1;
      min-width: 0;
    }

    .fsh-caret {
      flex: 0 0 auto;
      font-size: 10px;
      opacity: 0.7;
      transition: transform 160ms ease;
    }

    .flow-stage-head:not(.active) .fsh-caret { transform: rotate(-90deg); }

    #flowList [data-stage].stage-collapsed { display: none; }

    .flow-step-item { margin-left: 8px; }

    /* 关于：沿用主界面的深蓝玻璃视觉，内容结构与授权信息独立于教学流程。 */
    .about-modal {
      position: fixed;
      inset: 0;
      z-index: 60;
      display: grid;
      place-items: center;
      padding: 28px;
      background: rgba(2, 6, 14, 0.72);
      backdrop-filter: blur(14px);
    }

    .about-modal[hidden] { display: none; }

    .about-dialog {
      display: flex;
      flex-direction: column;
      width: min(780px, calc(100vw - 56px));
      max-height: calc(100vh - 56px);
      overflow: hidden;
      border: 1px solid rgba(121, 190, 255, 0.22);
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(14, 28, 50, 0.97), rgba(6, 14, 28, 0.96));
      backdrop-filter: blur(30px) saturate(1.3);
      box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .about-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      flex: 0 0 auto;
      padding: 18px 20px;
      border-bottom: 1px solid rgba(121, 190, 255, 0.16);
    }

    .about-head h2 {
      margin: 0;
      color: #f2f9ff;
      font-size: 22px;
    }

    .about-subtitle {
      margin: 4px 0 0;
      color: #83a9c8;
      font-size: 12px;
    }

    .panel-close {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      padding: 0;
      border: 1px solid rgba(121, 190, 255, 0.25);
      border-radius: 10px;
      background: rgba(12, 37, 63, 0.7);
      color: #d7efff;
      font-size: 14px;
      cursor: pointer;
      transition: 150ms ease;
    }

    .panel-close:hover {
      border-color: rgba(105, 199, 255, 0.5);
      background: rgba(24, 85, 136, 0.72);
    }

    .about-content {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      display: grid;
      gap: 14px;
      padding: 18px 20px 22px;
      color: #d8e8f5;
      font-size: 13.5px;
      line-height: 1.72;
      scroll-behavior: smooth;
    }

    .about-content h2,
    .about-content h3,
    .about-content p,
    .about-content ul {
      margin: 0;
    }

    .about-content h2 {
      color: #dff3ff;
      font-size: 18px;
    }

    .about-content h3 {
      margin-top: 6px;
      color: #f6fbff;
      font-size: 14px;
    }

    .about-content ul {
      display: grid;
      gap: 5px;
      padding-left: 20px;
    }

    .about-content a {
      color: #73ddff;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .about-entry-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 9px;
    }

    .about-entry-link {
      display: grid;
      gap: 2px;
      padding: 10px 12px;
      border: 1px solid rgba(72, 204, 255, 0.22);
      border-radius: 12px;
      background: rgba(42, 121, 184, 0.12);
      color: #e7f7ff;
      text-decoration: none;
      transition: 150ms ease;
    }

    .about-entry-link:hover {
      border-color: rgba(72, 204, 255, 0.5);
      background: rgba(42, 121, 184, 0.24);
    }

    .about-entry-link small,
    .section-kicker {
      color: rgba(0, 229, 255, 0.72);
      font-size: 10px;
      letter-spacing: 0.13em;
      text-transform: uppercase;
    }

    .about-section-card {
      display: grid;
      gap: 8px;
      padding: 15px 16px;
      border: 1px solid rgba(121, 190, 255, 0.14);
      border-radius: 14px;
      background: linear-gradient(155deg, rgba(43, 115, 174, 0.13), rgba(8, 18, 34, 0.22));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .section-summary {
      color: #bad0e0;
    }

    .about-model-note {
      padding: 11px 12px;
      border: 1px solid rgba(255, 208, 95, 0.28);
      border-radius: 10px;
      color: #ffe1a2;
      background: rgba(72, 48, 12, 0.3);
    }

    /* Keep text crisp: only the WebGL drawing buffer changes resolution. */
    body.smooth-mode { --glass-blur: none; --glass: rgba(9, 25, 45, 0.96); }
    body.smooth-mode *, body.smooth-mode *::before, body.smooth-mode *::after {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    body.smooth-mode :is(.panel, .info-card, .layers-flyout, .about-modal, .season-console, .playback-dock, .slp-legend, .fab-btn) {
      background-color: rgba(9, 25, 45, 0.96);
    }
    .smooth-status { font-size: 11px; opacity: 0.8; }
    .perf-notice {
      position: fixed; left: 50%; top: 72px; transform: translateX(-50%); z-index: 9999;
      max-width: min(640px, calc(100vw - 32px)); padding: 12px 40px 12px 16px; border-radius: 10px;
      background: rgba(9, 25, 45, 0.96); border: 1px solid rgba(255, 196, 92, 0.55);
      color: #f3f7ff; font-size: 15px; line-height: 1.55; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    }
    .perf-notice-close {
      position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border: 0; border-radius: 6px;
      background: transparent; color: #cfe0f5; font-size: 18px; line-height: 1; cursor: pointer;
    }
    .perf-notice-close:hover { background: rgba(255, 255, 255, 0.1); }
    .stage-tools .fab-btn { white-space: nowrap; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
    @media (max-width: 760px) {
      .stage-tools { gap: 4px; right: 10px; left: 10px; justify-content: flex-end; }
      .stage-tools .fab-btn { padding: 0 7px; gap: 5px; font-size: 11px; min-height: 40px; flex-shrink: 0; }
      .stage-tools .fab-ico { display: none; }
    }
