/* ============================================================
   ZX 字幕校对工具 - 网页版样式
   与 Windows 客户端 styles.css 共用同一套 token（浅色精致商务）
   ============================================================ */
:root {
  /* 品牌色（保留青绿，增强商务质感） */
  --brand-1: #0d9488;
  --brand-2: #0b7f74;
  --brand-3: #134e4a;
  --accent: var(--brand-1);
  --accent-2: #6366f1;
  --gold: #f59e0b;

  /* 中性色阶（更通透的商务浅色） */
  --bg: #f6f8fb;
  --bg-2: #eef2f7;
  --surface: #ffffff;
  --ink: #0f172a;
  --text-2: #475569;
  --muted: #94a3b8;
  --rule: #e2e8f0;
  --rule-2: #cbd5e1;

  /* 语义色 */
  --red: #e11d48;
  --red-bg: #fff1f2;
  --yellow: #d97706;
  --yellow-bg: #fffbeb;
  --green: #059669;
  --green-bg: #ecfdf5;
  --blue: #4f46e5;
  --blue-bg: #eef2ff;

  /* 渐变 */
  --grad-brand: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --grad-pro: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);

  /* 阴影（分层柔和） */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08), 0 28px 64px rgba(15, 23, 42, 0.12);
  --shadow-brand: 0 6px 20px rgba(13, 148, 136, 0.28);

  /* 圆角 */
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* 间距（8px 基准） */
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.18s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 全局隐藏滚动条：内容仍可正常滚动，各组件视觉干净统一 */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; }

body {
  background:
    radial-gradient(1200px 420px at 50% -10%, rgba(13, 148, 136, 0.06) 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "HarmonyOS Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 头部、底部固定：页面本身不滚动，只有中间区域滚动 */
  height: 100vh;
  overflow: hidden;
}

#app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 站点头部（与网站一致的品牌条） */
.site-top {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}
.site-top .brand-link { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.site-top .brand-link .logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #4f6bf7 0%, #7c5cf7 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.site-top .back-home { font-size: 13px; color: var(--muted); text-decoration: none; }
.site-top .back-home:hover { color: var(--brand-2); }

/* 工具顶栏 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-xs);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--brand-2); text-decoration: none; cursor: pointer; }
.brand:hover { color: var(--brand-1); }

.steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.step {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-pill);
  color: var(--muted); font-size: 13px; cursor: default;
  transition: all var(--dur) var(--ease);
}
.step .dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-2); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  transition: all var(--dur) var(--ease);
}
.step.active { background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0.16)); color: var(--brand-2); font-weight: 600; }
.step.active .dot { background: var(--grad-brand); color: #fff; box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14); }
.step.done { color: var(--brand-2); }
.step.done .dot { background: var(--grad-brand); color: #fff; }

main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 44px;
}

.panel { display: none; }
.panel.active { display: block; animation: fade 0.22s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.panel .sub { color: var(--text-2); margin-bottom: 20px; max-width: 720px; }

/* 拖放区 */
.dropzone {
  border: 2px dashed var(--rule-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur), transform var(--dur);
  outline: none;
  box-shadow: var(--shadow-xs);
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover {
  border-color: var(--brand-1);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(13, 148, 136, 0.09));
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.08);
}
.dropzone.dragover { transform: scale(1.008); }
.dz-icon {
  width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 16px; background: var(--grad-brand);
  color: #fff; font-weight: 800; font-size: 15px;
  letter-spacing: 0.05em; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
}
.dropzone p { font-weight: 600; }
.dropzone .hint { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* 文件信息 */
.fileinfo {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-xs);
}
.fi-row { display: flex; gap: 12px; padding: 5px 0; }
.fi-key { width: 110px; color: var(--muted); flex: none; }
.fi-val { word-break: break-all; }
.fi-val.strong { font-weight: 700; }
.warn { margin-top: 10px; color: var(--yellow); background: var(--yellow-bg); border-radius: var(--r-sm); padding: 8px 12px; font-size: 13px; }

/* 按钮 */
.btn {
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-family: inherit;
}
.btn:hover:not(:disabled):not(.primary):not(.danger) { border-color: var(--brand-1); color: var(--brand-2); transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--grad-brand); border-color: transparent; color: #fff; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--brand-2), var(--brand-3)); transform: translateY(-1px); }
.btn.danger { color: var(--red); }
.btn.danger:hover:not(:disabled) { color: var(--red); background: var(--red-bg); border-color: var(--red); }
.btn.sm { padding: 6px 13px; font-size: 12.5px; }
.nav-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* 统计 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 15px 12px; text-align: center; box-shadow: var(--shadow-xs); transition: transform var(--dur), box-shadow var(--dur); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat .num { font-size: 24px; font-weight: 800; color: var(--brand-2); }
.stat .label { font-size: 12px; color: var(--muted); margin-top: 2px; }

.progress { height: 6px; background: var(--bg-2); border-radius: 3px; margin-bottom: 16px; overflow: hidden; }
.progress .bar {
  height: 100%; width: 0%;
  background: var(--grad-brand);
  border-radius: 3px; transition: width 0.25s var(--ease);
}

/* 工具栏 */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }
/* 快捷操作 */
.quick-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; background: var(--surface); border: 1px dashed var(--rule-2); border-radius: var(--r-md); padding: 9px 12px; box-shadow: var(--shadow-xs); }
.quick-bar .qk-label { font-size: 12px; font-weight: 700; color: var(--brand-2); }
.quick-bar .btn.sm { padding: 5px 12px; font-size: 12.5px; }
.quick-bar .qk-note { font-size: 11px; color: var(--muted); margin-left: auto; }
.opt { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; cursor: pointer; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12.5px; color: var(--text-2); }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg::before { content: ''; width: 10px; height: 10px; border-radius: 3px; }
.lg-r::before { background: var(--red); }
.lg-d::before { background: var(--yellow); }
.lg-i::before { background: var(--green); }
.lg-p::before { background: var(--blue); }

