:root {
  --bg-deep: #050b16;
  --bg-panel: #0b1528;
  --bg-panel-top: #101f3a;
  --border-hud: rgba(56, 189, 248, 0.26);
  --cyan: #38bdf8;
  --blue: #2563eb;
  --green: #22c55e;
  --amber: #f59e0b;
  --text-bright: #f8fafc;
  --text-dim: #94a3b8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-bright);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  user-select: none;
}

.dashboard {
  display: grid;
  grid-template-rows: 62px 1fr 66px;
  width: 100vw;
  height: 100vh;
  padding: 10px 14px;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
    var(--bg-deep);
}

/* 顶部栏 */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 21, 40, 0.88);
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  padding: 0 16px;
  gap: 12px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-home {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: all 0.2s;
}

.back-home:hover {
  color: #fff;
  border-color: var(--cyan);
}

.station-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.station-brand h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.top-center {
  display: flex;
  align-items: center;
}

.carousel-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.75);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.82rem;
}

.page-text {
  color: #e2e8f0;
  font-weight: 600;
}

.timer-bar {
  width: 72px;
  height: 6px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 99px;
  overflow: hidden;
}

.timer-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.25s linear;
}

.online-stat {
  color: var(--text-dim);
}

.online-stat strong {
  color: var(--cyan);
  font-size: 0.92rem;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}

.ctrl-btn:hover {
  border-color: var(--cyan);
  color: #fff;
  background: rgba(37, 99, 235, 0.3);
}

.ctrl-btn.accent {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-color: transparent;
  color: #fff;
}

.ctrl-btn.warn-btn {
  border-color: rgba(245, 158, 11, 0.55);
  color: #fcd34d;
}

.ctrl-btn.warn-btn:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #fbbf24;
  color: #fff;
}

.ctrl-btn.active-voice {
  border-color: var(--green);
  color: #4ade80;
}

.live-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #7dd3fc;
  margin-left: 4px;
}

/* ================= 2x2 四分屏主网格 ================= */
.quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}

.bay-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-panel-top) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--border-hud);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 0 36px rgba(14, 165, 233, 0.06);
  transition: border-color 0.35s, box-shadow 0.35s;
}

.bay-card.priority-flash {
  border-color: #4ade80;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.35), inset 0 0 36px rgba(34, 197, 94, 0.12);
}

/* 四角科技准星装饰 */
.bay-card::before,
.bay-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 5;
}
.bay-card::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  border-top-left-radius: 14px;
}
.bay-card::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  border-bottom-right-radius: 14px;
}

/* 卡片顶栏：车牌 + 车型 + 当前工位名 */
.bay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(5, 11, 22, 0.52);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  z-index: 3;
}

.car-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 仿真国标车牌样式 */
.plate-badge {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1px;
  padding: 3px 11px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.plate-blue {
  background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
  color: #fff;
}

.plate-green {
  background: linear-gradient(180deg, #ecfdf5 0%, #22c55e 100%);
  color: #064e3b;
  border-color: #065f46;
}

.plate-yellow {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #111827;
  border-color: #1f2937;
}

.car-type-tag {
  font-size: 0.8rem;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
  padding: 2px 8px;
  border-radius: 6px;
}

.stage-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
}

.stage-pill .blink {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulseGlow 1.2s infinite alternate;
}

.stage-pill.pill-done {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(22, 101, 52, 0.35);
}

.stage-pill.pill-warn {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(146, 64, 14, 0.38);
}

@keyframes pulseGlow {
  from { opacity: 0.4; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.2); }
}

/* ================= 卡片中部：动态工位舞台 Stage ================= */
.bay-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.78) 72%, #091326 73%, #0d1b33 100%);
}

/* 背景科技透视网格与车道标线 */
.stage-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.lane-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  border-top: 2px solid rgba(56, 189, 248, 0.35);
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 40px,
    transparent 40px,
    transparent 80px
  );
}

.lane-dashed {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.55) 0px,
    rgba(251, 191, 36, 0.55) 28px,
    transparent 28px,
    transparent 52px
  );
}

.lane-dashed.lane-moving {
  background-size: 52px 3px;
  animation: dashScroll 0.45s linear infinite;
}

@keyframes dashScroll {
  from { background-position: 0 0; }
  to { background-position: -52px 0; }
}

/* 左上角实时检测小指标浮窗 */
.hud-metrics {
  position: absolute;
  top: 12px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 4;
}

