:root {
  --bg: #f6f7f9; --card: #fff; --fg: #1d232b; --muted: #6b7580; --line: #e3e6ea;
  --accent: #2f6fe4; --ours: #5aa0ff; --ref: #9aa3ad; --left: #50dc78; --right: #ff9628;
  --good: #1f9d55; --warn: #c27c0e; --bad: #c0392b;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.6 -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--fg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: #111821; }
.top .brand { color: #fff; font-weight: 600; font-size: 16px; }
.top nav a { color: #aeb8c4; margin-right: 16px; }
.top nav a.on { color: #fff; }
main { max-width: 1400px; margin: 0 auto; padding: 20px 24px 60px; }
h1 { font-size: 22px; margin: 4px 0 8px; }
h2 { font-size: 17px; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 12px 0 8px; }
.lead .card b.big { display: block; font-size: 24px; margin: 2px 0; }
.lead .card .k { color: var(--muted); font-size: 12px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: #f0f2f5; font-weight: 600; font-size: 12px; color: #48525d; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f3f7ff; }
tr.self td { background: #fff8e8; }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 18px; border: 1px solid; margin-left: 4px; vertical-align: 1px; }
.tag.meas { color: var(--good); border-color: #9fd8b6; background: #effaf3; }
.tag.self { color: var(--warn); border-color: #f0cf8f; background: #fff7e6; }
.tag.ds { color: #48525d; border-color: var(--line); background: #f5f6f8; }
.tablewrap { overflow-x: auto; }
details > summary { cursor: pointer; color: var(--muted); margin: 18px 0 8px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .grid2 { grid-template-columns: 1fr; } }
.panel { background: #0e141b; border-radius: 8px; overflow: hidden; position: relative; }
.panel .bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 8px 12px; color: #c9d1da; font-size: 12px; background: #151d27; }
.panel .bar label { cursor: pointer; user-select: none; }
.panel .bar .sp { flex: 1; }
.vwrap { position: relative; width: 100%; margin: 0 auto; }
.vwrap video, .vwrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vwrap canvas { pointer-events: none; }
#three, canvas.three { width: 100%; height: 560px; display: block; }
.legend span { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.legend i { width: 14px; height: 3px; display: inline-block; border-radius: 2px; }
.hud { position: absolute; left: 10px; bottom: 10px; color: #dbe3ec; font-size: 12px; background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 4px; pointer-events: none; }
.notes { margin: 8px 0 0; padding-left: 18px; }
.notes li { margin: 4px 0; }
.kpi2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .kpi2 { grid-template-columns: 1fr; } }
.conclusion { font-size: 15px; margin: 6px 0 14px; }
.err { color: var(--bad); }
.tag.raw { color: #48525d; border-color: #c9ced4; background: #f1f3f5; }
.tag.ours { color: #1f5fd1; border-color: #a9c6f5; background: #eef4ff; }
.tag.ref { color: #fff; border-color: #6b7580; background: #6b7580; }
.src { display: grid; gap: 4px; margin: 0 0 14px; padding: 10px 14px; }
.src .tag { margin: 0 6px 0 0; }
.legend i.dash { background: repeating-linear-gradient(90deg, #e6e6e6 0 4px, transparent 4px 7px); }
/* 上传页 */
.btn, button { display: inline-block; padding: 5px 12px; border: 1px solid #c9ced4; border-radius: 6px; background: #fff; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.btn:hover, button:hover { background: #f0f4fb; text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
button.danger { color: var(--bad); border-color: #e7b3ad; }
.upbox { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0; }
.bar-outer { flex-basis: 100%; height: 6px; background: #e3e6ea; border-radius: 3px; overflow: hidden; }
.bar-inner { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.upgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 18px; }
@media (max-width: 900px) { .upgrid { grid-template-columns: 1fr; } }
tr.sel td { background: #eaf1ff; }
.st { display: inline-block; padding: 0 7px; border-radius: 9px; font-size: 12px; line-height: 20px; }
.st-wait { background: #eef0f3; color: #6b7580; } .st-run { background: #e6efff; color: #1f5fd1; } .st-ok { background: #e7f7ee; color: var(--good); }
.st-skip { background: #fff4e0; color: var(--warn); } .st-fail { background: #fdecea; color: var(--bad); }
table.steps td { white-space: normal; }
pre.log { max-height: 360px; overflow: auto; background: #0e141b; color: #c9d1da; padding: 10px 12px; border-radius: 6px; font-size: 11px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; }
/* 动作标签修正 */
.lab-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 14px; margin-bottom: 12px; align-items: start; }
@media (max-width: 900px) { .lab-top { grid-template-columns: 1fr; } }
.lab-video video { width: 100%; max-height: 440px; display: block; background: #000; cursor: pointer; }
.lab-video .hud { bottom: 8px; }
.lab-side .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0; }
.lab-side .sp { flex: 1; }
.lab-side input[type=number] { width: 80px; } .lab-side input[list] { width: 180px; }
.lab-side input { font: inherit; padding: 2px 6px; border: 1px solid #c9ced4; border-radius: 4px; }
.lab-side hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.keys { line-height: 1.9; margin-top: 6px; }
#tl { width: 100%; display: block; }
#segbox { min-height: 160px; }
/* 语言切换 */
.top .sp { flex: 1; }
.langsw { display: inline-flex; border: 1px solid #3a4655; border-radius: 6px; overflow: hidden; }
.langsw button { border: 0; border-radius: 0; background: transparent; color: #aeb8c4; padding: 3px 10px; font-size: 12px; }
.langsw button:hover { background: #222c38; }
.langsw button.on { background: #e8edf3; color: #111821; }
.warnbox { border-color: #f0cf8f; background: #fff7e6; color: #6b4a00; margin: 10px 0; }
.warnline { color: var(--warn); margin-top: 4px; }

/* ---------- 客户旅程（ROB-43） ---------- */
.subtabs { display: flex; gap: 4px; margin: 0 0 10px; }
.subtabs a { padding: 3px 12px; border-radius: 14px; color: var(--muted); border: 1px solid var(--line); background: #fff; font-size: 13px; }
.subtabs a.on { color: #fff; background: #3a4654; border-color: #3a4654; }
.vcards { display: grid; gap: 10px; }
.vcard { padding: 12px 16px; }
.vhead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; }
.vhead .vname { font-weight: 600; font-size: 15px; }
.vhead .sp, .revrow .sp { flex: 1; }
.jbar { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0; counter-reset: s; }
.jbar .js a { display: block; height: 100%; padding: 6px 10px 7px; border-radius: 6px; border: 1px solid var(--line); background: #f7f8fa; color: var(--fg); position: relative; text-decoration: none; }
.jbar .js a:hover { border-color: var(--accent); }
.jbar .jn { display: inline-block; width: 18px; height: 18px; border-radius: 9px; background: #c9ced4; color: #fff; font-size: 11px; line-height: 18px; text-align: center; margin-right: 6px; }
.jbar .jt { font-weight: 600; font-size: 13px; }
.jbar .jsub { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbar .jprog { display: block; height: 4px; background: #e3e6ea; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.jbar .jprog i { display: block; height: 100%; background: var(--accent); }
.jbar .ok a { background: #eefaf2; border-color: #b7e2c6; } .jbar .ok .jn { background: var(--good); }
.jbar .warn a { background: #fff8ea; border-color: #f0cf8f; } .jbar .warn .jn { background: var(--warn); }
.jbar .fail a { background: #fdf0ee; border-color: #efb8b0; } .jbar .fail .jn { background: var(--bad); }
.jbar .run a { background: #eef4ff; border-color: #a9c6f5; } .jbar .run .jn { background: var(--accent); }
.jbar .cur a { box-shadow: 0 0 0 2px var(--accent) inset; }
@media (max-width: 760px) { .jbar { grid-template-columns: 1fr; } }
section h2 { scroll-margin-top: 10px; }
.qctop { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.verdict { font-size: 18px; font-weight: 700; padding: 2px 14px; border-radius: 6px; }
.verdict.ok { background: #e7f7ee; color: var(--good); } .verdict.warn { background: #fff4dc; color: var(--warn); } .verdict.fail { background: #fdeaea; color: var(--bad); }
.qcgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .qcgrid { grid-template-columns: 1fr; } }
.qcgrid video { width: 100%; border-radius: 6px; background: #000; }
.qcgrid h3, .card h3 { font-size: 14px; margin: 14px 0 6px; }
.meters { display: flex; flex-wrap: wrap; gap: 10px; }
.meter { flex: 1 1 120px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
.meter b { font-size: 20px; display: block; }
b.ok { color: var(--good); } b.warn { color: var(--warn); } b.fail { color: var(--bad); }
.strip { margin-top: 12px; position: relative; }
.srow { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 8px; margin: 2px 0; }
.srow canvas { width: 100%; height: 14px; image-rendering: pixelated; cursor: pointer; border-radius: 2px; }
.saxis { display: flex; justify-content: space-between; }
.strip::after { content: ''; position: absolute; top: 0; bottom: 18px; width: 2px; background: #111; left: calc(128px + (100% - 128px) * var(--curf, 0)); }
table.periods td { white-space: normal; }
table.periods tr.sel td { background: #eaf1ff; }
.consent { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; margin: 8px 0; }
.revrow { display: flex; align-items: center; gap: 14px; }
.bar-outer.big { height: 10px; flex: 1; border-radius: 5px; }
table.kv td { white-space: normal; }
table.kv td:first-child { color: var(--muted); width: 1%; white-space: nowrap; }
table.kv code { word-break: break-all; }
details.where table { margin-top: 4px; }

/* ---------- 精简（ROB-44） ---------- */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.row h1 { margin-right: 4px; }
.row .sp { flex: 1; }
.tip { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #b9c0c8; color: var(--muted);
  font-size: 10px; line-height: 1; cursor: help; position: relative; vertical-align: 1px; font-weight: 600; background: #fff; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; z-index: 30; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
  width: max-content; max-width: 320px; white-space: normal; text-align: left; font-weight: 400; font-size: 12px; line-height: 1.5;
  background: #1d232b; color: #fff; padding: 8px 10px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.panel .tip { background: transparent; border-color: #6b7580; color: #c9d1da; }
.panel .tip:hover::after { left: auto; right: 0; transform: none; }
.wbhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 12px; }
.wbhead h1 { margin: 0; }
.wbhead .upbox { margin: 0; padding: 8px 12px; }
.empty { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; background: #fff; }
.vcard { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; }
.thumb { display: block; width: 132px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: #dfe3e8; }
.vtitle { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.vtitle .thumb { width: 96px; }
.vtitle h1 { margin: 0; }
.meter.mlink { display: flex; align-items: center; justify-content: center; border-style: dashed; }
.chip { display: inline-block; padding: 1px 10px; border-radius: 12px; background: #f0f2f5; font-size: 12px; }
.qctop { margin-bottom: 10px; }
.eptiles { margin: 10px 0; }
details.warnfold > summary { margin: 4px 0 10px; color: var(--warn); }
details.warnfold u { color: var(--muted); text-decoration: underline dotted; margin-left: 6px; }
details.techd > summary { margin: 14px 0 6px; }
.iconbtn { width: 24px; height: 24px; padding: 0; border-radius: 50%; font-weight: 600; }
.helpov { position: fixed; inset: 0; background: rgba(15, 20, 27, .45); z-index: 50; display: flex; align-items: center; justify-content: center; }
.helpov[hidden] { display: none; }
.helpcard { max-width: 640px; width: calc(100% - 32px); }

/* 顶栏在窄屏下不折字（ROB-44 补） */
.top .brand, .top nav a, .langsw button { white-space: nowrap; }
.top nav { display: flex; flex-wrap: nowrap; }
.top .sp { flex: 1; min-width: 0; }
.langsw { display: inline-flex; flex-wrap: nowrap; flex-shrink: 0; }
@media (max-width: 900px) {
  .top { gap: 12px; padding: 10px 14px; }
  .top .brand { font-size: 14px; }
  .top nav a { margin-right: 10px; }
}
@media (max-width: 600px) { .top .brand { display: none; } }

/* ---------- 技术评测指标卡（ROB-45） ---------- */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 10px 0 6px; }
@media (max-width: 1100px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stages { grid-template-columns: 1fr; } }
.stage { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; }
.stage .sk { font-size: 13px; font-weight: 600; color: #48525d; }
.stage .sbig { font-size: 28px; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stage .ssub { font-size: 12px; color: var(--fg); }
.stage .scmp { font-size: 12px; color: #48525d; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.stage .sfoot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.stage .sref { font-size: 11px; color: var(--muted); }
.sbadge { display: inline-block; font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 9px; font-weight: 600; }
.sbadge.ok { background: #e7f7ee; color: var(--good); }
.sbadge.human { background: #fff4dc; color: var(--warn); }
.sbadge.hw { background: #fdeaea; color: var(--bad); }

/* 3D 近景 / 全景切换 */
.segbtn { display: inline-flex; border: 1px solid #3a4655; border-radius: 6px; overflow: hidden; }
.segbtn button { border: 0; border-radius: 0; background: transparent; color: #aeb8c4; padding: 1px 10px; font-size: 12px; }
.segbtn button:hover { background: #222c38; }
.segbtn button.on { background: #e8edf3; color: #111821; }

/* ---------- 验收（ROB-46） ---------- */
.accgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .accgrid { grid-template-columns: 1fr; } }
.accvid { position: sticky; top: 12px; }
.accvid video { width: 100%; display: block; background: #000; }
.acctab td { vertical-align: middle; }
.acctab tr.pass td { background: #f3fbf6; }
.acctab tr.reject td, .acctab tr.reject + tr.note td { background: #fdf3f1; }
.acctab tr.cur td { box-shadow: inset 0 0 0 9999px rgba(47, 111, 228, .06); }
.acctab tr.note td { border-top: 0; padding-top: 0; }
.acctab td.acts button { margin-right: 4px; }
.acctab button.ok { color: var(--good); border-color: #9fd8b6; }
.acctab button.no, button.no { color: var(--bad); border-color: #efb8b0; }
.acctab input { flex: 1; min-width: 160px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.hand { display: inline-block; padding: 0 8px; border-radius: 9px; font-size: 12px; color: #fff; }
.hand.left { background: #36b45f; } .hand.right { background: #e8851e; }
.accfoot { margin-top: 12px; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); padding: 7px 16px; }
button.primary:disabled { background: #c9ced4; border-color: #c9ced4; opacity: 1; }

/* ---------- 交付物视图（ROB-48） ---------- */
.dlhead { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.dlhead b { font-size: 16px; }
.dlgrid { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .dlgrid { grid-template-columns: 1fr; } .dllist { max-height: 300px; } }
.dllist { display: flex; flex-direction: column; gap: 6px; max-height: 760px; overflow-y: auto; padding-right: 2px; }
.dlep { display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; font: inherit; color: inherit; }
.dlep:hover { border-color: var(--accent); }
.dlep.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.dlep img { width: 84px; aspect-ratio: 1; object-fit: cover; border-radius: 5px; flex: none; background: var(--line); }
.dlep-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.dlep-b .row { gap: 6px; flex-wrap: nowrap; }
.dlins { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dlmain { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.viewer.no3d { grid-template-columns: 1fr; }
.viewer.no3d .p3d { display: none; }
.dlcap { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); max-width: 90%; padding: 5px 12px; border-radius: 6px;
  background: rgba(0, 0, 0, .66); color: #fff; font-size: 15px; line-height: 1.35; text-align: center; pointer-events: none; }
.dlbadges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; pointer-events: none; }
.gb { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, .5); color: #ddd; border: 1.5px solid var(--c); }
.gb.on { background: var(--c); color: #111; font-weight: 600; }
.dlloop { display: inline-block; margin-top: 4px; color: #cfd6de; }
.dltl canvas { width: 100%; height: 150px; display: block; cursor: pointer; }
.dlqc { gap: 8px; align-items: center; flex-wrap: wrap; }
.dlqc button.ok { background: var(--good); color: #fff; border-color: var(--good); }
.dlqc button.no { background: var(--card); color: var(--bad); border-color: var(--bad); }
.dlrej { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.dlrej #rnote { flex: 1; min-width: 200px; }
.chipr { border: 1px solid var(--line); border-radius: 14px; padding: 3px 10px; cursor: pointer; font-size: 13px; }
.chipr:has(input:checked) { border-color: var(--bad); color: var(--bad); }
.chipr input { margin: 0 3px 0 0; }
.dlfields td:nth-child(2) code { font-size: 11px; }
/* ROB-50：视频页只留一个播放器——质检缩成标题旁的徽章，问题时段画在交付物时间轴最上面 */
.vtitle .qcbadge { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qcbadge .verdict { font-size: 15px; }
.qcn { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.qcn b { font-size: 17px; }
.qcn b.ok { color: var(--good); } .qcn b.warn { color: var(--warn); } .qcn b.fail { color: var(--bad); }
.qcbadge .tip:hover::after, .qcbadge .tip:focus::after { white-space: pre-line; max-width: 440px; left: auto; right: 0; transform: none; }
.dlall { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px dashed var(--line); border-radius: 8px; background: var(--card); cursor: pointer; font: inherit; color: inherit; font-weight: 600; }
.dlall:hover, .dlall.sel { border-color: var(--accent); border-style: solid; }
.dlall.sel { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.dlqcw { align-self: flex-start; font-size: 11px; color: var(--bad); background: #fdeaea; border-radius: 4px; padding: 0 6px; }
@media (max-width: 700px) { .vtitle { flex-wrap: wrap; } .vtitle .qcbadge { margin-left: 0; } }
.dlloop[hidden] { display: none; }

/* 静态展示版页脚署名（ROB-49） */
footer.attrib { max-width: 1400px; margin: 24px auto 16px; padding: 10px 16px 0; border-top: 1px solid var(--line); }
