@charset "UTF-8"; /* 托管服务器返回的 CSS 不带字符集，声明一下，免得中文和符号被当成别的编码显示成乱码 */
/* ============================================================
   tech.css —— 技术体检：体检 / 修复 / 对比 / 历史
   ============================================================ */

/* ---------- 体检 ---------- */
.verdict { padding: 4px 0 14px; }
.verdict-title { font-size: 20px; font-weight: 700; line-height: 1.35; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.verdict-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 15px; font-weight: 700; }
.verdict-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vnum { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-right: 4px; }
.verdict-icon.pass { background: var(--brand); color: var(--on-brand); }  /* 通过：荧光绿实心 */
.verdict-icon.warn { background: var(--warn-bg); color: var(--warn); }
.verdict-icon.fail { background: var(--fail); color: var(--on-fail); }    /* 不通过：黑（白）实心 */
.verdict-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.verdict-meta .hint { margin-left: 4px; }

.checks { display: flex; flex-direction: column; }
.check { border-top: 1px solid var(--line); }
.check summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 2px;
}
.check summary::-webkit-details-marker { display: none; }
.check summary:hover { background: color-mix(in srgb, var(--fill) 60%, transparent); }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--na); }
.s-pass .dot { background: var(--brand); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.s-warn .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--warn); } /* 警告：空心灰圈 */
.s-fail .dot { background: var(--fail); }
.s-info .dot { background: var(--info); }
.c-title { font-weight: 600; font-size: 13.5px; }
.c-val { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12.5px; }
.c-msg { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.c-side { display: flex; align-items: center; gap: 6px; padding-top: 1px; }
.c-fix { font-size: 11.5px; color: var(--accent); background: var(--accent-weak); padding: 0 8px; border-radius: 999px; line-height: 20px; border: 0; cursor: pointer; font-family: inherit; }
.c-detail { margin: 0 0 12px 22px; padding: 8px 10px; background: var(--fill); border-radius: var(--radius-sm); font-size: 12px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.c-detail b { font-weight: 500; color: var(--text); }
.fold { margin-top: 4px; border-top: 1px solid var(--line); }
.fold > summary { cursor: pointer; padding: 11px 2px; color: var(--muted); font-size: 13px; list-style: none; display: flex; align-items: center; gap: 6px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: "\203A"; display: inline-block; transition: transform .15s; font-size: 15px; width: 10px; }
.fold[open] > summary::before { transform: rotate(90deg); }
.foot { margin: 14px 0 0; font-size: 12px; color: var(--subtle); }

/* ---------- 修复 ---------- */
.fix-sec-title { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.fix-items { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.fix-item { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 10px; padding: 10px 12px; cursor: pointer; border-top: 1px solid var(--line); align-items: start; }
.fix-item:first-child { border-top: 0; }
.fix-item:hover { background: var(--fill); }
.fix-item input { margin-top: 3px; }
.fix-item.disabled { cursor: default; opacity: .55; }
.fix-item.disabled:hover { background: none; }
.f-title { font-weight: 600; font-size: 13.5px; }
.f-desc { color: var(--muted); font-size: 12.5px; }
.f-group { font-size: 11.5px; color: var(--subtle); padding: 8px 12px 4px; background: var(--fill); border-top: 1px solid var(--line); }
.f-group:first-child { border-top: 0; }
.more { margin-bottom: 14px; }
.more > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0 10px; list-style: none; display: flex; align-items: center; gap: 6px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "\203A"; display: inline-block; transition: transform .15s; font-size: 15px; width: 10px; }
.more[open] > summary::before { transform: rotate(90deg); }
.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.extra { margin-top: 22px; }
.extra-title { font-weight: 600; }
.extra p { margin: 4px 0 10px; }
.extra .action-bar { margin-top: 10px; }
.fix-out { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--pass-bg); }
.fix-out-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fix-out-title { font-weight: 600; color: var(--pass); }
.fix-out ul { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text); }
.fix-out details { margin-top: 6px; }
.fix-out summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
details pre { white-space: pre-wrap; word-break: break-all; font-size: 11.5px; background: var(--surface); padding: 8px; border-radius: 6px; }

/* ---------- 对比 ---------- */
.sec-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 22px 0 10px; }
.sec-title .hint { font-weight: 400; }
.sec-actions { margin-left: auto; display: inline-flex; gap: 6px; font-weight: 400; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.score { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.score-title { font-size: 12px; color: var(--muted); }
.score-verdict { font-size: 16px; font-weight: 700; margin: 2px 0 8px; }
.score.pass .score-verdict { color: var(--pass); }
.score.warn .score-verdict { color: var(--warn); }
.score.fail .score-verdict { color: var(--fail); }
.score .hint { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-arrow { align-self: center; color: var(--subtle); font-size: 18px; }
.score-delta { grid-column: 1 / -1; font-size: 13px; }
.up { color: var(--pass); font-weight: 600; }
.down { color: var(--fail); font-weight: 600; }
.size-row { margin-top: 12px; padding: 10px 12px; background: var(--fill); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
#bwInput { width: 64px; padding: 2px 6px; }

.frames { display: flex; flex-direction: column; gap: 12px; }
.frame-time { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.frame-imgs { display: flex; gap: 8px; align-items: flex-start; }
.frame-imgs figure, .videos figure { margin: 0; flex: 1 1 0; min-width: 0; text-align: center; }
.frame-imgs img { max-width: 100%; max-height: 300px; border-radius: 6px; background: #000; }
/* 叠放对比：拖动品牌色分隔线，左边是处理前、右边是处理后 */
.frame-cmp { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #000;
  cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.frame-cmp img { display: block; max-width: 100%; max-height: 340px; pointer-events: none; }
.frame-cmp .fc-before { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.fc-tag { position: absolute; top: 8px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .5); padding: 1px 8px; border-radius: 999px; pointer-events: none; }
.fc-tag.l { left: 8px; }
.fc-tag.r { right: 8px; }
.frame-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; padding: 0; border: 0; background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow); cursor: ew-resize; }
.frame-handle::after { content: "\2039\203A"; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 700; letter-spacing: 1px; color: var(--on-brand); background: var(--brand);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: transform var(--dur-fast) var(--ease); }
.frame-cmp.dragging .frame-handle::after, .frame-handle:focus-visible::after { transform: scale(1.15); }
figcaption { font-size: 12px; color: var(--muted); margin-top: 2px; }

.lbar { position: relative; height: 30px; background: var(--fill); border-radius: 6px; margin-top: 24px; }
.lband { position: absolute; top: 0; bottom: 0; background: var(--pass-bg); border-left: 2px solid var(--brand); border-right: 2px solid var(--brand); }
.lmark { position: absolute; top: -4px; bottom: -4px; width: 3px; transform: translateX(-50%); border-radius: 2px; }
.lmark span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; }
.lmark.before { background: var(--warn); color: var(--warn); }
.lmark.after { background: var(--accent); color: var(--accent); }
.lmark.after span { top: 100%; bottom: auto; }
.lticks { position: relative; height: 18px; margin-top: 18px; font-size: 11px; color: var(--subtle); }
.ltick { position: absolute; transform: translateX(-50%); }

.videos { display: flex; gap: 8px; }
.videos video { width: 100%; max-height: 340px; background: #000; border-radius: 6px; }

.diff-list { display: flex; flex-direction: column; }
.diff { display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr); gap: 4px 12px; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 12.5px; }
.diff-name { font-weight: 600; }
.diff-vals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.diff-vals .arrow { color: var(--subtle); }
.diff-msg { grid-column: 2; color: var(--muted); }
.diff.better { box-shadow: inset 3px 0 0 var(--brand); padding-left: 10px; }
.diff.worse { box-shadow: inset 3px 0 0 var(--fail); padding-left: 10px; }
.diff-empty { color: var(--muted); font-size: 13px; padding: 10px 2px; border-top: 1px solid var(--line); }

/* ---------- 历史 ---------- */
.panel-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.panel-head p { margin: 0; flex: 1; }
.hist-list { display: flex; flex-direction: column; gap: 8px; }
.hist-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
/* 当前这一项：和左栏选中的步骤一样，浮起的玻璃底 + 柔和阴影，不加粗边框 */
.hist-item.current { border-color: transparent; background: var(--glass-strong); box-shadow: 0 4px 14px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .55); }
.hist-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; }
.hist-head b { font-variant-numeric: tabular-nums; }
.hist-item .actions { display: flex; gap: 6px; margin-top: 4px; }
.hist-item .arrow { color: var(--subtle); margin: 0 2px; }
.hist-sec { margin: 4px 0 0; align-items: center; }
.hist-sec .sec-title { flex: 1; }
.recent-item { flex-direction: row; align-items: center; gap: 12px; }
/* 缩略图：固定竖向小框，横屏视频居中裁切；取不到画面时显示胶片图标 */
.r-thumb { width: 44px; height: 58px; border-radius: 9px; flex: none; overflow: hidden; display: grid; place-items: center;
  background: var(--fill); color: var(--subtle); box-shadow: inset 0 0 0 1px var(--line); }
.r-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-thumb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.recent-item .r-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.recent-item .r-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .actions { margin-top: 0; }
.file-note { margin: 0; padding: 0 14px 4px; }
#historyPlayer video { width: 100%; max-height: 420px; background: #000; border-radius: 8px; margin-top: 10px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 560px) {
  .frame-imgs, .videos { flex-direction: column; }
  .score-row { grid-template-columns: minmax(0, 1fr); }
  .score-arrow { display: none; }
  .diff { grid-template-columns: minmax(0, 1fr); }
  .diff-msg { grid-column: 1; }
}

/* ---------- 体检结论旁的「一键修复」 ---------- */
.verdict-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }

