/* assets/css/physics/thermodynamics/rankine-cycle-simplified-power-plant-flow-explained.css — 本页专属样式（en/zh 共用） */
/* 依赖 /assets/css/style.css（设计令牌 + .part/.tag 骨架 + 外壳态）。
   图形/动画样式自 svgs/done/physics-17-rankine-cycle-simplified-power-plant-flow-explained.html 预览 <style> 并入驻此
   （页面禁止内联 <style>）。零件区分色与动画按 body[data-topic="rankine-cycle"] 作用域限定；
   本页专属类统一 rk-* 前缀，与其它页不冲突。动画由 #stage 的 .is-running 驱动。 */

/* 零件本体/区分色（作用域限定 · 均在中灰蓝值域内） */
body[data-topic="rankine-cycle"] .part .body{fill:#c2d1e4;stroke:#2563eb;stroke-width:1.6}
body[data-topic="rankine-cycle"] .part .body2{fill:#dde7f4;stroke:#60a5fa;stroke-width:1.2}
body[data-topic="rankine-cycle"] .part .body3{fill:#aab9cd;stroke:none}
body[data-topic="rankine-cycle"] .part .accent{fill:none;stroke:#6b7b8c;stroke-width:2;stroke-linecap:round}
body[data-topic="rankine-cycle"] .part.is-active .body{fill:#9dc3f5;stroke:#1d4ed8;stroke-width:2.2}
body[data-topic="rankine-cycle"] .part.is-active .body2{fill:#c4daf8;stroke:#3b82f6;stroke-width:1.4}
body[data-topic="rankine-cycle"] .part.is-active .body3{fill:#1d4ed8}
body[data-topic="rankine-cycle"] .part.is-active{filter:drop-shadow(0 0 12px rgba(29,78,216,.5))}

/* 锅炉火焰与高温蒸汽：材质专用饱和色（豁免） */
.rk-flame{fill:#f59e0b;stroke:#ea580c;stroke-width:1.2;transform-box:view-box;transform-origin:center bottom;
  animation:rk-flicker .9s ease-in-out infinite alternate;animation-play-state:paused}
.is-running .rk-flame{animation-play-state:running}
@keyframes rk-flicker{from{opacity:.72;transform:scaleY(.9)}to{opacity:1;transform:scaleY(1.08)}}

/* 锅炉热辉 */
.rk-glow{animation:rk-glow 3.2s ease-in-out infinite;animation-play-state:paused;pointer-events:none}
.is-running .rk-glow{animation-play-state:running}
@keyframes rk-glow{0%{opacity:.2}50%{opacity:.6}100%{opacity:.2}}

/* 管路外壳与流动 */
.rk-case{fill:none;stroke:#94a3b8;stroke-width:22;stroke-linecap:round;stroke-linejoin:round}
.rk-hot{fill:none;stroke:#ea580c;stroke-width:7;stroke-linecap:round;stroke-dasharray:12 14;
  animation:rk-flow 1.1s linear infinite;animation-play-state:paused}
.rk-cold{fill:none;stroke:#2563eb;stroke-width:7;stroke-linecap:round;stroke-dasharray:12 14;
  animation:rk-flow 1.3s linear infinite;animation-play-state:paused}
.is-running .rk-hot,.is-running .rk-cold{animation-play-state:running}
@keyframes rk-flow{to{stroke-dashoffset:-26}}

/* 叶轮/转子旋转（汽轮机与给水泵） */
.rk-rotor{transform-box:view-box;animation:rk-spin 1.2s linear infinite;animation-play-state:paused}
.is-running .rk-rotor{animation-play-state:running}
@keyframes rk-spin{to{transform:rotate(360deg)}}
body[data-topic="rankine-cycle"] .part[data-id="part-turbine"] .rk-rotor{transform-origin:930px 240px}
body[data-topic="rankine-cycle"] .part[data-id="part-pump"] .rk-rotor{transform-origin:455px 552px}

/* 凝汽器冷却水流 */
.rk-cool{fill:none;stroke:#2563eb;stroke-width:3.2;stroke-linecap:round;stroke-dasharray:9 10;
  animation:rk-flow 1.4s linear infinite;animation-play-state:paused}
.is-running .rk-cool{animation-play-state:running}

/* 冷却管束 / 锅炉水位线 */
.rk-tube{fill:none;stroke:#60a5fa;stroke-width:7;stroke-linecap:round;opacity:.7}
.rk-waterline{fill:none;stroke:#8ea0b5;stroke-width:2.4;stroke-linecap:round;opacity:.8}