/* ================= 办公用品领用系统 · 样式 ================= */
:root {
  --brand: #2f6fed;
  --brand-dark: #1f57c8;
  --brand-soft: #eef4ff;
  --ink: #1f2d3d;
  --ink-2: #5a6b82;
  --ink-3: #8b9bb4;
  --line: #e3e9f2;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ok: #12a150;
  --ok-soft: #e8f8ee;
  --warn: #e8890c;
  --warn-soft: #fff7e6;
  --danger: #e5484d;
  --danger-soft: #ffefef;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(31,45,61,.05), 0 6px 20px rgba(31,45,61,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "微软雅黑", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部导航 ---------- */
.topbar {
  background: linear-gradient(120deg, #2f6fed, #4b8bff);
  color: #fff;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(47,111,237,.28);
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar::-webkit-scrollbar { display: none; }
.brand { font-size: 16px; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: #a8ffce; box-shadow: 0 0 0 3px rgba(168,255,206,.28); }
.topbar nav { display: flex; gap: 4px; margin-left: 14px; }
.topbar nav a {
  color: rgba(255,255,255,.9);
  padding: 7px 13px; border-radius: 8px; font-size: 13.5px; white-space: nowrap;
}
.topbar nav a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.topbar nav a.on { background: #fff; color: var(--brand-dark); font-weight: 700; }
.topbar .spacer { flex: 1; }
.topbar .tip { font-size: 12px; color: rgba(255,255,255,.8); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 18px; }
.wrap.wide { max-width: 100%; }

/* ---------- 通用块 ---------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 16px; border: 1px solid rgba(227,233,242,.9);
}
.card > h2, .card > h3 {
  margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.card > h2::before, .card > h3::before {
  content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--brand);
}
.card .sub { font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-left: auto; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--ink-3); font-size: 12.5px; }
.right { text-align: right; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }

/* ---------- 数据方块 ---------- */
.tile {
  background: var(--card); border-radius: var(--radius); padding: 15px 16px;
  box-shadow: var(--shadow); border: 1px solid rgba(227,233,242,.9);
  position: relative; overflow: hidden;
}
.tile .k { font-size: 12.5px; color: var(--ink-3); }
.tile .v { font-size: 25px; font-weight: 700; letter-spacing: -.5px; margin-top: 2px; }
.tile .u { font-size: 12.5px; font-weight: 400; color: var(--ink-3); margin-left: 3px; }
.tile.blue .v { color: var(--brand); }
.tile.green .v { color: var(--ok); }
.tile.orange .v { color: var(--warn); }
.tile.red .v { color: var(--danger); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 16px; border-radius: 9px; cursor: pointer; font-size: 13.5px;
  font-family: inherit; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover { background: #0d8a43; color: #fff; }
.btn.danger { background: #fff; border-color: #f5b5b7; color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 13px 26px; font-size: 15.5px; border-radius: 11px; font-weight: 600; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 表单 ---------- */
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; font-weight: 600; }
input[type=text], input[type=number], input[type=date], input[type=search],
input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); outline: none;
  transition: .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,111,237,.12); }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%238b9bb4' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
textarea { resize: vertical; min-height: 62px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form label.f { margin-bottom: 0; min-width: 130px; flex: 1; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  background: #f7f9fd; color: var(--ink-2); text-align: left; padding: 10px 11px;
  font-weight: 700; font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 10px 11px; border-bottom: 1px solid #f0f3f9; vertical-align: middle; }
table.tbl tr:hover td { background: #fafcff; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl td.ctr, table.tbl th.ctr { text-align: center; }
table.tbl tfoot td { font-weight: 700; background: #f7f9fd; }

/* ---------- 徽标 ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--brand-soft); color: var(--brand); }
.badge.gray { background: #f0f3f9; color: var(--ink-3); }

/* ---------- 缩略图 ---------- */
.thumb {
  width: 46px; height: 46px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--line); background: #f7f9fd; display: block;
}
.thumb.lg { width: 100%; height: auto; max-height: 260px; border-radius: 10px; object-fit: contain; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(31,45,61,.18); background: #eef2f9;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3);
  font-size: 13px; font-weight: 700; flex: none;
}
.avatar.empty { background: #eef2f9; }
.ph-empty {
  width: 46px; height: 46px; border-radius: 8px; border: 1px dashed #d5dded;
  display: flex; align-items: center; justify-content: center; color: #c2ccdd; font-size: 10px;
  text-align: center; line-height: 1.2;
}

/* ---------- 柱状图 ---------- */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 118px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { background: #f0f3f9; border-radius: 6px; height: 20px; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4b8bff, #2f6fed);
  min-width: 3px; transition: width .5s;
}
.bar-fill.c2 { background: linear-gradient(90deg, #37c17f, #12a150); }
.bar-fill.c3 { background: linear-gradient(90deg, #ffb454, #e8890c); }
.bar-row .val { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vbars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 8px 4px 0; }
.vbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 34px; }
.vbar .col { width: 100%; max-width: 46px; background: linear-gradient(180deg, #6fa2ff, #2f6fed); border-radius: 6px 6px 0 0; min-height: 3px; transition: height .5s; }
.vbar .lab { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; white-space: nowrap; }
.vbar .v { font-size: 11.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }

/* ---------- 领用登记页 ---------- */
.step {
  background: #fff; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px;
  box-shadow: var(--shadow); border: 1px solid rgba(227,233,242,.9);
}
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-no {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; flex: none;
}
.step-title { font-size: 15px; font-weight: 700; }
.step-title small { font-weight: 400; color: var(--ink-3); font-size: 12.5px; margin-left: 6px; }

.photo-box { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.photo-slot {
  width: 150px; height: 150px; border-radius: 12px; border: 2px dashed #c9d5e8;
  background: #f8faff; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; cursor: pointer; color: var(--brand);
  font-size: 13px; text-align: center; overflow: hidden; position: relative;
  transition: .15s; flex: none;
}
.photo-slot:hover { border-color: var(--brand); background: var(--brand-soft); }
.photo-slot .ico { font-size: 26px; line-height: 1; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-slot .retake {
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(31,45,61,.72);
  color: #fff; font-size: 12px; padding: 3px 0; opacity: 0; transition: .15s;
}
.photo-slot:hover .retake { opacity: 1; }
.photo-slot.small { width: 62px; height: 62px; border-radius: 9px; font-size: 11px; }
.photo-slot.small .ico { font-size: 18px; }
.photo-slot.has { border-style: solid; border-color: var(--ok); }

/* 行式物品选择 */
.line-item {
  display: grid; grid-template-columns: 1fr 110px 74px 40px; gap: 9px;
  align-items: center; padding: 9px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 9px; background: #fcfdff;
}
.line-item .pick { min-width: 0; }
.line-item select { font-size: 13.5px; }
.line-item .qty { text-align: center; }
.line-head {
  display: grid; grid-template-columns: 1fr 110px 74px 40px; gap: 9px;
  font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 0 9px 5px;
}
.line-pick-wrap { position: relative; }
.pick-list {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff; z-index: 30;
  border: 1px solid var(--line); border-radius: 10px; max-height: 250px; overflow-y: auto;
  box-shadow: 0 10px 30px rgba(31,45,61,.14); margin-top: 3px; display: none;
}
.pick-list.show { display: block; }
.pick-list div { padding: 8px 12px; cursor: pointer; font-size: 13.5px; border-bottom: 1px solid #f4f7fc; }
.pick-list div:last-child { border-bottom: 0; }
.pick-list div:hover, .pick-list div.hl { background: var(--brand-soft); }
.pick-list div .s { color: var(--ink-3); font-size: 11.5px; margin-left: 5px; }
.pick-list div .st { float: right; color: var(--ink-3); font-size: 11.5px; }

.btn-x {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-3); cursor: pointer; font-size: 17px; line-height: 1; display: flex;
  align-items: center; justify-content: center;
}
.btn-x:hover { background: var(--danger-soft); color: var(--danger); border-color: #f5b5b7; }

/* 人员快选 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px;
  border-radius: 24px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px;
  transition: .15s;
}
.chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.chip .avatar { width: 26px; height: 26px; font-size: 11px; }

/* 金额合计条 */
.total-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--brand-soft); border-radius: 10px; padding: 12px 16px; flex-wrap: wrap;
}
.total-bar .t { font-size: 13px; color: var(--ink-2); }
.total-bar .n { font-size: 21px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }

/* ---------- 拍照弹窗 ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(15,23,38,.72); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(3px);
}
.modal.show { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px; width: 100%; max-width: 660px;
  padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); max-height: 94vh; overflow-y: auto;
}
.modal-box h3 { margin: 0 0 4px; font-size: 16px; }
.modal-box .hint { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; }
.video-wrap {
  position: relative; background: #0d1420; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-wrap .placeholder { color: #7f8ea8; font-size: 13px; text-align: center; padding: 20px; }
.video-wrap .guide {
  position: absolute; inset: 12%; border: 2px dashed rgba(255,255,255,.4); border-radius: 12px;
  pointer-events: none;
}
.cam-tools { display: flex; gap: 9px; margin-top: 13px; flex-wrap: wrap; align-items: center; }
.shot-btn {
  flex: 1; min-width: 150px; background: var(--brand); color: #fff; border: 0; border-radius: 11px;
  padding: 13px; font-size: 15.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.shot-btn:hover { background: var(--brand-dark); }
.shot-btn:disabled { opacity: .5; }
.countdown {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  font-size: 78px; font-weight: 800; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.6);
  background: rgba(0,0,0,.28);
}
.countdown.show { display: flex; }
.shot-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.shot-item { position: relative; }
.shot-item img { width: 68px; height: 68px; object-fit: cover; border-radius: 9px; border: 2px solid var(--line); display: block; }
.shot-item .del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff; border: 0; font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 领用合照（主凭证）与人员照提取 ---------- */
.photo-slot.big {
  width: 214px; height: 214px; font-size: 14px; font-weight: 700;
  border-style: solid; border-color: var(--brand);
  background: linear-gradient(180deg, #f4f8ff, #e8f0ff);
}
.photo-slot.big .ico { font-size: 40px; }
.photo-slot.big.has { border-color: var(--ok); }
.photo-slot.mid { width: 104px; height: 104px; border-radius: 10px; }
.photo-slot.mid .ico { font-size: 22px; }
.shot-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: flex-start; }
.shot-strip .s { position: relative; }
.shot-strip img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px;
  border: 2px solid var(--line); display: block; cursor: zoom-in; }
.shot-strip .del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff; border: 0; font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.opt-fold {
  border: 1px dashed var(--line); border-radius: 10px; padding: 10px 13px;
  background: #fbfcff; margin-top: 14px;
}
.opt-fold > summary { cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.opt-fold[open] > summary { margin-bottom: 12px; }
.proxy-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--warn-soft); border: 1px solid #ffe0a8; border-radius: 10px;
  padding: 9px 12px; margin-top: 12px;
}
.proxy-box label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; }
.proxy-box input[type=checkbox] { width: auto; }
.proxy-box input[type=text] { max-width: 180px; }
.proxy-note { font-size: 12px; color: #a8620a; }

.crop-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.crop-tab { width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  border: 2px solid var(--line); cursor: pointer; opacity: .65; }
.crop-tab.on { border-color: var(--brand); opacity: 1; }
.crop-stage {
  position: relative; display: block; width: fit-content; max-width: 100%;
  margin: 0 auto; touch-action: none; user-select: none; line-height: 0;
}
.crop-stage img { display: block; max-width: 100%; max-height: 58vh; border-radius: 10px; }
.crop-box {
  position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(13,20,32,.55);
  border-radius: 4px; cursor: move;
}
.crop-box .h {
  position: absolute; right: -9px; bottom: -9px; width: 22px; height: 22px;
  background: var(--brand); border: 2px solid #fff; border-radius: 50%; cursor: nwse-resize;
}

/* ---------- 部门选择（可选择 / 可录入） ---------- */
.dp-host { position: relative; }
.dp-tag {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 11.5px; padding: 1px 8px; border-radius: 20px; font-weight: 600;
  pointer-events: none; white-space: nowrap;
}
.dp-tag.ok { background: var(--ok-soft); color: var(--ok); }
.dp-tag.new { background: var(--warn-soft); color: var(--warn); }
.dp-list { z-index: 45; }
.dp-list div .dp-s { float: right; color: var(--ink-3); font-size: 11.5px; }
.dp-sim {
  background: var(--warn-soft); border: 1px solid #ffe0a8; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 13px;
}
.dp-sim-t { font-size: 12.5px; color: #a8620a; font-weight: 700; margin-bottom: 6px; }
.dp-sim-i {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  border-top: 1px dashed #ffe0a8;
}
.dp-sim-i:first-of-type { border-top: 0; }
.dp-sim-n { font-weight: 700; }
.dp-sim-i .btn { margin-left: auto; }
.dp-new { font-size: 14px; }
.pick-note { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 5px; font-size: 11.5px; }

/* 领用登记：物品行里的"新物品"提示 */
.line-new {
  grid-column: 1 / -1; font-size: 11.5px; color: var(--warn); background: var(--warn-soft);
  border-radius: 7px; padding: 4px 9px; margin-top: -3px;
}
.line-item.pick-new { border-color: #ffe0a8; background: #fffdf7; }

/* ---------- 合并部门 ---------- */
.mg-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  max-height: 250px; overflow-y: auto; padding: 2px;
}
.mg-i {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 10px; cursor: pointer; font-size: 13.5px;
  transition: .15s;
}
.mg-i:hover { border-color: var(--brand); background: var(--brand-soft); }
.mg-i.on { border-color: var(--brand); background: var(--brand-soft); }
.mg-i input { margin: 0; flex: none; }
.mg-i .mg-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-i .mg-m { margin-left: auto; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.mg-preview {
  background: #f7f9fd; border-radius: 10px; padding: 10px 13px; font-size: 13px;
  color: var(--ink-2); margin-top: 12px; line-height: 1.7;
}
.mg-preview b { color: var(--ink); }

/* ---------- 提示 ---------- */
.flash {
  padding: 11px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px;
  display: flex; align-items: center; gap: 9px;
}
.flash.ok { background: var(--ok-soft); color: #0b7d3e; border: 1px solid #b7e8cc; }
.flash.warn { background: var(--warn-soft); color: #a8620a; border: 1px solid #ffe0a8; }
.flash.err { background: var(--danger-soft); color: #b3262b; border: 1px solid #ffc9cb; }

.empty {
  text-align: center; padding: 40px 16px; color: var(--ink-3); font-size: 13.5px;
}
.empty .big { font-size: 34px; margin-bottom: 8px; }

/* ---------- 底部 ---------- */
.foot { text-align: center; color: var(--ink-3); font-size: 12px; padding: 22px 10px 30px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 12px; }
  .card { padding: 14px; border-radius: 10px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .topbar { height: auto; padding: 9px 12px; flex-wrap: wrap; }
  .brand { font-size: 15px; }
  .topbar nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .topbar .tip { display: none; }
  .g2.keep { grid-template-columns: repeat(2, 1fr); }
  .line-item, .line-head { grid-template-columns: 1fr 72px 62px 38px; gap: 7px; }
  .photo-slot { width: 108px; height: 108px; }
  .photo-slot .ico { font-size: 22px; }
  .photo-slot.big { width: 156px; height: 156px; font-size: 13px; }
  .photo-slot.big .ico { font-size: 32px; }
  .crop-stage img { max-height: 44vh; }
  .bar-row { grid-template-columns: 82px 1fr 90px; font-size: 12.5px; }
  .tile .v { font-size: 21px; }
  table.tbl { font-size: 12.5px; }
  table.tbl th, table.tbl td { padding: 8px; }
  .inline-form label.f { min-width: 100%; }
  .mg-list { grid-template-columns: 1fr; max-height: 200px; }
  .dp-sim-i { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .g2.keep { grid-template-columns: 1fr; }
}

@media print {
  .topbar, .foot, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