.metric-chip {
  font-size: 0.76rem;
  color: #cbd5e1;
  background: rgba(5, 11, 22, 0.72);
  border-left: 3px solid var(--cyan);
  padding: 3px 10px;
  border-radius: 4px;
}

.metric-chip strong {
  color: #4ade80;
  margin-left: 4px;
}

/* 右上角工位内进度百分比 */
.hud-percent {
  position: absolute;
  top: 12px;
  right: 16px;
  text-align: right;
  z-index: 4;
}

.hud-percent strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #38bdf8;
  line-height: 1;
}

.hud-percent span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* 车辆运动容器：控制 驶入 / 停稳检测 / 加速驶离 */
.vehicle-rig {
  position: absolute;
  bottom: 13%;
  left: 50%;
  width: 280px;
  height: 110px;
  transform: translateX(-50%);
  z-index: 3;
}

.vehicle-rig.state-entering {
  animation: carDriveIn 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.vehicle-rig.state-testing {
  transform: translateX(-50%);
  animation: engineIdle 0.45s ease-in-out infinite alternate;
}

/* 台试制动逐轴上台姿态：取消全局抖动覆盖，启用平滑向前挪车过渡让每一轴精准落入中央滚筒槽 */
.vehicle-rig.state-testing.pose-brake-axle {
  animation: none;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 路试坡道驻车姿态：整车稳稳停在 20% 斜坡上 */
.vehicle-rig.state-testing.pose-slope {
  animation: none;
  transform: translateX(-50%) translateY(-19px) rotate(-10.5deg);
}

/* 路试平地驻车拉力计姿态：整体微左移给前方钢索+拉力计+绞盘留出匀称画面，带钢索紧绷抗拉感 */
.vehicle-rig.state-testing.pose-pull-meter {
  animation: pullHoldTension 0.9s ease-in-out infinite alternate;
}

@keyframes pullHoldTension {
  from { transform: translateX(-68%) rotate(0deg); }
  to { transform: translateX(-67.4%) rotate(0.25deg); }
}

/* 路试行车急刹姿态：周期性制动前倾点头 */
.vehicle-rig.state-testing.pose-road-brake {
  animation: hardBrakeNod 2.2s ease-in-out infinite;
}

/* 侧滑检验姿态：车辆以 3~5km/h 极慢速度匀速平缓驶过地面侧滑检验台 */
.vehicle-rig.state-testing.pose-sideslip-pass {
  animation: sideslipSlowPass 5.4s linear infinite;
}

.pose-sideslip-pass .wheel-spin {
  animation-duration: 1.35s !important;
}

@keyframes sideslipSlowPass {
  0% { transform: translateX(-118%); }
  100% { transform: translateX(18%); }
}

@keyframes hardBrakeNod {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  45%, 75% { transform: translateX(-46%) rotate(2.1deg); }
}

.vehicle-rig.state-leaving {
  animation: carDriveOut 1.35s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

@keyframes carDriveIn {
  0% { transform: translateX(-210%) rotate(-0.6deg); }
  82% { transform: translateX(-48%) rotate(0.7deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

@keyframes engineIdle {
  from { transform: translateX(-50%) translateY(0px); }
  to { transform: translateX(-50%) translateY(-1.2px); }
}

@keyframes carDriveOut {
  0% { transform: translateX(-50%) rotate(0deg); }
  18% { transform: translateX(-52%) rotate(-1.1deg); }
  100% { transform: translateX(165%) rotate(-0.5deg); }
}

/* 车轮旋转动画（进站、离站、或滚筒工位检测时旋转） */
.wheel-spin {
  transform-box: fill-box;
  transform-origin: center;
}

.state-entering .wheel-spin,
.state-leaving .wheel-spin,
.spin-active .wheel-spin,
.wheel-spin.axle-spinning {
  animation: spinWheel 0.52s linear infinite;
}

@keyframes spinWheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================= 各工位专属动态特效层 ================= */

/* 1. 外检工位：全息激光龙门往返扫描光束 + 车头车尾双外检员实景查验拍照 */
.fx-scan-beam {
  position: absolute;
  top: 8%;
  bottom: 12%;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.75), #fff, rgba(56, 189, 248, 0.75), transparent);
  box-shadow: 0 0 18px 4px rgba(56, 189, 248, 0.4);
  z-index: 4;
  animation: scanSweep 3.2s ease-in-out infinite alternate;
}

@keyframes scanSweep {
  0% { left: 28%; }
  100% { left: 72%; }
}

.inspector {
  position: absolute;
  bottom: 4px;
  width: 54px;
  height: 76px;
  z-index: 5;
  pointer-events: none;
}

.inspector-rear {
  left: -50px;
}

.inspector-front {
  left: 266px;
}

.arm-photo {
  transform-origin: 32px 36px;
  animation: inspectArmRear 2.4s ease-in-out infinite;
}

.arm-photo-front {
  transform-origin: 31px 37px;
  animation: inspectArmFront 2.6s ease-in-out infinite;
}

@keyframes inspectArmRear {
  0%, 100% { transform: rotate(4deg); }
  45%, 65% { transform: rotate(-6deg); }
}

@keyframes inspectArmFront {
  0%, 100% { transform: rotate(-4deg); }
  50%, 70% { transform: rotate(6deg); }
}

.insp-bubble {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  white-space: nowrap;
  animation: bubbleFloat 2.4s ease-in-out infinite;
}

.insp-bubble.bubble-delay {
  border-color: rgba(250, 204, 21, 0.6);
  color: #fef9c3;
  animation-delay: 1.2s;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.82; }
  50% { transform: translateX(-50%) translateY(-3px); opacity: 1; }
}

/* 相机咔嚓快门闪光锥特效 */
.camera-flash {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.flash-rear {
  left: 44px;
  top: 4px;
  width: 68px;
  height: 52px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.92) 0%, rgba(125, 211, 252, 0.45) 45%, transparent 100%);
  clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0 48%);
  animation: shutterFlash 2.4s infinite;
}

.flash-front {
  left: -58px;
  top: 8px;
  width: 68px;
  height: 52px;
  background: linear-gradient(-105deg, rgba(255, 255, 255, 0.92) 0%, rgba(254, 240, 138, 0.45) 45%, transparent 100%);
  clip-path: polygon(100% 30%, 0% 0%, 0% 100%, 100% 48%);
  animation: shutterFlash 2.6s 1.1s infinite;
}

@keyframes shutterFlash {
  0%, 48%, 62%, 100% { opacity: 0; }
  52% { opacity: 1; }
  55% { opacity: 0.25; }
  58% { opacity: 0.9; }
}

/* 1B. 外廓尺寸自动测量工位：三维红外激光龙门框与长高标尺 */
.fx-dimension-box {
  position: absolute;
  left: 8px;
  top: 14px;
  width: 256px;
  height: 90px;
  border: 1.5px dashed rgba(56, 189, 248, 0.78);
  border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.16);
  pointer-events: none;
  z-index: 5;
}

.dim-top-rule {
  position: absolute;
  top: -16px;
  left: 24px;
  right: 24px;
  text-align: center;
  border-bottom: 1.5px solid #38bdf8;
}

.dim-top-rule span {
  display: inline-block;
  background: rgba(11, 21, 40, 0.92);
  color: #7dd3fc;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0 7px;
  border-radius: 4px;
}

.dim-side-rule {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -22px;
  display: flex;
  align-items: center;
  border-left: 1.5px solid #38bdf8;
  padding-left: 3px;
}

.dim-side-rule span {
  font-size: 0.58rem;
  line-height: 1.1;
  font-weight: 700;
  color: #7dd3fc;
  text-align: center;
}

.dim-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #fef08a, #38bdf8, transparent);
  box-shadow: 0 0 10px #38bdf8;
  animation: dimLaserScan 2.2s ease-in-out infinite alternate;
}

