/* 专业设备点检系统 - 样式：企业后台（浅色）+ 工业大屏（深色）+ 移动扫码 */
:root {
  --bg: #f1f5f9; --surface: #ffffff; --surface-2: #f8fafc; --line: #e2e8f0;
  --text: #0f172a; --muted: #64748b; --subtle: #94a3b8;
  --brand: #0ea5e9; --brand-d: #0284c7; --brand-soft: #e0f2fe;
  --ok: #10b981; --ok-soft: #d1fae5; --warn: #f59e0b; --warn-soft: #fef3c7;
  --danger: #ef4444; --danger-soft: #fee2e2; --purple: #8b5cf6; --purple-soft: #ede9fe;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
a { color: var(--brand-d); text-decoration: none; }
.hidden { display: none !important; }

/* ===== 启动过渡层：会话校验期间显示，避免闪出登录框 ===== */
.boot-splash { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0c1e30 0%, #123b52 55%, #0e7490 100%); }
.boot-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.boot-mark { width: 56px; height: 56px; border-radius: 15px; background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #062a3c; font-size: 26px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(14,165,233,.35); }
.boot-t { font-size: 15px; font-weight: 500; letter-spacing: .5px; color: #e6f4fd; }
.boot-s { font-size: 12px; color: #9fc7dd; }
.boot-bar { width: 132px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.16); overflow: hidden; margin-top: 4px; }
.boot-bar i { display: block; width: 42%; height: 100%; border-radius: 2px; background: linear-gradient(90deg, transparent, #6cc0ff, transparent); animation: bootSlide 1.1s ease-in-out infinite; }
@keyframes bootSlide { 0% { transform: translateX(-130%); } 100% { transform: translateX(330%); } }

/* ===== 登录页 ===== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0c1e30 0%, #123b52 55%, #0e7490 100%); padding: 20px; position: relative; overflow: hidden; }
.login-wrap::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; border: 1px solid rgba(56,189,248,.12); top: -180px; right: -140px; }
.login-wrap::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(56,189,248,.1); bottom: -160px; left: -100px; }
.login-card { width: 100%; max-width: 420px; background: rgba(255,255,255,.97); border-radius: 18px; box-shadow: 0 24px 64px rgba(0,0,0,.35); padding: 40px; position: relative; z-index: 2; }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.login-mark { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(135deg, #0ea5e9, #0369a1); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 600; box-shadow: 0 6px 16px rgba(14,165,233,.35); }
.login-brand h1 { font-size: 19px; font-weight: 600; letter-spacing: .3px; }
.login-brand p { font-size: 12px; color: var(--muted); margin-top: 2px; letter-spacing: 1px; }
.login-title { font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: #334155; }
.field label .req { color: var(--danger); }
.input, .field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { min-height: 80px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font-weight: 500; transition: all .15s; }
.btn:hover { border-color: var(--brand); color: var(--brand-d); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-lg { width: 100%; padding: 12px; font-size: 15px; }
.login-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--subtle); line-height: 1.8; }
.login-err { background: var(--danger-soft); color: #b91c1c; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }

/* ===== 应用骨架 ===== */
.app { min-height: 100vh; display: flex; flex-direction: column; }
/* ===== 顶部导航 ===== */
.topbar {
  height: 64px; display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 8px 24px -22px rgba(15, 23, 42, .55);
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(145deg, #38bdf8 0%, #0ea5e9 48%, #0369a1 100%);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; line-height: 1;
  box-shadow: 0 5px 14px -6px rgba(2, 132, 199, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.brand-txt { min-width: 0; }
.brand-t { font-size: 15px; font-weight: 600; letter-spacing: .3px; color: #0f172a; white-space: nowrap; }
.brand-s { font-size: 9.5px; color: var(--subtle); letter-spacing: 1.5px; margin-top: 2px; white-space: nowrap; }

.nav {
  flex: 0 1 auto; min-width: 0; margin: 0 auto;
  display: flex; align-items: center; justify-content: flex-start; gap: 3px;
  background: #eef2f7; border: 1px solid #e6ecf3; border-radius: 11px; padding: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav-btn {
  border: 0; background: transparent; color: #55627a; padding: 7px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.nav-btn:hover { background: rgba(255, 255, 255, .78); color: #0f172a; }
.nav-btn.active {
  background: #fff; color: var(--brand-d); font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 6px 14px -8px rgba(15, 23, 42, .55);
  border: 1px solid rgba(14, 165, 233, .16);
}
.nav-btn { border: 1px solid transparent; }

.user-chip {
  display: flex; align-items: center; gap: 9px; flex: 0 0 auto;
  padding-left: 14px; border-left: 1px solid var(--line);
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, #38bdf8, #0284c7); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 14px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e0f2fe;
}
.user-meta { line-height: 1.3; }
.user-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.role-tag { display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 20px; background: var(--brand-soft); color: var(--brand-d); margin-top: 2px; }
.btn-logout { margin-left: 4px; padding: 6px 12px; font-size: 12.5px; border-radius: 8px; background: #fff; color: var(--muted); border: 1px solid var(--line); }
.btn-logout:hover { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.nav-btn:focus-visible, .btn-logout:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.main { flex: 1; padding: 22px 24px; overflow: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; font-weight: 600; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .main { padding: 14px; } .topbar { padding: 0 12px; } .brand { min-width: auto; } }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 11px 14px; background: var(--surface-2); color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fafc; }
.actions { display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: #047857; }
.badge-off { background: #f1f5f9; color: var(--subtle); }
.badge-warn { background: var(--warn-soft); color: #b45309; }
.badge-danger { background: var(--danger-soft); color: #b91c1c; }
.badge-info { background: var(--brand-soft); color: var(--brand-d); }
.badge-purple { background: var(--purple-soft); color: #6d28d9; }
.empty { text-align: center; padding: 48px 20px; color: var(--subtle); }
.empty-icon { font-size: 32px; opacity: .4; margin-bottom: 10px; }

/* ===== 设备台账 ===== */
.dev-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.dev-search { flex: 1 1 240px; min-width: 180px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.dev-search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dev-toolbar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); outline: none; }
.dev-toolbar select:focus { border-color: var(--brand); }
.dev-count { font-size: 12px; color: var(--subtle); white-space: nowrap; }
.dev-table { min-width: 1250px; }
.dev-table th, .dev-table td { white-space: nowrap; }
.dev-table td { padding: 10px 12px; }
.dev-table .dev-no { font-weight: 500; font-variant-numeric: tabular-nums; }
.dev-table .dev-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.dev-table .dev-name.same { color: var(--subtle); }
.dev-table .dev-ellip { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.dev-swipe { display: none; }
.dtype { display: inline-block; font-size: 11px; line-height: 19px; padding: 0 8px; border-radius: 5px; border: 1px solid transparent; }
.dtype-auto { background: var(--brand-soft); color: var(--brand-d); border-color: #bae6fd; }
.dtype-man { background: #f1f5f9; color: var(--muted); border-color: var(--line); }
.dev-owner { font-size: 13px; }
.dev-owner.none { color: var(--subtle); }
.dev-owner.lead { color: var(--warn); font-weight: 500; }
.rec-cnt { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-d); font-size: 10px; line-height: 15px; }
.dev-table tr.row-off td { color: var(--subtle); }

/* 点检记录弹窗 */
.rec-dev { padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.rec-dev-no { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.rec-dev-meta { font-size: 12px; color: var(--muted); line-height: 1.9; }
.rec-list { max-height: 52vh; overflow-y: auto; }
.rec-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rec-item:last-child { border-bottom: 0; }
.rec-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.rec-date { font-weight: 500; font-variant-numeric: tabular-nums; }
.rec-when { color: var(--subtle); font-size: 12px; font-variant-numeric: tabular-nums; }
.rec-link { font-size: 12px; margin-left: auto; }
.rec-book { font-size: 11px; color: #075985; background: var(--brand-soft); border: 1px solid #bae6fd; padding: 1px 8px; border-radius: 20px; }
.rec-bad { margin-top: 6px; font-size: 12px; color: #b91c1c; background: var(--danger-soft); padding: 5px 9px; border-radius: 6px; line-height: 1.7; }
.rec-note { margin-top: 5px; font-size: 12px; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); }
.stat-card { padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 600; line-height: 1.2; }

/* 筛选栏 */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; outline: none; }
.filters input:focus, .filters select:focus { border-color: var(--brand); }

/* 日期筛选胶囊：移动端原生 date 空值时 Safari/部分安卓不显示任何占位，只剩空白框；
   这里用一层不透明胶囊显示「全部日期」，原生控件透明覆盖其上负责唤起日期选择器 */
.date-pill {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 35px; min-width: 126px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; font-size: 13px; line-height: 1; color: var(--text);
  cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.date-pill.is-empty { color: #94a3b8; }
.date-pill:hover { border-color: var(--brand); }
.date-pill:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.date-pill .dp-ic { width: 13px; height: 13px; flex: none; opacity: .75; }
.date-pill.is-empty .dp-ic { opacity: .62; }
.date-pill .dp-txt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.date-pill .dp-x {
  position: relative; z-index: 2; flex: none; width: 17px; height: 17px; padding: 0;
  border: 0; border-radius: 50%; background: #e2e8f0; color: #475569;
  font-size: 13px; line-height: 17px; text-align: center; cursor: pointer;
}
/* 扩大触摸热区，手机上不用瞄准 17px 的小圆点 */
.date-pill .dp-x::after { content: ''; position: absolute; inset: -8px; }
.date-pill .dp-x:hover { background: #cbd5e1; color: #0f172a; }
.date-pill .dp-input {
  position: absolute; inset: -1px; z-index: 1; width: auto; height: auto;
  margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer;
}
@media (max-width: 720px) {
  .date-pill { min-width: 132px; }
}

/* 模态框 */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.icon-btn { border: 0; background: transparent; font-size: 22px; color: var(--muted); line-height: 1; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--line); color: var(--text); }
.icon-btn:active { background: var(--line); color: var(--text); }

/* Toast */
.toast { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); padding: 11px 20px; border-radius: 9px; background: #1e293b; color: #fff; font-size: 13px; z-index: 200; box-shadow: var(--shadow-lg); max-width: 90vw; text-align: center; }
.toast.err { background: var(--danger); }

/* ===== 工业数据大屏（深色 · 多配色 · 默认工业蓝）===== */
.dash {
  /* 默认配色：工业蓝（宝钢智慧大屏风：深宝蓝底 + 亮蓝发光描边） */
  --dbg:#051a38; --dpanel:#0e3a70; --dpanel2:#0b2f5c;
  --dline:#2a63ab; --dline2:#1d4d89;
  --dtext:#e8f2ff; --dmuted:#a4c3e8; --dsub:#7798bf; --dfaint:#5b7ca8;
  --daccent:#43a9ff; --dclock:#ffffff; --dtitle:#d4e7ff;
  --dbanner:linear-gradient(90deg,#0a2f68,#1465b0 52%,#0a2f68); --dbtnbg:#0b2b57;
  background:
    radial-gradient(760px 420px at 10% 5%, rgba(80,175,255,.30), transparent 62%) no-repeat,
    radial-gradient(720px 440px at 92% 14%, rgba(48,130,240,.24), transparent 64%) no-repeat,
    radial-gradient(940px 540px at 50% 88%, rgba(64,155,255,.18), transparent 66%) no-repeat,
    linear-gradient(180deg, #0d4183 0px, #0b3568 220px, #082848 580px, #051a38 1050px) no-repeat,
    #051a38;
  color: var(--dtext);
  min-height: calc(100vh - 60px); padding: 20px 24px 32px;
  transition: background-color .25s ease;
}
/* 配色：深海蓝 */
.dash[data-theme="blue"] { --dbg:#0b1220; --dpanel:#101c2d; --dpanel2:#0d1828; --dline:#1e293b; --dline2:#16243a; --dtext:#e2e8f0; --dmuted:#94a3b8; --dsub:#64748b; --dfaint:#475569; --daccent:#38bdf8; --dclock:#f1f5f9; --dtitle:#cbd5e1; --dbanner:linear-gradient(90deg,#0f2033,#0b1a2a); --dbtnbg:#111c2e; background: var(--dbg); }
/* 配色：墨绿 */
.dash[data-theme="green"] { --dbg:#071510; --dpanel:#0c2118; --dpanel2:#0a1b13; --dline:#173a2b; --dline2:#122e22; --dtext:#dcf5e8; --dmuted:#8fb8a4; --dsub:#5f8a74; --dfaint:#467058; --daccent:#34d399; --dclock:#eafff3; --dtitle:#c7e8d7; --dbanner:linear-gradient(90deg,#0b2a1c,#071a12); --dbtnbg:#0b241a; background: var(--dbg); }
/* 配色：暗紫 */
.dash[data-theme="purple"] { --dbg:#0d0a18; --dpanel:#171128; --dpanel2:#130e20; --dline:#2a2144; --dline2:#221a38; --dtext:#ece7fb; --dmuted:#a99cc9; --dsub:#746a94; --dfaint:#5b5279; --daccent:#a78bfa; --dclock:#f5f1ff; --dtitle:#d8cff5; --dbanner:linear-gradient(90deg,#1d1438,#120c24); --dbtnbg:#191230; background: var(--dbg); }
/* 配色：琥珀橙 */
.dash[data-theme="amber"] { --dbg:#13100a; --dpanel:#211a11; --dpanel2:#1a140d; --dline:#3a2c1a; --dline2:#2e2314; --dtext:#f5ecdd; --dmuted:#c4ad8c; --dsub:#8d7a5e; --dfaint:#6d5c43; --daccent:#fbbf24; --dclock:#fff8ec; --dtitle:#e8dcc6; --dbanner:linear-gradient(90deg,#2b2011,#1b140b); --dbtnbg:#241b10; background: var(--dbg); }
/* 工业蓝（默认配色）的装饰细节：顶部光晕 + 横幅高光线 + 面板亮描边 */
/* 毛玻璃质感：面板 / 统计卡 / 进度卡统一半透明 + 背景模糊 */
.dash[data-theme="industrial"] .dash-panel,
.dash[data-theme="industrial"] .dash-kpi,
.dash[data-theme="industrial"] .dash-progress-card {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  border-color: rgba(150,200,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 30px rgba(2,12,30,.30);
}
.dash[data-theme="industrial"] .dash-panel-head { border-bottom-color: rgba(255,255,255,.10); }
.dash[data-theme="industrial"] .dash-panel-bar { box-shadow: 0 0 10px rgba(67,169,255,.85); }
/* 设备卡片：轻量半透明（不加模糊，49 张卡避免性能开销） */
.dash[data-theme="industrial"] .dash-dev { background: rgba(255,255,255,.055); border-color: rgba(140,190,245,.20); }
.dash[data-theme="industrial"] .dash-dev:hover { background: rgba(255,255,255,.09); }
.dash[data-theme="industrial"] .dash-dev.done { background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.40); }
.dash[data-theme="industrial"] .dash-dev.alarm { background: rgba(248,113,113,.11); border-color: rgba(248,113,113,.46); }
.dash[data-theme="industrial"] .dash-banner { background: linear-gradient(90deg, rgba(10,47,104,.35), rgba(24,110,190,.5) 52%, rgba(10,47,104,.35)); border-color: #2f77c4; box-shadow: inset 0 1px 0 rgba(130,195,255,.28), 0 6px 26px rgba(18,90,190,.28); }
.dash[data-theme="industrial"] .dash-banner::before { content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #6cc0ff, transparent); }
.dash[data-theme="industrial"] .dash-progress-fill { background: linear-gradient(90deg, #43a9ff, #38d0ff); }
.dash[data-theme="industrial"] .c-cyan .dash-kpi-icon { background: rgba(67,169,255,.18); }

.dash-banner { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border: 1px solid var(--dline); border-radius: 12px; background: var(--dbanner); margin-bottom: 16px; }
.dash-banner-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.dash-eyebrow { font-size: 10px; letter-spacing: 2.5px; color: var(--daccent); }
.dash-themes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash-theme-btn { width: 15px; height: 15px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; transition: transform .15s, border-color .15s; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.dash-theme-btn:hover { transform: scale(1.15); }
.dash-theme-btn.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.22) inset; }
.dash-banner h1 { font-size: 22px; font-weight: 600; letter-spacing: 1px; }
.dash-banner-r { display: flex; align-items: center; gap: 24px; }
.dash-cycle { font-size: 12px; color: var(--dmuted); text-align: right; }
.dash-cycle span { display: block; font-size: 11px; color: var(--dsub); }
.dash-clock { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--dclock); }
.dash-live { display: flex; align-items: center; gap: 7px; color: #34d399; font-size: 12px; }
.dash-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }
.dash-daybar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-daynav { display: flex; align-items: center; gap: 12px; }
.dash-daybtn { width: 30px; height: 30px; border: 1px solid var(--dline); background: var(--dbtnbg); color: var(--dmuted); border-radius: 6px; font-size: 16px; }
.dash-daybtn:hover { color: #fff; border-color: var(--daccent); }
.dash-daylabel { font-size: 14px; font-variant-numeric: tabular-nums; }
.dash-daylabel em { font-size: 11px; color: var(--dsub); font-style: normal; margin-left: 8px; }
.dash-daytoday { color: #34d399; font-size: 12px; }
.dash-dayback { border: 1px solid var(--dline); background: var(--dbtnbg); color: var(--dmuted); border-radius: 6px; padding: 5px 12px; font-size: 12px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } }
.dash-kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--dline); border-radius: 11px; background: var(--dpanel); }
.dash-kpi-icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; }
.c-cyan .dash-kpi-icon { background: rgba(56,189,248,.12); color: var(--daccent); }
.c-green .dash-kpi-icon { background: rgba(52,211,153,.12); color: #34d399; }
.c-red .dash-kpi-icon { background: rgba(248,113,113,.12); color: #f87171; }
.c-orange .dash-kpi-icon { background: rgba(251,191,36,.12); color: #fbbf24; }
.dash-kpi-label { font-size: 12px; color: var(--dmuted); }
.dash-kpi-val { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }
.dash-kpi-val span { font-size: 12px; color: var(--dsub); margin-left: 3px; font-weight: 400; }
.dash-progress-card { border: 1px solid var(--dline); border-radius: 11px; background: var(--dpanel); padding: 16px 20px; margin-bottom: 16px; }
.dash-progress-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.dash-progress-head b { color: #34d399; font-size: 15px; }
.dash-progress-track { height: 8px; border-radius: 5px; background: var(--dline); overflow: hidden; }
.dash-progress-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--daccent), #34d399); transition: width .5s; }
.dash-progress-foot { font-size: 11px; color: var(--dsub); margin-top: 8px; }
/* ---- 数据下钻：整块可点，hover 给出反馈（箭头 + 边框高亮） ---- */
.dash .is-link { cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.dash-kpi.is-link:hover { border-color: var(--daccent); transform: translateY(-1px); }
.dash-kpi-go { margin-left: auto; padding-left: 6px; color: var(--dfaint); font-size: 20px; line-height: 1; transition: color .15s, transform .15s; }
.dash .is-link:hover .dash-kpi-go { color: var(--daccent); transform: translateX(2px); }
.dash-progress-card { position: relative; }
.dash-progress-card.is-link:hover { border-color: var(--daccent); }
.dash-progress-foot .dash-kpi-go { position: absolute; right: 14px; bottom: 6px; }
.dash-feed.is-link:hover { background: rgba(255,255,255,.045); }
.dash-feed-go { margin-left: auto; align-self: center; color: var(--dfaint); font-size: 17px; line-height: 1; transition: color .15s, transform .15s; flex-shrink: 0; }
.dash-feed.is-link:hover .dash-feed-go,
.dash-issue-row.is-link:hover .dash-feed-go { color: var(--daccent); transform: translateX(2px); }
.dash-issue-row.is-link { cursor: pointer; transition: background .15s; }
.dash-issue-row.is-link:hover { background: rgba(255,255,255,.045); }
.dash-dev.is-link:hover { border-color: var(--daccent); }
.dash-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 16px; align-items: stretch; }
/* 左右两列各自纵向铺满，右列最后一块撑满剩余高度，避免下方露出深色底 */
.dash-grid > div { display: flex; flex-direction: column; min-width: 0; }
.dash-grid > div > .dash-panel:last-child { flex: 1; margin-bottom: 0; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-panel { border: 1px solid var(--dline); border-radius: 11px; background: var(--dpanel); margin-bottom: 16px; overflow: hidden; }
.dash-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--dline); }
.dash-panel-head h2 { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dash-panel-bar { width: 3px; height: 15px; border-radius: 2px; background: var(--daccent); display: inline-block; }
.dash-tag { font-size: 11px; color: var(--dsub); }
.dash-panel-body { padding: 16px 18px; }
/* 图例：按「点检 / 巡检打卡 / 遗留故障」三类分组，组间竖线分隔 */
.dash-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-bottom: 14px; font-size: 11px; color: var(--dmuted); }
.dash-legend .leg-group { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-right: 1px solid var(--dline); }
.dash-legend .leg-group:first-child { padding-left: 0; }
.dash-legend .leg-group:last-child { border-right: 0; padding-right: 0; }
.dash-legend .leg-group > b { font-size: 10px; font-weight: 400; letter-spacing: .5px; color: var(--dfaint); white-space: nowrap; }
.leg-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.leg-item i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.leg-item em { font-style: normal; font-size: 10px; line-height: 1.6; padding: 0 5px; border-radius: 4px; background: rgba(251,191,36,.13); border: 1px solid rgba(251,191,36,.45); color: #fbbf24; }
.leg-item em.off { background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.28); color: var(--dfaint); }
.dash-group { margin-bottom: 18px; }
.dash-group:last-child { margin-bottom: 0; }
.dash-group-title { font-size: 12px; color: var(--dtitle); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.dash-group-title em { font-size: 11px; color: var(--dsub); font-style: normal; }
.dash-mini-track { height: 4px; border-radius: 3px; background: var(--dline); flex: 1; max-width: 120px; overflow: hidden; }
.dash-mini-track i { display: block; height: 100%; background: #34d399; }
.dash-devgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.dash-dev { position: relative; border: 1px solid var(--dline); border-radius: 8px; padding: 9px 10px; background: var(--dpanel2); }
.dash-dev.done { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.05); }
.dash-dev.alarm { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.06); }
/* 两个状态点固定在卡片右上角 */
/* 设备卡片：编号与两点同排，四个状态标签 2×2 等分 */
.dash-dev-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dash-dev-no { flex: 1; min-width: 0; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-dev-dots { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dash-dev-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 7px; }
.dev-tag { font-size: 10px; line-height: 1.65; padding: 0 2px; border-radius: 4px; border: 1px solid var(--dline); color: var(--dsub); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-tag.off { color: var(--dfaint); border-color: var(--dline2); }
.dev-tag.on-green { background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.42); color: #34d399; }
.dev-tag.on-red { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.42); color: #f87171; }
.dev-tag.on-blue { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.36); color: #38bdf8; }
.dev-tag.on-amber { background: rgba(251,191,36,.13); border-color: rgba(251,191,36,.45); color: #fbbf24; }
.dash-role-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #334155; }
.dot.on { background: #38bdf8; }
.dash-feed { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--dline2); }
.dash-feed:last-child { border: 0; }
.dash-feed-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.dash-feed-dot.ok { background: #34d399; } .dash-feed-dot.bad { background: #f87171; }
.dash-feed-t { font-size: 12px; }
.dash-feed-s { font-size: 11px; color: var(--dsub); margin-top: 2px; }
.dash-empty { text-align: center; color: var(--dfaint); padding: 24px; font-size: 12px; }
.dash-issue-row { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--dline2); font-size: 12px; }
.dash-issue-row:last-child { border: 0; }
.dash-issue-row > .badge { flex-shrink: 0; margin-top: 1px; }
.dash-issue-main { flex: 1; min-width: 0; }
.dash-issue-t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: #cbd5e1; }
.dash-issue-t b { color: #e2e8f0; font-weight: 600; }
.dash-issue-cat { font-size: 10.5px; color: #7dd3fc; background: rgba(56, 189, 248, .12); border: 1px solid rgba(56, 189, 248, .26); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.dash-issue-s { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 11px; color: var(--dsub); }
.dash-issue-item { color: #e2e8f0; }
.dash-issue-st { font-size: 10.5px; color: #fbbf24; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .26); padding: 0 6px; border-radius: 4px; white-space: nowrap; }
/* 最近点检动态：详细文案 + 异常项胶囊 */
.dash-feed-main { flex: 1; min-width: 0; }
.dash-feed-t { line-height: 1.55; }
.dash-feed-t b { color: #e2e8f0; font-weight: 600; }
.dash-feed-bad { font-style: normal; font-weight: 600; color: #fca5a5; }
.dash-feed-items { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; }
.dash-feed-chip { max-width: 100%; font-size: 10.5px; color: #cbd5e1; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .24); padding: 1px 6px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-feed-chip i { font-style: normal; color: #fca5a5; }
.dash-feed-more { align-self: center; font-size: 10.5px; color: var(--dfaint); }


/* ===== 扫码端（移动端）===== */
.scan-wrap { min-height: 100vh; background: #f1f5f9; padding: 16px; max-width: 560px; margin: 0 auto; }
.scan-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; }
.scan-device { text-align: center; padding: 8px 0 16px; }
.scan-device h2 { font-size: 22px; font-weight: 600; }
.scan-device .code { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 3px 10px; border-radius: 20px; font-family: monospace; }
.scan-notice { background: var(--brand-soft); border: 1px solid #bae6fd; color: #075985; padding: 12px 14px; border-radius: 9px; font-size: 12px; line-height: 1.7; margin-bottom: 14px; }
.menu-title { font-size: 12px; color: var(--muted); margin-bottom: 12px; text-align: center; letter-spacing: 1px; }
.menu-grid { display: grid; gap: 10px; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; transition: all .15s; }
.menu-item:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.menu-item:disabled { opacity: .45; cursor: not-allowed; }
.menu-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.menu-icon.c1 { background: var(--brand-soft); color: var(--brand-d); }
.menu-icon.c2 { background: #f1f5f9; color: var(--muted); }
.menu-icon.c3 { background: var(--ok-soft); color: #047857; }
.menu-icon.c4 { background: var(--warn-soft); color: #b45309; }
.menu-icon.c5 { background: var(--purple-soft); color: #6d28d9; }
.menu-text b { display: block; font-size: 14px; font-weight: 600; }
.menu-text span { font-size: 11px; color: var(--muted); }
.menu-arrow { margin-left: auto; color: var(--subtle); }
.scan-back { display: block; text-align: center; padding: 12px; color: var(--muted); font-size: 13px; }
.identity-box { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface-2); border-radius: 9px; margin-bottom: 16px; }
.identity-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
.identity-name { font-size: 14px; font-weight: 500; }
.identity-role { font-size: 11px; color: var(--muted); }
.photo-picker { position: relative; display: flex; align-items: center; gap: 10px; }
.photo-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-btn { padding: 9px 16px; background: var(--brand-soft); color: var(--brand-d); border-radius: 8px; font-size: 13px; font-weight: 500; }
.photo-name { font-size: 12px; color: var(--muted); }
.check-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.check-item-name { flex: 1; font-size: 13px; }
.check-item-actions { display: flex; gap: 6px; }
.chip { padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--muted); }
.chip.ok-active { background: var(--ok-soft); border-color: #6ee7b7; color: #047857; }
.chip.bad-active { background: var(--danger-soft); border-color: #fca5a5; color: #b91c1c; }
.check-item-note { margin-top: 8px; }
.check-item-note input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }

/* ===== 点检本（扫码点检：按部位分组 + 点检标准提示） ===== */
.book-bar { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); border: 1px solid #bae6fd; border-radius: 9px; padding: 9px 12px; margin-bottom: 14px; }
.book-bar-main { flex: 1; min-width: 0; }
.book-bar-main b { display: block; font-size: 13px; color: #075985; }
.book-bar-main span { display: block; font-size: 11px; color: #0369a1; margin-top: 2px; }
.book-bar-tag { flex-shrink: 0; font-size: 11px; padding: 3px 9px; border-radius: 20px; background: #fff; color: #075985; border: 1px solid #bae6fd; }
.ck-group { margin-bottom: 16px; }
.ck-group-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 7px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ck-group-name { font-size: 13px; font-weight: 600; color: var(--text); }
.ck-group-count { font-size: 11px; color: var(--muted); }
.ck-group-all { margin-left: auto; font-size: 11px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--brand-d); }
.ck-group-all:active { background: var(--brand-soft); }
.ck-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 7px; background: #fff; }
.ck-row.bad { border-color: #fca5a5; background: #fff7f7; }
.ck-row-main { min-width: 0; }
.ck-row-name { font-size: 13px; line-height: 1.45; }
.ck-row-std { font-size: 11px; color: var(--muted); line-height: 1.55; margin-top: 3px; }
.ck-row-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.ck-tag { font-size: 10px; padding: 1px 7px; border-radius: 20px; background: #eef2f7; color: #52627a; }
.ck-tag-pos { background: #eef7f0; color: #2f6b46; }
.ck-row-acts { display: flex; gap: 6px; flex-shrink: 0; }
.ck-row-acts .chip { min-width: 50px; padding: 7px 10px; font-size: 12px; }
.ck-row-note { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; }
.ck-row-note input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.ck-row-note select { width: 92px; flex-shrink: 0; padding: 8px 6px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }

/* 扫码首页：行车属性 + 点检本 */
.dev-drive { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.drive-pill { font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.drive-pill.manual { background: #fff4e5; color: #9a5b00; border: 1px solid #fcd9a4; }
.drive-pill.auto { background: #e8f2ff; color: #0b56a4; border: 1px solid #b9d8ff; }
.dev-drive-book { font-size: 11px; color: var(--muted); }
.success-panel { text-align: center; padding: 32px 16px; }
.success-panel .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 32px; margin: 0 auto 16px; }
.success-panel p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.hist-item { border: 1px solid var(--line); border-radius: 9px; padding: 12px; margin-bottom: 10px; }
.hist-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.hist-meta { font-size: 11px; color: var(--muted); }
.qr-meta { font-size: 11px; color: var(--muted); word-break: break-all; }

/* 工单状态时间线 */
.timeline { display: flex; gap: 0; margin: 12px 0; }
.tl-step { flex: 1; text-align: center; position: relative; font-size: 10px; color: var(--subtle); }
.tl-step::before { content: ''; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: var(--line); }
.tl-step:first-child::before { left: 50%; }
.tl-step:last-child::before { right: 50%; }
.tl-step.done::before { background: var(--ok); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin: 0 auto 5px; position: relative; z-index: 1; }
.tl-step.done .tl-dot { background: var(--ok); }
.tl-step.current .tl-dot { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tl-step.current { color: var(--brand-d); font-weight: 500; }

/* ===== 中等宽度：顶栏紧凑，尽量放全 9 个导航 ===== */
@media (max-width: 1320px) {
  .topbar { padding: 0 16px; gap: 14px; }
  .brand-s { display: none; }
  .brand-t { font-size: 14px; }
  .nav-btn { padding: 7px 10px; font-size: 12.5px; }
  .user-chip { padding-left: 10px; gap: 7px; }
}
@media (max-width: 1140px) {
  .topbar { padding: 0 12px; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
  .brand-t { font-size: 13px; }
  .nav { gap: 2px; padding: 3px; }
  .nav-btn { padding: 6px 8px; font-size: 12px; }
  .user-chip { padding-left: 8px; gap: 6px; }
  .btn-logout { padding: 5px 9px; font-size: 12px; }
}


/* ===== 工单详情：流程时间轴 + 照片 ===== */
.iss-flow { display: flex; margin: 16px 2px 4px; }
.iss-step { flex: 1 1 0; min-width: 0; position: relative; text-align: center; padding: 20px 4px 0; }
.iss-step:not(:first-child)::before { content: ''; position: absolute; top: 5px; left: calc(-50% + 9px); width: calc(100% - 18px); height: 2px; background: var(--line); }
.iss-step.done:not(:first-child)::before { background: var(--brand); }
.iss-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 0 3px #f1f5f9; }
.iss-step.done .iss-dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(14, 165, 233, .15); }
.iss-step.now .iss-dot { background: #fbbf24; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.iss-s1 { font-size: 12px; font-weight: 600; color: #334155; }
.iss-s2 { font-size: 12px; color: #475569; margin-top: 3px; line-height: 1.45; }
.iss-note { font-size: 11px; color: #64748b; background: #f8fafc; border-radius: 6px; padding: 2px 6px; margin: 4px 2px 0; line-height: 1.4; word-break: break-all; }
.iss-s3 { font-size: 10.5px; color: #94a3b8; margin-top: 3px; white-space: nowrap; }
.iss-sec { margin-top: 14px; }
.insp-thumb.is-issue { width: 96px; height: 96px; }
.iss-cat { display: inline-block; font-size: 10.5px; color: #0369a1; background: #e0f2fe; border: 1px solid #bae6fd; padding: 0 6px; border-radius: 4px; vertical-align: 1px; margin-right: 4px; }
/* 工单列表：「类目 + 点检项」下挂一行问题描述，超长省略，避免撑破表格 */
.iss-item-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iss-photos { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .iss-step { padding: 18px 2px 0; }
  .iss-s1 { font-size: 11px; }
  .iss-s2 { font-size: 11px; }
  .iss-note { font-size: 10.5px; padding: 2px 4px; }
  .insp-thumb.is-issue { width: 84px; height: 84px; }
}

/* ===== 移动端适配（微信 / 手机浏览器）===== */
@media (max-width: 768px) {
  /* 顶栏：品牌与用户同一行，导航独立第二行横向滚动，杜绝互相挤压/遮挡 */
  .topbar { height: auto; min-height: 56px; padding: 9px 12px 10px; gap: 8px; flex-wrap: wrap; align-content: flex-start; }
  .brand { order: 1; flex: 1 1 auto; min-width: 0; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
  .brand-t { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-s { display: none; }
  .user-chip { order: 2; flex: 0 0 auto; gap: 6px; padding-left: 0; border-left: 0; }
  .user-meta { display: none; }
  .avatar { width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #e0f2fe; }
  .btn-logout { margin-left: 2px; padding: 5px 9px; font-size: 12px; }
  .nav {
    order: 3; flex: 0 0 100%; width: auto; margin: 0 -12px; padding: 0 12px 2px; gap: 6px;
    background: transparent; border-radius: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn { padding: 6px 11px; font-size: 12px; flex-shrink: 0; background: #f1f5f9; }
  .nav-btn.active { background: var(--brand-soft); color: var(--brand-d); box-shadow: none; }

  .main { padding: 12px; padding-bottom: 28px; }
  .main.no-pad { padding: 0; padding-bottom: 28px; }
  .page-head { margin-bottom: 14px; }
  .page-head h2 { font-size: 18px; }
  .page-head p { font-size: 12px; }
  .card-pad { padding: 14px; }
  .filters input, .filters select { min-height: 36px; }
  /* 表格保持最小宽度横向滚动，避免操作按钮被挤成竖排 */
  .table-wrap table { min-width: 720px; }
  .actions .btn, td .btn { white-space: nowrap; flex-shrink: 0; }

  /* 工业大屏：标题独立成行，周期/时钟/状态分层，不再挤成竖排 */
  .dash { min-height: calc(100vh - 110px); padding: 12px 12px 28px; }
  .dash-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .dash-banner-head { flex-wrap: wrap; gap: 8px; }
  .dash-themes { gap: 5px; }
  .dash-theme-btn { width: 14px; height: 14px; }
  .dash-eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .dash-banner h1 { font-size: 18px; letter-spacing: 0; line-height: 1.4; }
  .dash-banner-r { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; width: 100%; }
  .dash-cycle { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; text-align: left; font-size: 11px; white-space: nowrap; }
  .dash-cycle span { display: inline; font-size: 11px; }
  .dash-clock { font-size: 15px; white-space: nowrap; }
  .dash-live { font-size: 11px; white-space: nowrap; justify-self: end; }
  .dash-daybar { flex-wrap: wrap; gap: 8px; }
  .dash-daynav { width: 100%; justify-content: space-between; gap: 8px; }
  .dash-daylabel { font-size: 13px; white-space: nowrap; display: flex; align-items: baseline; gap: 6px; }
  .dash-daylabel em { font-size: 10px; margin-left: 0; white-space: nowrap; }
  .dash-daytoday, .dash-dayback { font-size: 11px; white-space: nowrap; }
  .dash-daybar > :last-child { margin-left: auto; }
  .dash-kpis { gap: 10px; }
  .dash-kpi { padding: 12px; gap: 10px; }
  .dash-kpi-icon { width: 36px; height: 36px; border-radius: 8px; font-size: 18px; }
  .dash-kpi-icon svg { width: 18px; height: 18px; }
  .dash-kpi-label { font-size: 11px; }
  .dash-kpi-val { font-size: 22px; }
  .dash-kpi-val span { font-size: 11px; }
  .dash-progress-card { padding: 14px; }
  .dash-grid { gap: 12px; }
  .dash-panel-head { padding: 12px 14px; }
  .dash-panel-head h2 { font-size: 13px; }
  .dash-tag { display: none; }
  .dash-panel-body { padding: 12px 14px; }
  .dash-legend { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 10px; font-size: 10px; }
  .dash-legend .leg-group { width: 100%; padding: 0; border-right: 0; gap: 6px; }
  .dash-legend .leg-group > b { width: 52px; flex-shrink: 0; }
  .dash-devgrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
  .dash-dev { padding: 8px; }
  .dash-dev-no { font-size: 11px; }
  .dash-dev-tags { gap: 3px; margin-top: 6px; }
  .dev-tag { font-size: 9px; line-height: 1.7; }
  .dash-feed-t { font-size: 11px; }

  /* 设备台账（手机端） */
  .dev-toolbar { gap: 8px; }
  .dev-search { flex: 1 1 100%; }
  .dev-toolbar select { flex: 1 1 0; min-width: 0; }
  .dev-count { display: none; }
  .dev-swipe { display: block; font-size: 11px; color: var(--subtle); text-align: center; padding: 9px 0 3px; }
  .dev-table { min-width: 1180px; }

  /* 弹窗与扫码页 */
  .modal-mask { padding: 10px; }
  .modal { max-height: 92vh; border-radius: 12px; }
  .modal-head, .modal-body, .modal-foot { padding: 14px; }
  .modal-head { padding-right: 10px; }
  .icon-btn { width: 40px; height: 40px; font-size: 24px; margin-right: -6px; }
  .modal-foot { flex-wrap: wrap; }
  .scan-wrap { padding: 12px; }
  .scan-card { padding: 16px; }
  .login-wrap { padding: 14px; }
  .login-card { padding: 24px 20px; }
  .login-brand h1 { font-size: 17px; }
}

/* 打印二维码时隐藏导航与操作按钮 */
@media print {
  .topbar, .no-print, .page-head .btn, .modal-foot { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ===== 点检本配置页 ===== */
.book-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 16px; }
.book-tab { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; cursor: pointer; transition: all .15s; }
.book-tab:hover { border-color: #b9d8ff; }
.book-tab.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(14, 165, 233, .1); }
.book-tab-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.book-tab-top b { font-size: 14px; }
.book-tab-meta { font-size: 12px; color: var(--muted); }
.book-tab-cycle { font-size: 11px; color: var(--subtle); margin-top: 4px; }
.book-group-head { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: #f8fafc; border-radius: 10px 10px 0 0; }
.book-group-name { font-size: 14px; font-weight: 600; }
.book-group-count { font-size: 11px; color: var(--muted); background: #eef2f7; padding: 1px 8px; border-radius: 20px; }
.book-table { min-width: 980px; }
.book-table th { font-size: 11px; }
.book-table td { font-size: 12.5px; vertical-align: top; padding-top: 9px; padding-bottom: 9px; }
.book-table .btn-sm { padding: 4px 8px; font-size: 11.5px; }
.book-table .btn-danger { background: #fff; border-color: #f3c6c6; color: #c0392b; }
.book-table .btn-danger:hover { background: var(--danger-soft); border-color: #fca5a5; color: #b91c1c; }
.book-table .actions { flex-wrap: nowrap; gap: 5px; }
.book-std { color: #4a5a70; line-height: 1.65; font-size: 12px; }
.book-inp { padding: 6px 8px; border: 1px solid var(--brand); border-radius: 6px; font-size: 12px; font-family: inherit; }
@media (max-width: 720px) {
  .book-table { min-width: 860px; }
  .book-tabs { grid-template-columns: 1fr; }
  .ck-row { grid-template-columns: 1fr auto; align-items: start; gap: 6px 8px; padding: 10px; }
  .ck-row-acts { align-self: start; }
  .ck-row-acts .chip { min-width: 56px; padding: 9px 9px; font-size: 12px; }
  .ck-row-std { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .ck-row-note { flex-direction: column; }
  .ck-row-note select { width: 100%; }
}

/* ===== 点检记录表（含管理员删除）===== */
.rec-table { min-width: 1000px; }
.rec-table td .btn, .rec-table th.op-col { white-space: nowrap; }
.rec-table .btn-danger { background: #fff; border-color: #f3c6c6; color: #c0392b; }
.rec-table .btn-danger:hover { background: var(--danger-soft); border-color: #fca5a5; color: #b91c1c; }
.rec-table td.hint { white-space: normal; }
@media (max-width: 720px) {
  .rec-table { min-width: 900px; }
}

/* ===== 扫码点检：四态 + 分组折叠 + 草稿 + 签名 ===== */
.ck-page { padding-bottom: 96px; }
.ck-prog { margin: 2px 0 14px; }
.ck-prog-bar { height: 6px; border-radius: 6px; background: #e8eef5; overflow: hidden; }
.ck-prog-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #38bdf8, #0ea5e9); transition: width .22s ease; }
.ck-prog-txt { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 7px; }
.ck-prog-txt b { color: var(--text); font-size: 13px; }
.ck-prog-tags em { font-style: normal; margin-left: 7px; padding: 1px 8px; border-radius: 20px; font-size: 11px; }
.ck-prog-tags .t-bad { background: var(--danger-soft); color: #b91c1c; }
.ck-prog-tags .t-watch { background: var(--warn-soft); color: #92400e; }
.ck-prog-tags .t-na { background: #eef2f7; color: #475569; }

.draft-tip { display: flex; align-items: center; gap: 10px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8;
  border-radius: 9px; padding: 9px 12px; font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
.draft-tip button { margin-left: auto; flex-shrink: 0; font-size: 12px; padding: 3px 10px; border: 1px solid #bfdbfe;
  background: #fff; color: #1d4ed8; border-radius: 20px; }

.ck-grp { background: #fff; border: 1px solid #e6ebf2; border-radius: 12px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow: hidden; }
.ck-grp-head { display: flex; align-items: center; gap: 7px; padding: 15px 16px; cursor: pointer; user-select: none; }
.ck-grp-head:active { background: #f8fafc; }
.ck-grp-name { font-size: 15px; font-weight: 600; color: var(--text); }
.ck-grp-sep { color: #cbd5e1; }
.ck-grp-cnt { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ck-grp-flag { font-size: 11px; padding: 1px 7px; border-radius: 20px; background: var(--danger-soft); color: #b91c1c; }
.ck-grp-arrow { margin-left: auto; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.ck-grp.open .ck-grp-head { border-bottom: 1px solid var(--line); }
.ck-grp-body { padding: 10px 12px 6px; }
.ck-grp-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ck-all { font-size: 12px; padding: 5px 13px; border-radius: 20px; border: 1px solid #bbf7d0;
  background: #f0fdf4; color: #047857; font-weight: 500; }
.ck-all:active { background: #dcfce7; }

.ck-item { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; background: #fff; }
.ck-item.s-ok { border-color: #d1fae5; background: #f7fdfa; }
.ck-item.s-bad { border-color: #fca5a5; background: #fff7f7; }
.ck-item.s-watch { border-color: #fcd34d; background: #fffdf5; }
.ck-item.s-na { border-color: #e2e8f0; background: #f9fafb; }
.ck-item-name { font-size: 13.5px; line-height: 1.45; color: var(--text); font-weight: 500; }
.ck-item-std { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-top: 3px; }
.ck-item-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }

.ck-sts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 9px; }
.ck-st { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 7px 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: all .12s; }
.ck-st i { font-style: normal; font-size: 15px; line-height: 1; font-weight: 600; color: #94a3b8; }
.ck-st b { font-size: 11px; font-weight: 500; color: var(--muted); }
.ck-st.on.ok { background: var(--ok-soft); border-color: #6ee7b7; }
.ck-st.on.ok i, .ck-st.on.ok b { color: #047857; }
.ck-st.on.bad { background: var(--danger-soft); border-color: #fca5a5; }
.ck-st.on.bad i, .ck-st.on.bad b { color: #b91c1c; }
.ck-st.on.watch { background: var(--warn-soft); border-color: #fcd34d; }
.ck-st.on.watch i, .ck-st.on.watch b { color: #92400e; }
.ck-st.on.na { background: #eef2f7; border-color: #cbd5e1; }
.ck-st.on.na i, .ck-st.on.na b { color: #475569; }

.ck-item-extra { margin-top: 9px; display: flex; flex-direction: column; gap: 8px; }
.ck-item-extra input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.ck-item-extra-foot { display: flex; align-items: center; gap: 8px; }
.ck-item-extra select { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: #fff; }
.ck-item-photo { position: relative; overflow: hidden; }
.ck-item-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ck-item-photo span { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; color: var(--brand-d); background: #fff; }

.ck-legend { font-size: 12px; color: var(--muted); line-height: 1.75; margin-top: 14px; padding: 0 2px; }

.ck-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .07);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; justify-content: center; }
.ck-foot-btn { flex: 1 1 0; max-width: 256px; height: 48px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--text); }
.ck-foot-btn.ghost:active { background: var(--surface-2); }
.ck-foot-btn.primary { background: #17548f; border-color: #17548f; color: #fff; }
.ck-foot-btn.primary:active { background: #123f6d; }
.ck-foot-btn:disabled { opacity: .65; }

.sign-mask { position: fixed; inset: 0; z-index: 130; background: rgba(15, 23, 42, .58);
  display: flex; align-items: flex-end; justify-content: center;
  overscroll-behavior: contain; }
.sign-panel { width: 100%; max-width: 560px; background: #fff; border-radius: 16px 16px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.sign-title { font-size: 16px; font-weight: 600; }
.sign-sub { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.sign-pad { display: block; width: 100%; height: 190px; background: #f8fafc;
  border: 1px dashed #cbd5e1; border-radius: 10px; touch-action: none; }
.sign-hint { font-size: 11px; color: var(--subtle); margin-top: 8px; }
.sign-actions { display: flex; gap: 8px; margin-top: 12px; }
.sign-actions .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; padding: 11px 4px; font-size: 13.5px; }
@media (min-width: 720px) {
  .sign-mask { align-items: center; }
  .sign-panel { border-radius: 16px; }
}
.sign-actions .btn-primary { background: #17548f; border-color: #17548f; }
.rec-watch { font-size: 12px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 7px; padding: 5px 9px; margin-top: 6px; line-height: 1.6; }
.rec-link + .rec-link { margin-left: 10px; }

/* ===== 单项多图（异常必传、可删减）===== */
.ck-item-extra-foot { flex-wrap: wrap; }
.ck-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ck-photo { position: relative; aspect-ratio: 1/1; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line); background: #f1f5f9; }
.ck-photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.ck-photo-del { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; padding: 0;
  border: none; border-radius: 50%; background: rgba(15, 23, 42, .62); color: #fff;
  font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ck-photo-del:active { background: rgba(185, 28, 28, .92); }
.ck-photos-cnt { grid-column: 1 / -1; font-size: 11px; color: var(--muted); margin-top: -2px; }
.ck-req { font-size: 11.5px; line-height: 1.5; color: #b91c1c; background: #fff1f2;
  border: 1px solid #fecdd3; border-radius: 7px; padding: 6px 9px; }

/* ===== 签名板：横屏全屏 ===== */
.sign-head { display: flex; align-items: flex-start; gap: 10px; }
.sign-head > div:first-child { flex: 1; min-width: 0; }
.sign-full-btn { flex-shrink: 0; font-size: 12px; padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff; color: var(--brand-d); white-space: nowrap; }
.sign-full-btn:active { background: var(--surface-2); }

.sign-mask.is-full { background: #fff; align-items: stretch; }
.sign-mask.is-full .sign-panel {
  position: fixed; left: 50%; top: 50%;
  max-width: none; margin: 0; border-radius: 0;
  display: flex; flex-direction: column; overflow: hidden;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: none;
}
/* 竖屏点「横屏全屏」：面板宽高互换后整体旋转 90°，微信/Safari 里同样生效 */
.sign-mask.is-full.rot .sign-panel { transform: translate(-50%, -50%) rotate(90deg); }
.sign-mask.is-full .sign-title { font-size: 16px; }
.sign-mask.is-full .sign-sub { font-size: 11.5px; margin: 3px 0 0; }
.sign-mask.is-full .sign-pad { flex: 1 1 auto; height: auto; min-height: 0; margin-top: 10px; background: #fbfdff; }
.sign-mask.is-full .sign-hint { margin-top: 6px; font-size: 11px; }
.sign-mask.is-full .sign-actions { margin-top: 10px; }
.sign-mask.is-full .sign-actions .btn { flex: 1; padding: 10px 6px; font-size: 13px; white-space: nowrap; }

/* 旋转后在视觉上相当于横屏，头部收紧一点，把空间都留给画板 */
.sign-mask.is-full.rot .sign-panel { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.sign-mask.is-full.rot .sign-actions { margin-top: 8px; }
.sign-mask.is-full.rot .sign-actions .btn { padding: 9px 6px; }

/* 真横屏手机（视口本身就是横向）：同样收紧 */
@media (orientation: landscape) and (max-height: 520px) {
  .sign-mask.is-full .sign-panel { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .sign-mask.is-full .sign-title { font-size: 15px; }
  .sign-mask.is-full .sign-hint { display: none; }
  .sign-mask.is-full .sign-actions .btn { padding: 9px 6px; }
}

/* 记录弹窗：异常项现场照片缩略图（可多张） */
.rec-thumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.rec-thumb { display: block; width: 62px; height: 62px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #f1f5f9; }
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-thumb:active { opacity: .75; }
@media (max-width: 720px) { .rec-thumb { width: 54px; height: 54px; } }


/* ===== iOS/微信：输入控件字号 <16px 会触发聚焦自动放大整页，签名板会跟着错位 ===== */
@media (max-width: 820px) {
  input, select, textarea { font-size: 16px !important; }
  .sign-actions .btn { font-size: 14px !important; }
  .ck-foot-btn { font-size: 15px !important; }
}

/* ===== 点检记录完整明细弹窗 ===== */
.modal-wide { max-width: 880px; }
.insp-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.ih-line1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ih-line1 b { font-size: 17px; font-weight: 700; }
.ih-name { font-size: 13px; color: var(--muted); }
.ih-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.insp-stat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.is-cell { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 8px 6px; text-align: center; }
.is-cell b { display: block; font-size: 19px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.is-cell span { font-size: 11px; color: var(--muted); }
.is-cell.ok b { color: #15803d; }
.is-cell.bad b { color: #b91c1c; }
.is-cell.watch b { color: #b45309; }
.is-cell.na b { color: var(--muted); }
.insp-media { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.im-col { flex: 1 1 240px; min-width: 0; }
.im-t { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.im-none { font-size: 12px; color: var(--subtle); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px; padding: 16px; text-align: center; }
.insp-thumb { display: block; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.insp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.insp-thumb:active { opacity: .75; }
.insp-thumb.is-sign { width: 100%; height: 100px; }
.insp-thumb.is-photo { width: 100%; height: 110px; }
.insp-thumb.is-photo img { object-fit: cover; }
.insp-thumb.is-sign img { object-fit: contain; }
.insp-groups { display: flex; flex-direction: column; gap: 10px; }
.insp-grp { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.insp-grp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.insp-grp-h em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.insp-it { padding: 9px 12px; border-top: 1px solid var(--line); }
.insp-it:first-of-type { border-top: 0; }
.ii-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ii-st { font-size: 11px; padding: 1px 8px; border-radius: 20px; border: 1px solid transparent; white-space: nowrap; line-height: 1.7; }
.ii-st.ok { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.ii-st.bad { color: #b91c1c; background: var(--danger-soft); border-color: #fecaca; }
.ii-st.watch { color: #b45309; background: var(--warn-soft); border-color: #fde68a; }
.ii-st.na { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.ii-name { font-size: 13px; font-weight: 500; }
.ii-pos { margin-left: auto; font-size: 11px; color: var(--subtle); }
.ii-std { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.ii-note { font-size: 12px; margin-top: 5px; padding: 5px 9px; border-radius: 6px; background: var(--danger-soft); color: #b91c1c; line-height: 1.6; }
.st-watch .ii-note { background: var(--warn-soft); color: #b45309; }
.ii-photos { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.insp-remark { font-size: 13px; background: var(--surface-2); border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; line-height: 1.7; }
.rec-more { margin-left: auto; flex: none; }

/* 图片 / 签名全屏预览 */
.pv-mask { position: fixed; inset: 0; background: rgba(2, 6, 23, .9); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; }
.pv-mask img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 6px; background: #fff; }
.pv-x { position: fixed; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; line-height: 1; }
.pv-cap { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: #cbd5e1; font-size: 12px; padding: 0 16px; }
/* 多图预览：左右滑动 / 箭头 / 圆点翻页 */
.pv-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.pv-stage img { max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: 6px; background: #fff; user-select: none; -webkit-user-drag: none; }
.pv-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 30px; line-height: 1; display: grid; place-items: center; padding-bottom: 4px; transition: background .15s, transform .12s; }
.pv-nav:hover { background: rgba(255,255,255,.3); }
.pv-nav:active { transform: translateY(-50%) scale(.94); }
.pv-prev { left: 16px; }
.pv-next { right: 16px; }
.pv-count { display: inline-block; min-width: 46px; margin-right: 10px; padding: 1px 8px; border-radius: 10px; background: rgba(255,255,255,.16); color: #fff; font-variant-numeric: tabular-nums; }
.pv-hint { color: #94a3b8; margin-left: 10px; }
.pv-dots { position: fixed; bottom: 44px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pv-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); cursor: pointer; transition: background .15s, transform .15s; }
.pv-dots i.on { background: #38bdf8; transform: scale(1.3); }
@media (max-width: 720px) {
  .pv-nav { width: 36px; height: 36px; font-size: 24px; background: rgba(255,255,255,.12); }
  .pv-prev { left: 8px; }
  .pv-next { right: 8px; }
  .pv-cap { font-size: 11px; bottom: 14px; line-height: 1.5; }
  .pv-hint { display: none; }        /* 手机上圆点+计数已足够，说明文字会挤成两行 */
  .pv-dots { bottom: 38px; }
  .pv-stage img { max-height: 70vh; }
}

@media (max-width: 720px) {
  .modal-wide { max-width: 100%; }
  .insp-stat { gap: 6px; }
  .is-cell b { font-size: 17px; }
  .insp-thumb { width: 64px; height: 64px; }
  .insp-thumb.is-sign { height: 84px; }
  .insp-thumb.is-photo { height: 130px; }
  .rec-more { margin-left: 0; }
}
