/* ============================================================
   终端设备巡检登记系统 —— 样式表
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --line: #e3e8f0;
  --line-soft: #eef1f6;
  --text: #16202e;
  --text-2: #48566b;
  --muted: #6f7d92;
  --muted-2: #97a1b2;

  --primary: #1c5fd6;
  --primary-dark: #1549a8;
  --primary-weak: #eaf1fe;

  --ok: #0e7a4d;
  --ok-weak: #e6f6ee;
  --bad: #c22f2f;
  --bad-weak: #fdedec;
  --warn: #a15c00;
  --warn-weak: #fff4e2;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 8px 24px -12px rgba(16, 24, 40, .18);
}

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--primary); }
kbd {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-2);
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: #f7f9fc; border-color: #d3dae6; }
.btn:active { transform: translateY(.5px); }
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(28, 95, 214, .25);
}
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.ghost { background: #fff; }
.btn.danger {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
.btn.danger:hover { background: #a52525; border-color: #a52525; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; height: 42px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* 批次结束后表单只读 */
#inspectForm.locked #checkList,
#inspectForm.locked #quickTags,
#inspectForm.locked #dropZone,
#inspectForm.locked #fActions,
#inspectForm.locked #fRemark,
#inspectForm.locked #shots .del {
  pointer-events: none;
  opacity: .6;
}
.icon-btn {
  width: 30px; height: 30px;
  border: none; background: transparent; color: var(--muted);
  border-radius: 6px; cursor: pointer; font-size: 14px;
  display: grid; place-items: center;
}
.icon-btn:hover { background: var(--line-soft); color: var(--text); }

/* ---------------- 输入 ---------------- */
input[type="text"], input[type="password"], textarea, select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 95, 214, .12);
}
textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
select { appearance: none; padding-right: 30px; cursor: pointer; }
.field { display: block; margin-bottom: 14px; }
.field label, .field > span {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}

/* ---------------- 登录页 ---------------- */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 420px at 15% -10%, #e2ecff 0%, transparent 62%),
    radial-gradient(800px 400px at 100% 110%, #e6f4ff 0%, transparent 55%),
    var(--bg);
}
.gate-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 32px 26px;
  box-shadow: 0 12px 40px -18px rgba(16, 24, 40, .25);
}
.gate-logo {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.gate-card h1 { font-size: 21px; margin-bottom: 6px; }
.gate-sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.gate-tip {
  font-size: 13px;
  color: var(--bad);
  min-height: 20px;
  margin-top: 10px;
}
.gate-foot {
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.gate-foot span { font-size: 11px; color: var(--muted-2); }

/* ---------------- 顶栏 ---------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  height: 58px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--primary);
  display: grid; place-items: center;
  flex: none;
}
.brand-text { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-text strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
.mode-tag {
  font-style: normal;
  font-size: 11px;
  color: var(--warn);
  background: var(--warn-weak);
  border: 1px solid #f5dca8;
  padding: 1px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.topbar-tools { display: flex; align-items: center; gap: 10px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾";
  position: absolute; right: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
  font-size: 11px;
}
#batchSelect { height: 34px; min-width: 190px; padding: 4px 30px 4px 12px; font-size: 13px; }

.who {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  background: #fff;
  transition: background .15s;
}
.who:hover { background: #f7f9fc; }
.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-weak);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.who-text { display: flex; flex-direction: column; line-height: 1.2; }
.who-text strong { font-size: 12.5px; font-weight: 600; color: var(--text); }
.who-text em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }

.gate-loading { text-align: center; color: var(--muted); padding: 40px 0; font-size: 13px; }
.hint-line {
  padding: 10px 18px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.notice {
  margin: 0 0 14px;
  padding: 11px 16px;
  border: 1px solid #f0d9a8;
  border-left: 4px solid var(--warn);
  background: var(--warn-weak);
  color: #7a4600;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .notice { margin: 0 0 10px; padding: 9px 12px; font-size: 12.5px; }
}

.kv-list { display: flex; flex-direction: column; gap: 8px; }
.kv-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: #fafbfd;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: 13px;
}
.kv-list span { color: var(--muted); }
.kv-list b { font-weight: 600; color: var(--text); }

.link-btn {
  border: none;
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 5px;
  transition: background .13s;
}
.link-btn:hover { background: var(--primary-weak); }
.link-btn.danger { color: var(--bad); }
.link-btn.danger:hover { background: var(--bad-weak); }
.link-btn[disabled] { color: var(--muted-2); cursor: not-allowed; background: transparent; }

/* ---------------- 标签页 ---------------- */
.tabs {
  display: flex;
  gap: 2px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 58px;
  z-index: 29;
  overflow-x: auto;
}
.tab {
  position: relative;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--muted);
  padding: 12px 14px 13px;
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); font-weight: 600; }
.tab.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.main { flex: 1; padding: 20px; max-width: 1440px; width: 100%; margin: 0 auto; }

