/* /assets/css/machines/fluid-pump-valve/globe-valve-vs-ball-valve-vs-butterfly-valve.css — 本页专属样式（en/zh 共用） */
/* ============ 特殊材质（Solid-fill internals） ============ */
.part .water{fill:#6fa8dc;fill-opacity:.6;stroke:#2563eb;stroke-width:1.2}
.part.is-active .water{fill:#2563eb;fill-opacity:.75}
.stream{fill:none;stroke:#6f4a2f;stroke-width:6;stroke-linecap:round;stroke-dasharray:9 9;opacity:.85}
.is-running .stream{animation:flow 1.1s linear infinite}

/* ============ 零件本体/区分色（part bodies & per-part distinct fills） ============ */
.part .body{fill:var(--metal);stroke:#8ea0b5;stroke-width:1.6}
.part .body2{fill:var(--metal-2);stroke:#a9b7c9;stroke-width:1.2}
.part .body3{fill:#c6d0dd;stroke:none}
.part .accent{fill:none;stroke:#6b7b8c;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.part.is-active .body{fill:#cfe3fb;stroke:var(--accent)}
.part.is-active .body2{fill:#e3eefc;stroke:#60a5fa}
.part.is-active .body3{fill:var(--accent)}
.part.is-active .accent{stroke:var(--accent-2)}
.part.is-active{filter:drop-shadow(0 0 10px rgba(37,99,235,.35))}

/* ============ 动画：叶轮（motion） ============ */
.impeller{transform-box:view-box;animation:spin 1.4s linear infinite;animation-play-state:paused}
.is-running .impeller{animation-play-state:running}
@keyframes spin{to{transform:rotate(360deg)}}

/* ============ 管道流动（flow） ============ */
.pipe-case{fill:none;stroke:#94a3b8;stroke-width:24;stroke-linecap:round;stroke-linejoin:round}
.pipe-flow{
  fill:none;stroke:var(--accent);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:10 16;opacity:0;transition:opacity .4s;
}
.pipe-flow.hot{stroke:#ea580c}
.pipe-flow.cold{stroke:#2563eb}
.is-running .pipe-flow{opacity:.95;animation:flow 1.15s linear infinite}
.is-running .pipe-flow.hot{animation-duration:.9s}
@keyframes flow{to{stroke-dashoffset:-26}}

/* ============ 图解标题 ============ */
.svg-head{fill:var(--strong);font-family:var(--mono);font-size:17px;font-weight:600;letter-spacing:.08em}
.svg-head-sm{fill:#5b6472;font-size:11px}

/* 叶轮旋转中心（各页按需覆盖 transform-origin，见页面专属块） */
.pump-vane{fill:none;stroke:#5b6a7d;stroke-width:9;stroke-linecap:round;opacity:.85}
.part.is-active .pump-vane{stroke:var(--accent-2)}
.pump-out{fill:none;stroke:#2563eb;stroke-width:4;stroke-linecap:round;opacity:.75}

body[data-topic="globe-ball-butterfly"] .vsp-panel{fill:#f7f9fc;stroke:#d4dbe6;stroke-width:1.5;stroke-dasharray:6 6}
body[data-topic="globe-ball-butterfly"] .part[data-id="part-globe"]:not(.is-active) .body{fill:#bcd9f2}
body[data-topic="globe-ball-butterfly"] .part[data-id="part-ball"]:not(.is-active) .body{fill:#b7c9dd}
body[data-topic="globe-ball-butterfly"] .part[data-id="part-butterfly"]:not(.is-active) .body{fill:#bfe0f5}
body[data-topic="globe-ball-butterfly"] .part[data-id="part-globe"]:not(.is-active) .body2{fill:#d6e9fb}
body[data-topic="globe-ball-butterfly"] .part[data-id="part-ball"]:not(.is-active) .body2{fill:#d8e3ef}
body[data-topic="globe-ball-butterfly"] .part[data-id="part-butterfly"]:not(.is-active) .body2{fill:#e0f1fc}
.vsp-cap{fill:none;stroke:#64748b;stroke-width:3;stroke-linecap:round}
.part.is-active .vsp-cap{stroke:var(--accent-2)}
