/* ============================================================
 * 极客少年 · 微型碰撞试验室 — 与模拟风洞实验室同族的工程软件风格界面
 * 设计令牌与 windtunnel/css/style.css 一致：
 *   底色 #0b0f14 / 面板 #10161e / 强调青 #22d3ee / 警示黄 #ffd85e
 *   运行红 #ff5252 / 完成绿 #52ff9a / 锐利 3px 圆角 / Consolas 数字
 * 布局：标题栏 / 左流程面板 / 中央视口 / 右参数面板 / 状态栏
 * ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 14px; background: #0b0f14; color: #d5e1ed;
  overflow: hidden;
}
button { font-family: inherit; }
#app { height: 100%; display: flex; flex-direction: column; min-height: 0; }

/* ═══ 标题栏 ═══ */
#titlebar {
  height: 54px; flex: 0 0 54px; display: flex; align-items: center; gap: 18px;
  padding: 0 16px; background: linear-gradient(#161e28, #0d1219);
  border-bottom: 1px solid #2b3644;
  -webkit-user-select: none; user-select: none;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { font-size: 24px; filter: drop-shadow(0 0 8px rgba(255,82,82,.55)); }
.brand-txt .l1 { display: flex; align-items: baseline; gap: 9px; }
.brand-txt .l1 b { font-size: 20px; color: #f0f6fc; letter-spacing: 2px; }
.brand-txt .l1 .cn { font-size: 16px; font-weight: 700; color: #ff8a8a; letter-spacing: 2px; }
.brand-txt small {
  display: block; color: #5d7186; font-size: 9.5px;
  letter-spacing: 2.1px; margin-top: 2px; font-family: Consolas, monospace;
  white-space: nowrap;
}
.tb-center { display: flex; align-items: center; gap: 12px; margin-left: 20px; }
.phase-name { font-size: 16px; font-weight: 700; color: #9fe8ff; letter-spacing: 2px; min-width: 100px; text-align: center; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tc { font-family: Consolas, monospace; color: #9ed2f5; font-size: 15px; }
.tc b { color: #6b8096; font-weight: 400; font-size: 11px; margin-right: 4px; }
.clock {
  font-family: Consolas, monospace; color: #cfe8fa; font-size: 14px;
  background: #101a28; border: 1px solid #24425c; border-radius: 3px;
  padding: 4px 10px; letter-spacing: .5px;
}
#guideBtn, #fsBtn {
  background: #182231; border: 1px solid #33445c; color: #b6cadf;
  padding: 6px 13px; border-radius: 3px; cursor: pointer; font-size: 13.5px;
  white-space: nowrap;
}
#guideBtn:hover, #fsBtn:hover { border-color: #22d3ee; color: #aef2ff; }

/* 状态灯（与风洞同款光晕） */
.beacon {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  background: #37424f; border: 1px solid #46525f; vertical-align: middle;
}
.beacon-idle { background: #37424f; }
.beacon-wait { background: #ffd85e; border-color: #8a7420; box-shadow: 0 0 12px #ffd85e; animation: lamp 1s steps(2) infinite; }
.beacon-run  { background: #ff5252; border-color: #a03030; box-shadow: 0 0 14px #ff5252; animation: lamp .6s steps(2) infinite; }
.beacon-ok   { background: #52ff9a; border-color: #2f8a4f; box-shadow: 0 0 14px #52ff9a; }
@keyframes lamp { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ═══ 工作台骨架 ═══ */
#workbench { flex: 1; display: flex; min-height: 0; }
.dock-h {
  font-size: 13px; color: #8ca0b5; letter-spacing: 2.5px;
  border-left: 3px solid #22d3ee; padding-left: 10px; margin: 14px 0 9px;
  font-weight: 700;
}
#leftdock, #rightdock {
  background: #10161e; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: #2e3d51 transparent;
}
#leftdock { width: 232px; flex: 0 0 232px; border-right: 1px solid #232d3a; padding: 12px; }
#rightdock { width: 318px; flex: 0 0 318px; border-left: 1px solid #232d3a; padding: 12px 14px; }
#rightdock::-webkit-scrollbar, #leftdock::-webkit-scrollbar { width: 8px; }
#rightdock::-webkit-scrollbar-thumb, #leftdock::-webkit-scrollbar-thumb { background: #2e3d51; border-radius: 4px; }

/* ═══ 左侧：流程步骤器（时间线，与风洞同款） ═══ */
#stepList { list-style: none; position: relative; padding-left: 6px; }
#stepList::before {
  content: ''; position: absolute; left: 21px; top: 18px; bottom: 18px;
  width: 2px; background: #2a3646;
}
#stepList li { display: flex; align-items: center; gap: 13px; padding: 11px 4px; position: relative; }
#stepList li i {
  font-style: normal; width: 30px; height: 30px; border-radius: 50%;
  background: #1a2330; border: 2px solid #33414f; color: #6d8098;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; z-index: 1; flex: 0 0 30px;
}
#stepList li div b { display: block; font-size: 14.5px; color: #93a7bd; font-weight: 600; }
#stepList li div em { font-style: normal; font-size: 11px; color: #55677c; }
#stepList li.active i { background: #3a1210; border-color: #ff7070; color: #ffb3b3;
  box-shadow: 0 0 12px rgba(255,82,82,.5); }
#stepList li.active div b { color: #ffd9d9; }
#stepList li.active::after {
  content: '▶'; position: absolute; right: 6px; color: #ff7070; font-size: 11px;
  animation: blink 1.2s infinite;
}
#stepList li.done i { background: #12351f; border-color: #2f8a4f; color: #52ff9a; }
#stepList li.done div b { color: #7fcf9f; }

.dock-readout { background: #131b26; border: 1px solid #232d3a; border-radius: 4px; padding: 10px 12px; }
.ro-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13.5px; }
.ro-row span { color: #6d8098; }
.ro-row b { font-family: Consolas, monospace; color: #a9c6e2; font-weight: 600; }
.c-idle { color: #8fa0b3; } .c-wait { color: #ffd85e; } .c-run { color: #ff8a8a; } .c-ok { color: #52ff9a; }
.dock-note { margin-top: 10px; font-size: 11px; color: #55677c; line-height: 1.6; }

/* ═══ 中央视口 + 数据曲线坞 ═══ */
#centerCol { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#viewport { flex: 1; position: relative; min-width: 0; min-height: 0; background: #06090f; overflow: hidden; }
#scene, #fx, #hud { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
#chartDock {
  flex: 0 0 188px; display: flex; flex-direction: column; min-height: 0;
  background: #0c1219; border-top: 1px solid #232d3a;
}
.ch-head {
  height: 26px; flex: 0 0 26px; display: flex; align-items: center; gap: 16px;
  padding: 0 14px; font-size: 12px; color: #8ca0b5;
}
.ch-head b { color: #c8d8e8; letter-spacing: 1px; font-size: 12.5px; }
#chMode { color: #ffd85e; opacity: .8; }
#chCursor { margin-left: auto; font-family: Consolas, monospace; color: #aef2ff; font-size: 12.5px; }
#chartCv { flex: 1; min-height: 0; display: block; width: 100%; }
#fx { pointer-events: none; z-index: 1; }
#hud { pointer-events: none; z-index: 2; }
.hud {
  position: absolute; z-index: 8; pointer-events: none;
  font-family: Consolas, monospace; font-weight: 700; font-size: 12px;
  padding: 4px 13px 4px 10px; border-radius: 999px; letter-spacing: 2px;
}
#liveBadge {
  top: 12px; right: 14px;
  background: rgba(64,8,8,.72); border: 1px solid #b03030; color: #ff7070;
  text-shadow: 0 0 8px rgba(255,60,60,.6); animation: blink 1.4s infinite;
}
#gpuBadge {
  top: 12px; right: 108px;
  background: rgba(10,26,30,.78); border: 1px solid #2292b8; color: #aef2ff;
  text-shadow: 0 0 8px rgba(34,211,238,.5);
}
#checklist {
  margin-top: 10px;
  background: #0d141e; border: 1px solid #2a4a3a; border-radius: 3px;
  padding: 8px 12px; pointer-events: none;
}
#checklist .cl-title { font-size: 12.5px; color: #7fe7a0; letter-spacing: 1px; margin-bottom: 5px; }
#checklist ul { list-style: none; }
#checklist li { font-size: 13px; color: #6d8098; line-height: 1.95; }
#checklist li::before { content: '○ '; color: #4a5b70; }
#checklist li.done { color: #9fe8b8; }
#checklist li.done::before { content: '✓ '; color: #52ff9a; font-weight: 700; }
#announceBar {
  position: absolute; z-index: 7; left: 50%; transform: translateX(-50%);
  bottom: 12px; max-width: 52%; pointer-events: none;
  background: rgba(30,26,12,.88); border: 1px solid #4a3f1c; border-radius: 2px;
  padding: 6px 16px; font-size: 13.5px; color: #ffd85e; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* ═══ 右侧参数面板 ═══ */
.row { display: flex; align-items: center; gap: 9px; margin: 8px 0; }
.row > label { font-size: 13.5px; color: #9fb4c8; min-width: 58px; }
.row select {
  flex: 1; min-width: 0; background: #0e1520; border: 1px solid #2b3a4d;
  color: #e2ecf5; padding: 6px 9px; border-radius: 2px; font-size: 13.5px;
}
.row input[type=range] { flex: 1; min-width: 0; accent-color: #22d3ee; }
.row .val { font-family: Consolas, monospace; color: #8fc7ee; min-width: 62px; text-align: right; font-size: 14px; }
input[type=checkbox] { accent-color: #22d3ee; width: 15px; height: 15px; }
.chk-row { display: flex; align-items: center; gap: 14px; margin: 8px 0; flex-wrap: wrap; }
.chk-row label { font-size: 13.5px; color: #a9bdd2; display: flex; align-items: center; gap: 6px; cursor: pointer; }

#bPanel {
  border: 1px solid rgba(116, 192, 252, .22); border-left: 3px solid #74c0fc;
  background: rgba(10, 18, 28, .62); border-radius: 0 3px 3px 0;
  padding: 8px 9px 4px; margin-top: -2px;
}
#bPanel .ab-tag { display: block; font: italic 900 13px 'Segoe UI', sans-serif; color: #74c0fc; letter-spacing: 1px; margin-bottom: 6px; }

/* 预估结果面板 */
.pred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pred-cell { background: #101a28; border: 1px solid #232d3a; border-radius: 3px; padding: 5px 9px; }
.pred-cell i { font-style: normal; display: block; font-size: 10.5px; color: #6d8098; }
.pred-cell b { font-size: 13px; font-family: Consolas, monospace; color: #aef2ff; }
.pred-cell em { font-style: normal; font-size: 12px; font-weight: 700; font-family: Consolas, monospace; }

/* ═══ A/B 对比（学自悬架试验室：滑动开关 + 一键预设 + 对照矩阵，更优侧绿色高亮） ═══ */
.ab-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.ab-switch input { display: none; }
.ab-switch i {
  width: 38px; height: 17px; background: #14202e; border: 1px solid #2b3a4d;
  border-radius: 10px; position: relative; transition: all .2s; flex: 0 0 auto;
}
.ab-switch i::after {
  content: ''; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px;
  border-radius: 50%; background: #6d8098; transition: all .2s;
}
.ab-switch input:checked + i { background: rgba(77, 212, 172, .22); border-color: #4dd4ac; }
.ab-switch input:checked + i::after { left: 22px; background: #4dd4ac; box-shadow: 0 0 9px rgba(77, 212, 172, .7); }
.ab-switch span { font: italic 900 14px 'Segoe UI', sans-serif; color: #cff6ff; letter-spacing: 1px; }
.ab-chip { display: none; font: italic 900 12px 'Segoe UI', sans-serif; padding: 1px 9px; border-radius: 2px; margin-left: 8px; vertical-align: 1px; }
body.ab .ab-chip { display: inline-block; }
.ab-chip.a { color: #4dd4ac; border: 1px solid rgba(77, 212, 172, .5); }
.ab-chip.b { color: #74c0fc; border: 1px solid rgba(116, 192, 252, .5); }
#predAB { display: none; }
body.ab #predAB { display: block; }
body.ab #predGrid { display: none; }
#predAB .abm-head, #predAB .abm-row { display: grid; grid-template-columns: 1fr 64px 64px; gap: 5px; align-items: center; }
#predAB .abm-head { margin: 4px 0 6px; }
#predAB .abm-head span { font-size: 11px; color: #6d8098; }
#predAB .abm-head b { font: italic 900 14px 'Segoe UI', sans-serif; text-align: center; }
#predAB .abm-head b.a { color: #4dd4ac; }
#predAB .abm-head b.b { color: #74c0fc; }
#predAB .abm-row {
  background: #101a28; border: 1px solid #232d3a; border-radius: 3px;
  padding: 5px 9px; margin: 4px 0;
}
#predAB .abm-row span { font-size: 11px; color: #8ca0b5; }
#predAB .abm-row b { font: 700 13px Consolas, monospace; color: #aef2ff; text-align: center; }
#predAB .abm-row b.win { color: #7dff9e; text-shadow: 0 0 8px rgba(125, 255, 158, .4); }
#predAB #abNote { font-size: 11px; color: #8ca0b5; line-height: 1.6; margin-top: 8px; font-family: 'Segoe UI', sans-serif; }

/* ═══ 车对车模式：预估区切换为双车对照矩阵，隐藏 A/B 车道面板 ═══ */
body.c2c #predGrid { display: none; }
body.c2c #predAB { display: block; }
body.c2c .b-lane-only { display: none !important; }

/* ═══ A/B 车道镜像：A 参数组与 B 配置框成对呈现 ═══ */
#aPanel { border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 0 3px 3px 0; }
#aPanel .ab-tag {
  display: none; font: italic 900 12px 'Segoe UI', sans-serif; color: #4dd4ac; letter-spacing: 1px;
  padding: 1px 9px; border: 1px solid rgba(77, 212, 172, .5); border-radius: 2px;
}
body.ab #aPanel { border-color: rgba(77, 212, 172, .22); border-left-color: #4dd4ac; background: rgba(10, 18, 28, .62); padding: 8px 9px 4px; }
body.ab #aPanel .ab-tag { display: inline-block; margin-bottom: 8px; }
body.ab #aPanel .row { margin: 6px 0; }
body.ab #aPanel .dock-h { margin: 10px 0 6px; font-size: 12px; letter-spacing: 1.5px; color: #9db4c9; border-left-width: 2px; padding-left: 8px; }
/* A/B 对比：重叠率是 A 车道不对称参数（B 车道无对应项），对比模式下隐藏以保持同条件公平对比 */
body.ab #ovlRow { display: none !important; }

.big-btn {
  width: 100%; padding: 12px; font-size: 16px; font-weight: 700; margin: 4px 0 10px;
  background: linear-gradient(#14532d, #0c3a1f); color: #b8ffce;
  border: 1px solid #2f8a4f; border-radius: 3px; cursor: pointer; letter-spacing: 3px;
}
.big-btn:hover { filter: brightness(1.25); }
.big-btn.accent {
  background: linear-gradient(#155e75, #0c3e50); color: #cff6ff;
  border-color: #2292b8; letter-spacing: 1px;
}
.big-btn.accent:hover { filter: brightness(1.25); }
.big-btn:disabled { opacity: .4; cursor: default; filter: none; }
.big-btn.attn { animation: attn 1.2s infinite; }
@keyframes attn {
  0%,100% { box-shadow: 0 0 0 rgba(82,255,154,0); }
  50% { box-shadow: 0 0 22px rgba(82,255,154,.55); }
}
.hint { font-size: 11.5px; color: #55677c; margin-top: 9px; line-height: 1.6; }

/* ═══ 选车屏 · 英雄车台（与车库/试车场/风洞统一：先选车，后进试验室） ═══ */
#pickScreen {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: #070c13;                                   /* 上层铺 .fl-bg 竞速网格/光条 */
}
#pickScreen.show { display: block; }
.pk-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: 26px 40px 20px; }
.pk-head { display: flex; align-items: flex-start; justify-content: space-between; }
.pk-title {
  font-size: 32px; font-weight: 900; font-style: italic; color: #f0f6fc;
  letter-spacing: 7px; transform: skewX(-6deg);
  text-shadow: 0 0 24px rgba(255,82,82,.5), 3px 3px 0 rgba(0,0,0,.65);
}
.pk-title b { font-size: 15px; font-weight: 700; color: #ff8a8a; letter-spacing: 3px; margin-left: 16px; }
.pk-sub { font-family: Consolas, monospace; font-size: 11px; color: #6d8298; letter-spacing: 3.5px; margin-top: 6px; }
.pk-wrap { flex: 1; display: flex; gap: 26px; min-height: 0; margin-top: 18px; }
.pk-grid {
  flex: 1.25; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  align-content: start; overflow-y: auto; padding: 4px 6px 14px 2px;
  scrollbar-width: thin; scrollbar-color: #2e3d51 transparent;
}
.pk-grid::-webkit-scrollbar { width: 8px; }
.pk-grid::-webkit-scrollbar-thumb { background: #2e3d51; border-radius: 4px; }
.pk-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #10161e; border: 1px solid #2b3a4d; border-radius: 4px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pk-card:hover { border-color: #22d3ee; }
.pk-card.active {
  border-color: #ff7070; background: #1a1216;
  box-shadow: 0 0 16px rgba(255,82,82,.28);
}
.pk-card canvas { width: 150px; height: 56px; flex: 0 0 auto; }
.pk-card .pkc-txt { min-width: 0; }
.pk-card .pkc-name { font-weight: 700; font-size: 16.5px; color: #dfe9f3; }
.pk-card.active .pkc-name { color: #ffc9c9; }
.pk-card .pkc-sub { font-size: 11.5px; color: #6d8098; font-family: Consolas, monospace; margin-top: 4px; }
.pk-info {
  flex: 1; max-width: 420px;
  background: linear-gradient(165deg, rgba(14, 22, 32, .92), rgba(8, 13, 20, .92));
  border: 1px solid #2b3a4d; border-top: 3px solid #ff5252;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  padding: 20px 22px; display: flex; flex-direction: column; min-height: 0;
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2e3d51 transparent;
  box-shadow: 0 0 30px rgba(0, 0, 0, .45);
}
.pk-tag { font-family: Consolas, monospace; font-size: 11px; color: #ff8a8a; letter-spacing: 3px; }
.pk-name { font-size: 24px; font-weight: 800; color: #f0f6fc; margin-top: 6px; }
.pk-photo {
  margin-top: 14px; background: #0a111c; border: 1px solid #1f2a38; border-radius: 3px;
  height: 170px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pk-photo img { max-width: 94%; max-height: 94%; object-fit: contain; }
.pk-empty { color: #4a5b70; font-size: 13px; }
.pk-specs { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-spec { background: #0d1520; border: 1px solid #232d3a; border-radius: 3px; padding: 8px 12px; }
.pk-spec i { font-style: normal; display: block; font-size: 11px; color: #6d8098; }
.pk-spec b { font-size: 15px; font-family: Consolas, monospace; color: #aef2ff; }
/* 基准工况预估（碰撞导向选车档案：各车同条件计算，横向对比） */
.pk-pred { margin-top: 12px; }
.pk-pred-head { font-size: 12px; font-weight: 700; color: #ff8a8a; letter-spacing: 1px; margin-bottom: 7px; }
.pk-pred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-pred-cell { background: #0d1520; border: 1px solid #232d3a; border-radius: 3px; padding: 8px 12px; }
.pk-pred-cell i { font-style: normal; display: block; font-size: 11px; color: #6d8098; }
.pk-pred-cell b { font-size: 15px; font-family: Consolas, monospace; color: #aef2ff; }
.pk-pred-cell em { font-style: normal; font-size: 12px; font-weight: 700; font-family: Consolas, monospace; margin-left: 4px; }
.pk-pred-note { margin-top: 8px; font-size: 11px; color: #55677c; line-height: 1.6; }
.pk-desc { margin-top: 14px; font-size: 12.5px; color: #8ca0b5; line-height: 1.8; }
.pk-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.pk-hint { font-size: 12px; color: #6d8298; font-family: Consolas, monospace; letter-spacing: 1.5px; }
.pk-cta {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px 42px; cursor: pointer; border: 0; border-radius: 0;
  border-left: 4px solid #ff5252; border-right: 4px solid #ff5252;
  background: linear-gradient(100deg, #3a0d0d, #5a1414 58%, #3a0d0d);
  transform: skewX(-12deg); overflow: hidden;
  box-shadow: 0 0 26px rgba(255,82,82,.28), inset 0 0 22px rgba(255,82,82,.10);
  transition: box-shadow .25s, background .25s;
}
.pk-cta > span, .pk-cta > i { display: block; transform: skewX(12deg); }
.pk-cta span { font-size: 18px; font-weight: 800; color: #ffd9d9; letter-spacing: 5px; }
.pk-cta i { font-style: normal; font-family: Consolas, monospace; font-size: 9.5px; color: #c97b7b; letter-spacing: 3px; margin-top: 3px; }
.pk-cta::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -30%; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.20), transparent);
  transform: skewX(-18deg); animation: pkSheen 2.8s ease-in-out infinite;
}
@keyframes pkSheen { 0% { left: -40%; } 55%, 100% { left: 130%; } }
.pk-cta:hover { box-shadow: 0 0 40px rgba(255,82,82,.55), inset 0 0 26px rgba(255,82,82,.18); }

/* ── 英雄车台（全系统选车统一：车库 / 试车场 / 风洞同款）
      大圆台（hero-ring 来自 ../css/nfs-base.css）+ 一次一辆 + 箭头/圆点/滑动切换 ── */
.pk-grid.pk-hero {
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 0 0 36px;
}
.pk-grid.pk-hero .pk-card {
  display: none; position: relative; z-index: 1;
  flex-direction: column; align-items: center; gap: 10px;
  width: min(600px, 92%); margin: 0; padding: 44px 26px 22px;
  text-align: center; background: rgba(16, 22, 30, .42);
  border-color: rgba(34, 211, 238, .25);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.pk-grid.pk-hero .pk-card:hover { border-color: #22d3ee; }
.pk-grid.pk-hero .pk-card.hero {
  display: flex;
  background: rgba(26, 18, 22, .55);
  border-color: rgba(255, 112, 112, .38);
  box-shadow: 0 0 26px rgba(255, 82, 82, .22);
}
.pk-grid.pk-hero .pk-card canvas {
  width: min(460px, 80%); height: auto;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .55));
}
.pk-grid.pk-hero .pk-card .pkc-name { font-size: 24px; letter-spacing: 1px; }
.pk-grid.pk-hero .pk-card .pkc-sub { font-size: 12.5px; }
.pk-grid.pk-hero .hero-ring { z-index: 0; }
.pk-hero-stage { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.pk-arrow {
  pointer-events: auto; position: absolute; top: 50%; z-index: 6; cursor: pointer;
  transform: translateY(-50%) skewX(-10deg); width: 48px; height: 62px; font-size: 30px; line-height: 1;
  background: rgba(16, 28, 42, .88); color: #cfe4f2; border: 1px solid #2c4a63; border-radius: 6px;
  transition: border-color .15s, color .15s;
}
.pk-arrow:hover { border-color: #22d3ee; color: #aef2ff; }
.pk-arrow-l { left: 10px; }
.pk-arrow-r { right: 10px; }
.pk-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 12px; z-index: 5; }
.pk-dots i { width: 11px; height: 11px; border-radius: 50%; background: #24425a; cursor: pointer; transition: all .2s; }
.pk-dots i.on { background: #22d3ee; box-shadow: 0 0 9px rgba(34, 211, 238, .65); transform: scale(1.2); }
/* 进一辆出一辆：旧车对侧滑出淡去，新车滑入 */
.pk-card.in-r { animation: pkHeroInR .3s cubic-bezier(.2, .9, .3, 1.15) both; }
.pk-card.in-l { animation: pkHeroInL .3s cubic-bezier(.2, .9, .3, 1.15) both; }
.pk-card.out-l { animation: pkHeroOutL .2s ease both; }
.pk-card.out-r { animation: pkHeroOutR .2s ease both; }
@keyframes pkHeroInR { from { opacity: 0; transform: skewX(-4deg) translateX(90px); } to { opacity: 1; transform: skewX(-4deg) translateX(0); } }
@keyframes pkHeroInL { from { opacity: 0; transform: skewX(-4deg) translateX(-90px); } to { opacity: 1; transform: skewX(-4deg) translateX(0); } }
@keyframes pkHeroOutL { to { opacity: 0; transform: skewX(-4deg) translateX(-90px); } }
@keyframes pkHeroOutR { to { opacity: 0; transform: skewX(-4deg) translateX(90px); } }

/* 窄屏：车台在上、档案在下（与风洞英雄模式同构） */
@media (max-width: 900px) {
  .pk-inner { padding: 16px 18px 12px; }
  .pk-wrap { flex-direction: column; gap: 12px; margin-top: 10px; }
  .pk-grid.pk-hero { flex: 1 1 auto; min-height: 0; padding-bottom: 30px; }
  .pk-info { max-width: none; flex: 0 0 auto; padding: 12px 16px; }
  .pk-grid.pk-hero .pk-card { width: 94%; padding: 28px 16px 14px; }
  .pk-grid.pk-hero .pk-card canvas { width: min(330px, 72%); }
}

/* ═══ 状态栏 ═══ */
#statusbar {
  height: 34px; flex: 0 0 34px; display: flex; align-items: center;
  background: #10161e; border-top: 1px solid #232d3a;
  padding: 0 16px; font-size: 13px; color: #9fb4c8; overflow: hidden;
}
.sb-right { margin-left: auto; color: #5d7186; font-size: 12px; }

/* ═══ 弹窗 ═══ */
.modal {
  display: none; position: fixed; inset: 0; z-index: 50;
  background: rgba(2,5,10,.74); align-items: center; justify-content: center; padding: 20px;
}
.modal.show { display: flex; }
.modal .box {
  background: #0f1620; border: 1px solid #2b3a4d; border-radius: 4px;
  max-width: 620px; max-height: 88vh; overflow-y: auto; padding: 26px 30px;
}
.modal .box.wide { max-width: 800px; width: 92%; }
.modal h2 { color: #f0f6fc; font-size: 21px; margin-bottom: 12px; }
.modal h3 { color: #7fd7f5; font-size: 14.5px; margin: 15px 0 6px; }
.modal p, .modal li { font-size: 13.5px; color: #a9bdd2; line-height: 1.75; margin: 5px 0; }
.modal ol.steps { margin: 10px 0; padding-left: 20px; }
.modal ol.steps li { line-height: 2; }
.btn {
  display: inline-block; padding: 10px 26px; border-radius: 3px; cursor: pointer;
  background: #0e3a4a; color: #aef2ff; border: 1px solid #2292b8; font-size: 15px;
}
.btn.ghost { background: transparent; color: #9fb4c8; border-color: #2b3a4d; }
.mini-note { font-size: 11px; }

/* ═══ 报告单（与风洞报告单同族） ═══ */
#reportBody { color: #b8c9da; }
.rp-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #2292b8; padding-bottom: 10px; margin-bottom: 8px; }
.rp-title { font-size: 20px; font-weight: 800; color: #f0f6fc; letter-spacing: 1px; }
.rp-sub { font-size: 12.5px; color: #9fb4c8; margin-top: 3px; }
.rp-grade { text-align: center; }
.rp-grade b { font-size: 46px; line-height: 1; }
.rp-grade span { display: block; font-size: 11.5px; color: #9fb4c8; }
.rp-sec { font-size: 13px; font-weight: 700; color: #7fd7f5; letter-spacing: 1px; margin: 14px 0 7px; }
.rp-sec2 { font-size: 11.5px; font-weight: 700; color: #8ca0b5; margin-bottom: 4px; }
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rp-cell { background: #101a28; border: 1px solid #232d3a; border-radius: 3px; padding: 7px 11px; }
.rp-cell i { font-style: normal; display: block; font-size: 11px; color: #6d8098; }
.rp-cell b { font-size: 13.5px; font-family: Consolas, monospace; color: #d8e6f2; }
.rp-cell small { color: #6d8098; font-weight: 400; }
.bd-ok { color: #52ff9a; } .bd-ok small { color: #52ff9a; }
.bd-warn { color: #ffd85e; } .bd-warn small { color: #ffd85e; }
.bd-bad { color: #ff7070; }
.rp-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.rp-chart canvas { width: 100%; height: auto; background: #0a111c; border: 1px solid #1f2a38; border-radius: 3px; }
.rp-energy { display: flex; flex-direction: column; gap: 5px; }
.rp-ebar { position: relative; height: 17px; background: #101a28; border-radius: 2px; overflow: hidden; }
.rp-ebar span { position: absolute; inset: 0 auto 0 0; display: block; }
.rp-ebar i { position: absolute; left: 8px; top: 0; line-height: 17px; font-style: normal; font-size: 12px; color: #eaf3fb; text-shadow: 0 1px 2px rgba(0,0,0,.75); }
.rp-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.rp-table th, .rp-table td { border: 1px solid #2b3a4d; padding: 7px 9px; font-size: 13.5px; text-align: center; font-family: Consolas, monospace; }
.rp-table th { background: #101a28; color: #8fc7ee; }
.rp-table th:first-child, .rp-table td:first-child { font-family: 'Segoe UI', sans-serif; color: #9fb4c8; }
.rp-notes ul { padding-left: 18px; }
.rp-notes li { margin: 4px 0; font-size: 13px; color: #b8c9da; }
.rp-foot { margin-top: 16px; padding-top: 10px; border-top: 1px dashed #2b3a4d; font-size: 12px; color: #8d9fb2; line-height: 1.7; }
.rp-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: flex-end; }

#adminLink {
  position: fixed; right: 8px; bottom: 8px; z-index: 60;
  font-size: 10px; color: #33455e; text-decoration: none; letter-spacing: 1px; opacity: .6;
}
#adminLink:hover { color: #7fd7f5; opacity: 1; }

/* ═══ 窄屏 ═══ */
@media (max-width: 1280px) {
  #leftdock { width: 200px; flex-basis: 200px; }
  #rightdock { width: 296px; flex-basis: 296px; }
  #chartDock { flex-basis: 156px; }
}
@media (max-width: 1080px) {
  #leftdock { display: none; }
  #rightdock { width: 280px; flex-basis: 280px; }
}

/* ═══ 打印（报告单） ═══ */
@media print {
  body > #app, #pickScreen, #guideModal, #adminLink { display: none !important; }
  body { overflow: visible; background: #fff; }
  #reportModal { display: block !important; position: static; background: none; }
  #reportModal .box { max-width: none; max-height: none; border: none; background: #fff; padding: 0; }
  #reportBody, #reportBody * { color: #111 !important; }
  #reportBody canvas { border: 1px solid #999; }
  .rp-actions, #reportClose, #reportPrint { display: none !important; }
}

