/* /assets/css/machines/industrial-mech/how-a-screw-air-compressor-rotor-profile-works-cutaway.css — 本页专属样式（en/zh 共用） */
/* ============ 零件本体/区分色（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） ============ */
.rotor{transform-box:view-box;animation:spin 1.5s linear infinite;animation-play-state:paused}
.rotor-rev{transform-box:view-box;animation:spinRev 1.9s linear infinite;animation-play-state:paused}
.is-running .rotor,.is-running .rotor-rev{animation-play-state:running}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes spinRev{to{transform:rotate(-360deg)}}

/* ============ 管道流动（flow） ============ */
.pipe-flow{fill:none;stroke:var(--accent);stroke-width:6;stroke-linecap: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}
@keyframes flow{to{stroke-dashoffset:-26}}

/* ============ 螺杆空压机转子剖面 · Screw air compressor rotor profile ============ */
/* 各部件区分色（:not(.is-active) 保证全局高亮仍生效） */
body[data-topic="screw-air-compressor"] .part[data-id="part-male-rotor"]:not(.is-active) .body{fill:#b7c9dd}
body[data-topic="screw-air-compressor"] .part[data-id="part-female-rotor"]:not(.is-active) .body{fill:#c8c1e5}
body[data-topic="screw-air-compressor"] .part[data-id="part-suction-port"]:not(.is-active) .body{fill:#bcd9f2}
body[data-topic="screw-air-compressor"] .part[data-id="part-suction-port"]:not(.is-active) .body2{fill:#d6e9fb}
body[data-topic="screw-air-compressor"] .part[data-id="part-discharge-port"]:not(.is-active) .body{fill:#f0c9a8}
body[data-topic="screw-air-compressor"] .part[data-id="part-discharge-port"]:not(.is-active) .body2{fill:#f7ddc4}
body[data-topic="screw-air-compressor"] .part[data-id="part-timing-gear"]:not(.is-active) .body{fill:#c6cfda}
body[data-topic="screw-air-compressor"] .part[data-id="part-bearing"]:not(.is-active) .body{fill:#a9bccf}