/* /assets/css/sim/physical/heat-pipe-thermal-transfer-simulator.css — 本页专属样式（en/zh 共用） */
/* ============ 模拟器控制面板（源文件 .controls 搬入，作用域限定本页） ============ */
body[data-topic="heat-pipe-thermal-transfer"] .controls{max-width:900px;width:100%;margin:8px 6px 4px;background:#fff;border:1px solid #dbe3ee;border-radius:12px;padding:16px 20px 18px;display:flex;flex-wrap:wrap;gap:16px 26px}
body[data-topic="heat-pipe-thermal-transfer"] .ctrl-group{flex:1 1 240px;display:flex;flex-direction:column;gap:6px}
body[data-topic="heat-pipe-thermal-transfer"] .ctrl-group label{font-size:13px;color:#475569;display:flex;justify-content:space-between;align-items:baseline}
body[data-topic="heat-pipe-thermal-transfer"] .ctrl-group label b{color:#2563eb;font-size:14px}
body[data-topic="heat-pipe-thermal-transfer"] input[type="range"]{-webkit-appearance:none;appearance:none;width:100%;height:8px;border-radius:4px;background:linear-gradient(90deg,#bfdbfe,#2563eb);outline:none;cursor:pointer}
body[data-topic="heat-pipe-thermal-transfer"] input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid #2563eb;box-shadow:0 2px 6px rgba(37,99,235,.35);cursor:grab}
body[data-topic="heat-pipe-thermal-transfer"] input[type="range"]::-webkit-slider-thumb:active{cursor:grabbing}
body[data-topic="heat-pipe-thermal-transfer"] input[type="range"]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid #2563eb;box-shadow:0 2px 6px rgba(37,99,235,.35);cursor:grab}

/* ---------- 读数卡片 ---------- */
body[data-topic="heat-pipe-thermal-transfer"] .readouts{display:flex;gap:10px;flex-wrap:wrap;width:100%}
body[data-topic="heat-pipe-thermal-transfer"] .readout{flex:1 1 120px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:9px 12px;text-align:center}
body[data-topic="heat-pipe-thermal-transfer"] .readout .k{font-size:11px;color:#5b6472;letter-spacing:.03em;margin-bottom:3px}
body[data-topic="heat-pipe-thermal-transfer"] .readout .v{font-size:19px;font-weight:700;color:#1d4ed8;font-variant-numeric:tabular-nums;line-height:1.1}
body[data-topic="heat-pipe-thermal-transfer"] .readout .v small{font-size:11px;font-weight:500;color:#5b6472;margin-left:2px}
body[data-topic="heat-pipe-thermal-transfer"] .readout.hot{background:#fef2f2;border-color:#fecaca}
body[data-topic="heat-pipe-thermal-transfer"] .readout.hot .v{color:#dc2626}
body[data-topic="heat-pipe-thermal-transfer"] .readout.cold{background:#eff6ff;border-color:#bfdbfe}
body[data-topic="heat-pipe-thermal-transfer"] .readout.cold .v{color:#2563eb}
body[data-topic="heat-pipe-thermal-transfer"] .readout.gold{background:#fefce8;border-color:#fde68a}
body[data-topic="heat-pipe-thermal-transfer"] .readout.gold .v{color:#b45309}

/* ============ SVG 内文字 ============ */
body[data-topic="heat-pipe-thermal-transfer"] .svg-title{fill:#16202c}
body[data-topic="heat-pipe-thermal-transfer"] .tag    {fill:#334155;font-size:13px}
body[data-topic="heat-pipe-thermal-transfer"] .tag-sm {fill:#5b6472;font-size:11px}
body[data-topic="heat-pipe-thermal-transfer"] .tag-num{fill:#5b6472;font-size:11px}
body[data-topic="heat-pipe-thermal-transfer"] .legend {fill:#5b6472;font-size:11px}

/* ============ 流动虚线（源文件 vaporMove / liquidMove） ============ */
body[data-topic="heat-pipe-thermal-transfer"] .vapor-flow{fill:none;stroke:#ea580c;stroke-width:3.5;stroke-linecap:round;stroke-dasharray:12 10;animation:heat-pipe-vaporMove 1.1s linear infinite}
body[data-topic="heat-pipe-thermal-transfer"] .liquid-flow{fill:none;stroke:#3b82f6;stroke-width:2.8;stroke-linecap:round;stroke-dasharray:8 8;animation:heat-pipe-liquidMove 1.6s linear infinite}
@keyframes heat-pipe-vaporMove{to{stroke-dashoffset:-22}}
@keyframes heat-pipe-liquidMove{to{stroke-dashoffset:16}}

/* ============ 加热 / 冷却光晕（源文件 heatPulse / coolPulse） ============ */
body[data-topic="heat-pipe-thermal-transfer"] .heat-glow{animation:heat-pipe-heatPulse 2s ease-in-out infinite}
body[data-topic="heat-pipe-thermal-transfer"] .cool-glow{animation:heat-pipe-coolPulse 2s ease-in-out infinite}
@keyframes heat-pipe-heatPulse{0%,100%{opacity:.25}50%{opacity:.65}}
@keyframes heat-pipe-coolPulse{0%,100%{opacity:.25}50%{opacity:.6}}

/* ============ 无障碍：减弱动效 ============ */
@media (prefers-reduced-motion:reduce){
  body[data-topic="heat-pipe-thermal-transfer"] .vapor-flow,
  body[data-topic="heat-pipe-thermal-transfer"] .liquid-flow{animation:none;stroke-dasharray:none;opacity:.45}
  body[data-topic="heat-pipe-thermal-transfer"] .heat-glow,
  body[data-topic="heat-pipe-thermal-transfer"] .cool-glow{animation:none;opacity:.35}
}

/* ============ 响应式：控制面板排在能量链之后 ============ */
@media (max-width:1160px){
  body[data-topic="heat-pipe-thermal-transfer"] .controls{order:4}
}
