/* POV 平台自定义主题(配合 Element Plus)。专业感:靛蓝主色 + 深色侧边栏 */
:root {
  --el-color-primary: #4f46e5;
  --el-color-primary-light-3: #7c75ec;
  --el-color-primary-light-5: #a5a0f2;
  --el-color-primary-light-7: #cecbf8;
  --el-color-primary-light-8: #e2e0fb;
  --el-color-primary-light-9: #f0effd;
  --el-color-primary-dark-2: #3f38b7;
  --el-border-radius-base: 8px;
  --sidebar-bg: #1b1f37;
  --sidebar-bg-2: #232a4d;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f4f6fb; color: #1f2533;
}
.muted { color: #909399; font-size: 13px; }

/* ---------------- 登录页 ---------------- */
.login-bg {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
  position: relative; overflow: hidden;
}
.login-bg::before, .login-bg::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.login-bg::before { width: 480px; height: 480px; top: -160px; right: -120px; }
.login-bg::after { width: 360px; height: 360px; bottom: -140px; left: -100px; }
.login-card {
  width: 400px; background: #fff; border-radius: 16px; padding: 38px 34px;
  box-shadow: 0 24px 60px rgba(20, 20, 60, .28); position: relative; z-index: 1;
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-logo {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-size: 28px;
  box-shadow: 0 8px 20px rgba(79,70,229,.4);
}
.login-title { font-size: 21px; font-weight: 700; margin: 0; }
.login-sub { color: #9aa0b4; font-size: 13px; margin-top: 6px; }
.login-card .el-input { height: 44px; }
.login-btn { width: 100%; height: 44px; font-size: 15px; letter-spacing: 2px; }

/* ---------------- 主框架 ---------------- */
.layout { height: 100vh; }
.sidebar {
  background: var(--sidebar-bg); display: flex; flex-direction: column;
  border-right: none; overflow: hidden;
}
.sidebar-brand {
  height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 20px;
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .5px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .dot {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); font-size: 17px;
}
.sidebar .el-menu {
  background: transparent; border-right: none; padding: 10px; flex: 1; min-height: 0;
  overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.sidebar .el-menu::-webkit-scrollbar { width: 0; height: 0; }
.sidebar .el-menu-item {
  color: #aab0c6; border-radius: 8px; margin-bottom: 4px; height: 46px;
  padding: 0 !important;   /* 内边距交给内部 a.menu-link,保证整行可点 */
}
.sidebar .el-menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .el-menu-item.is-active {
  background: linear-gradient(135deg, #4f46e5, #6d5ef0); color: #fff;
  box-shadow: 0 6px 14px rgba(79,70,229,.35);
}
.sidebar .el-menu-item.is-active,
.sidebar .el-menu-item.is-active .menu-link,
.sidebar .el-menu-item.is-active .el-icon { color: #fff; }
/* 菜单项内的真实链接:撑满整行,支持 Alt+点击新开 / 复制 URL */
.sidebar .menu-link {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 100%; padding: 0 18px;
  color: inherit; text-decoration: none; font-size: 14px;
}
/* 侧边栏底部:版本号(可点击跳转更新日志),适配深色侧边栏 */
.sidebar-foot { margin-top: auto; padding: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot .ver-link {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px;
  color: #8b91ab; font-size: 12px; text-decoration: none; transition: background .2s, color .2s;
}
.sidebar-foot .ver-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar.collapsed .sidebar-foot { padding: 10px 0; }
.sidebar.collapsed .sidebar-foot .ver-link { justify-content: center; padding: 8px 0; }

.header {
  background: #fff; border-bottom: 1px solid #eaedf3; display: flex;
  align-items: center; padding: 0 24px; height: 60px;
}
.header .page-title { font-size: 17px; font-weight: 600; }
.header .spacer { flex: 1; }
.lang-switch { margin-right: 12px; }
.user-chip {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 6px 10px; border-radius: 10px; transition: background .2s;
}
.user-chip:hover { background: #f2f3f7; }
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.user-chip .uname { font-weight: 600; font-size: 14px; line-height: 1.2; }
.user-chip .urole { color: #9aa0b4; font-size: 12px; }

.main { background: #f4f6fb; padding: 22px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h2 { margin: 0; font-size: 19px; }
.page-head .sub { color: #9aa0b4; font-size: 13px; margin-top: 4px; }
.head-actions, .table-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.head-actions { justify-content: flex-end; }
.table-actions .el-button { margin-left: 0; }
.filter-bar { margin-bottom: 8px; padding: 10px 12px 2px; background: #f8fafc; border: 1px solid #edf1f7; border-radius: 8px; }
.filter-bar .el-form-item { margin-bottom: 8px; }
.section-panel { margin-bottom: 14px; padding: 12px; background: #fff; border: 1px solid #edf1f7; border-radius: 8px; }
.section-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
/* FE-6:详情/编辑器加载中的骨架屏容器,卡片化避免首进白屏 */
.detail-skeleton { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(30,30,60,.05); }
/* FE-13:切片状态文字配色工具类(与 app.js 的 CLIP_STATUS 保持一致),替代散落的内联 color */
.c-needs   { color: #909399; }
.c-pass    { color: #67c23a; }
.c-rework  { color: #e6a23c; }
.c-invalid { color: #f56c6c; }
.metric .m-num.c-needs   { color: #909399; }
.metric .m-num.c-pass    { color: #67c23a; }
.metric .m-num.c-rework  { color: #e6a23c; }
.metric .m-num.c-invalid { color: #f56c6c; }
.metric .m-num.c-money   { color: #409eff; font-size: 26px; }

/* ---------------- 卡片/组件 ---------------- */
.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(30,30,60,.05); }
.el-card { border: none; border-radius: 12px; box-shadow: 0 2px 10px rgba(30,30,60,.05); }
.hover-card { cursor: pointer; transition: transform .15s, box-shadow .15s; margin-bottom: 16px; }
.hover-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30,30,60,.12); }
.card-title {
  font-weight: 600; margin: 8px 0 2px; font-size: 15px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 统计小卡 */
.stat-card { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.stat-card .num { font-size: 26px; font-weight: 700; line-height: 1; }
.stat-card .lbl { color: #9aa0b4; font-size: 13px; }
.stat-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
/* 切片状态分布:堆叠占比条 */
.stack-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: #f0f2f5; }
.stack-bar .seg { height: 100%; transition: width .4s ease; }
.stack-bar .seg.approved { background: #67c23a; }
.stack-bar .seg.review { background: #c0c4cc; }
.stack-bar .seg.rework { background: #e6a23c; }
.stack-bar .seg.invalid { background: #f56c6c; }

/* 结算统计:人名纵列、日期横列的日切片矩阵 */
.settlement-choice .el-radio-button__inner { padding: 7px 10px; }
.settlement-audit { display: grid; gap: 8px; margin-top: 12px; }
.settlement-audit-alert { border-radius: 8px; }
.settlement-day-col-head { display: flex; flex-direction: column; align-items: center; line-height: 1.1; white-space: nowrap; }
.settlement-day-col-head b { font-size: 12px; color: #1f2533; }
.settlement-day-col-head small { font-size: 10px; color: #9aa0b4; font-weight: 400; }
.settlement-day-col .cell {
  padding: 0; overflow: visible; text-overflow: clip;
  display: flex; justify-content: center;
}
.settlement-status-col-head .cell,
.settlement-status-col .cell {
  padding-left: 4px; padding-right: 4px; white-space: nowrap;
}
.settlement-status-col-head .cell { font-size: 12px; }
.settlement-person { display: flex; align-items: center; gap: 6px; min-width: 0; }
.settlement-person .el-tag { flex: none; }
.settlement-person-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.settlement-person-text b, .settlement-person-text small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.settlement-person-text b { color: #1f2533; font-size: 13px; }
.settlement-person-text small { color: #909399; font-size: 12px; margin-top: 2px; }
.settlement-day-cell {
  display: inline-flex; align-items: center; justify-content: center;
  width: calc(100% - 10px); min-width: 28px; max-width: 48px; height: 24px; border-radius: 5px; font-size: 12px; font-weight: 700;
  border: 1px solid #e6ebf2; color: #1f2533; background: #fff;
}
.settlement-day-cell.empty { color: #b8bfcc; background: #fafbfc; }
.settlement-day-cell.light { border-color: #dbeafe; background: #f8fbff; }
.settlement-day-cell.warm { border-color: #fde68a; background: #fffdf2; }
.settlement-day-cell.hot { border-color: #bbf7d0; background: #f6fff8; }
.settlement-day-cell.clickable { cursor: pointer; }
.settlement-day-cell.clickable:hover { border-color: var(--el-color-primary); color: var(--el-color-primary); }
/* 监控趋势折线(内联 SVG,无第三方依赖) */
.trend-chart { margin-top: 8px; }
.trend-chart svg { width: 100%; height: 180px; display: block; background: linear-gradient(#fafbfc,#f4f6f9); border-radius: 6px; }
.trend-chart svg .line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.trend-chart svg .line.backlog { stroke: #f56c6c; }
.trend-chart svg .line.thru { stroke: #409eff; }
.trend-x { display: flex; justify-content: space-between; color: #9aa0b4; font-size: 12px; margin-top: 2px; }
.trend-legend { display: flex; gap: 18px; color: #606266; font-size: 13px; margin: 4px 0; }
.trend-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.trend-legend .dot.backlog { background: #f56c6c; }
.trend-legend .dot.thru { background: #409eff; }

/* 角色 / 供应商 彩色标签(借鉴参考项目,语义化配色) */
.role-tag { padding: 3px 10px; border-radius: 6px; font-size: 12px; background: #ecf5ff; color: #409eff; white-space: nowrap; }
.role-tag.admin { background: #fdf0e6; color: #e6731c; }
.role-tag.annotator { background: #eef0ff; color: #4f46e5; }
.role-tag.reviewer { background: #f0f9eb; color: #5aa72f; }
.company-tag { padding: 3px 10px; border-radius: 6px; font-size: 12px; background: #f1f2f5; color: #6b7280; white-space: nowrap; }

.bar { display: flex; align-items: center; justify-content: space-between; }
.player { width: 100%; max-height: 440px; background: #000; border-radius: 8px; display: block; }
.clip-card { margin-bottom: 16px; }
/* ASYNC-8:切片未切好时的占位(切分中/失败),替代会黑屏/404 的播放器 */
.clip-cutting {
  width: 100%; min-height: 160px; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 18px; background: #f5f7fa;
  border: 1px dashed var(--el-border-color); color: var(--el-color-info);
}
.clip-cutting.is-failed { background: #fef0f0; border-color: var(--el-color-danger); color: var(--el-color-danger); }
.clip-cutting .cc-ic { font-size: 28px; }
.clip-cutting .cc-ic.is-loading { animation: cc-spin 1s linear infinite; }
.clip-cutting .cc-title { font-size: 14px; font-weight: 600; }
.clip-cutting .cc-sub { font-size: 12px; color: var(--el-text-color-secondary); word-break: break-all; }
.clip-cutting.is-failed .cc-sub { color: var(--el-color-danger); opacity: .85; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
.toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.life-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.life-title { font-size: 16px; font-weight: 700; line-height: 1.5; word-break: break-word; }
.life-actions { flex: none; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.life-timeline { margin: 6px 0 10px; padding-left: 4px; }
.life-edit-form { margin: 0 0 14px; padding: 12px 12px 4px; background: #f8fafc; border: 1px solid #edf1f7; border-radius: 8px; }
.life-edit-form .el-form-item { margin-bottom: 10px; }
.life-edit-actions { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.life-statbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.mono-break { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

/* ---------------- 侧边栏收起 ---------------- */
.collapse-btn { margin-right: 8px; padding: 6px; color: #5b6280; }
.sidebar.collapsed .sidebar-brand { padding: 0; justify-content: center; }
.sidebar.collapsed .menu-link { justify-content: center; padding: 0; }

/* ---------------- 标注编辑器布局(上下 / 左右) ---------------- */
.editor-wrap.horizontal { display: flex; gap: 16px; align-items: flex-start; }
.editor-wrap.horizontal .editor-video { flex: 1 1 62%; min-width: 0; }
.editor-wrap.horizontal .editor-form { flex: 1 1 38%; min-width: 280px; }
.editor-wrap.horizontal .editor-video video {
  width: 100%; max-height: 72vh; background: #000; border-radius: 8px; display: block;
}
/* 竖排:播放器高度由内联 style 控制,可拖拽;视频按比例缩放(留黑边) */
.editor-wrap.vertical .editor-video {
  width: 100%; background: #000; border-radius: 8px; overflow: hidden;
}
.editor-wrap.vertical .editor-video video {
  width: 100%; height: 100%; display: block; object-fit: contain; background: #000;
}
.editor-wrap.vertical .editor-form { margin-top: 8px; }
/* 拖拽手柄(仅竖排) */
.resize-handle {
  height: 14px; margin: 2px 0 6px; display: flex; align-items: center; justify-content: center;
  cursor: ns-resize; color: #c0c4cc; border-radius: 6px; user-select: none;
}
.resize-handle:hover { background: #f0f2f7; color: var(--el-color-primary); }
.seg-form .el-form-item { margin-bottom: 14px; }
/* 事件描述 / 分类:标签与输入框同一行(标签在左、输入框占满右侧) */
.seg-form .inline-row { display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; }
.seg-form .inline-row > .el-form-item__label { flex: none; width: auto; margin: 0 10px 0 0; padding: 0; line-height: 32px; }
.seg-form .inline-row > .el-form-item__content { flex: 1; min-width: 0; }

/* ---------------- 画面选区裁剪(裁弹幕/黑边) ---------------- */
.editor-video { position: relative; }
/* 覆盖层:非编辑态只显示红框不挡播放控件;编辑态盖住视频可拖拽。
   overflow:hidden 把框外压暗的超大 box-shadow 裁到「视频画面区」内,
   否则左右布局时 9999px 阴影会溢出到右侧/下方的按钮上(把它们也压暗)。 */
.crop-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.crop-overlay.editing { pointer-events: auto; }
/* 选区框:框外用超大 box-shadow 压暗,直观展示"只保留框内" */
.crop-box {
  position: absolute; box-sizing: border-box;
  border: 2px solid #ff4d4f; border-radius: 2px;
}
.crop-overlay.editing .crop-box { cursor: move; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); }
/* 八向缩放手柄(仅编辑态显示) */
.crop-box .ch {
  position: absolute; width: 12px; height: 12px; background: #fff;
  border: 2px solid #ff4d4f; border-radius: 50%; pointer-events: auto;
}
.crop-box .ch.nw { left: -7px; top: -7px; cursor: nwse-resize; }
.crop-box .ch.ne { right: -7px; top: -7px; cursor: nesw-resize; }
.crop-box .ch.sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.crop-box .ch.se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.crop-box .ch.n { left: 50%; top: -7px; transform: translateX(-50%); cursor: ns-resize; }
.crop-box .ch.s { left: 50%; bottom: -7px; transform: translateX(-50%); cursor: ns-resize; }
.crop-box .ch.w { left: -7px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.crop-box .ch.e { right: -7px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
/* 选区操作条 */
.crop-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* 质检概览:不可用(废片)卡片置灰提示,与正常视频区分 */
.rev-card.rev-unusable { background: #fef0f0; border-color: #fbc4c4; }
.rev-card.rev-unusable .rev-title { color: #c45656; }

/* 右侧悬浮预览面板(标注端看已提交切片时常驻可见):可拖动 + 可缩放 */
.float-preview {
  position: fixed; top: 84px; z-index: 1500;
  width: 400px; height: 320px; min-width: 260px; min-height: 200px;
  max-width: 92vw; max-height: 92vh;
  resize: both; overflow: hidden;        /* 右下角原生缩放手柄 */
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e4e7ed; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16); padding: 10px;
}
.float-preview .fp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; cursor: move; user-select: none; }
.float-preview .fp-title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-preview .fp-video { flex: 1; width: 100%; min-height: 0; border-radius: 6px; background: #000; display: block; object-fit: contain; }
.float-preview .fp-meta { margin-top: 8px; font-size: 12px; flex: none; }

/* 快捷键设置:键帽样式 */
.keycap { min-width: 110px; font-family: monospace; font-weight: 600; }

/* ---------------- 质检概览卡片 ---------------- */
.rev-card .rev-title {
  font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 42px;
}
.rev-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.rev-meta .kv { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rev-meta .kv .k { color: #9aa0b4; flex: none; }
.rev-meta .kv .v { color: #1f2533; }
/* 等高质检概览卡片:同一行卡片拉伸到一致高度,统计条底部对齐 */
.rev-col { display: flex; margin-bottom: 16px; }
.rev-col .rev-card { width: 100%; display: flex; flex-direction: column; }
.rev-col .rev-card .el-card__body { display: flex; flex-direction: column; flex: 1; }
.rev-col .rev-card .stat-strip { margin-top: auto; }
/* 质检处置:已选中的结果按钮高亮(实心),未选中为描边 */
.qc-actions { display: flex; gap: 8px; margin-top: 12px; }

/* 质检详情:左右分栏,右侧原视频面板原地横向收缩(非弹出) */
.rev-split { display: flex; gap: 16px; align-items: flex-start; }
.rev-main { flex: 1; min-width: 0; }
.rev-side {
  width: 46vw; max-width: 820px; min-width: 460px; flex: none; overflow: hidden;
  background: #fff; border: 1px solid var(--el-border-color-light); border-radius: 10px;
  position: sticky; top: 12px; max-height: calc(100vh - 120px); overflow-y: auto;
  transition: width .28s ease, opacity .2s ease, margin .28s ease;
}
.rev-split.panel-collapsed .rev-side {
  width: 0; min-width: 0; opacity: 0; border-color: transparent; margin-left: -16px;
}
/* 面板内原视频尽量大,便于看清内容 */
.rev-side-body video.player { width: 100%; max-height: 62vh; background: #000; }
.rev-side-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--el-border-color-lighter);
  font-weight: 600; white-space: nowrap; position: sticky; top: 0; background: #fff; z-index: 1;
}
.rev-side-head span { display: inline-flex; align-items: center; gap: 6px; }
.rev-side-body { padding: 14px; }
.clip-card.qc-approved { box-shadow: inset 3px 0 0 var(--el-color-success); }
.clip-card.qc-rework { box-shadow: inset 3px 0 0 var(--el-color-warning); }
.clip-card.qc-invalid { box-shadow: inset 3px 0 0 var(--el-color-danger); }
/* 切片卡等高:同一行拉伸一致,处置按钮底部对齐 */
.rev-main .el-col { display: flex; }
.rev-main .el-col > .clip-card { width: 100%; height: 100%; display: flex; flex-direction: column; }
.rev-main .clip-card .el-card__body { display: flex; flex-direction: column; flex: 1; }
/* 切片信息行:横向铺排、自动换行,不再全部竖排 */
.clip-card .clip-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.clip-card .clip-meta > div { line-height: 1.5; }
/* 处置区靠底:当前结果 + 操作按钮统一沉到卡片底部 */
.clip-card .clip-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--el-border-color-lighter); }
/* 分类/机审/质检备注/当前结果 同一行,横向铺排自动换行 */
.clip-card .clip-foot-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; }
/* 操作按钮放大、均衡占满底部一排 */
.clip-card .clip-foot .qc-actions { margin-top: 12px; display: flex; gap: 10px; align-items: center; }
.clip-card .qc-actions .el-button { margin-left: 0; }
.clip-card .qc-actions .verdict { flex: 1; min-width: 0; font-size: 15px; padding: 12px 0; }
/* 未选中的处置按钮淡化,衬托已选中项;悬停时恢复 */
.clip-card .qc-actions .verdict:not(.qc-active) { opacity: .45; }
.clip-card .qc-actions .verdict:not(.qc-active):hover { opacity: 1; }
/* 选中的处置按钮强烈突出:加粗 + 外发光环 + 轻微上浮 */
.clip-card .qc-actions .qc-active {
  font-weight: 700; transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, .18), 0 4px 10px rgba(0, 0, 0, .12);
}

/* 交叉审核详情:按质检人的扫片流程布局 */
.cross-submit-bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 10px 12px;
  background: rgba(255,255,255,.96); border: 1px solid #edf1f7; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(30,30,60,.06);
}
.cross-submit-bar .spacer { flex: 1; }
.cross-stat {
  min-width: 72px; height: 44px; padding: 6px 10px; border-radius: 7px;
  display: flex; flex-direction: column; justify-content: center;
  background: #f8fafc; border: 1px solid #edf1f7;
}
.cross-stat b { font-size: 18px; line-height: 1; color: #1f2533; }
.cross-stat span { margin-top: 3px; font-size: 12px; color: #909399; white-space: nowrap; }
.cross-stat.ok b { color: #67c23a; }
.cross-stat.warn b { color: #e6a23c; }
.cross-stat.bad b { color: #f56c6c; }
.cross-review-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 14px; align-items: start; }
.cross-review-side { position: sticky; top: 76px; display: grid; gap: 12px; max-height: calc(100vh - 110px); overflow: auto; }
.cross-panel {
  background: #fff; border: 1px solid #edf1f7; border-radius: 8px;
  padding: 12px; box-shadow: 0 2px 10px rgba(30,30,60,.04);
}
.cross-status-list {
  display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 8px 10px;
  font-size: 13px; align-items: center;
}
.cross-status-list span { color: #909399; }
.cross-status-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2533; }
.cross-original { margin-top: 10px; max-height: 300px; }
.cross-review-main { min-width: 0; }
.cross-review-main .el-col { display: flex; }
.cross-review-main .el-col > .cross-clip-card { height: 100%; }
.cross-section-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.cross-clip-card { width: 100%; margin-bottom: 14px; }
.cross-clip-card .el-card__body { display: flex; flex-direction: column; height: 100%; }
.cross-clip-video { aspect-ratio: 16 / 9; max-height: 260px; object-fit: contain; }
.cross-note-box { margin-top: 10px; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.reason-chips .el-button { margin-left: 0; }
.manual-check-card .mc-list.compact { grid-template-columns: 1fr; }
@media (max-width: 1100px) {
  .cross-review-layout { grid-template-columns: 1fr; }
  .cross-review-side { position: static; max-height: none; }
}

/* ---------------- 监控台 ---------------- */
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ops-card {
  display: flex; justify-content: space-between; gap: 12px; min-height: 96px;
  padding: 14px; border: 1px solid var(--el-border-color-lighter); border-radius: 8px;
  background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ops-card:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,30,60,.08); }
.ops-card.ops-danger { border-left: 4px solid var(--el-color-danger); }
.ops-card.ops-warning { border-left: 4px solid var(--el-color-warning); }
.ops-card.ops-primary { border-left: 4px solid var(--el-color-primary); }
.ops-card.ops-info { border-left: 4px solid var(--el-color-info); }
.ops-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ops-title { font-weight: 700; color: #1f2533; }
.ops-desc { color: #7b8193; font-size: 12px; line-height: 1.5; }
.ops-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.ops-count { font-size: 28px; line-height: 1; font-weight: 800; color: #1f2533; }
.metric { margin-bottom: 16px; }
.metric .m-lbl { color: #9aa0b4; font-size: 13px; }
.metric .m-num { font-size: 30px; font-weight: 700; line-height: 1.2; margin: 4px 0 8px; color: #1f2533; }
.metric .m-num small { font-size: 15px; color: #9aa0b4; font-weight: 500; }
.metric.metric-warn { background: #fff8f0; }
/* 失败处理抽屉:失败原因/元数据块可换行,避免长堆栈或长路径撑破布局 */
.fail-item .fail-reason { margin-top: 6px; padding: 8px 10px; background: #fef0f0; border: 1px solid #fde2e2;
  border-radius: 6px; color: #c0392b; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow: auto; }
.fail-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; color: #7b8193; font-size: 12px; }
.mini { text-align: center; padding: 10px 0; }
.mini .mini-n { font-size: 22px; font-weight: 700; color: var(--el-color-primary); }
.mini .mini-l { color: #9aa0b4; font-size: 12px; margin-top: 2px; }

/* ---------------- 预筛预览「试调参数」面板 ---------------- */
.tune-panel { margin-top: 14px; padding: 14px 16px; background: #f7f9fc; border: 1px solid #e6ebf2; border-radius: 8px; }
.tune-panel .tune-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 12px; }
.tune-panel .tune-row { display: flex; align-items: center; }
.tune-panel .tune-sens { margin-bottom: 8px; }
.tune-panel .tune-name { font-size: 13px; color: #303133; white-space: nowrap; }
.tune-panel .tune-name .val { margin-left: 6px; color: var(--el-color-primary); font-weight: 600; }
.tune-panel .tune-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px; }
.tune-panel .tune-cell { padding: 4px 0; }
.tune-panel .tune-cell .hint { font-size: 11px; color: #9aa0b4; margin-top: 2px; }
.tune-panel .tune-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px;
  padding-top: 10px; border-top: 1px dashed #e0e6ee; }

/* 预筛时间轴:原视频播放进度指针(竖线 + 顶部时间把手,在彩色段上对比当前位置) */
.sp-playhead { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .85); z-index: 6; pointer-events: none; transform: translateX(-1px); }
.sp-playhead .sp-playhead-tip { position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  background: #111; color: #fff; font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 3px; white-space: nowrap; }

/* ---------------- 我的标注卡片 ---------------- */
.task-tabs { margin-bottom: 8px; }
.task-card.dim { opacity: .7; cursor: default; }
.task-card.dim:hover { transform: none; box-shadow: 0 2px 10px rgba(30,30,60,.05); }
/* 通用等高列:给 el-col 加 .eq-col,同一行卡片高度自动一致 */
.eq-col { display: flex; }
.eq-col > .el-card { width: 100%; height: 100%; display: flex; flex-direction: column; }
.eq-col > .el-card > .el-card__body { display: flex; flex-direction: column; flex: 1; }

/* 等高卡片:同一行的卡片拉伸到一致高度,底部对齐 */
.task-col { display: flex; margin-bottom: 16px; }
.task-col .task-card { width: 100%; height: 100%; display: flex; flex-direction: column; }
.task-col .task-card .el-card__body { display: flex; flex-direction: column; flex: 1; }
/* 标题固定占 2 行高度,标题长短不影响卡片高度 */
.task-card .card-title { min-height: 42px; }
.task-card .stat-strip { margin-top: auto; padding-top: 10px; }
.task-card .card-foot { padding-top: 10px; font-size: 12px; }
/* 待办页签醒目 */
.task-tabs .tab-urgent { color: #f56c6c; font-weight: 700; }
.task-table { cursor: pointer; }

/* ---------------- 详情页面包屑(返回/路径在左) ---------------- */
.editor-head .head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.editor-head .head-right { display: flex; gap: 10px; align-items: center; flex: none; }
.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumb-link { color: var(--el-color-primary); cursor: pointer; font-size: 14px; flex: none; }
.crumb-link:hover { text-decoration: underline; }
.crumb-sep { color: #c0c4cc; flex: none; }
.crumb-title {
  font-size: 16px; font-weight: 600; color: #1f2533;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- 更新日志 ---------------- */
.changelog-page .el-card__body { max-width: 1100px; margin: 0 auto; }
.changelog-page .cl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.changelog-page .cl-ver { font-size: 16px; font-weight: 700; color: #1f2533; letter-spacing: .3px; }
.changelog-page .cl-title { color: #606266; font-size: 14px; }
.changelog-page .cl-items { margin: 10px 0 4px; padding-left: 20px; color: #4b5168; }
.changelog-page .cl-items li { line-height: 1.9; font-size: 13px; }

/* ---------------- 人工确认清单(质检详情页参考卡) ---------------- */
.manual-check-card { border-left: 3px solid var(--el-color-warning); background: #fffdf5; }
.manual-check-card .mc-head { display: flex; align-items: center; gap: 8px; color: #b88230; font-size: 14px; }
.manual-check-card .mc-head .muted { font-weight: 400; font-size: 12px; }
.manual-check-card .mc-list {
  margin: 8px 0 0; padding-left: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 18px;
}
.manual-check-card .mc-list li {
  position: relative; padding-left: 20px; line-height: 1.9; font-size: 13px; color: #4b5168;
}
.manual-check-card .mc-list li::before {
  content: "\2713"; position: absolute; left: 2px; color: var(--el-color-warning); font-weight: 700;
}