/* 列表 */
.list { display: flex; flex-direction: column; gap: 10px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 14px; }

.row {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 120px 1fr 1fr 1fr 130px;
  gap: 14px;
  align-items: start;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur), border-color var(--dur), transform var(--dur);
}
.row:hover { border-color: var(--rule-2); box-shadow: var(--shadow-sm); }
.row.has-diff { border-left: 3px solid var(--red); }
.row.no-match { border-left: 3px solid var(--yellow); }

.time { font-family: "SF Mono", Consolas, monospace; font-size: 12px; color: var(--muted); padding-top: 3px; white-space: pre-line; }

.cell .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.cell .txt { font-size: 13.5px; line-height: 1.7; user-select: text; cursor: text; white-space: pre-wrap; word-break: break-all; }
.cell .txt.fix { color: var(--green); }
.cell .txt.muted { color: var(--muted); }
/* 修正后文本：可编辑 */
.cell .fix-edit { width: 100%; min-height: 46px; resize: vertical; font-family: inherit; font-size: 13.5px; line-height: 1.7; color: var(--green); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 7px 10px; transition: border-color var(--dur), box-shadow var(--dur); }
.cell .fix-edit:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12); }

.status { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.apply-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.apply-label input { width: 15px; height: 15px; accent-color: var(--brand-1); cursor: pointer; }
.chip { font-size: 11.5px; padding: 2px 9px; border-radius: var(--r-pill); font-weight: 600; }
.chip.hi { background: var(--green-bg); color: var(--green); }
.chip.mid { background: var(--blue-bg); color: var(--blue); }
.chip.low { background: var(--yellow-bg); color: var(--yellow); }
.chip.none { background: var(--bg-2); color: var(--muted); }

/* 差异高亮 */
.diff-r { background: var(--red-bg); color: var(--red); border-radius: 3px; padding: 0 2px; font-weight: 700; }
.diff-d { background: var(--yellow-bg); color: var(--yellow); border-radius: 3px; padding: 0 2px; text-decoration: line-through; }
.diff-i { background: var(--green-bg); color: var(--green); border-radius: 3px; padding: 0 2px; font-weight: 700; }
.diff-p { background: var(--blue-bg); color: var(--blue); border-radius: 3px; padding: 0 2px; }
.diff-hint { font-size: 11px; color: var(--yellow); margin-left: 6px; }

/* 导出 */
.summary { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 18px; font-size: 14px; box-shadow: var(--shadow-xs); }
.summary .num { font-weight: 800; color: var(--brand-2); font-size: 16px; }
.summary .warn-line { color: var(--yellow); margin-top: 6px; font-size: 13px; }
.export-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.export-result { margin-top: 16px; background: var(--green-bg); color: var(--green); border-radius: var(--r-md); padding: 12px 16px; font-size: 13.5px; border: 1px solid rgba(5, 150, 105, 0.2); }
.export-result.err { background: var(--red-bg); color: var(--red); border-color: rgba(225, 29, 72, 0.2); }

/* 最新更新日志（仅最新一条） */
.latest-log { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px 22px; margin: 28px 0 18px; box-shadow: var(--shadow-xs); }
.ll-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ll-badge { background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700; border-radius: var(--r-pill); padding: 3px 11px; box-shadow: var(--shadow-brand); }
.ll-ver { font-size: 15px; font-weight: 800; color: var(--ink); }
.ll-date { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
#ll-items { margin: 0; padding-left: 20px; }
#ll-items li { font-size: 13px; line-height: 1.9; color: var(--ink); }

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 14px; border-top: 1px solid var(--rule); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ============ 重点内容突出 ============ */
.t-hl {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0.16));
  color: var(--brand-2);
  font-weight: 700;
  border-radius: 6px;
  padding: 0 6px;
  white-space: nowrap;
}
.t-em { color: var(--brand-2); font-weight: 700; }
.t-num { color: var(--brand-1); font-weight: 800; }
.t-safe { color: var(--green); font-weight: 700; }