@keyframes dimLaserScan {
  0% { top: 6%; }
  100% { top: 92%; }
}

/* 1C. 整备质量（地磅）检验工位：嵌入式电子汽车衡秤台 + 立式数显称重仪表柱 */
.fx-weighbridge {
  position: absolute;
  left: 50%;
  bottom: calc(13% - 4px);
  transform: translateX(-50%);
  width: 274px;
  height: 11px;
  background: #090d16;
  border: 1.5px solid #64748b;
  border-radius: 3px;
  padding: 1px 5px;
  display: flex;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.wb-deck {
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #0f766e, #2dd4bf, #0f766e);
  border: 1px solid #ccfbf1;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.55);
}

.wb-label {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  color: #5eead4;
  white-space: nowrap;
}

.fx-scale-terminal {
  position: absolute;
  left: 264px;
  bottom: 6px;
  width: 68px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.scale-screen {
  min-width: 66px;
  height: 24px;
  padding: 0 7px;
  background: #060d1a;
  border: 1.5px solid #2dd4bf;
  border-radius: 5px;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.45);
}

.scale-screen.locked {
  color: #4ade80;
  border-color: #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.65);
}

.scale-pole {
  width: 4px;
  flex: 1;
  background: #64748b;
}

/* 2. 底盘检验工位：车底地下检车地沟槽 + 安全帽检验员仰照强光手电 */
.fx-pit-box {
  position: absolute;
  left: 62px;
  top: 98px;
  width: 156px;
  height: 44px;
  background: #030712;
  border: 2px solid #f59e0b;
  border-top: 3px dashed #fbbf24;
  border-radius: 0 0 8px 8px;
  z-index: 4;
  pointer-events: none;
}

.pit-worker {
  position: absolute;
  left: 26px;
  bottom: -2px;
}

.pit-beam {
  position: absolute;
  left: 68px;
  top: -32px;
  width: 58px;
  height: 46px;
  background: linear-gradient(0deg, rgba(254, 249, 195, 0.85) 0%, rgba(56, 189, 248, 0.28) 65%, transparent 100%);
  clip-path: polygon(22% 100%, 0% 0%, 100% 0%, 42% 100%);
  transform-origin: 32% 100%;
  animation: pitSweep 2.1s ease-in-out infinite alternate;
}

@keyframes pitSweep {
  0% { transform: rotate(-18deg); }
  100% { transform: rotate(16deg); }
}

.pit-tag {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 0.64rem;
  color: #fbbf24;
  font-weight: 700;
}

/* 3. 底盘动态检验：行驶气流速度线 */
.fx-wind-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-wind-lines i {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.75), transparent);
  animation: windFly 0.85s linear infinite;
}

