:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e6e9ef;
  --line-strong: #d4d9e3;
  --text: #1c2431;
  --text-2: #5b6577;
  --text-3: #8b94a6;
  --primary: #2563eb;
  --primary-h: #1d4fd7;
  --primary-weak: #eef3fe;
  --green: #0f9d6e;
  --green-weak: #e8f7f0;
  --amber: #d97706;
  --amber-weak: #fef4e6;
  --red: #dc2626;
  --red-weak: #feecec;
  --purple: #7c3aed;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; color: inherit; }
input[type=file] { display: none; }
::selection { background: #dbe7ff; }

/* ---------- 图标 ---------- */
.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 22px; height: 22px; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }
.side {
  width: 232px; flex: none; background: #fff; border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 30;
}
.brand { padding: 20px 18px 16px; display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.brand-text b { display: block; font-size: 15px; letter-spacing: .2px; }
.brand-text span { display: block; font-size: 11px; color: var(--text-3); letter-spacing: 1.2px; }
.nav { padding: 6px 10px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 11px; color: var(--text-3); padding: 14px 10px 6px; letter-spacing: .5px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: var(--text-2); cursor: pointer; margin-bottom: 2px; font-size: 13.5px; position: relative;
}
.nav-item:hover { background: #f4f6fa; color: var(--text); }
.nav-item.active { background: var(--primary-weak); color: var(--primary); font-weight: 600; }
.nav-item .count { margin-left: auto; font-size: 11px; background: var(--primary); color: #fff; border-radius: 20px; padding: 0 7px; line-height: 17px; }
.nav-item.active .count { background: var(--primary); }
.side-foot { padding: 12px; border-top: 1px solid var(--line); }
.user-box { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; cursor: pointer; }
.user-box:hover { background: #f4f6fa; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #e8eefc; color: var(--primary);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none;
}
.user-box .u-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.user-box .u-role { font-size: 11px; color: var(--text-3); line-height: 1.3; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px;
  padding: 0 22px; position: sticky; top: 0; z-index: 20;
}
.search-global { flex: 1; max-width: 560px; position: relative; }
.search-global .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search-global input {
  width: 100%; height: 38px; border: 1px solid var(--line); background: #f7f8fa; border-radius: 9px;
  padding: 0 14px 0 38px; outline: none; transition: .15s;
}
.search-global input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.topbar .spacer { flex: 1; }

.page { padding: 22px; max-width: 1320px; width: 100%; }
.page-wide { max-width: none; }
.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; margin: 0; letter-spacing: -.2px; }
.page-head .sub { color: var(--text-3); font-size: 13px; }
.page-head .grow { flex: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); cursor: pointer; white-space: nowrap; transition: .15s;
  font-weight: 500;
}
.btn:hover { border-color: #b9c1d0; background: #fafbfc; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.24); }
.btn-primary:hover { background: var(--primary-h); border-color: var(--primary-h); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: #eef1f6; color: var(--text); }
.btn-danger { color: var(--red); border-color: #f3c8c8; background: #fff; }
.btn-danger:hover { background: var(--red-weak); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon { width: 34px; padding: 0; }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-head .grow { flex: 1; }

/* ---------- 分类卡 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  cursor: pointer; transition: .18s; position: relative; overflow: hidden;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d8e0ee; }
.cat-card .mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; letter-spacing: .5px;
}
.cat-card .c-name { font-weight: 600; font-size: 14.5px; }
.cat-card .c-count { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.cat-card .c-sub { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.cat-card .c-sub span { font-size: 11px; color: var(--text-2); background: #f3f5f9; padding: 1px 6px; border-radius: 5px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.stat .k { font-size: 12.5px; color: var(--text-3); }
.stat .v { font-size: 24px; font-weight: 650; letter-spacing: -.5px; margin-top: 2px; }
.stat .v small { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 4px; }

/* ---------- 列表 ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.select, .input {
  height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  padding: 0 10px; outline: none; transition: .15s; min-width: 0;
}
.select:focus, .input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.input::placeholder { color: #a9b1c1; }

.plist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prow {
  display: grid; grid-template-columns: 1fr 150px 120px 96px 92px; gap: 14px; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid #f0f2f6; cursor: pointer; transition: .12s;
}
.prow:last-child { border-bottom: none; }
.prow:hover { background: #f8fafd; }
.prow .p-model { font-weight: 650; font-size: 14px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: -.2px; display: flex; align-items: center; gap: 7px; }
.prow .p-name { color: var(--text-2); font-size: 12.8px; margin-top: 1px; }
.prow .p-mfr { font-size: 12.5px; color: var(--text-2); }
.prow .p-price { font-size: 13.5px; font-weight: 600; text-align: right; }
.prow .p-act { display: flex; gap: 4px; justify-content: flex-end; }
.prow .p-tags { display: flex; gap: 5px; margin-top: 3px; }

.chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 1px 7px; border-radius: 20px; background: #f2f4f8; color: var(--text-2); white-space: nowrap; }
.chip-blue { background: var(--primary-weak); color: var(--primary); }
.chip-green { background: var(--green-weak); color: var(--green); }
.chip-amber { background: var(--amber-weak); color: var(--amber); }
.chip-red { background: var(--red-weak); color: var(--red); }
.chip-line { background: #fff; border: 1px solid var(--line-strong); }

/* 二级分类可编辑标签 */
.sub-chip { padding: 3px 6px 3px 10px; font-size: 12px; gap: 2px; }
.sub-chip:hover { border-color: var(--primary); background: var(--primary-weak); }
.sub-chip .sub-name { color: var(--text); text-decoration: none; }
.sub-chip:hover .sub-name { color: var(--primary); }
.sub-chip .sub-op { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; color: var(--text-3); text-decoration: none; font-size: 13px; line-height: 1; }
.sub-chip .sub-op:hover { background: var(--primary-weak); color: var(--primary); }
.sub-chip .sub-op.off { opacity: .22; pointer-events: none; }
.sub-chip .sub-del:hover { background: var(--red-weak); color: var(--red); }

.empty { padding: 60px 20px; text-align: center; color: var(--text-3); }
.empty .ic { width: 34px; height: 34px; color: #c6cdda; margin-bottom: 10px; }
.empty p { margin: 6px 0; }

/* ---------- 详情 ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 16px; align-items: start; }
.d-head { padding: 20px 22px; }
.d-model { font-size: 22px; font-weight: 700; letter-spacing: -.4px; font-family: ui-monospace, Consolas, monospace; }
.d-name { font-size: 15px; color: var(--text-2); margin-top: 2px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tab {
  padding: 12px 14px; font-size: 13.5px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent;
  white-space: nowrap; font-weight: 500;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab .n { font-size: 11px; color: var(--text-3); margin-left: 3px; }
.tab-body { padding: 18px 22px; }

.spec { white-space: pre-wrap; font-size: 13.6px; line-height: 1.95; color: var(--text); font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.spec .key { color: var(--amber); }
.spec div { padding: 1px 0; }
.spec div.is-key { background: #fffbf2; border-left: 2px solid #f0b45a; padding-left: 8px; margin-left: -10px; border-radius: 0 4px 4px 0; }

.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #f0f2f6; font-size: 13.2px; vertical-align: top; }
.kv th { width: 190px; color: var(--text-2); font-weight: 500; background: #fafbfc; }
.kv tr:last-child td, .kv tr:last-child th { border-bottom: none; }

.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.field-item { background: #fafbfc; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.field-item .f-label { font-size: 11.5px; color: var(--text-3); }
.field-item .f-value { font-size: 13.5px; font-weight: 600; margin-top: 1px; }
.field-item.is-key { background: #fffbf2; border-color: #f3dcb6; }

.side-card { padding: 16px; }
.side-card + .side-card { margin-top: 12px; }
.side-title { font-size: 12px; color: var(--text-3); letter-spacing: .4px; margin-bottom: 8px; }
.price-big { font-size: 26px; font-weight: 700; letter-spacing: -.8px; color: var(--text); }
.price-big small { font-size: 13px; font-weight: 400; color: var(--text-3); }
.price-note { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cost-box { background: #fffbf2; border: 1px dashed #f0cf9a; border-radius: 9px; padding: 10px 12px; margin-top: 10px; }
.cost-box .k { font-size: 11.5px; color: var(--amber); }
.cost-box .v { font-size: 18px; font-weight: 700; color: #b45309; }
.meta-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #eef0f4; font-size: 13px; }
.meta-line:last-child { border-bottom: none; }
.meta-line .k { color: var(--text-3); }
.meta-line .v { font-weight: 500; }

/* ---------- 文件 ---------- */
.file-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 9px; margin-bottom: 8px; background: #fff; transition: .12s;
}
.file-row:hover { border-color: #cdd6e6; background: #fafcff; }
.file-ic { width: 34px; height: 34px; border-radius: 8px; background: #feeceb; color: #dc2626; display: grid; place-items: center; font-size: 9px; font-weight: 700; flex: none; }
.file-name { flex: 1; min-width: 0; }
.file-name b { display: block; font-size: 13.2px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name span { font-size: 11.5px; color: var(--text-3); }

.pdf-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 10px; background: #f0f2f6; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.field label .req { color: var(--red); margin-left: 2px; }
.field .input, .field .select, .field textarea { width: 100%; }
.field textarea { border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; outline: none; resize: vertical; line-height: 1.75; }
.field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.field .hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.seg { display: inline-flex; background: #f2f4f8; border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: none; background: transparent; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.seg button.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- 对比 ---------- */
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; background: #fff; }
.cmp th, .cmp td { padding: 11px 14px; border-bottom: 1px solid #f0f2f6; font-size: 13.2px; vertical-align: top; text-align: left; }
.cmp thead th { position: sticky; top: 0; background: #fafbfc; z-index: 2; border-bottom: 1px solid var(--line); }
.cmp .row-label { width: 170px; color: var(--text-2); background: #fcfcfd; font-weight: 500; }
.cmp .diff { background: #fffbf2; }
.cmp .m { font-family: ui-monospace, Consolas, monospace; font-weight: 650; font-size: 13.5px; }
.cmp .close { color: #c3cad7; cursor: pointer; float: right; }

/* ---------- 报价单 ---------- */
.q-items { width: 100%; border-collapse: collapse; }
.q-items th { font-size: 12px; color: var(--text-3); font-weight: 500; text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.q-items td { padding: 6px 6px; border-bottom: 1px solid #f4f6f9; }
.q-items input { width: 100%; height: 32px; border: 1px solid transparent; border-radius: 6px; padding: 0 8px; background: transparent; }
.q-items input:hover { border-color: var(--line); background: #fff; }
.q-items input:focus { border-color: var(--primary); background: #fff; outline: none; }
.q-items .num { text-align: right; }

/* 报价明细 · 数量增减 */
.qty-cell { display: flex; align-items: center; gap: 4px; }
.qty-cell .qty-input {
  width: 46px; height: 30px; text-align: center; border: 1px solid var(--line) !important;
  border-radius: 6px; background: #fff; font-weight: 600; padding: 0 !important;
}
.qty-btn {
  width: 26px; height: 26px; flex: none; border-radius: 6px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 15px; line-height: 1; cursor: pointer; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; transition: .12s;
}
.qty-btn.qty-minus { color: #dc2626; border-color: #f3c9c9; background: #fff6f6; }
.qty-btn.qty-plus { color: #15803d; border-color: #c7e6d2; background: #f4fbf6; }
.qty-btn:hover:not(:disabled) { filter: brightness(.95); transform: translateY(-1px); }
.qty-btn:disabled { opacity: .38; cursor: not-allowed; }
.q-total { display: flex; justify-content: flex-end; gap: 32px; padding: 14px 6px 0; font-size: 14px; }
.q-total b { font-size: 20px; letter-spacing: -.4px; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #eef3fc 0%, #f7f8fa 45%, #eef6f4 100%); padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(20,40,80,.12); padding: 32px 28px; }
.login-card .brand-mark { width: 46px; height: 46px; font-size: 18px; margin-bottom: 18px; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; }
.login-card p { color: var(--text-3); font-size: 13px; margin: 0 0 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card .input { height: 42px; }
.login-tip { margin-top: 16px; font-size: 12px; color: var(--text-3); background: #f7f8fa; border-radius: 8px; padding: 10px 12px; line-height: 1.7; }

/* ---------- 弹层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(17,24,39,.42); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .16s; }
@keyframes fade { from { opacity: 0 } }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 620px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s; }
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: .6 } }
.modal-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 15.5px; flex: 1; }
.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; }

.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #1f2937; color: #fff; padding: 9px 16px; border-radius: 9px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: drop .2s; max-width: 80vw;
}
.toast.err { background: #b91c1c; }
.toast.ok { background: #0f766e; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0 } }

/* ---------- 批量上传 ---------- */
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 30px 20px; text-align: center;
  color: var(--text-2); background: #fafbfd; transition: .15s; cursor: pointer;
}
.dropzone .ic { width: 26px; height: 26px; color: #b9c2d2; margin-bottom: 6px; }
.dropzone:hover { border-color: #b9c2d2; }
.dropzone.over { border-color: var(--primary); background: var(--primary-weak); }
.bar { height: 6px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; transition: width .2s; }
.pending-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 0; margin-bottom: 10px; position: relative; }
.pending-item.flash { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 119, 6, .12); }
.suggest-menu {
  display: none; position: absolute; left: 12px; margin-top: 32px; z-index: 15; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg);
  min-width: 280px; max-height: 240px; overflow: auto;
}
.suggest-menu.show { display: block; }
.suggest-item { padding: 8px 10px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f4f6f9; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: #f6f8fc; }

/* ---------- 其它 ---------- */
.banner {
  display: flex; align-items: center; gap: 10px; background: #eef3fe; border: 1px solid #d8e4fb;
  color: #1e40af; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px;
}
.banner .grow { flex: 1; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 18px 0 4px; }
.crumb { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.crumb a:hover { color: var(--primary); }
.diff-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }
.hide { display: none !important; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.muted { color: var(--text-3); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }

/* 移动端底部导航 */
.mnav { display: none; }
@media (max-width: 860px) {
  .side { display: none; }
  #btn-new { display: none; }
  .topbar { height: 54px; padding: 0 12px; gap: 8px; }
  .search-global input { height: 36px; }
  .page { padding: 14px 12px 84px; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .prow { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 14px; }
  .prow .p-mfr, .prow .p-tags { grid-column: 1 / 2; }
  .prow .p-price { grid-column: 2; grid-row: 1; text-align: right; }
  .prow .p-act { grid-column: 2; grid-row: 2; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 13px; }
  .cat-card .c-sub { display: none; }
  .mnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 58px; background: #fff;
    border-top: 1px solid var(--line); z-index: 50; padding-bottom: env(safe-area-inset-bottom);
  }
  .mnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: var(--text-3); }
  .mnav a.active { color: var(--primary); }
  .mnav a .ic { width: 20px; height: 20px; }
  .modal { max-height: 92vh; }
  .pdf-frame { height: 480px; }
  .d-model { font-size: 19px; }
  .page-head h1 { font-size: 18px; }
}
