:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --primary: #185FA5;
  --primary-light: #E6F1FB;
  --text: #1f2329;
  --text-sub: #8a919b;
  --border: #eceef1;
  --red: #E24B4A;
  --green: #1D9E75;
  --amber: #BA7517;
  --blue: #185FA5;
  --gray: #888780;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
[v-cloak] { display: none; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

/* ===== 顶栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 16px; font-weight: 600; }
.identity-chip {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--primary); background: var(--primary-light);
  padding: 4px 10px; border-radius: 20px; cursor: pointer;
}
.identity-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.company-bar {
  background: var(--primary); color: #fff; font-size: 12px;
  text-align: center; padding: 6px 12px; letter-spacing: .3px;
}

/* ===== 内容区 ===== */
.content { padding: 12px 12px 76px; min-height: calc(100vh - 70px); }
.page { animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===== 底部导航 ===== */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; display: flex; background: #fff;
  border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); z-index: 20;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 6px; cursor: pointer; position: relative; color: var(--text-sub);
}
.tab.on { color: var(--primary); }
.tab-icon { font-size: 20px; line-height: 1; }
.tab-text { font-size: 11px; }
.badge {
  position: absolute; top: 4px; left: 50%; margin-left: 12px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}

/* ===== 表单 ===== */
.form-card { background: var(--card); border-radius: 12px; padding: 16px; }
.form-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.form-title { font-size: 16px; font-weight: 600; }
.form-seq-hint { font-size: 12px; color: var(--primary); }
.form-section-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin: 16px 0 10px; padding-top: 12px; border-top: 1px solid var(--border);
}
.form-section-title:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.field { margin-bottom: 12px; }
.field-label { display: block; font-size: 13px; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.req { color: var(--red); font-style: normal; }
.opt { color: var(--text-sub); font-weight: 400; font-size: 12px; }
.hint { color: var(--text-sub); font-size: 13px; padding: 8px 0; }
.field-hint { font-size: 12px; margin-top: 6px; }
.field-hint.warn { color: var(--red); }

.hint-card {
  background: #fdf3e3; border: 1px dashed #BA7517; border-radius: 8px;
  padding: 16px 12px; color: #BA7517; text-align: center; font-size: 13px; line-height: 1.7;
}
.hint-card::before { content: "💡 "; }

.input {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; color: var(--text); background: #fff;
  outline: none; -webkit-appearance: none; appearance: none;
}
.input:focus { border-color: var(--primary); }
.input.missing { border-color: var(--red); background: #fff7f7; }
.input.readonly { background: #f7f8fa; color: var(--text-sub); }
.textarea { min-height: 72px; resize: none; }
.input.compact { width: auto; min-width: 140px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* chip 多选 */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; border-radius: 18px; border: 1px solid var(--border);
  font-size: 13px; color: var(--text); cursor: pointer; background: #fff;
}
.chip.on { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 500; }
.chip.ok { border-color: var(--green); background: #e6f5ef; color: var(--green); }
.chip.bad { border-color: var(--red); background: #fdeaea; color: var(--red); }
.chip.ref { border-color: #8E44AD; background: #f3ecfa; color: #8E44AD; }

/* 测试项目勾选 */
.item-list { display: flex; flex-direction: column; }
.item-row { padding: 6px 0; border-bottom: 1px solid #f5f6f8; }
.item-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.item-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.item-name { font-size: 13px; }
.item-req { margin-top: 6px; font-size: 13px; padding: 7px 10px; }

/* 按钮 */
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn {
  flex: 1; border: none; border-radius: 8px; padding: 12px; font-size: 15px;
  cursor: pointer; text-align: center; background: #fff;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn-block { width: 100%; margin-top: 10px; flex: none; }
.btn-mini { flex: none; padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.method-save { margin-top: 6px; flex: none; width: auto; padding: 7px 14px; font-size: 13px; color: var(--primary); border-color: var(--primary); }
.form-tip { text-align: center; font-size: 12px; color: var(--red); margin-top: 8px; }

/* ===== 筛选栏 ===== */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; white-space: nowrap; }
.filter-item {
  flex-shrink: 0; padding: 5px 14px; border-radius: 16px; font-size: 13px;
  color: var(--text-sub); background: #fff; border: 1px solid var(--border); cursor: pointer;
}
.filter-item.on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 子 tab（审批） */
.sub-tabs { display: flex; background: #fff; border-radius: 10px; padding: 4px; margin-bottom: 10px; }
.sub-tab {
  flex: 1; text-align: center; padding: 8px; font-size: 13px; color: var(--text-sub);
  border-radius: 8px; cursor: pointer;
}
.sub-tab b { color: var(--red); font-weight: 600; }
.sub-tab.on { background: var(--primary); color: #fff; }
.sub-tab.on b { color: #fff; }

/* ===== 列表卡片 ===== */
.app-list { display: flex; flex-direction: column; gap: 10px; }
.app-card { background: var(--card); border-radius: 12px; padding: 13px 14px; cursor: pointer; }
.app-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.seq-tag { font-size: 12px; color: var(--primary); font-weight: 600; }
.status-badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.st-draft { background: #f1f2f4; color: var(--gray); }
.st-pending { background: #fdf3e3; color: var(--amber); }
.st-testing { background: #eaf2fb; color: var(--blue); }
.st-review { background: #f3ecfa; color: #8E44AD; }
.st-final_review { background: #e6f1fb; color: var(--blue); }
.st-final_rejected { background: #fdeaea; color: var(--red); }
.st-approved { background: #e6f5ef; color: var(--green); }
.st-failed { background: #fdeaea; color: var(--red); }
.st-rejected { background: #fdeaea; color: var(--red); }
.st-review_rejected { background: #fdeaea; color: var(--red); }

.app-card-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.app-card-meta { font-size: 13px; color: var(--text); margin-bottom: 6px; }
.app-card-meta .dot { margin: 0 6px; color: #c6cbd1; }
.app-card-sub { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub); }
.reject-brief {
  margin: 6px 0; padding: 6px 10px; border-radius: 6px;
  background: #fdeaea; color: var(--red); font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.task-banner {
  background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;
  font-size: 13px;
}

/* ===== 空态 ===== */
.empty-block { text-align: center; padding: 60px 20px; color: var(--text-sub); }
.empty-icon { font-size: 40px; color: #d5d8dd; margin-bottom: 12px; }
.empty-text { font-size: 13px; line-height: 1.8; }

/* ===== 报表 ===== */
.report-card { background: var(--card); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.report-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.chart-wrap { height: 220px; position: relative; }

.stat-cards { display: flex; gap: 10px; margin-bottom: 12px; }
.stat {
  flex: 1; background: #f7f8fa; border-radius: 10px; padding: 12px; text-align: center;
}
.stat.ok { background: #e6f5ef; }
.stat.bad { background: #fdeaea; }
.stat-num { font-size: 22px; font-weight: 600; }
.stat.ok .stat-num { color: var(--green); }
.stat.bad .stat-num { color: var(--red); }
.stat-label { font-size: 12px; color: var(--text-sub); margin-top: 2px; }

.archive-actions { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.archive-table { overflow-x: auto; }
.archive-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.archive-table th, .archive-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid #f0f1f3; white-space: nowrap; }
.archive-table th { color: var(--text-sub); font-weight: 500; }
.res-badge { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; }
.res-badge.ok { background: #e6f5ef; color: var(--green); }
.res-badge.bad { background: #fdeaea; color: var(--red); }

/* 管理 */
.admin-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.admin-row.admin-col { display: block; padding-top: 14px; border-top: 1px dashed #eceef1; }
.admin-label { color: var(--text-sub); }
.applicant-checks { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--primary); }
.user-list { display: flex; flex-direction: column; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f5f6f8; font-size: 13px; }
.u-name { font-weight: 500; width: 60px; }
.u-dept { color: var(--text-sub); flex: 1; }
.u-role { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--primary-light); color: var(--primary); }

/* ===== 详情覆盖层 ===== */
.overlay {
  position: fixed; inset: 0; z-index: 30; background: var(--bg);
  max-width: 480px; margin: 0 auto; display: flex; flex-direction: column;
}
.detail-page { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.detail-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: #fff; border-bottom: 1px solid var(--border);
}
.back { font-size: 15px; color: var(--primary); cursor: pointer; }
.detail-seq { font-size: 14px; font-weight: 600; flex: 1; }
.detail-body { flex: 1; overflow-y: auto; padding: 14px; }
.reject-notice {
  background: #fdeaea; border: 1px solid #f5c1c1; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 12px;
}
.reject-notice-title { font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 4px; }
.reject-notice-body { font-size: 13px; color: #791F1F; line-height: 1.6; }
.detail-section { background: var(--card); border-radius: 12px; padding: 6px 14px; margin-bottom: 12px; }
.detail-row { display: flex; padding: 8px 0; font-size: 13px; border-bottom: 1px solid #f5f6f8; }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { width: 90px; flex-shrink: 0; color: var(--text-sub); }
.detail-row .v { flex: 1; color: var(--text); word-break: break-all; }
.detail-row .v-danger { color: var(--red); }
.mini-chip {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: var(--primary-light); color: var(--primary); font-size: 12px; margin: 2px 6px 2px 0;
}

.param-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 6px 0; }
.param-grid .k { color: var(--text-sub); font-size: 12px; margin-right: 4px; }
.param-grid .v { font-size: 13px; }

.subitem-list { padding: 4px 0; }
.subitem { padding: 8px 0; border-bottom: 1px solid #f5f6f8; }
.subitem:last-child { border-bottom: none; }
.subitem.ok .si-name { color: var(--green); }
.subitem.fail .si-name { color: var(--red); }
.subitem-clickable { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; cursor: pointer; }
.subitem-clickable:hover { background: #fafbfc; }
.subitem-main { flex: 1; min-width: 0; }
.subitem-arrow { color: var(--text-sub); font-size: 22px; line-height: 1; padding-top: 2px; flex-shrink: 0; }
.subitem-hint { font-weight: 400; font-size: 11px; color: var(--text-sub); margin-left: 8px; }
.si-name { font-size: 14px; font-weight: 500; }
.si-req { font-size: 12px; color: var(--text-sub); margin-top: 3px; }
.si-data { font-size: 13px; margin-top: 3px; }
.img-cell-lg { width: 96px; height: 96px; }

.timeline-title { font-size: 13px; font-weight: 600; padding: 8px 0 2px; }
.timeline { padding: 4px 0 8px; }
.tl-item { display: flex; gap: 10px; padding: 6px 0; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 5px; flex-shrink: 0; }
.tl-content { flex: 1; }
.tl-action { font-size: 13px; font-weight: 500; }
.tl-sub { font-size: 12px; color: var(--text-sub); }

.detail-actions {
  display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--border);
}

/* 测试执行子项卡片 */
.sec-fail { border: 1px solid #f5c1c1; }
.si-head { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 0 4px; }
.si-std { font-size: 11px; color: var(--text-sub); }

/* ===== 报告 A4 排版 ===== */
.report-paper { background: #f5f6f8; padding: 8px 0 24px; }

.rp-page {
  width: 210mm;
  min-height: 297mm;
  padding: 12mm 15mm;
  background: #fff;
  position: relative;
  margin: 0 auto 8px;
  box-sizing: border-box;
  font-family: 'SimSun', '宋体', serif;
  color: #000;
}
.rp-flow {
  width: 210mm;
  padding: 12mm 15mm;
  background: #fff;
  margin: 0 auto 8px;
  box-sizing: border-box;
  font-family: 'SimSun', '宋体', serif;
  color: #000;
}

.rp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10mm; min-height: 22mm; }
.rp-header-home { align-items: center; }
.rp-header-flow { margin-bottom: 6mm; }
.rp-header-right { text-align: right; }
.rp-co-name { font-size: 18pt; font-weight: 700; color: #000; line-height: 1.2; margin-bottom: 2mm; }
.rp-co-name-en { font-size: 10pt; color: #333; letter-spacing: 1.5px; font-family: 'Times New Roman', serif; }
.rp-pg-title { font-size: 24pt; font-weight: 700; color: #888; letter-spacing: 4px; }
.tomuu-logo { width: 50mm; flex: none; }
.tomuu-logo-img { width: 50mm; height: auto; display: block; }

.rp-footer {
  position: absolute;
  bottom: 6mm; left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: #888;
  font-family: Arial, sans-serif;
}
.rp-footer-flow { position: static; margin-top: 6mm; }

.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'SimSun', '宋体', serif;
  font-size: 11px;
  color: #000;
}
.rp-table, .rp-table td { border: 1px solid #333; }
.rp-table td { padding: 4px 8px; vertical-align: middle; }
.rp-table .c-k { font-weight: 700; text-align: center; }
.rp-table .c-cat { font-weight: 700; text-align: center; vertical-align: middle; width: 18%; }
.rp-table .addr { font-size: 9px; line-height: 1.4; }
.rp-spacer { height: 28mm; }

.rp-section-title {
  font-size: 16px; font-weight: 700; text-align: center;
  padding: 6px; margin-bottom: 6mm;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  letter-spacing: 8px;
}

.rp-sub { font-weight: 700; margin: 4mm 0 2mm; font-size: 12px; }
.rp-sub::before { content: '➢ '; color: #000; }

.rp-sample-frame {
  border: 1px solid #333;
  padding: 6mm;
  text-align: center;
  min-height: 75mm;
  margin-bottom: 4mm;
  display: flex; align-items: center; justify-content: center;
}
.rp-sample-pic { max-width: 100%; max-height: 90mm; object-fit: contain; }
.rp-empty-text { color: #999; font-size: 12px; }

.rp-testinfo td { text-align: center; }
.rp-testinfo .c-k { width: 10%; }

.rp-tn td { text-align: center; }
.rp-tn .c-k { font-weight: 700; }

.rp-detail .c-k, .rp-detail .rp-detail-k { width: 22%; }
.rp-detail td { vertical-align: middle; }

/* 测试过程：左标签 + 右图区 */
.rp-stage { margin-bottom: 3mm; }
.rp-stage-grid {
  display: grid;
  grid-template-columns: 22% 1fr;
  border: 1px solid #333;
  min-height: 80mm;
}
.rp-stage-label {
  padding: 6mm 4mm;
  font-weight: 700;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  border-right: 1px solid #333;
  background: #fff;
  line-height: 1.6;
}
.rp-stage-imgs {
  padding: 4mm;
  display: flex; flex-direction: column; gap: 3mm;
  justify-content: flex-start; align-items: stretch;
}
.rp-img-row { display: flex; gap: 3mm; justify-content: center; }
.rp-img-row.pair { justify-content: stretch; }
.rp-img-row .rp-flow-img { border: 1px solid #999; max-height: 70mm; max-width: 100%; object-fit: contain; }
.rp-img-row.pair .rp-flow-img { flex: 1; max-width: calc(50% - 2mm); }
.rp-img-row.single .rp-flow-img { max-width: 50%; }
.rp-img-empty { min-height: 60mm; }

.rp-verdict-table .c-k, .rp-verdict-table .rp-detail-k { width: 22%; }

/* ===== 报告（其它） ===== */
.rp-co { text-align: center; font-size: 15px; font-weight: 600; margin-top: 4px; }
.rp-title { text-align: center; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.rp-text { font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap; }
.report-switch { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; white-space: nowrap; }
.report-switch-item { padding: 6px 12px; border-radius: 14px; font-size: 12px; background: #f0f1f3; color: var(--text-sub); cursor: pointer; flex: none; }
.report-switch-item.on { background: var(--primary); color: #fff; }
.rp-items { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-items th, .rp-items td { border: 1px solid #e6e8eb; padding: 7px 8px; text-align: left; }
.rp-items th { background: #f7f8fa; font-weight: 500; }
.rp-items tr.ok td:last-child { color: var(--green); }
.rp-items tr.fail td { background: #fdf3f3; }
.rp-items tr.fail td:last-child { color: var(--red); }
.sig-cell { height: 24mm; vertical-align: middle; text-align: center; padding: 2mm 4mm !important; }
.sig-img { max-height: 16mm; max-width: 30mm; display: block; margin: 0 auto 2mm; }
.sig-name { font-size: 10px; }

/* ===== 打印：A4 自动分页 + @page 页脚 ===== */
@media print {
  html, body { background: #fff !important; margin: 0; padding: 0; font-family: 'SimSun', '宋体', serif; }
  .overlay, .detail-head, .detail-actions, .detail-body > .report-switch, .report-paper { display: block !important; background: #fff !important; padding: 0 !important; }
  .detail-head, .detail-actions, .detail-body > .report-switch { display: none !important; }
  .detail-page { padding: 0 !important; max-width: none !important; }
  .report-paper { padding: 0 !important; max-width: none !important; }
  .rp-page {
    width: 210mm !important; min-height: 0 !important; height: auto !important;
    margin: 0 !important; padding: 12mm 15mm !important;
    border: none !important; box-shadow: none !important; page-break-after: always;
    display: block !important;
  }
  .rp-page:nth-of-type(3) { page-break-after: always; }
  .rp-flow {
    width: 210mm !important; padding: 12mm 15mm !important;
    margin: 0 !important; border: none !important;
    box-shadow: none !important;
  }
  .rp-table, .rp-table td { border: 1px solid #333 !important; }
  .rp-table td { padding: 4px 8px !important; }
  .rp-stage-grid, .rp-img-row, .rp-flow-img { page-break-inside: avoid; }
  .rp-flow-img, .rp-sample-pic { max-width: 100% !important; max-height: 90mm !important; object-fit: contain !important; }
  .rp-img-row { page-break-inside: avoid; }
  .rp-sample-frame { min-height: 75mm !important; }
  .rp-footer { position: fixed; bottom: 6mm; left: 0; right: 0; text-align: center; font-size: 10px; color: #888; }
  .rp-footer-flow { position: static; margin-top: 6mm; }
  @page {
    size: A4; margin: 0;
    @bottom-center { content: 'Page ' counter(page) ' of ' counter(pages); font-size: 10px; color: #888; font-family: Arial, sans-serif; }
  }
}


/* ===== 弹层 ===== */
.mask {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 480px; background: #fff;
  border-radius: 16px 16px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
}
.sheet-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; text-align: center; }
.sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.sheet-hint { text-align: center; font-size: 12px; color: var(--text-sub); margin-top: 14px; }

.identity-list { display: flex; flex-direction: column; }
.identity-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 8px; font-size: 14px; border-bottom: 1px solid #f5f6f8; cursor: pointer;
}
.identity-item.on { color: var(--primary); font-weight: 500; }
.check { color: var(--primary); font-weight: 600; }

/* ===== 图片 ===== */
.stage-block { margin-bottom: 12px; }
.stage-label { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.stage-count { font-size: 12px; color: var(--text-sub); font-weight: 400; margin-left: 6px; }
.img-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.img-cell { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 18px; text-align: center; cursor: pointer;
}
.img-add {
  width: 72px; height: 72px; border-radius: 8px; border: 1px dashed #c6cbd1;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  color: #c6cbd1; cursor: pointer; background: #fafbfc;
}
.img-preview {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
}
.img-preview img { max-width: 100%; max-height: 100%; }

/* ===== 签名 ===== */
.sign-canvas-wrap {
  border: 1px dashed #c6cbd1; border-radius: 8px; background: #fff;
  display: flex; justify-content: center; overflow: hidden;
}
.sign-canvas-wrap canvas { display: block; touch-action: none; }
.sign-tip { text-align: center; font-size: 12px; color: var(--text-sub); margin-top: 8px; }
.sign-actions { display: flex; gap: 8px; margin-top: 10px; }
.sign-actions .btn-mini { flex: none; }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 60;
  background: rgba(0,0,0,.78); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; max-width: 80%; text-align: center; animation: fade .2s ease;
}

/* ===== 无权限遮罩 ===== */
.no-permission {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: #f5f6f8; text-align: center; padding: 20px;
}
.no-permission-icon { font-size: 56px; line-height: 1; }
.no-permission-title { font-size: 20px; font-weight: 600; color: #333; }
.no-permission-text { font-size: 14px; color: #888; line-height: 1.6; }
.no-permission-debug {
  margin-top: 18px; padding: 12px 16px; background: #fff; border: 1px solid #e6e8eb;
  border-radius: 6px; font-size: 12px; color: #555; line-height: 1.8; text-align: left;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