.fx-wind-lines i:nth-child(1) { top: 20px; left: 40px; width: 78px; }
.fx-wind-lines i:nth-child(2) { top: 44px; left: 10px; width: 96px; animation-delay: 0.28s; }
.fx-wind-lines i:nth-child(3) { top: 68px; left: 60px; width: 64px; animation-delay: 0.55s; }

@keyframes windFly {
  0% { transform: translateX(130px); opacity: 0; }
  35% { opacity: 0.9; }
  100% { transform: translateX(-120px); opacity: 0; }
}

/* 4. 台试制动工位：车道正中央唯一 1 组嵌入式反力双滚筒台 + 橙黄液压加载举升台 */
.fx-rollers {
  position: absolute;
  bottom: calc(13% - 13px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.roller-pair {
  display: flex;
  gap: 6px;
  background: #0f172a;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transition: all 0.3s ease;
}

.fx-rollers.is-loading-lift .roller-pair {
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.75);
}

.fx-rollers.is-park-test .roller-pair {
  border-color: #fb7185;
  box-shadow: 0 0 18px rgba(251, 113, 133, 0.72);
}

.roller-drum {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px dashed #38bdf8;
  animation: spinWheel 0.48s linear infinite;
}

.fx-rollers.is-loading-lift .roller-drum {
  border-color: #fde047;
}

.fx-rollers.is-park-test .roller-drum {
  border-color: #fda4af;
}

/* 滚筒台两侧的液压举升加载臂（仅在 L1~L4 加载制动时升起亮起） */
.lift-arm {
  width: 14px;
  height: 8px;
  background: #334155;
  border-radius: 2px;
  opacity: 0.3;
  transform: translateY(4px);
  transition: all 0.35s ease;
}

.fx-rollers.is-loading-lift .lift-arm {
  opacity: 1;
  height: 14px;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.85);
  transform: translateY(-2px);
}

.roller-bed-label {
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
}

.fx-rollers.is-loading-lift .roller-bed-label {
  color: #fde047;
}

.fx-rollers.is-park-test .roller-bed-label {
  color: #fda4af;
}

.tail-brake-glow {
  position: absolute;
  width: 7px;
  height: 11px;
  border-radius: 2.5px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #ff7875 0%, #ef4444 65%, #dc2626 100%);
  border: 1px solid #fecaca;
  box-shadow:
    -5px 0 12px 3px rgba(239, 68, 68, 0.92),
    -12px 0 20px 5px rgba(239, 68, 68, 0.45),
    0 0 6px 1px rgba(255, 120, 117, 0.9);
  z-index: 5;
  pointer-events: none;
}

.tail-brake-glow.blink-brake {
  animation: brakePulse 1.4s ease-in-out infinite;
}