/* ---------- 处理好的视频：「体检」「对比」顶部常驻的结果条 ---------- */
.fixed-bar:empty { display: none; }
.fixed-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; margin-bottom: 16px;
  border-radius: var(--radius); background: var(--pass-bg); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.fb-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px;
  background: var(--brand); color: var(--on-brand); }
.fb-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.fb-text .hint { overflow-wrap: anywhere; }

/* ---------- 一键修复弹窗 ---------- */
.dlg { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; overflow: visible; }
.dlg::backdrop { background: rgba(0, 0, 0, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg-box { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); display: flex; flex-direction: column;
  border-radius: 24px; background: var(--glass-strong); overflow: hidden; }
.dlg-box > * { position: relative; z-index: 1; }
.dlg-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 12px; }
.dlg-head > div { flex: 1; }
.dlg-head h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.02em; }
.dlg-head .hint { margin: 0; }
.dlg-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--fill); color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer; }
.dlg-x:hover { background: var(--press); color: var(--text); }
.dlg-body { padding: 4px 22px 18px; overflow-y: auto; overscroll-behavior: contain; }
.dlg-foot { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.dlg-foot .hint { flex: 1; }
.dlg .task { margin-bottom: 14px; }
.fix-item.flash { animation: fix-flash 1.6s ease-out; }
@keyframes fix-flash { 0%, 40% { background: var(--warn-bg); } 100% { background: transparent; } }

/* 完成页 */
.done-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.done-title { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
/* 完成页：解决了的问题，标签从“警告 / 不通过”翻转成“通过” */
.done-flips { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; margin: -6px 0 16px; perspective: 400px; }
.flip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.flip .badge { display: inline-block; backface-visibility: hidden; }
.btn.big { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; font-size: 15px; padding: 13px 20px; text-decoration: none; }
.done-file { text-align: center; margin: 8px 0 18px; overflow-wrap: anywhere; }
.done-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.done-plan { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.done-plan ul { padding-left: 18px; line-height: 1.6; }
.done-plan pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; background: var(--fill); padding: 10px; border-radius: 10px; }

/* 手机：弹窗贴底，像系统的底部面板 */
@media (max-width: 600px) {
  .dlg { margin: auto 0 0; width: 100%; }
  .dlg-box { width: 100vw; max-height: 88dvh; border-radius: 24px 24px 0 0; }
  .dlg-head, .dlg-body, .dlg-foot { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .fix-item.flash { animation: none; } }
