/* The story retains the dark-blue and cyan visual language of the V2 dashboard. */
.story-stage { container-type: inline-size; }
.story-stage .stage-heading { min-height: 54px; border-bottom: 1px solid #17445a80; }
.story-stage .stage-heading h2 { margin: 3px 0 0; color: #d4f3f8; font-size: clamp(13px, 2cqw, 16px); }
.story-badge { padding: 4px 7px; border: 1px solid #235569; color: #74acbc; font-size: 9px; letter-spacing: .12em; white-space: nowrap; }
.story-canvas-wrap { position: absolute; inset: 54px 0 55px; overflow: hidden; }
#story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-copy { position: absolute; inset: 0; color: #d6f2f7; pointer-events: none; }
.story-copy .story-overline { color: #66c9d8; font-size: clamp(9px, 1.35cqw, 12px); letter-spacing: .17em; }
.story-copy h3 { margin: 8px 0 0; color: #e7f9fb; font-size: clamp(19px, 3.3cqw, 29px); line-height: 1.25; letter-spacing: .04em; }
.story-copy .story-desc { margin: 8px 0 0; color: #86aebb; font-size: clamp(10px, 1.45cqw, 13px); line-height: 1.6; }
.story-intro { position: absolute; left: 7%; top: 9%; }
.story-kpis { position: absolute; left: 7%; right: 7%; top: 48%; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.story-kpi { padding-top: 15px; border-top: 1px solid #3cb4ca88; }
.story-kpi span, .story-kpi small { display: block; color: #9abec9; font-size: clamp(10px, 1.5cqw, 13px); font-weight: 500; }
.story-kpi strong { display: block; margin: 5px 0 7px; color: #7fe8f3; font-size: clamp(30px, 6cqw, 57px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; text-shadow: 0 0 22px #23bad966; }
.story-kpi strong em { margin-left: 5px; font-size: .28em; font-style: normal; font-weight: 500; }
.story-kpi small { color: #6f9fac; }
.story-map-copy, .story-outcome-copy { position: absolute; top: 10%; left: 6%; width: 41%; }
.story-map-copy h3, .story-outcome-copy h3 { font-size: clamp(18px, 2.8cqw, 26px); }
.story-map-total { margin: 15px 0 11px; color: #7fe8f3; font-size: clamp(27px, 4.8cqw, 44px); font-weight: 700; line-height: 1; }
.story-map-total small { margin-left: 5px; color: #a7cbd3; font-size: .3em; font-weight: 500; }
.story-map-list { display: grid; gap: 5px; width: 88%; margin: 0; padding: 0; list-style: none; }
.story-map-list li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #1d52636b; color: #94b8c3; font-size: clamp(10px, 1.45cqw, 12px); }
.story-map-list b { color: #d1f4f7; font-weight: 600; white-space: nowrap; }
.story-note { color: #7a9eaa; font-size: clamp(9px, 1.22cqw, 11px); line-height: 1.5; }
.story-map-copy .story-note { margin-top: 10px; }
.story-outcome-copy .story-desc { margin-bottom: 15px; }
.outcome-item { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 10px 0; border-bottom: 1px solid #1e5161; color: #a4c7d0; font-size: clamp(10px, 1.5cqw, 13px); }
.outcome-item i { width: 7px; height: 7px; border-radius: 50%; background: #3cc9de; box-shadow: 0 0 8px #3cc9de; }
.outcome-item.outer i { background: #c9edf0; box-shadow: 0 0 8px #c9edf0; }
.outcome-item b { color: #83e5ef; font-size: clamp(23px, 4cqw, 34px); line-height: 1; }
.outcome-item b small { margin-left: 3px; color: #a4c7d0; font-size: .35em; font-weight: 500; }
.story-outcome-copy .story-note { margin-top: 13px; }
.story-bottom { position: absolute; right: 12px; bottom: 11px; left: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; z-index: 3; }
.story-tabs { display: flex; gap: 4px; min-width: 0; }
.story-tabs button, .story-pause { border: 1px solid transparent; border-radius: 2px; background: transparent; color: #7c9da8; font: inherit; font-size: clamp(9px, 1.25cqw, 11px); cursor: pointer; }
.story-tabs button { padding: 6px 8px; white-space: nowrap; }
.story-tabs button span { margin-right: 4px; color: #56818f; font-size: 9px; }
.story-tabs button[aria-pressed="true"] { border-color: #286779; background: #0c3444; color: #bdf3f8; }
.story-tabs button[aria-pressed="true"] span { color: #54d6e9; }
.story-tabs button:hover, .story-pause:hover { color: #bdf3f8; }
.story-tabs button:focus-visible, .story-pause:focus-visible { outline: 2px solid #8ff1ff; outline-offset: 2px; }
.story-pause { width: 28px; height: 27px; border-color: #235366; font-size: 13px; }
.story-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #103446; }
.story-progress i { display: block; height: 100%; width: 0; background: #51d9e9; box-shadow: 0 0 8px #51d9e9; }
@media (max-width: 700px) { .story-copy .story-desc { line-height: 1.35; } .story-map-list { gap: 1px; } .story-map-list li { padding: 2px 0; } }
@media (max-width: 600px) {
  .overview-grid { grid-auto-rows: max-content; }
  .dashboard-rail { min-height: max-content; }
}

/* 校园汇聚与成都扩散：沿用大屏青蓝色信息层。 */
#journey-canvas { position:absolute; inset:0; width:100%; height:100%; }
#journey-canvas[hidden] { display:none; }
.story-copy .journey-copy { position:absolute; left:4%; top:5%; width:29%; }
.story-copy .journey-copy h3 { margin:4px 0 0; font-size:clamp(14px,2.35cqw,24px); line-height:1.2; }
.journey-subtitle { margin:4px 0 0; color:#88b9c8; font-size:clamp(9px,1.15cqw,12px); }
.journey-steps { display:grid; gap:5px; margin-top:clamp(9px,2cqw,18px); }
.journey-step { color:#6593a3; font-size:clamp(9px,1.2cqw,12px); line-height:1.2; }
.journey-step::before { content:'◇'; margin-right:5px; color:#4d8193; }
.journey-step.is-current { color:#d4faff; }
.journey-step.is-current::before { content:'◆'; color:#83eeff; text-shadow:0 0 7px #42d9fa; }
.journey-units { display:grid; grid-template-columns:1fr 1fr; gap:3px 4px; margin-top:clamp(8px,1.5cqw,14px); color:#87b5c5; font-size:clamp(8px,.95cqw,10px); line-height:1.2; }
.journey-units span { white-space:nowrap; }
.journey-units[hidden] { display:none; }
.journey-phase { position:absolute; right:4%; top:5%; padding:3px 6px; border:1px solid #31849c; border-radius:2px; background:#06283cbb; color:#a9effb; font-size:clamp(9px,1.1cqw,11px); }
.journey-note { position:absolute; left:4%; bottom:2%; margin:0; color:#85b4c2; font-size:clamp(8px,1cqw,11px); line-height:1.25; }
/* The geographic story is the only scene; keep its playback control at right. */
.story-bottom { justify-content:flex-end; }

/* Temporary map preview controls, removable after development. */
.map-preview { display:flex; align-items:center; gap:3px; padding:3px 4px; border:1px solid #23667b; border-radius:3px; background:#05283ddd; color:#8dc1ce; font-size:10px; }
.map-preview span { padding:0 3px; }
.map-preview button { border:0; border-radius:2px; padding:3px 6px; background:transparent; color:#a6d5df; font:inherit; cursor:pointer; }
.map-preview button:hover, .map-preview button[aria-pressed="true"] { color:#e5fcff; background:#177b96; box-shadow:0 0 8px #2abfe555; }
.map-preview button:focus-visible { outline:2px solid #8ff1ff; outline-offset:1px; }

/* Full-panel terrain bed sits below heading, copy and geographic animation. */
#terrain-underlay { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; opacity:.88;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 90%,transparent);
  -webkit-mask-composite:source-in; mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 90%,transparent); mask-composite:intersect; }
#map-surface-3d { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
