/* /assets/machines/automotive/how-a-turbocharger-works-cutaway.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}
.part .ceramic{fill:#f1f4f8;stroke:#9aa6b8;stroke-width:2}
.part.is-active .ceramic{fill:#ffffff;stroke:var(--accent-2)}
.part .coffee{fill:#6f4a2f;stroke:#4b3220;stroke-width:1}
.part.is-active .coffee{fill:#8a5a38;stroke:#b0703a}
.part .crema{fill:#d9a86c}
.part.is-active .crema{fill:#e8b877}
.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}
/* active highlight stays blue */
.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)}}

.halo{opacity:0;transition:opacity .5s}
.is-running .halo{opacity:1;animation:halo 2.2s ease-in-out infinite}
@keyframes halo{0%,100%{opacity:.35}50%{opacity:.85}}

/* ============ 管道流动（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}}
/* ============ 涡轮增压器剖面图 · Turbocharger cutaway ============
   源图：svgs/涡轮增压原理.html（只读定稿源）。其页内 <style> 的材质/动画并入此处（页面禁止内联 <style>）。
   源图已含 <g class="part" data-id> 分组（filter/compressor/intercooler/throttle/engine/turbine/shaft/wastegate/exhaust）；
   本页沿用这些部件，并把 data-id 统一加 part- 前缀以符合站点命名约定。
   通用类（.part/.body/.body2/.body3/.accent/.tag/.tag-sm/.pipe-case/.pipe-flow(+hot/cold/smoke)/.impeller/.halo）已在 base + 类目表中存在。
   零件区分色与叶轮旋转中心用 body[data-topic="turbocharger"] 作用域限定（part-compressor 与空调页同名，避免相互影响）。
   新增类与动画统一用 tb-* 前缀。 */

/* 各部件区分色（作用域限定 · per-part distinct fills） */
body[data-topic="turbocharger"] .part[data-id="part-filter"]:not(.is-active) .body{fill:#e8eef5}
body[data-topic="turbocharger"] .part[data-id="part-filter"]:not(.is-active) .body2{fill:#ffffff}
body[data-topic="turbocharger"] .part[data-id="part-compressor"]:not(.is-active) .body{fill:#dbe3ee}
body[data-topic="turbocharger"] .part[data-id="part-compressor"]:not(.is-active) .body2{fill:#eef3f9}
body[data-topic="turbocharger"] .part[data-id="part-intercooler"]:not(.is-active) .body{fill:#dbe3ee}
body[data-topic="turbocharger"] .part[data-id="part-intercooler"]:not(.is-active) .body2{fill:#eef3f9}
body[data-topic="turbocharger"] .part[data-id="part-throttle"]:not(.is-active) .body{fill:#dbe3ee}
body[data-topic="turbocharger"] .part[data-id="part-throttle"]:not(.is-active) .body2{fill:#eef3f9}
body[data-topic="turbocharger"] .part[data-id="part-engine"]:not(.is-active) .body{fill:#e2e8f0}
body[data-topic="turbocharger"] .part[data-id="part-engine"]:not(.is-active) .body2{fill:#f1f5f9}
body[data-topic="turbocharger"] .part[data-id="part-turbine"]:not(.is-active) .body{fill:#f3d9c4}
body[data-topic="turbocharger"] .part[data-id="part-turbine"]:not(.is-active) .body2{fill:#f9e8d8}
body[data-topic="turbocharger"] .part[data-id="part-shaft"]:not(.is-active) .body{fill:#dbe3ee}
body[data-topic="turbocharger"] .part[data-id="part-shaft"]:not(.is-active) .body2{fill:#eef3f9}
body[data-topic="turbocharger"] .part[data-id="part-wastegate"]:not(.is-active) .body{fill:#dbe3ee}
body[data-topic="turbocharger"] .part[data-id="part-wastegate"]:not(.is-active) .body2{fill:#eef3f9}
body[data-topic="turbocharger"] .part[data-id="part-exhaust"]:not(.is-active) .body{fill:#e2e8f0}

/* 叶轮旋转中心（作用域限定 · 绕各自中心，复用共享 .impeller + @keyframes spin） */
body[data-topic="turbocharger"] .part[data-id="part-compressor"] .impeller{transform-origin:370px 440px}
body[data-topic="turbocharger"] .part[data-id="part-turbine"] .impeller{transform-origin:690px 440px}

/* 压气机叶轮叶片（冷 · 蓝） / 涡轮叶片（热 · 橙） */
.tb-blade-cold{fill:none;stroke:#38bdf8;stroke-width:5;stroke-linecap:round}
.tb-blade-hot{fill:none;stroke:#ea580c;stroke-width:5;stroke-linecap:round}

/* 滤清器斜纹 / 中冷器散热片 / 排气波动（本图专属线条） */
.tb-filter-line{stroke:#94a3b8;stroke-width:1.6;opacity:.75}
.tb-filter-line path{fill:none}
.tb-fin{stroke:#94a3b8;stroke-width:1.5;opacity:.75}
.tb-fin path{fill:none}
.tb-puff{fill:none;stroke:#94a3b8;stroke-width:2;stroke-linecap:round;opacity:.7}

/* 连接轴 / 连杆 / 活塞环（本图专属线条） */
.tb-shaft-core{stroke:#5b6a7d;stroke-width:10;stroke-linecap:round}
.tb-rod{stroke:#5b6a7d;stroke-width:7;stroke-linecap:round}
.tb-piston-line{stroke:#94a3b8;stroke-width:1.5}

/* 废气旁通管壳（细管，复用共享 .pipe-case + .pipe-flow） */
.tb-case-bypass{stroke-width:14;stroke-dasharray:10 8}
.tb-flow-bypass{stroke-dasharray:6 12}

/* 发动机活塞往复（新动画 · 唯一命名） */
.tb-piston{animation:tb-piston 1.4s ease-in-out infinite;animation-play-state:paused}
.is-running .tb-piston{animation-play-state:running}
@keyframes tb-piston{0%,100%{transform:translateY(0)}50%{transform:translateY(14px)}}

/* 燃烧闪光（新动画 · 唯一命名） */
.tb-combust{opacity:0}
.is-running .tb-combust{animation:tb-combust 1.4s ease-in-out infinite}
@keyframes tb-combust{0%,25%{opacity:0}35%,50%{opacity:.9}65%,100%{opacity:0}}

/* 冷侧光环延时（复用共享 .halo + @keyframes halo） */
.halo.tb-halo-cold{animation-delay:.6s}
