/* 力学轨道实验台：频闪暗房。布局与控件沿用光学实验台（../optics-lab/style.css），这里改成暗房配色（炭黑底 + 琥珀频闪光）并补充本台专用部件。 */
:root {
  --bg: #07080b; --panel: rgba(20, 22, 28, .93); --panel2: rgba(30, 32, 40, .95); --line: rgba(255, 214, 150, .26);
  --text: #f6f1e7; --muted: #b7ad9b; --cyan: #5fe6ff; --amber: #ffb347; --red: #ff6b6b; --green: #5ff0a0; --blue: #7fb2ff;
  --ink: #f3e3c3; --grid: rgba(255, 220, 160, .05); --yellow: #ffb347; --navy: #1a1206; --pink: #ff6bd5;
}
#lab { background: #07080b; }
#rail { background: var(--paper), #121318; border-left: 2px solid rgba(255, 179, 71, .55); }
.rail-head { background: rgba(0, 0, 0, .35); border-color: rgba(255, 214, 150, .6); }
.preset { background: rgba(0, 0, 0, .3); }
.preset.on { border-color: var(--amber); box-shadow: 0 0 16px rgba(255, 179, 71, .35); }
.win { background: var(--paper), var(--panel); }
.win header { background: rgba(0, 0, 0, .35); }
#caption { background: var(--paper), rgba(24, 20, 14, .96); }
.tag { background: rgba(10, 10, 12, .78); border-color: rgba(255, 179, 71, .45); box-shadow: 0 0 14px rgba(255, 179, 71, .18); }
.tag b { color: var(--amber); }
.tag i { color: #e9e1d2; font-style: normal; font-family: var(--mono); font-size: 12px; }
.tag.sel { border-color: var(--amber); box-shadow: 0 0 20px rgba(255, 179, 71, .55); }

/* 释放 / 复位、慢放与频闪间隔：台面底部居中 */
#runbar { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 6; display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: rgba(12, 12, 14, .82); border: 1.5px solid rgba(255, 214, 150, .45); border-radius: 4px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .45); backdrop-filter: blur(6px); white-space: nowrap; }
#runbar > button { border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .06); color: var(--text); padding: 8px 16px; border-radius: 3px; font-size: 16px; font-weight: 700; }
#runbar > button.go { background: var(--amber); color: var(--navy); border-color: var(--amber); min-width: 108px; box-shadow: 0 0 18px rgba(255, 179, 71, .5); }
#runbar > button.go.playing { background: #2b2216; color: var(--amber); }
#runbar .seg small { color: var(--muted); padding: 0 6px 0 2px; align-self: center; font-size: 12.5px; }
#runbar .clock { font-family: var(--mono); color: var(--muted); min-width: 118px; }
#runbar .clock b { color: #fff; font-size: 22px; }
body.demoing #runbar { opacity: .55; }
.scene-note { bottom: 10px; }

/* 实时读数条：台面顶部居中 */
#readout { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: min(820px, calc(100% - 40px)); pointer-events: none; }
#readout span { padding: 4px 10px; border-radius: 3px; background: rgba(8, 8, 10, .78); border: 1px solid rgba(255, 214, 150, .35); font-size: 13.5px; color: #eee5d4; }
#readout b { font-family: var(--mono); color: var(--amber); font-weight: 700; }
#readout span.g b { color: var(--green); }

/* 受力标签 */
.ftag { position: absolute; left: 0; top: 0; pointer-events: none; padding: 1px 7px; border-radius: 3px; font-size: 12.5px; font-family: var(--mono); background: rgba(6, 6, 8, .78); color: var(--c, #fff); border: 1px solid var(--c, #fff); white-space: nowrap; }

/* 纸带窗口 */
.tape-body { display: grid; gap: 8px; padding: 10px 12px 12px; }
.tape-body .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tape-body .row > button { border: 1.5px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); padding: 5px 10px; border-radius: 3px; }
.tape-scroll { overflow-x: auto; background: #15130f; border: 1px solid var(--line); }
.tape-scroll canvas { display: block; height: 190px; }
.chk { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13.5px; margin-left: auto; }
.tape-res { font-size: 14px; line-height: 1.6; }
.tape-res table { border-collapse: collapse; font-family: var(--mono); font-size: 13px; margin: 4px 0; }
.tape-res th, .tape-res td { border: 1px solid var(--line); padding: 3px 8px; text-align: right; }
.tape-res th { color: var(--muted); font-weight: 400; }
.tape-res .big { color: var(--amber); font-weight: 700; font-family: var(--mono); }
.tape-res .hidecalc { color: var(--muted); }
#graph { width: 100%; height: auto; background: rgba(0, 0, 0, .25); }
#graph .ax { stroke: #b7ad9b; stroke-width: 1.2; } #graph .gd { stroke: rgba(255, 220, 160, .1); }
#graph .tk { fill: #b7ad9b; font-size: 11px; font-family: Consolas, monospace; } #graph .al { fill: #eee5d4; font-size: 12px; }
#graph .cur { fill: none; stroke-width: 2.4; } #graph .pt { stroke: #000; stroke-width: 1; } #graph .ln { stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 5 4; }
#win-graph .row, #win-data .row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
#plot .th { stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 4 4; fill: none; }
.fit { margin: 4px 0; font-size: 13.5px; color: var(--amber); min-height: 1.2em; }
#win-data .data-body { grid-template-rows: auto auto auto auto 1fr; }
#win-data .row { margin-bottom: 0; }
#win-graph .win-body { padding: 10px 12px; }
#plot { background: var(--paper), rgba(0, 0, 0, .3); }
#caption { bottom: 104px; }
.cap-ctl #cap-voice.off { color: var(--muted, #8a8172); }
