/* /assets/css/machines/industrial-mech/how-a-hydraulic-accumulator-bladder-works-cutaway.css — 本页专属样式（en/zh 共用） */

/* ============ 机器类目基线（part bodies & 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:#aab9cd;stroke:none}
.part .accent{fill:none;stroke:#6b7b8c;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.part.is-active .body{fill:#9dc3f5;stroke:#1d4ed8;stroke-width:2.2}
.part.is-active .body2{fill:#c4daf8;stroke:#3b82f6;stroke-width:1.4}
.part.is-active .body3{fill:#1d4ed8}
.part.is-active .accent{stroke:#1d4ed8}
.part.is-active{filter:drop-shadow(0 0 12px rgba(29,78,216,.5))}

/* ============ 流动（flow） ============ */
.pipe-flow{fill:none;stroke:#2563eb;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:8 13;opacity:0;transition:opacity .4s}
.is-running .pipe-flow{opacity:.9;animation:flow 1.1s linear infinite}
@keyframes flow{to{stroke-dashoffset:-21}}

/* ============ 本页专属材质 / 动画 ============ */
.part .oil{fill:#6fa8dc;fill-opacity:.55;stroke:#2563eb;stroke-width:1.2}
.part.is-active .oil{fill:#2563eb;fill-opacity:.8}
.part .gas{fill:#bfe3f5;fill-opacity:.8;stroke:#0284c7;stroke-width:1.2}
.part.is-active .gas{fill:#a5d8f3}
.part .bladder{fill:#e6d3b3;stroke:#a9854f;stroke-width:1.6}
.part.is-active .bladder{fill:#f0dcbf;stroke:var(--accent-2)}

.bladder-move{transform-box:view-box;transform-origin:620px 210px;animation:squeeze 5s ease-in-out infinite;animation-play-state:paused}
.is-running .bladder-move{animation-play-state:running}
@keyframes squeeze{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.8)}}

.oil-level{transform-box:view-box;transform-origin:620px 632px;animation:level 5s ease-in-out infinite;animation-play-state:paused}
.is-running .oil-level{animation-play-state:running}
@keyframes level{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.12)}}

/* ============ 各部件区分色（:not(.is-active) 保证全局高亮仍生效） ============ */
body[data-topic="accumulator"] .part[data-id="part-poppet"]:not(.is-active) .body{fill:#b7c9dd}
body[data-topic="accumulator"] .part[data-id="part-port"]:not(.is-active) .body{fill:#bfe0f5}
body[data-topic="accumulator"] .part[data-id="part-gas-valve"]:not(.is-active) .body2{fill:#e2ddf3}
body[data-topic="accumulator"] .part[data-id="part-shell-vessel"]:not(.is-active) .body{fill:#cbd7e7}