/* ---------------- 面板 ---------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.panel-head h2 { font-size: 15px; }
.head-actions { display: flex; gap: 8px; }
.counter {
  font-size: 12px;
  color: var(--muted);
  background: var(--line-soft);
  padding: 2px 9px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
}

/* ---------------- 巡检布局 ---------------- */
.inspect-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dev-panel { position: sticky; top: 122px; display: flex; flex-direction: column; max-height: calc(100vh - 142px); }
.search-row { padding: 10px 12px 0; }
.search-input {
  width: 100%;
  font-family: inherit;
  font-size: 12.5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  outline: none;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.search-input::placeholder { color: var(--muted-2); }
.list-count { margin-left: auto; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.list-more { padding: 9px 12px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.table-toolbar .search-input { max-width: 320px; }
.mini-select {
  font-family: inherit;
  font-size: 12.5px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-2);
}
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid var(--line-soft); }
.cleanup-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafbfd;
  padding: 4px 12px;
}
.cleanup-box > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-2);
}
.cleanup-box > div + div { border-top: 1px dashed var(--line); }
.cleanup-box b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }

.filter-row { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.chip {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
}
.chip:hover { background: var(--line-soft); }
.chip.active { background: var(--primary-weak); color: var(--primary); font-weight: 600; }

.dev-list { overflow-y: auto; padding: 8px; flex: 1; }
.dev-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .12s;
}
.dev-item:hover { background: #f7f9fc; }
.dev-item.active { background: var(--primary-weak); border-color: #cfe0fd; }
.dev-item .dev-main { min-width: 0; flex: 1; }
.dev-item .dev-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dev-item .dev-sub {
  font-size: 11.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d7dde7; flex: none;
}
.dot.done { background: var(--ok); }
.dot.fail { background: var(--bad); }

/* ---------------- 表单 ---------------- */
.form-panel { padding: 20px 22px 22px; min-height: 420px; }
.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 4px;
}
.form-head h2 { font-size: 18px; }
.badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--primary-weak);
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
}
.badge.laptop { background: #eef1f6; color: var(--text-2); }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin: 22px 0 10px;
}
.section-title .small { font-weight: 400; }

