/* BESCORE — 分体机页：功率共享的场站模拟（power-sim.js） */
.stour--three { height: 320vh; }
.psim { position: relative; margin-top: 56px; aspect-ratio: 16 / 9; min-height: 540px; max-height: 86vh; width: 100%; border-radius: 28px; overflow: hidden; border: 1px solid var(--ink-line); background: radial-gradient(80% 90% at 46% 30%, #0a2729 0%, #03080a 74%); }
.psim canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.psim__tags { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.psim__tag { position: absolute; left: 0; top: 0; display: grid; gap: 3px; padding: 6px 9px 7px; border-radius: 9px; white-space: nowrap; color: #fff; background: rgba(3, 8, 10, 0.76); border: 1px solid rgba(62, 240, 210, 0.34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); will-change: transform; transition: opacity 0.35s, border-color 0.35s; }
.psim__tag::after { content: ""; position: absolute; left: var(--sx, 50%); top: 100%; width: 1px; height: var(--stem, 14px); background: linear-gradient(180deg, rgba(62, 240, 210, 0.8), rgba(62, 240, 210, 0)); }
.psim__tag b { font: 500 9.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(233, 242, 241, 0.72); }
.psim__soc { display: block; width: 78px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.psim__soc i { display: block; height: 100%; border-radius: 2px; background: var(--glow); }
.psim__tag em { font: 500 11.5px var(--mono); font-style: normal; letter-spacing: 0.02em; }
.psim__kw:not(:empty)::before { content: " · "; }
.psim__tag u { font: 500 9px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--glow); }
.psim__tag[data-s="taper"] { border-color: rgba(255, 196, 107, 0.5); }
.psim__tag[data-s="taper"] u, .psim__tag[data-s="taper"] .psim__soc i { color: #ffc46b; }
.psim__tag[data-s="taper"] .psim__soc i { background: #ffc46b; }
.psim__tag[data-s="trickle"] { border-color: rgba(233, 242, 241, 0.28); }
.psim__tag[data-s="trickle"] u { color: rgba(233, 242, 241, 0.6); }
.psim__tag[data-s="trickle"] .psim__soc i { background: rgba(233, 242, 241, 0.7); }
.psim__tag[data-s="find"] u, .psim__tag[data-s="leave"] u { color: #fff; }
.psim__tag[data-s="leave"] { opacity: 0.7; }
.psim__meter { position: absolute; left: 18px; right: 18px; top: 16px; display: grid; grid-template-columns: auto minmax(160px, 1fr) auto auto; align-items: center; gap: 8px 22px; padding: 12px 18px; border-radius: 16px; background: rgba(3, 8, 10, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.psim__k { margin: 0; white-space: nowrap; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glow); }
.psim__bar { display: flex; gap: 2px; height: 14px; margin-top: 0; border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.psim__bar span { position: relative; flex: 0 0 auto; width: 0; height: 100%; overflow: hidden; background: var(--glow); transition: background 0.4s; }
.psim__bar span[data-s="taper"] { background: #ffc46b; }
.psim__bar span[data-s="trickle"] { background: rgba(233, 242, 241, 0.7); }
.psim__bar span.is-on::after { content: attr(data-bay); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 8.5px var(--mono); color: #03080a; }
.psim__nums { display: flex; justify-content: space-between; gap: 18px; margin: 0; white-space: nowrap; font-size: 11px; color: rgba(233, 242, 241, 0.6); }
.psim__nums b { font-size: 17px; font-weight: 500; color: #fff; }
.psim__nums i { font-style: normal; }
.psim__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0 0 0 20px; border-left: 1px solid rgba(255, 255, 255, 0.12); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(233, 242, 241, 0.72); }
.psim__legend li { display: flex; align-items: center; gap: 6px; }
.psim__legend li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--glow); }
.psim__legend li[data-s="taper"]::before { background: #ffc46b; }
.psim__legend li[data-s="trickle"]::before { background: rgba(233, 242, 241, 0.7); }
.psim__ctrl { position: absolute; left: 22px; bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: calc(100% - 44px); }
.psim__ctrl-k { margin-right: 4px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(233, 242, 241, 0.7); }
.psim__ctrl button[data-add] { padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(3, 8, 10, 0.6); border: 1px solid rgba(62, 240, 210, 0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.psim__ctrl button[data-add]::before { content: "+ "; color: var(--glow); }
.psim__ctrl button[data-add]:hover { background: rgba(62, 240, 210, 0.16); border-color: var(--glow); }
.psim__ctrl button.is-hit { transform: scale(0.94); }
.psim__queue { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #ffc46b; }
.psim__queue i { font-style: normal; }
.psim__play { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 4px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(3, 8, 10, 0.5); }
.psim__play i { display: block; width: 9px; height: 10px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.is-paused .psim__play i { width: 0; height: 0; margin-left: 3px; border: 6px solid transparent; border-left: 10px solid #fff; border-right: 0; }
.psim__badge { position: absolute; right: 18px; bottom: 20px; padding: 6px 10px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, 0.2); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(233, 242, 241, 0.5); }
.psim__fallback { display: none; position: absolute; inset: 0; margin: 0; align-items: center; justify-content: center; padding: 30px; text-align: center; color: var(--ink-muted); }
.psim.no-3d .psim__fallback { display: flex; }
.psim.no-3d .psim__meter, .psim.no-3d .psim__ctrl, .psim.no-3d .psim__badge { display: none; }
.psim__notes { margin-top: 18px; }
.psim__notes article span { font-size: 22px; letter-spacing: -0.02em; }
.psim__notes article h3 { margin-top: 26px; }
@media (max-width: 900px) {
  .psim { aspect-ratio: 4 / 5; min-height: 580px; max-height: none; border-radius: 22px; }
  .psim__meter { left: 12px; right: 12px; top: 12px; grid-template-columns: 1fr; gap: 9px; padding: 13px 14px 12px; }
  .psim__legend { padding: 9px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  /* 底部从下往上：示意说明（可能折成两行）、发车按钮。第一行是“派一辆车”加暂停键，下面是四个车型 */
  .psim__badge { left: 12px; right: 12px; bottom: 10px; padding: 5px 8px; font-size: 8.5px; line-height: 1.5; }
  .psim__ctrl { left: 12px; right: 12px; bottom: 56px; max-width: none; gap: 6px; }
  .psim__ctrl-k { flex: 1 1 auto; order: 0; }
  .psim__play { order: 1; width: 32px; height: 32px; margin-left: 0; }
  .psim__ctrl button[data-add] { order: 2; padding: 8px 10px; font-size: 12.5px; }
  .psim__queue { order: 3; flex: 0 0 100%; }
  /* 标签缩成两行小字：百分比、功率 */
  .psim__tag { padding: 4px 6px 5px; gap: 2px; border-radius: 7px; }
  .psim__tag u, .psim__tag b, .psim__soc { display: none; }
  .psim__tag em { display: grid; gap: 1px; font-size: 11px; line-height: 1.15; }
  .psim__kw { font-size: 9.5px; color: var(--glow); }
  .psim__kw:not(:empty)::before { content: none; }
  .psim__tag[data-s="taper"] .psim__kw { color: #ffc46b; }
  .psim__tag[data-s="trickle"] .psim__kw { color: rgba(233, 242, 241, 0.7); }
}