@keyframes brakePulse {
  0%, 40%, 100% { opacity: 0.25; }
  55%, 88% { opacity: 1; }
}

/* 5. 安检灯光工位：严格锚定在车辆前大灯坐标 (x=258px, y=68px) */
.headlight-flare {
  position: absolute;
  left: 252px;
  top: 61px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fef08a 55%, transparent 100%);
  box-shadow: 0 0 14px 4px rgba(254, 240, 138, 0.85);
  z-index: 5;
  pointer-events: none;
}

.fx-headlight-beam {
  position: absolute;
  left: 258px;
  top: 30px;
  width: 146px;
  height: 76px;
  background: linear-gradient(90deg, rgba(254, 249, 195, 0.88) 0%, rgba(254, 240, 138, 0.48) 38%, rgba(56, 189, 248, 0.18) 82%, transparent 100%);
  clip-path: polygon(0 45%, 100% 4%, 100% 96%, 0 55%);
  transform-origin: 0% 50%;
  z-index: 4;
  pointer-events: none;
  animation: beamSwitch 1.9s ease-in-out infinite alternate;
}

@keyframes beamSwitch {
  0% { transform: rotate(-1.5deg) scaleY(0.82); opacity: 0.78; }
  100% { transform: rotate(3.5deg) scaleY(1.08); opacity: 1; }
}

.fx-light-tester {
  position: absolute;
  left: 398px;
  bottom: 4px;
  width: 24px;
  height: 88px;
  border-left: 3px solid #64748b;
  z-index: 5;
  pointer-events: none;
}

.fx-light-tester::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 18px;
  width: 16px;
  height: 26px;
  background: #0ea5e9;
  border-radius: 4px;
  box-shadow: 0 0 12px #38bdf8;
  animation: sensorUpDown 1.9s ease-in-out infinite alternate;
}

@keyframes sensorUpDown {
  from { top: 14px; }
  to { top: 38px; }
}

/* 6. 侧滑检验工位：平齐镶嵌在轮胎接地面 (calc(13% + 6px)) 的地坑式金属侧滑台 */
.fx-sideslip-ground {
  position: absolute;
  left: 50%;
  bottom: calc(13% - 4px);
  transform: translateX(-50%);
  width: 96px;
  height: 11px;
  background: #090d16;
  border: 1.5px solid #475569;
  border-radius: 3px;
  padding: 1px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.slip-plate-fixed {
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #0369a1, #38bdf8, #0369a1);
  border: 1px solid #e0f2fe;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.65);
  animation: slipPlateReact 5.4s ease-in-out infinite;
}

@keyframes slipPlateReact {
  0%, 22%, 82%, 100% { transform: translateX(0); box-shadow: 0 0 6px rgba(56, 189, 248, 0.35); }
  36%, 48% { transform: translateX(4px); box-shadow: 0 0 16px rgba(56, 189, 248, 0.95); border-color: #fef08a; }
  58%, 70% { transform: translateX(-3px); box-shadow: 0 0 14px rgba(56, 189, 248, 0.85); }
}

.slip-ground-label {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
}

/* 7. 路试驻车制动工位：标准 20% 坡道斜坡台 + 坡道锁止徽章 */
.fx-slope-ramp {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  width: 340px;
  height: 64px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.95));
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  border-bottom: 3px solid #fbbf24;
  z-index: 2;
}

.fx-slope-ramp span {
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
}

.park-hold-badge {
  position: absolute;
  left: 44px;
  top: 48px;
  background: rgba(153, 27, 27, 0.92);
  border: 1.5px solid #f87171;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
  white-space: nowrap;
  z-index: 6;
}

/* 平地牵引驻车拉力计总成：前杠挂钩 + 紧绷钢索 + 数显测力计 + 地面锚固电动绞盘 */
.fx-pull-meter-rig {
  position: absolute;
  left: 254px;
  top: 56px;
  width: 172px;
  height: 54px;
  z-index: 5;
  pointer-events: none;
}

.pull-meter-bubble {
  position: absolute;
  top: -12px;
  left: 78px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #fbbf24;
  color: #fef08a;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  white-space: nowrap;
}

.cable-tension {
  animation: cableFlow 0.7s linear infinite;
}

@keyframes cableFlow {
  from { stroke-dashoffset: 12; }
  to { stroke-dashoffset: 0; }
}

.meter-bar-anim {
  animation: meterLoad 1.5s ease-in-out infinite alternate;
}

