/* /assets/css/sim/physical/beam-bending-stress-simulator.css — 本页专属样式（en/zh 共用） */
/* ============ 模拟器控制面板（源文件 .controls 搬入，作用域限定本页） ============ */
body[data-topic="beam-bending-stress"] .controls{max-width:920px;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:14px 24px}
body[data-topic="beam-bending-stress"] .ctrl-group{flex:1 1 190px;display:flex;flex-direction:column;gap:6px}
body[data-topic="beam-bending-stress"] .ctrl-group label{font-size:13px;color:#475569;display:flex;justify-content:space-between;align-items:baseline}
body[data-topic="beam-bending-stress"] .ctrl-group label b{color:#2563eb;font-size:14px}
body[data-topic="beam-bending-stress"] 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="beam-bending-stress"] 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="beam-bending-stress"] input[type="range"]::-webkit-slider-thumb:active{cursor:grabbing}
body[data-topic="beam-bending-stress"] 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="beam-bending-stress"] .readouts{display:flex;gap:10px;flex-wrap:wrap;width:100%}
body[data-topic="beam-bending-stress"] .readout{flex:1 1 120px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:9px 12px;text-align:center}
body[data-topic="beam-bending-stress"] .readout .k{font-size:11px;color:#5b6472;letter-spacing:.03em;margin-bottom:3px}
body[data-topic="beam-bending-stress"] .readout .v{font-size:19px;font-weight:700;color:#1d4ed8;font-variant-numeric:tabular-nums;line-height:1.1}
body[data-topic="beam-bending-stress"] .readout .v small{font-size:11px;font-weight:500;color:#5b6472;margin-left:2px}
body[data-topic="beam-bending-stress"] .readout.blue{background:#eff6ff;border-color:#bfdbfe}
body[data-topic="beam-bending-stress"] .readout.blue .v{color:#2563eb}
body[data-topic="beam-bending-stress"] .readout.orange{background:#fff7ed;border-color:#fed7aa}
body[data-topic="beam-bending-stress"] .readout.orange .v{color:#ea580c}
body[data-topic="beam-bending-stress"] .readout.gold{background:#fefce8;border-color:#fde68a}
body[data-topic="beam-bending-stress"] .readout.gold .v{color:#b45309}
body[data-topic="beam-bending-stress"] .readout.safe{background:#f0fdf4;border-color:#bbf7d0}
body[data-topic="beam-bending-stress"] .readout.safe .v{color:#16a34a}
body[data-topic="beam-bending-stress"] .readout.danger{background:#fef2f2;border-color:#fecaca}
body[data-topic="beam-bending-stress"] .readout.danger .v{color:#dc2626}

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

/* ============ 无障碍：减弱动效 ============ */
@media (prefers-reduced-motion:reduce){
  body[data-topic="beam-bending-stress"] .part,
  body[data-topic="beam-bending-stress"] .no-anim{animation:none}
}

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