/* AI-BOQ 专业版主题：工程算量软件风格 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #2B6FD4; --primary-dark: #1E4FA0; --accent: #0F9AA8;
  --bg: #EEF1F6; --panel: #FFFFFF; --panel2: #F7F9FC;
  --border: #D9DFE8; --border2: #C9D2E0;
  --text: #1F2733; --muted: #6B7787;
  --ok: #18A058; --warn: #E6A23C; --err: #D03050; --info: #2B6FD4;
  --mono: Consolas, "Courier New", monospace;
  --shadow: 0 2px 8px rgba(31,39,51,.08);
}
html, body { height: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; background: var(--bg); color: var(--text); font-size: 13px; display: flex; flex-direction: column; }

/* ---------- 顶栏 ---------- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 18px; height: 52px; background: linear-gradient(90deg, #1E3A5F, #2B6FD4); color: #fff; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.logo { font-size: 26px; color: #9FD0FF; font-weight: 800; }
/* ★ 云策 logo（去白底 PNG，深色顶栏直接使用，无需底衬） */
.logo-img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 34px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.28)); }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .5px; }
.brand-sub { font-size: 10.5px; color: #BBD4EE; margin-top: 1px; }
.tabs { display: flex; gap: 2px; flex: 1; justify-content: center; align-items: center; }
.tabs button { border: none; background: transparent; color: #D6E4F5; padding: 7px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.tabs button:hover { background: rgba(255,255,255,.12); color: #fff; }
.tabs button.active { background: rgba(255,255,255,.2); color: #fff; font-weight: 600; }
/* 导航按工作流分组（视觉分组，不改变视图 ID/结构） */
.tabs .tab-group { display: flex; gap: 2px; align-items: center; }
.tabs .tab-group + .tab-group { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.25); }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.badge { background: rgba(255,255,255,.16); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 11.5px; white-space: nowrap; }
.badge-ai { background: rgba(159,208,255,.22); }
.badge-ai.on { background: rgba(46,204,113,.35); }

/* ---------- 主体与状态栏 ---------- */
main { flex: 1; overflow: auto; padding: 16px 18px; }
.statusbar { height: 28px; background: #1F2733; color: #9FB2C8; display: flex; align-items: center; gap: 22px; padding: 0 18px; font-size: 11.5px; flex-shrink: 0; }

/* ---------- 识别流程步骤条（上传页） ---------- */
.flow-steps { display: flex; gap: 10px; margin-bottom: 14px; }
.flow-step { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; box-shadow: var(--shadow); }
.flow-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--border2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.flow-step b { display: block; font-size: 12.5px; }
.flow-step i { display: block; font-size: 10.5px; color: var(--muted); font-style: normal; }
.flow-step.active .n { background: var(--primary); }
.flow-step.done .n { background: var(--ok); }
.flow-step.active { border-color: var(--primary); }

/* 参数折叠（上传页高级参数） */
.param-more { margin-top: 12px; border: 1px dashed var(--border2); border-radius: 6px; padding: 8px 10px; }
.param-more summary { cursor: pointer; font-size: 12px; color: var(--primary); user-select: none; }
.param-group-title { font-size: 11.5px; color: var(--muted); font-weight: 600; margin: 12px 0 2px; border-top: 1px solid var(--border); padding-top: 8px; }

/* 识别流程列表（上传页右侧卡） */
.flow-list { display: flex; flex-direction: column; gap: 8px; }
.flow-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #4A5568; line-height: 1.5; }
.flow-item .tag { flex-shrink: 0; margin-top: 1px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.section-title { font-size: 17px; font-weight: 700; margin: 4px 0 12px; display: flex; align-items: center; gap: 10px; }
.section-title .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.btn { border: 1px solid var(--border2); background: var(--panel); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--text); transition: .15s; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { color: var(--err); border-color: #E5B8C2; }
.btn.success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.sm { padding: 3px 9px; font-size: 11.5px; border-radius: 5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.tool { padding: 4px 10px; font-size: 12px; }
.btn.tool.active { background: var(--primary); color: #fff; border-color: var(--primary); }

input, select, textarea { width: 100%; padding: 6px 9px; border: 1px solid var(--border2); border-radius: 6px; font-size: 12.5px; font-family: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(43,111,212,.15); }
label { display: block; font-size: 11.5px; color: var(--muted); margin: 7px 0 3px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mono { font-family: var(--mono); }

table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { border-bottom: 1px solid var(--border); padding: 6px 9px; text-align: left; vertical-align: top; }
th { background: var(--panel2); font-weight: 600; color: #4A5568; white-space: nowrap; position: sticky; top: 0; }
tr:hover td { background: #F4F8FF; }
tr.selected td { background: #E8F0FE; }
/* ★ 操作列与标签不换行，避免行高被按钮换行拉高（图纸库列较多时尤其明显） */
td.row { white-space: nowrap; flex-wrap: nowrap; }
td.row .btn { margin-right: 2px; }
/* ★ 宽表横向滚动容器：列多时（图纸库 9 列）保证操作按钮一行显示，必要时左右滑动 */
.table-scroll { overflow-x: auto; }
.table-scroll > table { min-width: 1080px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; background: #E9EEF6; color: #3D4F66; white-space: nowrap; }
.tag.ok { background: #E3F7EC; color: var(--ok); }
.tag.warn { background: #FDF1DD; color: #A9791F; }
.tag.err { background: #FDE8EC; color: var(--err); }
.tag.blue { background: #E8F0FE; color: var(--info); }
.conf { display: inline-block; width: 42px; text-align: center; border-radius: 10px; font-size: 11px; padding: 1px 0; }
.conf.high { background: #E3F7EC; color: var(--ok); }
.conf.mid { background: #FDF1DD; color: #A9791F; }
.conf.low { background: #FDE8EC; color: var(--err); }
.status-pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 11px; }
.status-pending { background: #FDF1DD; color: #A9791F; }
.status-reviewed { background: #E3F7EC; color: var(--ok); }
.status-edited { background: #E8F0FE; color: var(--info); }

.toast { position: fixed; top: 62px; right: 18px; background: #1F2733; color: #fff; padding: 9px 16px; border-radius: 6px; z-index: 300; opacity: 0; transition: .25s; font-size: 12.5px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.toast.show { opacity: 1; }
.toast.err { background: var(--err); }

.banner { padding: 9px 13px; border-radius: 6px; margin: 7px 0; font-size: 12.5px; }
.banner.warn { background: #FDF1DD; color: #8A6D1F; border: 1px solid #F3DFB4; }
.banner.err { background: #FDE8EC; color: var(--err); border: 1px solid #F5C6CF; }
.banner.ok { background: #E3F7EC; color: var(--ok); border: 1px solid #BFE8D0; }
.banner.info { background: #E8F0FE; color: var(--info); border: 1px solid #C5D9F8; }

.upload-zone { border: 2px dashed var(--border2); border-radius: 10px; padding: 34px; text-align: center; cursor: pointer; transition: .2s; background: #FAFCFE; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--primary); background: #F0F6FF; }
.upload-zone .icon { font-size: 32px; color: var(--primary); }
.upload-zone .hint { color: var(--muted); font-size: 11.5px; margin-top: 8px; }

.file-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 6px; background: #fff; }
.file-item .name { flex: 1; font-size: 12.5px; }

.progress-bar { height: 6px; background: #E3E8F0; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.progress-bar .fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .3s; }

.calc-book { background: #F7F9FC; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: 12px; }
.calc-book .line { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px dashed var(--border); }
.calc-book .line:last-child { border: none; }

.num-big { font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-card { text-align: center; padding: 12px; }
.stat-card .label { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

.empty { text-align: center; color: var(--muted); padding: 36px; font-size: 13px; }
.modal-mask { position: fixed; inset: 0; background: rgba(20,28,40,.45); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal { background: #fff; border-radius: 10px; padding: 18px 20px; width: 600px; max-width: 95vw; max-height: 88vh; overflow: auto; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.modal h4 { margin-bottom: 12px; font-size: 15px; }
.filter-bar { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { width: auto; }
.small-input { width: 90px; }

/* ---------- 图纸工作台（三窗格） ---------- */
.workspace { display: grid; grid-template-columns: 250px 1fr 330px; gap: 10px; height: calc(100vh - 130px); min-height: 480px; }
.workspace .pane { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.pane-header { padding: 8px 12px; background: var(--panel2); border-bottom: 1px solid var(--border); font-weight: 600; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.pane-body { flex: 1; overflow: auto; padding: 8px; }
.pane-body.tight { padding: 0; }

.layer-item { display: flex; align-items: center; gap: 7px; padding: 3px 6px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.layer-item:hover { background: #F0F4FA; }
.layer-item .swatch { width: 14px; height: 6px; border-radius: 2px; border: 1px solid rgba(0,0,0,.15); flex-shrink: 0; }
.layer-item .lname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-item .lgroups { font-size: 10px; color: var(--muted); }
.layer-group-title { font-size: 11px; color: var(--muted); font-weight: 700; margin: 8px 2px 3px; }
/* 图层分组图例（语义配色）：色块 = 该组绘制色，点击切换整组显隐 */
.layer-legend { padding: 6px 6px 4px; border-bottom: 1px solid #E6ECF4; margin-bottom: 4px; }
.layer-legend .lg-title { font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.layer-legend .lg-row { display: flex; flex-wrap: wrap; gap: 4px; }
.layer-legend .lg-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 1px 7px 1px 5px; border: 1px solid #DDE5F0; border-radius: 10px; cursor: pointer; user-select: none; background: #fff; }
.layer-legend .lg-chip:hover { border-color: var(--primary, #2B6FD4); }
.layer-legend .lg-chip i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; border: 1px solid rgba(0,0,0,.12); }
.layer-legend .lg-chip b { font-weight: 600; color: #4A5A70; }
.layer-legend .lg-chip.off { opacity: .42; text-decoration: line-through; }
.layer-legend .lg-stat { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.layer-legend .lg-stat b { color: #2B4B75; }
/* 图层显示方式开关（语义配色 / 清理杂乱线层 / 文字标注）——放左栏，避免工具栏多占一行压画布高度 */
.layer-display-opts { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 2px 6px 6px; border-bottom: 1px solid #E6ECF4; }
.layer-display-opts label { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); cursor: pointer; }

.viewer-wrap { position: relative; flex: 1; overflow: hidden; background: #fff; }
.viewer-wrap canvas { display: block; }
.viewer-toolbar { display: flex; gap: 5px; align-items: center; padding: 6px 8px; background: var(--panel2); border-bottom: 1px solid var(--border); flex-wrap: wrap; flex-shrink: 0; }
.viewer-toolbar .sep { width: 1px; height: 18px; background: var(--border2); margin: 0 4px; }
.viewer-status { display: flex; gap: 14px; padding: 3px 10px; background: var(--panel2); border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); flex-shrink: 0; }
.viewer-status .coord { font-family: var(--mono); }

.viewer-info { position: absolute; right: 8px; top: 8px; background: rgba(255,255,255,.94); border: 1px solid var(--border); border-radius: 6px; padding: 7px 9px; font-size: 11px; max-width: 300px; max-height: 60%; overflow: auto; box-shadow: var(--shadow); }
.viewer-info b { color: var(--text); }

/* 右窗格 tab */
.right-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--panel2); flex-shrink: 0; }
.right-tabs button { flex: 1; border: none; background: transparent; padding: 7px 2px; font-size: 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.right-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.right-body { flex: 1; overflow: auto; padding: 10px; }

.draw-tree-item { display: flex; align-items: center; gap: 7px; padding: 4px 7px; border-radius: 5px; cursor: pointer; font-size: 12.5px; }
.draw-tree-item:hover { background: #F0F4FA; }
.draw-tree-item.active { background: #E8F0FE; color: var(--info); font-weight: 600; }
.draw-tree-item .status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.ok { background: var(--ok); } .status-dot.parsed { background: var(--warn); } .status-dot.failed { background: var(--err); }

.ai-result-block { margin-bottom: 10px; }
.ai-result-block h5 { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
code { background: #F0F3F8; padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 11.5px; }
.detail-toggle { cursor: pointer; color: var(--info); }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 200px 1fr; height: auto; }
  .workspace .pane-right { grid-column: 1 / -1; }
}
@media (max-width: 800px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .stat-grid { grid-template-columns: repeat(2,1fr);} .tabs { display: none; } }

/* ---------- 系统设置：多模型库 ---------- */
.model-header { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.model-item { border: 1px solid var(--border); border-radius: 8px; padding: 8px; margin-top: 8px; background: #FBFCFE; }
.model-row { display: flex; gap: 6px; margin: 4px 0; align-items: center; }
.model-row input { flex: 1; }
.model-row .btn { white-space: nowrap; }
.fn-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12.5px; }
.fn-table th, .fn-table td { border: 1px solid var(--border); padding: 5px 8px; text-align: left; }
.fn-table th { background: #F4F7FB; font-weight: 600; }
.fn-table select { width: 100%; }
.fn-table .muted { color: var(--muted); font-size: 11.5px; }
.ok-tag { background: #E8F7EE !important; color: #18A058 !important; border-color: #B7E6CB !important; }
.m-empty { padding: 8px; font-size: 12px; color: var(--muted); }

/* ---------- 首页总览仪表盘 ---------- */
.dash-stats { grid-template-columns: repeat(5, 1fr); }
.dash-stats .num-big { font-size: 26px; }
@media (max-width: 800px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 智能算量流水线：进度展示（动态有序） ---------- */
.pl-step { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px;
  border-left: 3px solid transparent; transition: background .35s ease, border-color .35s ease, opacity .35s ease, transform .25s ease; }
.pl-step + .pl-step { margin-top: 2px; }
/* 待执行：淡化 */
.pl-step.pending { opacity: .45; }
/* 进行中：高亮 + 左侧强调条 + 轻微呼吸动画 */
.pl-step.running { background: linear-gradient(90deg, rgba(43,111,212,.10), rgba(43,111,212,.02));
  border-left-color: var(--primary, #2B6FD4); opacity: 1; box-shadow: 0 1px 6px rgba(43,111,212,.10); }
.pl-step.running .pl-icon { animation: pl-spin 1.1s linear infinite; }
/* 完成：绿色左条 + 图标弹入 */
.pl-step.done { border-left-color: #18A058; opacity: 1; }
.pl-step.done .pl-icon { animation: pl-pop .32s ease-out; }
.pl-step.failed { border-left-color: var(--err, #D93026); background: rgba(217,48,38,.06); opacity: 1; }
.pl-step.skipped { opacity: .72; }
.pl-icon { width: 18px; text-align: center; font-weight: 800; font-size: 13px; line-height: 20px; color: var(--muted); flex: 0 0 18px; }
.pl-step.done .pl-icon { color: #18A058; }
.pl-step.running .pl-icon { color: var(--primary, #2B6FD4); }
.pl-step.failed .pl-icon { color: var(--err, #D93026); }
.pl-body { flex: 1; min-width: 0; }
.pl-name { font-weight: 600; font-size: 13px; }
.pl-sub { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 8px; }
.pl-detail { color: var(--muted); font-size: 12px; margin-top: 3px; word-break: break-word; animation: pl-fade .4s ease-out; }
.pl-step.running .pl-detail { color: var(--primary, #2B6FD4); }
.pl-hint { opacity: .7; font-style: italic; }
.pl-chips { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.pl-chip { font-size: 10.5px; background: #EEF3FA; color: #3A5A85; border-radius: 10px; padding: 1px 8px; font-family: var(--mono, monospace); }
/* 步骤实测数据面板（④ 并发提速/覆盖、⑤ 修复 A/B 验证、① 专业参数档） */
.pl-rich { margin-top: 5px; font-size: 11.5px; line-height: 1.55; color: #46586E; background: #F6F9FD; border-left: 3px solid #C8DAF0; border-radius: 4px; padding: 4px 8px; }
.pl-rich b { color: #2B4B75; font-weight: 600; margin-right: 4px; }
.pl-rich .pl-warn { color: #C2761A; }
.pl-tbl { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 11px; }
.pl-tbl th { text-align: left; color: var(--muted); font-weight: 500; padding: 2px 6px 2px 0; border-bottom: 1px solid #E2EAF4; }
.pl-tbl td { padding: 2px 6px 2px 0; border-bottom: 1px dashed #EDF2F8; vertical-align: top; }
.pl-ok { color: #18A058; font-weight: 600; }
.pl-bad { color: #D93026; font-weight: 600; }
/* 全局后台任务坞（挂在 body 上：切页不消失、刷新可续看；只做展示，不影响服务端执行） */
.task-dock { position: fixed; right: 16px; bottom: 16px; z-index: 900; width: 306px; max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.task-dock-item { background: #fff; border: 1px solid #DCE4EF; border-left: 3px solid var(--primary, #2B6FD4); border-radius: 8px; box-shadow: 0 6px 20px rgba(24,44,74,.14); padding: 8px 10px; font-size: 12px; }
.task-dock-item.ok { border-left-color: #18A058; }
.task-dock-item.err { border-left-color: #D93026; }
.td-head { display: flex; align-items: center; gap: 6px; }
.td-kind { font-weight: 600; color: #22354E; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-pct { font-family: var(--mono, monospace); color: var(--primary, #2B6FD4); }
.task-dock-item.ok .td-pct { color: #18A058; }
.task-dock-item.err .td-pct { color: #D93026; }
.td-close { border: 0; background: transparent; color: #93A3B8; cursor: pointer; font-size: 12px; padding: 0 2px; }
.td-close:hover { color: #5A6B80; }
.td-bar { height: 4px; background: #EDF2F8; border-radius: 3px; overflow: hidden; margin: 5px 0 4px; }
.td-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2B6FD4, #48A0F0); transition: width .35s ease; }
.task-dock-item.ok .td-bar i { background: #18A058; }
.task-dock-item.err .td-bar i { background: #D93026; }
.td-stage { color: #35485F; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.td-tail { color: var(--muted); font-size: 11px; margin-top: 2px; }
.td-err { color: #C0392B; font-size: 11px; margin-top: 3px; }
/* 流水线视图内的"后台执行中"提示条（切页回来立刻知道还在跑） */
.pl-running-banner { display: flex; align-items: center; gap: 8px; background: #EAF3FF; border: 1px solid #C7DDF8; color: #1D4E89; border-radius: 8px; padding: 8px 10px; margin: 8px 0; font-size: 12px; }
.pl-running-banner .grow { flex: 1; }
.pl-running-banner .mini-bar { width: 120px; height: 5px; background: #D6E6FA; border-radius: 3px; overflow: hidden; }
.pl-running-banner .mini-bar i { display: block; height: 100%; background: #2B6FD4; transition: width .35s ease; }
.pl-state { font-size: 11px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; padding-top: 1px; }
.pl-time { margin-left: 4px; font-family: var(--mono, monospace); opacity: .85; }
.pl-state.done { color: #18A058; }
.pl-state.running { color: var(--primary, #2B6FD4); font-weight: 600; }
.pl-state.failed { color: var(--err, #D93026); font-weight: 600; }
/* 进度条：进行中条纹流动；完成渐变；失败红色 */
.progress-bar .fill.running { background-image: linear-gradient(45deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%, transparent);
  background-size: 18px 18px; animation: pl-stripes .8s linear infinite; transition: width .45s ease; }
.progress-bar .fill { transition: width .45s ease; }
.progress-bar .fill.failed { background: linear-gradient(90deg, #E4574C, #D93026); }
.pl-ov { font-size: 12px; color: var(--muted); }
.pl-ov.running { color: var(--primary, #2B6FD4); font-weight: 600; }
.pl-ov.done { color: #18A058; font-weight: 600; }
.pl-ov.failed { color: var(--err, #D93026); font-weight: 600; }
/* 引导手动执行的按钮呼吸提示 */
.pulse-attn { animation: pl-pulse 1.4s ease-in-out 3; }
@keyframes pl-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pl-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes pl-fade { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
@keyframes pl-stripes { from { background-position: 0 0; } to { background-position: 18px 0; } }
@keyframes pl-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(43,111,212,.45); } 50% { box-shadow: 0 0 0 7px rgba(43,111,212,0); } }
