/* ===== 全局 ===== */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1f2329;
  background: #f5f7fa;
}

/* ===== 布局 ===== */
.layout { height: 100vh; }

/* 侧边栏 */
.aside {
  background: #1f2229;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px;
}
.logo-badge {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #ff8a3d, #ff6900);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.logo-title { font-size: 15px; font-weight: 700; line-height: 1.2; }
.logo-sub { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }

.menu {
  flex: 1 1 auto;
  background: transparent !important;
  border-right: none !important;
  padding: 6px 10px;
}
.menu .el-menu-item {
  color: rgba(255,255,255,.72);
  border-radius: 8px;
  height: 44px;
  line-height: 44px;
  margin-bottom: 4px;
}
.menu .el-menu-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu .el-menu-item.is-active {
  background: linear-gradient(135deg, #ff8a3d, #ff6900);
  color: #fff;
}
.aside-foot {
  padding: 14px 16px;
  font-size: 11px;
  color: rgba(255,255,255,.35);
}

/* 顶栏 */
.header {
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.crumb-title { font-size: 16px; font-weight: 700; }
.head-right { display: flex; align-items: center; gap: 10px; }

/* 主内容 */
.main {
  background: #f5f7fa;
  padding: 20px;
  overflow-y: auto;
}

/* ===== 通用工具类 ===== */
.mb16 { margin-bottom: 16px; }
.mt12 { margin-top: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }

/* 上传 */
.up-arrow {
  font-size: 44px; color: #ff6900; line-height: 1; margin: 10px 0 6px;
}
.opt-bar {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap;
}
.file-chip {
  font-size: 13px; color: #4e5969;
  background: #f2f3f5; border-radius: 6px; padding: 6px 10px;
  max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 进度 */
.stage-line { font-size: 14px; color: #4e5969; margin-bottom: 10px; }
.logbox {
  margin: 14px 0 0; padding: 12px 14px;
  background: #0f1115; color: #c9d1d9;
  border-radius: 8px;
  font-size: 12px; line-height: 1.7;
  max-height: 260px; overflow: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  white-space: pre-wrap; word-break: break-all;
}
.result-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.progress-card { border: 1px solid #ffd9b8; }
.rec-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #ff6900; margin-right: 7px; vertical-align: middle;
  animation: rec-pulse 1.1s infinite;
}
@keyframes rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,105,0,.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,105,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,105,0,0); }
}

/* 复盘库 */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-title { font-weight: 600; color: #1f2329; }
.t-sub { font-size: 12px; color: #86909c; margin-top: 2px; }

/* 归档 */
.title-preview {
  margin-top: 4px; padding: 10px 12px;
  background: #fff7f0; border: 1px dashed #ffb07a; border-radius: 8px;
  font-size: 13px; color: #b35900;
}
.sec-h { margin: 8px 0 10px; font-size: 15px; }

/* 链接 / 设置补充 */
.lbl { font-size: 13px; color: #4e5969; font-weight: 600; }

/* 直播链接 tab */
.link-options { background: #f7f8fa; border: 1px solid #eef0f3; border-radius: 10px; padding: 14px 16px; }
.link-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.link-row:last-child { margin-bottom: 0; }
.link-start { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.link-start .el-button--primary.start-btn {
  min-width: 230px; background: #ff6900; border-color: #ff6900; font-weight: 600;
}
.link-start .el-button--primary.start-btn:hover,
.link-start .el-button--primary.start-btn:focus {
  background: #e85f00; border-color: #e85f00;
}
.link-start .el-button.start-btn.is-disabled,
.link-start .el-button.start-btn.is-disabled:hover {
  background: #ffb07a; border-color: #ffb07a; color: #fff;
}
.start-hint { font-size: 13px; color: #86909c; }
.plain-tip { margin-top: 12px; padding: 10px 14px; background: #f0f6ff;
  border: 1px solid #cfe0fb; border-radius: 8px; font-size: 13px; color: #334155; }
.plain-tip.warn { background: #fef2f2; border-color: #fbcaca; color: #a82323; }
.cookie-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.help-steps {
  padding-left: 20px; line-height: 2; font-size: 14px;
  color: #1f2329; margin: 0 0 14px;
}
.help-steps li b { color: #ff6900; }

/* 报告弹窗 */
.report-dialog .el-dialog__body { padding: 0; height: calc(100vh - 54px); }
.full-frame { width: 100%; height: 100%; border: none; display: block; background: #fff; }

/* 视觉展示 */
.visual-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.visual-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.visual-overall {
  margin: 0 0 14px; padding: 12px 14px;
  background: #fff7f0; border: 1px solid #ffd9b8; border-radius: 10px;
  font-size: 14px; color: #1f2329; line-height: 1.8;
}
.vmoment {
  display: flex; gap: 12px; padding: 7px 0; align-items: baseline;
  border-bottom: 1px dashed #eef0f3; font-size: 13px;
}
.vmoment-t {
  flex: 0 0 76px; font-weight: 700; color: #ff6900;
  font-variant-numeric: tabular-nums;
}
.vmoment-a { flex: 0 0 320px; color: #1f2329; font-weight: 600; }
.vmoment-o { color: #4e5969; }
.vdim {
  border: 1px solid #eef0f3; border-radius: 10px; padding: 12px 14px;
  margin-bottom: 12px; background: #fff; height: calc(100% - 12px);
}
.vdim-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.vdim-aspect { font-weight: 600; font-size: 14px; }
.vscore { font-size: 18px; }
.vscore i { font-style: normal; font-size: 11px; color: #86909c; }
.vscore.good { color: #16a34a; }
.vscore.mid { color: #d97706; }
.vscore.low { color: #dc2626; }
.vdim-eval { font-size: 13px; color: #4e5969; line-height: 1.7; }
.vdim-foot { margin-top: 6px; font-size: 12px; color: #86909c; line-height: 1.6; }
.vdim-foot.sug { color: #b35900; }
.vlist { padding-left: 20px; margin: 0; font-size: 14px; color: #1f2329; line-height: 2; }
.vframes { display: flex; flex-wrap: wrap; gap: 10px; }
.vframe { width: 132px; }
.vframe .el-image {
  width: 132px; height: 176px; border-radius: 8px;
  background: #f2f3f5; display: block;
}
.vframe-t {
  display: block; text-align: center; font-size: 12px;
  color: #4e5969; margin-top: 4px; font-variant-numeric: tabular-nums;
}
.visual-empty { text-align: center; color: #86909c; font-size: 14px; padding: 30px 0; }

/* 任务队列（多任务并行） */
.qrow { padding: 10px 0 14px; border-bottom: 1px solid #f0f2f5; }
.qrow:last-child { border-bottom: none; padding-bottom: 4px; }
.qrow-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.q-id { font-weight: 700; color: #ff6900; font-size: 13px; }
.q-stage { font-size: 13px; color: #4e5969; flex: 1 1 auto; min-width: 160px; }
.q-actions { display: flex; align-items: center; gap: 2px; }
.qlog { max-height: 180px; margin-top: 10px; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9cdd4; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