/* ============ 版本徽章 / 功能标签 / 批量条 / 升级弹窗（v0.7.0） ============ */
.plan-chip {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700;
  border-radius: var(--r-pill); padding: 2px 10px;
  margin-left: 10px; white-space: nowrap;
  color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0;
}
.plan-chip.advanced.on { color: #0f766e; background: #f0fdfa; border-color: rgba(13,148,136,.45); }
.plan-chip.professional.on { color: #7c3aed; background: #f5f3ff; border-color: rgba(124,58,237,.4); }

.pro-tag {
  display: inline-block; margin-left: 5px;
  font-size: 10px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  border-radius: var(--r-pill); padding: 1px 7px; vertical-align: 1px; white-space: nowrap;
}
.pro-opt { position: relative; }
.pro-opt .pro-tag { margin-left: 4px; }

.batch-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.batch-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--rule); background: var(--surface);
  color: var(--ink); border-radius: var(--r-pill); padding: 5px 13px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: border-color .15s, box-shadow .15s;
}
.batch-chip:hover { border-color: var(--brand-1); }
.batch-chip.on { background: rgba(13,148,136,.12); border-color: var(--brand-1); color: #0f766e; }
.batch-chip.done .bc-state { color: var(--green); }
.batch-chip .bc-state { font-size: 10.5px; color: var(--muted); font-weight: 700; }

.up-mask { position: fixed; inset: 0; z-index: 300; background: rgba(15,23,42,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: maskIn 0.2s var(--ease); }
.up-mask[hidden] { display: none; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.up-card {
  position: relative; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 30px 32px 26px;
  width: 100%; max-width: 400px; text-align: center;
  border: 1px solid var(--rule);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  animation: modIn 0.22s var(--ease);
}
@keyframes modIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.up-close {
  position: absolute; top: 12px; right: 14px; width: 30px; height: 30px;
  border: 0; background: var(--bg-2); color: #64748b; border-radius: 50%;
  font-size: 17px; line-height: 1; cursor: pointer; transition: all var(--dur);
}
.up-close:hover { background: #e2e8f0; color: #0f172a; }
.up-ico { font-size: 40px; margin-bottom: 8px; }
.up-card h3 { font-size: 19px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.up-card .up-name { color: var(--brand-1); }
.up-hint { font-size: 13.5px; color: #475569; line-height: 1.7; margin-bottom: 10px; }
.up-tip { font-size: 12.5px; color: #94a3b8; line-height: 1.6; margin-bottom: 18px; }
.up-actions { display: flex; justify-content: center; gap: 10px; }
.up-actions .btn { border: 0; border-radius: var(--r-pill); padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer; }
.up-actions .btn.ghost { background: #f1f5f9; color: #334155; }
.up-actions .btn.primary { background: var(--grad-brand); color: #fff; }

.export-actions .btn { display: inline-flex; align-items: center; }

/* v0.7.0 第二批：历史记录 / 易错词库 / 规则预设 */
.toolbar-pro { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; background: linear-gradient(135deg, rgba(13,148,136,.08), rgba(13,148,136,.12)); border: 1px dashed rgba(13,148,136,.4); border-radius: var(--r-md); padding: 8px 12px; }
.toolbar-pro .opt { font-size: 12.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.hist-row, .dict-row { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 9px 12px; background: #f8fafc; box-shadow: var(--shadow-xs); }
.hist-meta { font-size: 11.5px; color: var(--muted); }
.hist-name { font-size: 12.5px; font-weight: 600; color: var(--ink); margin: 2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-actions { display: flex; gap: 6px; }
.hist-actions .btn.sm, .dict-row .btn.sm { padding: 4px 10px; font-size: 12px; }
.hist-empty, .dict-empty { font-size: 13px; color: #94a3b8; text-align: center; padding: 12px 0; }
.dict-row { display: flex; align-items: center; gap: 8px; }
.dict-w { font-size: 13px; font-weight: 700; color: #b45309; }
.dict-arrow { color: var(--muted); }
.dict-r { font-size: 13px; font-weight: 700; color: var(--green); flex: 1; }
.dict-row .btn.sm.danger, .hist-actions .btn.sm.danger { color: #dc2626; background: #fef2f2; border-color: #fecaca; }

/* ============ 特权功能（网页端专属） ============ */
/* 特权标识（网页端专属 / 客户端专属） */
.priv-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.02em;
  border-radius: var(--r-pill); padding: 1px 7px; vertical-align: 1px;
  white-space: nowrap; margin-left: 5px;
}
.priv-tag.web {
  color: #1d4ed8; background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid rgba(29, 78, 216, 0.28);
}
.priv-tag.exe {
  color: #7c3aed; background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1px solid rgba(124, 58, 237, 0.28);
}
.priv-tag.basic { color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0; }

/* 特权入口条（Step 4 导出区） */
.priv-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 14px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(99, 102, 241, 0.05));
  border: 1px dashed var(--rule-2);
  border-radius: var(--r-md);
}
.priv-strip .ps-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  background: var(--surface); box-shadow: var(--shadow-xs);
}
.priv-strip .ps-main { flex: 1; min-width: 0; }
.priv-strip .ps-title { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.priv-strip .ps-desc { font-size: 0.8rem; color: var(--muted); margin-top: 1px; }
.priv-strip .ps-btn { flex-shrink: 0; }

/* 云端记录 / 分享 / 在线报告 通用卡片 */
.cloud-box {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); box-shadow: var(--shadow-xs);
}

@media (max-width: 900px) {
  .row { grid-template-columns: 100px 1fr; }
  .cell.src, .cell.fix, .status { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .topbar { flex-direction: column; align-items: flex-start; }
  .steps { justify-content: flex-start; }
}
/* ============================================================
   v0.9.2 全新视觉体系 —— 完全重构：高级商务 · 悬浮玻璃工作区
   保留全部原有类名与 JS 钩子，本块在文件末尾覆盖基础样式
   ============================================================ */
:root {
  --brand-1: #0d9488;
  --brand-2: #0f766e;
  --brand-3: #115e59;
  --brand-deep: #0a3d3a;
  --accent: var(--brand-1);
  --accent-2: #6366f1;
  --gold: #f59e0b;

  --bg: #f3f6fb;
  --bg-2: #e9eef6;
  --surface: #ffffff;
  --ink: #0b1526;
  --text-2: #45566e;
  --muted: #93a3b8;
  --rule: #e3eaf2;
  --rule-2: #c6d3e1;

  --red: #e11d48;  --red-bg: #fff1f3;
  --yellow: #d97706; --yellow-bg: #fff8eb;
  --green: #059669; --green-bg: #ecfdf5;
  --blue: #4f46e5; --blue-bg: #eef2ff;

  --grad-brand: linear-gradient(135deg, #16b8a5 0%, #0d9488 48%, #0f766e 100%);
  --grad-pro: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --grad-deep: linear-gradient(165deg, #0a3d3a 0%, #0f766e 58%, #0d9488 100%);

  --shadow-xs: 0 1px 2px rgba(16, 33, 60, 0.05);
  --shadow-sm: 0 2px 6px rgba(16, 33, 60, 0.06), 0 8px 20px rgba(16, 33, 60, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 33, 60, 0.06), 0 18px 44px rgba(16, 33, 60, 0.09);
  --shadow-lg: 0 14px 36px rgba(16, 33, 60, 0.10), 0 34px 80px rgba(16, 33, 60, 0.14);
  --shadow-brand: 0 8px 24px rgba(13, 148, 136, 0.32);
  --shadow-glow: 0 0 0 1px rgba(13, 148, 136, 0.16), 0 12px 32px rgba(13, 148, 136, 0.22);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.2s;
}

/* ---------- 页面氛围：品牌光晕 + 点阵纹理 ---------- */
body {
  background:
    radial-gradient(900px 360px at 10% -6%, rgba(13, 148, 136, 0.10) 0%, transparent 58%),
    radial-gradient(1000px 400px at 90% -8%, rgba(99, 102, 241, 0.09) 0%, transparent 58%),
    radial-gradient(1500px 560px at 50% 118%, rgba(13, 148, 136, 0.08) 0%, transparent 62%),
    #f3f6fb;
  background-attachment: fixed;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(13, 148, 136, 0.10) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(760px 500px at 50% -2%, rgba(0,0,0,0.45) 0%, transparent 78%);
  mask-image: radial-gradient(760px 500px at 50% -2%, rgba(0,0,0,0.45) 0%, transparent 78%);
}

/* ---------- 顶栏：品牌渐变细条 + 玻璃质感 ---------- */
.topbar {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(13, 148, 136, 0.10);
  box-shadow: 0 6px 24px rgba(16, 33, 60, 0.05);
}
.topbar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
  border-radius: 0 0 4px 4px;
}
.brand-logo {
  background: var(--grad-deep);
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-radius: 13px;
  letter-spacing: -0.03em;
}
.brand-name {
  background: linear-gradient(120deg, #0f766e 0%, #0d9488 55%, #6366f1 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.brand-slogan { color: var(--muted); }
.topbar-divider { background: linear-gradient(180deg, transparent, var(--rule-2) 40%, var(--rule-2) 60%, transparent); }

/* ---------- 步骤导航：胶囊卡片 + 渐变连接线 ---------- */
.steps { gap: 4px; }
.step {
  padding: 6px 14px;
  border: 1px solid transparent;
}
.step.active {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.10), rgba(13, 148, 136, 0.18));
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(13, 148, 136, 0.08);
  color: var(--brand-2);
}
.step.active .dot {
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.16), 0 4px 10px rgba(13, 148, 136, 0.35);
}
.step.done { color: var(--brand-2); }
.step.done .dot { background: var(--grad-brand); box-shadow: 0 3px 8px rgba(13, 148, 136, 0.3); }
.step-line {
  width: 30px;
  background: linear-gradient(90deg, transparent, var(--rule-2) 30%, var(--rule-2) 70%, transparent);
}
.step-line.done { background: linear-gradient(90deg, transparent, #2dd4bf 30%, #14b8a6 70%, transparent); }

/* ---------- 悬浮工作区 ---------- */
main {
  position: relative; z-index: 1;
  max-width: 1120px;
  margin: 18px auto 26px;
  padding: 36px 38px 52px;
  background: var(--surface);
  border: 1px solid rgba(13, 148, 136, 0.10);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
main::before {
  content: '';
  position: absolute; top: 0; left: 26px; right: 26px; height: 3px;
  background: var(--grad-brand);
  border-radius: 0 0 6px 6px;
}

/* ---------- 面板标题：渐变强调条 ---------- */
.panel h2 {
  position: relative;
  font-size: 1.5rem;
  padding-left: 16px;
  letter-spacing: -0.02em;
}
.panel h2::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  border-radius: 99px;
  background: var(--grad-brand);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}
.panel .sub { color: var(--text-2); }

/* ---------- 拖放区：发光渐变卡片 ---------- */
.dropzone {
  border: 2px dashed var(--rule-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(13, 148, 136, 0.05) 0%, transparent 70%),
    var(--surface);
  padding: 52px 26px;
  box-shadow: var(--shadow-sm);
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover {
  border-color: #2dd4bf;
  background:
    radial-gradient(460px 240px at 50% 0%, rgba(13, 148, 136, 0.09) 0%, transparent 70%),
    linear-gradient(180deg, #f7fdfc 0%, #ffffff 100%);
  box-shadow: var(--shadow-glow);
}
.dz-icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  background: var(--grad-deep);
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 1.05rem;
  position: relative;
}
.dz-icon::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 24px;
  border: 1px solid rgba(13, 148, 136, 0.18);
  background: radial-gradient(60px 30px at 50% 100%, rgba(13, 148, 136, 0.12) 0%, transparent 70%);
  z-index: -1;
}
.dropzone p { font-weight: 700; }
.dropzone .hint { color: var(--muted); }

/* ---------- 文件信息 / 摘要 ---------- */
.fileinfo {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}
.fi-key { color: var(--muted); }
.warn { border: 1px solid rgba(217, 119, 6, 0.25); }

/* ---------- 按钮：渐变发光主按钮 + 玻璃次按钮 ---------- */
.btn {
  border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
}
.btn.primary {
  background: var(--grad-brand);
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 60%, #16b8a5 120%);
  transform: translateY(-1px);
}
.btn:not(.primary):not(.danger):hover:not(:disabled) {
  border-color: rgba(13, 148, 136, 0.45);
  background: #f7fdfc;
}
.btn.danger:hover:not(:disabled) { background: var(--red-bg); border-color: var(--red); }
.btn.sm { border-radius: 8px; }

/* ---------- 统计卡片：顶部彩色强调 ---------- */
.stats { gap: 14px; }
.stat {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow-sm);
  padding: 18px 12px 14px;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute; top: 0; left: 18px; right: 18px; height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--grad-brand);
}
.stat:nth-child(2)::before { background: var(--grad-pro); }
.stat:nth-child(3)::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.stat:nth-child(4)::before { background: linear-gradient(90deg, #34d399, #059669); }
.stat .num {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.7rem;
}
.stat:nth-child(2) .num { background: linear-gradient(135deg, #4f46e5, #8b5cf6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat:nth-child(3) .num { background: linear-gradient(135deg, #d97706, #f59e0b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat:nth-child(4) .num { background: linear-gradient(135deg, #059669, #34d399); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.progress { height: 8px; border-radius: 99px; background: var(--bg-2); }
.progress .bar { background: var(--grad-brand); box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4); border-radius: 99px; }

/* ---------- 工具栏 / 快捷操作 ---------- */
.toolbar-pro,
.quick-bar {
  border-radius: var(--r-md);
  border: 1px dashed rgba(13, 148, 136, 0.4);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(99, 102, 241, 0.05));
}
.quick-bar { background: var(--surface); }
.qk-label { color: var(--brand-2); }
.opt select {
  border: 1px solid var(--rule) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--ink);
  font-size: 12.5px;
  padding: 3px 8px;
  outline: none;
}

/* ---------- 列表行：状态条 + 悬浮抬升 ---------- */
.list { gap: 12px; }
.row {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: var(--shadow-sm);
  padding: 15px 18px;
  gap: 16px;
  overflow: hidden;
}
.row::before {
  content: '';
  position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 99px;
  background: var(--rule-2);
}
.row:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.row.has-diff::before { background: linear-gradient(180deg, #fb7185, #e11d48); }
.row.no-match::before { background: linear-gradient(180deg, #fbbf24, #d97706); }
.cell .lbl { color: var(--muted); }
.cell .txt.fix {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.10), rgba(5, 150, 105, 0.04));
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: -4px;
}
.chip { font-weight: 700; }
.time { color: var(--muted); }

/* ---------- 导出区 ---------- */
.summary {
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #fbfdff, #ffffff);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
}
.export-actions .btn { border-radius: var(--r-sm); }
.export-result { border-radius: var(--r-lg); border: 1px solid rgba(5, 150, 105, 0.25); box-shadow: var(--shadow-sm); }

/* ---------- 最新更新 ---------- */
.latest-log {
  border-radius: var(--r-xl);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.latest-log::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
}
.ll-badge { box-shadow: var(--shadow-brand); }

/* ---------- 底部 ---------- */
footer {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid rgba(13, 148, 136, 0.10);
}
footer .ft-ver {
  background: #f2f7f6;
  border-color: rgba(13, 148, 136, 0.18);
  color: var(--brand-2);
  font-weight: 700;
}
footer .ft-ver.ok { background: var(--green-bg); color: var(--green); }
footer .ft-ver.warn { background: var(--red-bg); color: var(--red); }
.btn-ghost { border-radius: 8px; }
.btn-ghost.accent { color: var(--brand-2); font-weight: 700; }

/* ---------- 弹窗 / 登录遮罩：大圆角 + 顶部渐变 ---------- */
.modal-mask { background: rgba(11, 21, 38, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
}
.modal h3 { letter-spacing: -0.01em; }
.modal-wide { border-radius: var(--r-xl); }
.field input, .field select, .field textarea {
  border-radius: 10px;
  border-color: var(--rule-2);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}
.lg-tab { border-radius: var(--r-pill); }
.lg-tab.on { background: var(--grad-brand); }
.gate { background:
    radial-gradient(800px 340px at 50% -4%, rgba(13, 148, 136, 0.10) 0%, transparent 60%),
    radial-gradient(600px 300px at 100% 110%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    linear-gradient(160deg, #f3f6fb 0%, #e8eef7 100%); }
.gate-card {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.gate-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-brand);
}
.gate-logo {
  width: 68px; height: 68px; border-radius: 20px;
  background: var(--grad-deep);
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.gate-card h2 { color: var(--ink); letter-spacing: -0.02em; }

/* ---------- 更新提示 toast ---------- */
.update-toast {
  border-radius: var(--r-lg);
  border: 1px solid rgba(225, 29, 72, 0.30);
  border-left: 4px solid var(--red);
  box-shadow: 0 18px 48px rgba(225, 29, 72, 0.18), 0 4px 14px rgba(16, 33, 60, 0.10);
}
.update-toast .ut-go { border-radius: 8px; }

/* ---------- 特权入口条 / 标签：升级质感 ---------- */
.priv-strip {
  border-radius: var(--r-lg);
  border: 1px dashed rgba(13, 148, 136, 0.4);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(99, 102, 241, 0.05));
}
.priv-strip .ps-icon {
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.priv-tag { font-weight: 800; }
.pro-tag {
  background: var(--grad-brand);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}
.pro-badge { box-shadow: 0 2px 6px rgba(180, 83, 9, 0.18); }
.user-chip {
  border-radius: var(--r-pill);
  background: #f2f7f6;
  border: 1px solid rgba(13, 148, 136, 0.18);
  font-weight: 600;
}

/* ---------- 历史记录 / 词库 / 评价 卡片 ---------- */
.hrow, .hist-row, .dict-row, .rv-card {
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-xs);
  background: var(--surface);
}
.rv-score { background: linear-gradient(135deg, #0f766e, #0d9488); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.batch-chip { border-radius: var(--r-pill); box-shadow: var(--shadow-xs); }
.batch-chip.on { background: linear-gradient(135deg, rgba(13,148,136,.14), rgba(13,148,136,.20)); border-color: var(--brand-1); box-shadow: 0 3px 10px rgba(13,148,136,.18); }

/* ---------- 重点突出 ---------- */
.t-hl { background: linear-gradient(135deg, rgba(13, 148, 136, 0.10), rgba(13, 148, 136, 0.20)); color: var(--brand-2); font-weight: 800; border-radius: 7px; padding: 1px 7px; }
.t-em { color: var(--brand-2); font-weight: 800; }
.t-num { color: var(--brand-1); font-weight: 800; }
.t-safe { color: var(--green); font-weight: 800; }

/* ---------- 云端卡片 ---------- */
.cloud-box { border-radius: var(--r-md); border: 1px solid var(--rule); box-shadow: var(--shadow-sm); }


/* ============================================================
   v0.9.3 工作台布局重构 —— 左侧步骤导航栏 + 右侧内容区
   真正的结构重构：不再是「顶部横条步骤 + 单列内容」，
   而是「顶部精简条 + 左侧垂直步骤导航 + 右侧悬浮工作区」
   ============================================================ */
#app { display: flex; flex-direction: column; }

/* ---------- 顶部精简条 ---------- */
.topbar { position: relative; padding: 10px 22px; }
.tb-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tb-logo {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-deep); color: #fff;
  font-size: 14px; font-weight: 800;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.25);
}
.tb-name {
  font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(120deg, #0f766e 0%, #0d9488 60%, #6366f1 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.tb-slogan { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.tb-back {
  font-size: 12.5px; color: var(--muted); text-decoration: none;
  padding: 5px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--rule); background: rgba(255,255,255,.6);
  transition: all var(--dur) var(--ease); white-space: nowrap;
}
.tb-back:hover { color: var(--brand-2); border-color: var(--brand-1); background: var(--surface); }

/* ---------- 工作台双栏 ---------- */
.workbench { flex: 1; min-height: 0; display: flex; }

/* ============================================================
   液态玻璃覆盖层（与 site.css 设计语言统一）
   ============================================================ */
.up-card, .modal, .modal-wide {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 70px rgba(20, 30, 80, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.up-mask, .modal-mask {
  background: rgba(20, 24, 45, 0.35);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.hist-row, .dict-row {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.up-close { background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.up-close:hover { background: rgba(226, 232, 240, 0.8); }

/* 左侧步骤导航栏 */
.sidebar {
  width: 236px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px 16px 18px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-right: 1px solid rgba(13,148,136,.12);
  overflow-y: auto;
}
.sidebar .brand {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center; padding: 4px 4px 18px;
  border-bottom: 1px dashed var(--rule);
  cursor: pointer;
}
.sidebar .brand-logo {
  width: 54px; height: 54px; border-radius: 18px;
  background: var(--grad-deep);
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.25);
  color: #fff; font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.02em;
}
.sidebar .brand-name { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.sidebar .brand-slogan { font-size: 11.5px; color: var(--muted); }

/* 垂直步骤导航 */
.sidebar .steps {
  flex-direction: column; align-items: stretch; gap: 2px;
  justify-content: flex-start;
}
.sidebar .step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  color: var(--text-2); font-weight: 600; font-size: 13.5px;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
}
.sidebar .step .dot {
  width: 26px; height: 26px; border-radius: 9px;
  background: var(--bg-2); color: var(--muted);
  font-size: 12.5px; font-weight: 800;
  transition: all var(--dur) var(--ease);
}
.sidebar .step .step-label { white-space: nowrap; }
.sidebar .step:hover { background: rgba(13,148,136,.06); color: var(--brand-2); }
.sidebar .step.active {
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--shadow-brand);
  transform: translateX(2px);
}
.sidebar .step.active .dot { background: rgba(255,255,255,.22); color: #fff; box-shadow: none; }
.sidebar .step.done { color: var(--brand-2); }
.sidebar .step.done .dot { background: var(--grad-brand); color: #fff; }
.sidebar .step-line {
  height: 12px; width: 2px; margin-left: 31px;
  background: var(--rule-2); border-radius: 2px;
}
.sidebar .step-line.done { background: var(--grad-brand); }

/* 侧栏底部 */
.sb-foot {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 12px 2px;
  border-top: 1px dashed var(--rule);
}
.sb-safe { font-size: 11px; color: var(--muted); line-height: 1.6; }

/* 右侧内容区 */
.workbench > main {
  flex: 1; min-width: 0;
  max-width: none;
  margin: 20px 26px 26px 20px;
}