@keyframes meterLoad {
  from { width: 22px; fill: #38bdf8; }
  to { width: 31px; fill: #22c55e; }
}

.winch-drum-spin {
  animation: winchPull 2.2s ease-in-out infinite alternate;
}

@keyframes winchPull {
  from { transform: rotate(0deg); }
  to { transform: rotate(42deg); }
}

/* 8. 路试行车制动工位：测距跑道标尺 + 紧急制动轮胎轨迹印 */
.fx-road-ruler {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 4%;
  display: flex;
  justify-content: space-between;
  border-top: 1.5px dashed rgba(148, 163, 184, 0.45);
  padding-top: 3px;
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  z-index: 3;
}

.skid-marks {
  position: absolute;
  left: -48px;
  top: 100px;
  width: 260px;
  height: 5px;
  background: linear-gradient(90deg, transparent 0%, rgba(251, 146, 60, 0.65) 45%, rgba(15, 23, 42, 0.9) 100%);
  border-radius: 2px;
  animation: skidPulse 2.2s ease-in-out infinite;
}

@keyframes skidPulse {
  0%, 35%, 100% { opacity: 0.15; width: 120px; }
  50%, 80% { opacity: 0.95; width: 260px; }
}

/* 工位完成盖章提示层 */
.pass-stamp {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(6, 78, 59, 0.92);
  border: 2px solid #4ade80;
  color: #ecfdf5;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  z-index: 6;
  white-space: nowrap;
  animation: stampPop 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.pass-stamp.stamp-warn {
  background: rgba(120, 53, 15, 0.94);
  border-color: #fbbf24;
  color: #fef3c7;
}

@keyframes stampPop {
  from { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ================= 卡片底栏：8 步安检全流程节点轴 ================= */
.bay-stepper {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  padding: 8px 10px;
  background: rgba(5, 11, 22, 0.68);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  gap: 4px;
}

.step-node {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.7rem;
  padding: 4px 2px;
  border-radius: 5px;
  color: #64748b;
  background: rgba(15, 23, 42, 0.5);
  white-space: nowrap;
}

.step-node.done {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
}

.step-node.skipped {
  color: #475569;
  background: rgba(15, 23, 42, 0.28);
  text-decoration: line-through;
  opacity: 0.55;
}

.step-node.fail {
  color: #fef3c7;
  font-weight: 700;
  background: rgba(180, 83, 9, 0.55);
  border: 1px solid #f59e0b;
}

.step-node.current {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.65), rgba(8, 145, 178, 0.65));
  border: 1px solid rgba(56, 189, 248, 0.5);
}

/* 空闲补位信息卡（当最后一页不足4辆车时展示站内统计） */
.bay-card.info-filler {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.14), rgba(11, 21, 40, 0.92));
}

.filler-box h3 {
  font-size: 1.25rem;
  color: #7dd3fc;
  margin-bottom: 10px;
}

.filler-box p {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 360px;
  line-height: 1.6;
}

/* ================= 底部全站排队与在检常驻条 ================= */
.queue-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(11, 21, 40, 0.92);
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  padding: 0 16px;
  overflow: hidden;
}

.queue-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 14px;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.live-ping {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.queue-label strong {
  font-size: 0.86rem;
}

.queue-label small {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.queue-track {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.queue-track::-webkit-scrollbar {
  display: none;
}

.q-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.8rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.q-pill.on-screen {
  border-color: var(--cyan);
  background: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.22);
}

.q-pill strong {
  color: #f8fafc;
}

.q-pill span {
  color: #7dd3fc;
  font-size: 0.75rem;
}

/* ================= 格内完检 / 待复检专属提示卡片（不霸屏，仅在当前车辆 1/4 格内展示） ================= */
.bay-finish-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(86%, 430px);
  border-radius: 16px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 6;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  animation: stampPop 0.32s ease-out;
}

.bay-finish-card.is-pass {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.94) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 2px solid #4ade80;
}

.bay-finish-card.is-fail {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.95) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 2px solid #fbbf24;
}

.bf-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.is-pass .bf-icon {
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.5);
}

.is-fail .bf-icon {
  background: #f59e0b;
  color: #0f172a;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
}

.bf-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.is-pass .bf-tag { color: #86efac; }
.is-fail .bf-tag { color: #fde68a; }

.bf-body h4 {
  font-size: 1.55rem;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.bf-body p {
  font-size: 0.88rem;
  color: #e2e8f0;
}

.is-fail .bf-body p strong {
  color: #fbbf24;
}