.check-list { display: flex; flex-direction: column; gap: 8px; }
.chk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s, background .15s;
}
.chk.pass { border-color: #b7e2cd; background: #fbfffc; }
.chk.fail { border-color: #f3c4c1; background: #fffbfb; }
.chk-main { flex: 1; min-width: 0; }
.chk-title { font-size: 13.5px; color: var(--text); }
.chk-hint { font-size: 11.5px; color: var(--muted-2); margin-top: 1px; }

.seg { display: flex; gap: 6px; flex: none; }
.seg button {
  font-family: inherit;
  font-size: 13px;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all .13s;
  white-space: nowrap;
}
.seg button:hover { border-color: #cfd7e4; color: var(--text-2); }
.seg button.on-pass { background: var(--ok); border-color: var(--ok); color: #fff; font-weight: 500; }
.seg button.on-fail { background: var(--bad); border-color: var(--bad); color: #fff; font-weight: 500; }

.quick-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag-btn {
  font-family: inherit;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px dashed #cfd7e4;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.tag-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-weak); }

/* ---------------- 上传区 ---------------- */
.drop-zone {
  border: 1.5px dashed #cfd8e6;
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--text-2);
  font-size: 13px;
}
.drop-zone:hover, .drop-zone.over { border-color: var(--primary); background: var(--primary-weak); }
.drop-zone strong { color: var(--primary); }
.drop-zone p + p { margin-top: 4px; }

.shots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.shot {
  position: relative;
  width: 148px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f0f3f8;
  cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .del {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .15s;
}
.shot:hover .del { opacity: 1; }
.shot .shot-time {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2px 6px;
  font-size: 10px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.form-tip { font-size: 12.5px; color: var(--muted); }
.form-tip.err { color: var(--bad); }
.form-actions { display: flex; gap: 8px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 12.5px;
  padding: 10px 14px;
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fafbfd; }
.table td .name { color: var(--text); font-weight: 500; }

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.pill.ok { background: var(--ok-weak); color: var(--ok); }
.pill.bad { background: var(--bad-weak); color: var(--bad); }
.pill.warn { background: var(--warn-weak); color: var(--warn); }
.pill.gray { background: #eef1f6; color: var(--muted); }
.pill.link { cursor: pointer; }

/* ---------------- 统计 ---------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.stat span { font-size: 12.5px; color: var(--muted); display: block; }
.stat strong {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat.ok strong { color: var(--ok); }
.stat.bad strong { color: var(--bad); }

/* ---------------- 空状态 ---------------- */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  font-size: 30px;
  color: #cbd5e3;
  margin-bottom: 10px;
}
.empty-state p + p { margin-top: 4px; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .42);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(2px);
}
.modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(16, 24, 40, .4);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: pop .16s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.modal.wide { max-width: 640px; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
}

/* ---------------- 提示 ---------------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 200;
  pointer-events: none;
}
.toast {
  background: #1e2a3a;
  color: #fff;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 24px;
  box-shadow: 0 8px 24px -8px rgba(16, 24, 40, .5);
  animation: toastIn .2s ease-out;
  max-width: 78vw;
}
.toast.ok { background: #0e7a4d; }
.toast.err { background: #b32a2a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------------- 灯箱 ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, .85);
  display: grid;
  place-items: center;
  z-index: 150;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* ---------------- 说明文档 ---------------- */
.doc { padding: 26px 30px 30px; max-width: 900px; }
.doc h2 { font-size: 18px; margin-bottom: 16px; }
.doc h3 { font-size: 14.5px; margin: 22px 0 8px; color: var(--primary); }
.doc ol, .doc ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.doc li { margin-bottom: 5px; }
.doc p { color: var(--text-2); margin-bottom: 6px; }
.doc .lead {
  font-size: 13.5px;
  color: var(--primary);
  background: var(--primary-weak);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 4px;
}
.app-version {
  margin: 12px 4px 4px;
  font-size: 12px;
  color: var(--muted-2);
  text-align: right;
}

/* ---------------- 小屏适配 ---------------- */
@media (max-width: 900px) {
  .topbar { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .tabs { top: 0; position: static; padding: 0 10px; }
  .main { padding: 12px; }
  .inspect-layout { grid-template-columns: 1fr; }
  .dev-panel {
    position: static;
    max-height: none;
  }
  .dev-list { max-height: 260px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .form-panel { padding: 16px; }
  .chk { flex-wrap: wrap; gap: 10px; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
  .brand-text strong { font-size: 14px; }
  #batchSelect { min-width: 140px; }
  .doc { padding: 18px; }
}
