/* ==========================================================================
   Flamemax 产品库 · catalog.css
   设计目标：白底、信息密度高、产品图为主角；放大卡片可整屏截图直接发客户
   ========================================================================== */

:root {
  --cat-bg: #f5f6f8;
  --cat-card: #ffffff;
  --cat-line: #e5e7eb;
  --cat-line-soft: #f0f1f4;
  --cat-ink: #0f172a;
  --cat-ink-2: #334155;
  --cat-muted: #64707f;
  --cat-accent: #7c3aed;
  --cat-accent-soft: #f4ecff;
  --cat-hot: #e11d48;
  --cat-radius: 14px;
  --cat-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --cat-shadow-lg: 0 12px 48px rgba(15, 23, 42, .16);
  /* 字号五档（2026-11-07 收口）：原来有 10/11/11.5/12/13.5/15/19/42 八档，
     小字全挤在 10~13.5 之间，差 0.5px 根本看不出层级。现在正文只用这五档，
     型号 42 / 价格 34 是数字档，不进档位表。 */
  --fs-xs: 12px;   /* 辅助：脚注、角标、计数 */
  --fs-sm: 13px;   /* 次要：字段名、说明文字 */
  --fs-md: 14px;   /* 正文：品名、输入框、下拉 */
  --fs-lg: 17px;   /* 小标题：价格、页面标题 */
  --fs-xl: 20px;   /* 品名（档案卡） */
}

/* 只在本组件内部生效：catalog 既用于独立页 /catalog，也曾嵌在工具页标签里，
   全局 `*` 会波及宿主页面的其它区域 */
.cat-app, .cat-app *, .cat-app *::before, .cat-app *::after { box-sizing: border-box; }

.cat-app {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
               BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--cat-ink);
  background: var(--cat-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- 顶栏 */
/* 三段式：左 品牌 / 中 三个口径下拉 / 右 搜索。
   中间列用 auto，两侧各 1fr → 中间组永远落在视口正中，不受品牌与搜索宽度影响。
   右侧留白同时给「意见反馈」按钮预留位置。 */
.cat-top {
  position: sticky;
  top: 0;
  /* 必须高于浮层（60），卡片打开时才能继续操作三个下拉 */
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--cat-line);
}

.cat-top-l {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.cat-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: .2px;
  padding-inline-end: 8px;
  white-space: nowrap;
}

/* 独立页（/catalog.html）才有的「回站点」按钮，嵌在工具标签页里时不渲染 */
.cat-home {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--cat-line);
  border-radius: 9px;
  background: #fff;
  color: var(--cat-muted);
  text-decoration: none;
  transition: color .18s, border-color .18s, background .18s;
}
.cat-home svg { width: 17px; height: 17px; }
.cat-home:hover {
  color: var(--cat-accent);
  border-color: var(--cat-accent);
  background: var(--cat-accent-soft);
}
.cat-brand i {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  display: inline-block;
  position: relative;
}
.cat-brand i::after {
  content: "";
  position: absolute; inset: 7px;
  border: 2px solid #fff;
  border-radius: 3px;
  border-bottom-color: transparent;
}

.cat-search {
  position: relative;
  flex: 1 1 220px;
  width: min(400px, 100%);
  min-width: 120px;
}
.cat-search input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 38px;
  border: 1px solid var(--cat-line);
  border-radius: 10px;
  background: #fff;
  font-size: var(--fs-md);
  color: var(--cat-ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
[dir="rtl"] .cat-search input { padding: 0 38px 0 38px; }
.cat-search input:focus {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.cat-search svg {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  stroke: var(--cat-muted);
  pointer-events: none;
}
.cat-search kbd {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-xs);
  color: var(--cat-muted);
  border: 1px solid var(--cat-line);
  border-radius: 5px;
  padding: 1px 5px;
  background: #fafafa;
  pointer-events: none;
}

/* 三个口径开关组成一个整体，居中且带底衬 —— 业务员一眼能看到、能看出是一组设置 */
.cat-selects {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 5px;
  padding: 3px;
  border-radius: 13px;
  background: #eef1f6;
  border: 1px solid #dfe4ee;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.cat-sel {
  position: relative;
  display: flex;
  align-items: center;
}
.cat-sel label {
  position: absolute;
  inset-inline-start: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #5b6474;
  pointer-events: none;
  top: 4px;
}
.cat-sel select {
  height: 40px;
  padding: 12px 26px 0 10px;
  border: 1px solid #dde3ec;
  border-radius: 10px;
  background: #fff;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--cat-ink);
  appearance: none;
  cursor: pointer;
  min-width: 112px;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  transition: border-color .15s, box-shadow .15s, background .15s, color .15s;
}
.cat-sel:hover select { border-color: #cfd6e2; }
.cat-sel::after {
  content: "";
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  width: 6px; height: 6px;
  border-right: 1.6px solid #94a3b8;
  border-bottom: 1.6px solid #94a3b8;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.cat-sel select:focus { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }

/* 非默认值高亮：切了价格口径 / 加了溢价 / 换了语言，都必须一眼看出来，
   否则业务员截图发客户时容易把「含税价」或「+10%」当成标准价发出去 */
.cat-sel.is-on select {
  border-color: #c4b5fd;
  background: #faf7ff;
  color: #5b21b6;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .10);
}
.cat-sel.is-on label { color: #7c3aed; }
.cat-sel.is-on::after { border-right-color: #8b5cf6; border-bottom-color: #8b5cf6; }

/* ------------------------------------------------ 溢价框（点是面板，不是下拉） */
.cat-mk-trigger {
  height: 40px;
  padding: 12px 26px 0 10px;
  border: 1px solid #dde3ec;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--cat-ink);
  cursor: pointer;
  min-width: 112px;
  text-align: start;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  transition: border-color .15s, box-shadow .15s, background .15s, color .15s;
}
.cat-sel:hover .cat-mk-trigger { border-color: #cfd6e2; }
.cat-sel.is-on .cat-mk-trigger {
  border-color: #c4b5fd;
  background: #faf7ff;
  color: #5b21b6;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .10);
}

.cat-mk-pop {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: calc(100vw - 24px);
  padding: 14px;
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .18);
  z-index: 90;
  text-align: start;
}
.cat-mk-pop[hidden] { display: none; }

.mk-hd {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #5b6474;
  margin-bottom: 9px;
}

/* 2026-11-07：三个模式挤一行时「固定金额」四个字撑满整格；改 2×2 + 前置图标。
   面板从 276 加到 300，一格约 132px，字不再贴着边。 */
.mk-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  background: #eef1f6;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
}
.mk-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #5b6474;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, color .12s, box-shadow .12s;
}
.mk-tabs button i {
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}
.mk-tabs button.on i { opacity: 1; }
.mk-tabs button:hover { color: #4c1d95; }
.mk-tabs button.on {
  background: #fff;
  color: #5b21b6;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .10);
}

.mk-inp {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dde3ec;
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.mk-inp:focus-within { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.mk-inp.is-off { background: #f7f8fa; opacity: .6; }
.mk-pfx, .mk-sfx { font-size: var(--fs-md); font-weight: 700; color: #64748b; flex-shrink: 0; }
.mk-num {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--cat-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.mk-num::-webkit-outer-spin-button,
.mk-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mk-num::placeholder { font-weight: 500; color: #b6bfcc; }

.mk-quick { display: flex; gap: 6px; margin-top: 8px; }
.mk-quick button {
  flex: 1;
  height: 32px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #fafbfc;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.mk-quick button:hover { border-color: #c4b5fd; color: #6d28d9; background: #faf7ff; }

.mk-hint, .mk-note { margin-top: 9px; font-size: var(--fs-xs); line-height: 1.6; color: var(--cat-muted); }
.mk-note { color: #b45309; }

.mk-foot { display: flex; gap: 8px; margin-top: 12px; }
.mk-foot button {
  flex: 1;
  height: 38px;
  border-radius: 9px;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.mk-cancel { border: 1px solid #e2e6ee; background: #fff; color: #475569; }
.mk-cancel:hover { border-color: #cfd6e2; background: #fafbfc; }
.mk-ok { border: 1px solid #6d28d9; background: #7c3aed; color: #fff; }
.mk-ok:hover { background: #6d28d9; }

/* ---------------------------------------------------------------- 布局 */
.cat-body {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.cat-side {
  position: sticky;
  /* 顶栏实测 69px（10 上 + 48 组高 + 10 下 + 1 边），与 .cat-top 同步改 */
  top: 69px;
  height: calc(100vh - 69px);
  overflow-y: auto;
  padding: 16px 12px 40px 16px;
  border-inline-end: 1px solid var(--cat-line);
  background: #fff;
  scrollbar-width: thin;
}
.cat-side::-webkit-scrollbar { width: 6px; }
.cat-side::-webkit-scrollbar-thumb { background: #dcdfe5; border-radius: 3px; }

.cat-side-h {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--cat-muted);
  padding: 4px 8px 8px;
}

.cat-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--cat-ink-2);
  font-size: var(--fs-md);
  text-align: start;
  cursor: pointer;
  transition: background .12s, color .12s;
  line-height: 1.25;
}
.cat-nav-item:hover { background: #f6f7f9; }
.cat-nav-item.on { background: var(--cat-accent-soft); color: #5b21b6; font-weight: 650; }
.cat-nav-item .n {
  margin-inline-start: auto;
  font-size: var(--fs-xs);
  color: var(--cat-muted);
  font-variant-numeric: tabular-nums;
}
.cat-nav-item.on .n { color: #7c3aed; }
.cat-nav-item .dot {
  width: 7px; height: 7px;
  border-radius: 2px;
  background: #cbd5e1;
  flex: 0 0 auto;
}
.cat-nav-item.on .dot { background: #8b5cf6; }

.cat-sub {
  margin: 2px 0 6px;
  padding-inline-start: 10px;
  display: none;
}
.cat-sub.open { display: block; }
.cat-sub button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: var(--fs-sm);
  color: var(--cat-ink-2);
  cursor: pointer;
  text-align: start;
}
.cat-sub button:hover { background: #f6f7f9; }
.cat-sub button.on { color: #6d28d9; font-weight: 650; background: #faf5ff; }
.cat-sub button span { margin-inline-start: auto; color: var(--cat-muted); font-size: var(--fs-xs); }

/* ---------------------------------------------------------------- 主区 */
.cat-main { padding: 18px 22px 60px; min-width: 0; }

.cat-bar {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cat-crumb { font-size: var(--fs-lg); font-weight: 700; }
.cat-count { font-size: var(--fs-sm); color: var(--cat-muted); }
.cat-partial { font-style: normal; margin-inline-start: 6px; padding: 1px 6px; border-radius: 4px;
  background: #fff4e0; color: #a06a00; font-size: var(--fs-xs); }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; }
.cat-chip {
  font-size: var(--fs-sm);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--cat-line);
  background: #fff;
  color: var(--cat-ink-2);
  cursor: pointer;
}
.cat-chip.on { background: var(--cat-ink); color: #fff; border-color: var(--cat-ink); }

.cat-grid {
  display: grid;
  /* 2026-11-07：216 → 280。216 时一屏 5 列、卡宽 252px，品名两行就爆、规格只能单行省略；
     280 时 1600 屏是 4 列、卡宽约 310px，信息有地方放，读起来也松。 */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ---------------------------------------------------------------- 卡片 */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cat-card);
  border: 1px solid var(--cat-line);
  border-radius: var(--cat-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
  text-align: start;
  padding: 0;
  font: inherit;
  color: inherit;
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cat-shadow-lg);
  border-color: #d8d9df;
}
.cat-card:focus-visible { outline: 2px solid var(--cat-accent); outline-offset: 2px; }

.cat-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  /* 比图片白底明显一点的浅灰：图片还没下载完时是灰块，
     下载完变成干净的白底，用户能分清「在加载」和「没有图」。 */
  background: #eceff4;
  border-bottom: 1px solid var(--cat-line-soft);
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
}
.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  transition: transform .25s ease;
}
.cat-card:hover .cat-thumb img { transform: scale(1.035); }

.cat-thumb .ph {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  color: #b9c0cc;
  font-size: var(--fs-xs);
  text-align: center;
  gap: 6px;
  border: 1px dashed #dfe3e9;
  border-radius: 8px;
}
.cat-thumb .ph b { font-size: 20px; font-family: ui-monospace, Menlo, monospace; color: #c7ccd6; }

/* 型号徽标：原来是白 88% 底 + 浅灰边，压在白底产品图上几乎看不见（CRG-74G 那批最明显）。
   改成深色毛玻璃，无论产品图是白底还是深色机身都能读出来。 */
.cat-badge {
  position: absolute;
  inset-inline-start: 8px;
  top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: -.1px;
  color: #fff;
  background: rgba(15, 23, 42, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  padding: 2px 7px;
  max-width: 76%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-hot {
  position: absolute;
  inset-inline-end: 8px;
  top: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  background: var(--cat-hot);
  border-radius: 5px;
  padding: 2px 6px;
}
.cat-borrow {
  position: absolute;
  inset-inline-end: 6px;
  bottom: 6px;
  font-size: var(--fs-xs);
  color: var(--cat-muted);
  background: rgba(255,255,255,.9);
  border-radius: 4px;
  padding: 1px 5px;
  border: 1px solid #eef0f3;
}

.cat-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.cat-name {
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.35;
  color: var(--cat-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
/* 规格行：原来单行 + 省略号，手机上只剩「800 × 700 × 850 mm · 2…」，功率永远看不见。
   现在允许两行；卡片变宽（280）后两项基本能完整放下。 */
.cat-spec-line {
  font-size: var(--fs-xs);
  color: var(--cat-muted);
  line-height: 1.45;
  letter-spacing: .1px;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.cat-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.cat-price-row strong {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -.3px;
  font-variant-numeric: tabular-nums;
  color: var(--cat-ink);
}
/* 无价说明（如「咨询小余生」/ Contact us for price）：
   字号比价格数字小一档，避免客户截图时把它误读成一个价格 */
.cat-price-row .ask {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--cat-muted);
}
.cat-price-row em {
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--cat-muted);
}

.cat-empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  text-align: center;
  color: var(--cat-muted);
  font-size: var(--fs-md);
}

/* ---------------------------------------------------------------- 档案卡 */
.cat-overlay {
  position: fixed;
  /* 从顶栏下沿开始：卡片打开时顶栏仍可点，改价格 / 溢价 / 语言会即时重绘卡片 */
  top: var(--cat-top-h, 56px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px);
  display: none;
  place-items: center;
  padding: 20px;
}
.cat-overlay.on { display: grid; }

/* 2026-11-17：规格全展开后长卡片改成卡内滚动（见 catalog.js fit()）。
   主判定宽度只有细窄一条，另加细滚动条，别让默认滚动条压住右侧规格值。 */
.cat-dossier::-webkit-scrollbar { width: 10px; }
.cat-dossier::-webkit-scrollbar-track { background: transparent; }
.cat-dossier::-webkit-scrollbar-thumb {
  background: #d8dde6;
  border-radius: 6px;
  border: 3px solid #fff;
}

.cat-dossier {
  position: relative;
  width: 1120px;
  /* 高度随内容走：内容少时不留大片空白，截图也省事。
     max-height 不用 100%：那会在内容超高时硬裁掉底部（fit() 缩放的是视觉，
     盒子的裁剪边界不会跟着缩），1366 笔记本上会吃掉脚注那一行。
     高度统一交给 fit() 按视口缩放。 */
  height: auto;
  max-width: 100%;
  max-height: none;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  padding: 28px 40px 18px;
  overflow: hidden;
  transform-origin: center center;
}

/* 头部：小图固定左上角 + 右侧标题与价格 */
/* 2026-11-07：图 330→380，标题区在右栏垂直居中。
   原来图只占卡高 38%、右栏 760px 空着下半截，左右重心明显偏左。 */
.dos-head {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

/* 左：图（约 330×270，占整卡 1/9 上下） */
.dos-media { min-width: 0; }
.dos-mainimg {
  width: 380px;
  height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfbfc;
  border: 1px solid var(--cat-line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.dos-mainimg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}
.dos-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.dos-thumbs button {
  width: 56px; height: 56px;
  border: 1px solid var(--cat-line);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
}
.dos-thumbs button.on { border-color: var(--cat-accent); box-shadow: 0 0 0 2px rgba(124,58,237,.15); }
.dos-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.dos-media .ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  border: 1px dashed #dfe3e9; border-radius: 10px;
  color: #b9c0cc; font-size: var(--fs-sm); text-align: center; padding: 20px;
}

/* 右：标题区 */
.dos-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: start;
}
/* RTL 下强制靠阅读起点对齐（继承链上偶发的居中会破坏版式） */
[dir="rtl"] .dos-title,
[dir="rtl"] .dos-eyebrow,
[dir="rtl"] .dos-code,
[dir="rtl"] .dos-name { text-align: right; }
[dir="ltr"] .dos-title,
[dir="ltr"] .dos-eyebrow,
[dir="ltr"] .dos-code,
[dir="ltr"] .dos-name { text-align: left; }
.dos-eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--cat-muted);
  font-weight: 600;
  margin-bottom: 8px;
  /* 右上角有关闭按钮（卡内绝对定位），品类行别顶到它下面 */
  padding-inline-end: 44px;
}
.dos-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  /* 型号永远按 LTR 字形渲染（bdi 兜住），但在 RTL 界面下仍向阅读起点对齐 */
  unicode-bidi: isolate;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--cat-ink);
  word-break: break-word;
}
.dos-name {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--cat-ink-2);
  line-height: 1.35;
  margin-top: 6px;
}
/* 品名与「热销 / 配件」标签同一行：标签不再单独占一行，把标题区往下顶 */
.dos-name-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.dos-name-row .dos-name { flex: 0 1 auto; }
.dos-tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; flex: 0 0 auto; }
.dos-tag {
  font-size: var(--fs-xs);
  padding: 3px 8px;
  border-radius: 20px;
  background: #f4f5f7;
  color: var(--cat-ink-2);
}
.dos-tag.hot { background: #fff1f4; color: #be123c; }

/* 2026-11-07：两列 + 更大字号让卡片变高了 27px，1366 笔记本上会被 fit() 缩放 0.9，
   把字号涨的那点又吃回去。这里把节间距、行距、内边距各收一点，换回约 50px，
   让 1366 屏的缩放回到 0.97 左右，实际字号仍比改版前大。 */
.dos-sec { margin-top: 18px; }
/* 节标题：11px 灰字几乎看不见（截图发到手机上就糊了）。
   加大、加左侧紫条；去掉整条分隔线，视觉上更轻。 */
.dos-sec > h4 {
  position: relative;
  font-size: var(--fs-xs);
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--cat-ink-2);
  font-weight: 600;
  margin: 0 0 10px;
  padding: 0;
  padding-inline-start: 10px;
  border-bottom: 0;
}
.dos-sec > h4::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: var(--cat-accent);
}

.spec-grid {
  display: grid;
  /* 2026-11-07：三列改两列。三列等宽时长短值参差（托盘尺寸那格会换行顶开整行），
     两列 + 字段名固定宽度后每一行都从同一列起点读，扫读更顺。 */
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 52px;
}
.spec-grid .row { display: flex; gap: 8px; align-items: baseline; min-width: 0; position: relative; }

/* 规格行左侧的「纠错铅笔」：默认完全透明，悬停才出现。
   档案卡是给客户截图用的，绝不能让人看见这个按钮。 */
.row-pen {
  position: absolute;
  inset-inline-start: -18px;
  top: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #a5b0c2;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s, color .12s, background .12s;
}
.spec-grid .row:hover .row-pen { opacity: 1; }
.row-pen:hover { color: #6d28d9; background: #f3ebff; }
.spec-grid .k {
  /* 规格表要截图发客户在手机上看，小一号就发虚 */
  font-size: var(--fs-sm);
  color: var(--cat-muted);
  flex: 0 0 96px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.spec-grid .v {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--cat-ink);
  min-width: 0;
  line-height: 1.5;
  word-break: break-word;
  /* 尺寸/功率这类「数字+单位」等宽，右边缘才对得齐；也避免切换产品时数字跳动 */
  font-variant-numeric: tabular-nums;
  /* 阿拉伯语界面下，尺寸/功率这类「数字+单位」必须保持 LTR，否则 850×700×800 mm 会被拆乱 */
  direction: ltr;
  unicode-bidi: isolate;
}

.dos-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--cat-line-soft);
  font-size: var(--fs-xs);
  letter-spacing: .2px;
  color: var(--cat-muted);
}
/* 价格跟在品名下方、同栏左对齐（2026-11-07 改）。
   之前是 margin-top:auto + align-self:flex-end，被推到标题区最右下角，
   左边四行文字、右边一个数字，中间一大片空白，像两截。
   现在紧贴品名往下排，形成「品类 → 型号 → 品名 → 价格」一条竖线；
   剩余空白集中落在标题区下方，不再把标题和价格拆开。
   （试过用 margin-top:auto 把价格沉到与图片底边齐平，结果空白跑到中间，更裂，已弃。） */
.price-block {
  padding-top: 14px;
  text-align: start;
}
.price-main .lbl {
  font-size: var(--fs-xs);
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--cat-muted);
  font-weight: 700;
  margin-top: 5px;
}
/* 无价说明占的是价格数字的位置，20px 才不会撑破标题区 */
.price-main .ask {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.2px;
  line-height: 1.25;
  color: var(--cat-ink);
}
.price-main .val {
  /* 44 → 34：从右下角搬到品名下之后，44px 会盖过 42px 的型号，34 与型号形成主次 */
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.9px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--cat-ink);
}

/* 产品介绍（2026-11-16）：型号与价格下方那块长方形文案位。
   只对有 intro 数据的产品渲染，没填的产品连 DOM 都没有，所以这里不必处理「空态」。
   宽度吃满右栏（1120 - 80 padding - 380 图 - 34 gap = 626px），
   文案再长也只是把卡片撑高，不裁切 —— 业务员要能看到全文才好判断写得对不对。 */
.dos-intro {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #f8f9fb;
  border: 1px solid var(--cat-line-soft);
  font-size: 14px;
  line-height: 1.55;
  color: var(--cat-ink-2);
  text-align: start;
  overflow-wrap: anywhere;
}
/* 阿拉伯语的行高要更松，否则字母下伸部会粘住下一行 */
[dir="rtl"] .dos-intro { line-height: 1.85; font-size: 14.5px; }

/* 关闭按钮（2026-11-07）：原来 position:fixed 钉在**视口**右上，
   1920 宽屏下离卡片 200px、飘在遮罩上。现在进卡片内右上角，跟着卡片走。 */
.cat-close {
  position: absolute;
  inset-inline-end: 10px;
  top: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--cat-line);
  background: #fff;
  color: #64748b;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background .15s, color .15s, border-color .15s;
}
.cat-close:hover { background: #f1f3f7; color: var(--cat-ink); border-color: #cfd6e2; }

/* 原卡片下方的 ‹ › 翻页按钮已撤（2026-11-07）。
   它定在 bottom:-46px，被 .cat-dossier 的 overflow:hidden 裁掉，桌面端从来没显示过；
   移进卡内又会出现在客户截图里，所以只保留键盘 ← →。 */

/* ---------------------------------------------------------------- 移动端 */
/* 「筛选」按钮：只在手机上出现，用来打开三个下拉组成的抽屉。
   任何一个下拉离开默认值，右上角亮一个紫点 —— 和桌面端 is-on 紫边是同一套告警。 */
.cat-flt {
  display: none;
  position: relative;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  flex-shrink: 0;
  border: 1px solid var(--cat-line);
  border-radius: 10px;
  background: #fff;
  color: var(--cat-ink-2);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.cat-flt svg { width: 16px; height: 16px; }
.cat-flt[aria-expanded="true"] { border-color: #c4b5fd; background: #faf7ff; color: #6d28d9; }
.cat-flt.is-on::after {
  content: "";
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cat-accent);
  border: 2px solid #fff;
}

@media (max-width: 960px) {
  /* 手机顶栏（2026-11-07 重做）：原来品牌一行 + 三个下拉一行 + 搜索一行，共约 200px，
     竖屏只剩 600px 可用，一进页面先看到半屏控件。
     现在收成两行：品牌 + [筛选][意见] 一行，搜索独占一行；三个下拉进「筛选」抽屉。 */
  .cat-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }
  /* ⚠️ 这几条必须带 .cat-top 前缀提高权重：
     .cat-top-r / .cat-fb 的基础样式写在文件后半段（媒体查询之后），
     同权重时后者胜出，display:contents 会被覆盖，顶栏顺序整个反过来（实测踩过）。 */
  .cat-top .cat-top-l { order: 1; flex: 1 1 auto; min-width: 0; }
  /* display:contents 让搜索和两个按钮直接成为顶栏的 flex 子项，才好各自排到不同行 */
  .cat-top .cat-top-r { display: contents; }
  .cat-top .cat-search { order: 4; flex: 1 1 100%; width: auto; max-width: none; min-width: 0; }
  .cat-top .cat-search input { height: 38px; }
  .cat-top .cat-search kbd { display: none; }
  .cat-top .cat-flt { order: 2; display: inline-flex; height: 38px; }
  .cat-top .cat-fb { order: 3; height: 38px; }
  .cat-brand { font-size: var(--fs-md); }

  /* 抽屉：默认收起，点「筛选」落下来。
     用 absolute 而不是 fixed —— .cat-top 的 backdrop-filter 会建立包含块，fixed 会失效。 */
  .cat-selects {
    order: 5;
    position: absolute;
    top: calc(100% + 6px);
    /* 不用 left+right 撑开：它在 flex 顶栏里是「绝对定位的 flex 子项」，
       Chrome 会按静态位置 + 收缩宽度算，left/right 形同虚设（实测被压到 149px）。
       居中 + 定宽最稳。 */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 16px);
    z-index: 95;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--cat-line);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .22);
  }
  .cat-selects.open { display: flex; }
  .cat-sel { display: block; width: 100%; }
  .cat-sel select,
  .cat-mk-trigger {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: var(--fs-md);
    padding-top: 13px;
  }
  .cat-sel label { font-size: var(--fs-xs); }
  /* 抽屉里空间够，溢价面板就地展开，不再浮在按钮下方遮住别的框 */
  .cat-mk-pop {
    position: static;
    width: 100%;
    max-width: none;
    transform: none;
    margin-top: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .cat-body { grid-template-columns: 1fr; }
  .cat-side {
    position: static;
    height: auto;
    border-inline-end: 0;
    border-bottom: 1px solid var(--cat-line);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .cat-side-h { display: none; }
  .cat-nav-item { white-space: nowrap; padding: 7px 11px; border: 1px solid var(--cat-line); border-radius: 20px; font-size: var(--fs-sm); }
  .cat-nav-item .n { margin-inline-start: 4px; }
  .cat-nav-item .dot { display: none; }
  .cat-sub { display: none !important; }
  .cat-main { padding: 12px; }
  .cat-crumb { font-size: var(--fs-md); }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
  .cat-info { padding: 10px 11px 11px; gap: 5px; }
  .cat-name { font-size: var(--fs-sm); min-height: 2.7em; }
  .cat-price-row strong { font-size: var(--fs-md); }
  .cat-price-row .ask { font-size: var(--fs-xs); }
  .cat-badge { font-size: var(--fs-xs); padding: 1px 5px; max-width: 82%; }

  .cat-overlay { padding: 0; align-items: stretch; }
  .cat-dossier {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 16px;
    border-radius: 0;
    overflow-y: auto;
  }
  /* 手机上卡片会滚，关闭按钮跟着滚会跑没，所以仍然固定在视口右上 */
  .cat-close {
    position: fixed;
    inset-inline-end: 10px;
    top: 10px;
    background: rgba(15, 23, 42, .55);
    border-color: transparent;
    color: #fff;
  }
  .dos-head { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .dos-mainimg { width: 100%; height: 230px; }
  .dos-thumbs { display: none; }
  .dos-eyebrow { padding-inline-end: 0; }
  .dos-code { font-size: 26px; }
  .dos-name { font-size: var(--fs-lg); }
  .spec-grid { grid-template-columns: 1fr; gap: 8px; }
  .spec-grid .k { flex: 0 0 84px; }
  .price-main .val { font-size: 28px; }
  .price-main .ask { font-size: var(--fs-lg); }
}

@media print {
  .cat-top, .cat-side, .cat-close, .row-pen, .cat-flt { display: none !important; }
  .cat-overlay { position: static; background: #fff; padding: 0; display: block; }
  .cat-dossier { width: 100%; height: auto; box-shadow: none; }
}

/* 右侧一组：搜索 + 意见按钮 */
.cat-top-r {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: min(520px, 100%);
}

/* 窄一点的笔记本：搜索框和意见按钮抢位置，先收按钮文字只留图标 */
@media (max-width: 1280px) {
  .cat-fb span { display: none; }
  .cat-fb { padding: 0 11px; }
}

.cat-fb {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  flex-shrink: 0;
  border: 1px solid #d9d2f7;
  border-radius: 10px;
  background: #faf7ff;
  color: #6d28d9;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.cat-fb svg { width: 16px; height: 16px; }
.cat-fb:hover {
  background: #f3ebff;
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .10);
}
.cat-fb:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- 意见反馈浮层 */
.fb-mask {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
               BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}
.fb-mask[hidden] { display: none; }
.fb-mask *, .fb-mask *::before, .fb-mask *::after { box-sizing: border-box; }

.fb-card {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  /* 1366×768 上原来贴到只剩 25px，像要撑破；留 48px 上下呼吸 */
  max-height: calc(100vh - 96px);
  min-height: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
  overflow: hidden;
}

.fb-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}
.fb-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #eef1f6;
  border: 1px solid #dfe4ee;
  border-radius: 11px;
  flex: 1;
}
.fb-tabs button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .14s, color .14s, box-shadow .14s;
}
.fb-tabs button i { font-style: normal; font-size: 14px; opacity: .75; }
.fb-tabs button:hover { color: #475569; }
.fb-tabs button.on {
  background: #fff;
  color: #6d28d9;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
.fb-tabs button.on i { opacity: 1; }

.fb-x {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 0;
  border-radius: 9px;
  background: #f1f3f7;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.fb-x:hover { background: #e6e9ef; color: #0f172a; }

.fb-body {
  padding: 14px 16px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  /* flex 子项默认 min-height:auto，内容超高时不会缩，底部按钮会被顶出去 */
  min-height: 0;
}

.fb-f {
  display: block;
  margin-bottom: 12px;
}
.fb-f > span {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #475569;
  margin-bottom: 5px;
  letter-spacing: .2px;
}
.fb-f > span b { color: #e11d48; font-weight: 700; }
.fb-f > em {
  display: block;
  font-style: normal;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--cat-muted);
  margin-top: 5px;
}
.fb-echo { font-size: var(--fs-xs); font-style: normal; display: block; margin-top: 4px; color: var(--cat-muted); }
.fb-echo.ok { color: #059669; }
.fb-echo.bad { color: #dc2626; }

.fb-f input,
.fb-f select,
.fb-f textarea {
  width: 100%;
  border: 1px solid #dde3ec;
  border-radius: 9px;
  background: #fff;
  padding: 9px 11px;
  font-family: inherit;
  font-size: var(--fs-md);
  color: #0f172a;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.fb-f input, .fb-f select { height: 40px; }
.fb-f textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}
.fb-f input:focus,
.fb-f select:focus,
.fb-f textarea:focus {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

/* 灰框：原来上 12 / 内 11 / 下 3，三边不对称，看着挤。
   现在内边距 12 一圈，最后一项自己留 12 的下边距。 */
.fb-specbox {
  margin-bottom: 12px;
  padding: 12px 12px 0;
  background: #f8f9fb;
  border: 1px solid #e8ecf3;
  border-radius: 10px;
}
.fb-specbox .fb-f:last-child { margin-bottom: 12px; }
.fb-cur {
  font-size: var(--fs-sm);
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.5;
  word-break: break-word;
}
.fb-cur b { color: #0f172a; font-weight: 700; }

.fb-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.fb-addimg {
  height: 40px;
  padding: 0 14px;
  border: 1px dashed #c7cede;
  border-radius: 9px;
  background: #fafbfc;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}
.fb-addimg:hover { border-color: #c4b5fd; color: #6d28d9; background: #faf7ff; }
.fb-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f1f3f7;
}
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .68);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.fb-ft {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid #eef1f6;
  background: #fcfcfd;
}
.fb-msg {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  color: #64748b;
  line-height: 1.4;
}
.fb-msg.bad { color: #dc2626; font-weight: 600; }
.fb-ft button {
  height: 38px;
  padding: 0 20px;
  border-radius: 9px;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.fb-cancel { border: 1px solid #e2e8f0; background: #fff; color: #475569; }
.fb-cancel:hover { background: #f7f8fa; }
.fb-submit { border: 1px solid #6d28d9; background: #7c3aed; color: #fff; }
.fb-submit:hover { background: #6d28d9; }
.fb-submit:disabled { opacity: .65; cursor: default; }

.fb-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 9600;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  background: #0f172a;
  color: #fff;
  font-family: "PingFang SC", -apple-system, sans-serif;
  font-size: var(--fs-md);
  font-weight: 600;
  border-radius: 11px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .3);
  transition: opacity .5s, transform .5s;
}
.fb-toast.out { opacity: 0; transform: translate(-50%, 12px); }

@media (max-width: 560px) {
  .fb-mask { padding: 0; align-items: flex-end; }
  .fb-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
  .fb-body { padding: 12px 14px 4px; }
  .fb-ft { padding: 10px 14px 12px; }
  .fb-msg { font-size: var(--fs-xs); }
  .fb-ft button { padding: 0 16px; }
}

@keyframes catHintFade { to { opacity: 0; visibility: hidden; } }

/* ==========================================================================
   核对台账（2026-11-11，11:20 改版）
   ⚠️ 核心约束：状态必须在一级列表卡片上直接看见。
   档案卡（二级）是截图给客户看的，不能出现内部核对痕迹 —— 那里一个字都不放。
   徽标位置跟「热销」同一个角：没热销就在 8px，有热销就顺延到它下面一行。
   整卡是 <button>，所以徽标在 .cat-cell 这一层绝对定位盖回去（HTML 不允许 button 套 button）。
   ========================================================================== */
.cat-cell { position: relative; display: flex; }
.cat-cell > .cat-card { width: 100%; }

.cat-chk {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  z-index: 3;
  pointer-events: none;         /* 只放行徽标按钮，别挡住卡片本身的点击 */
  transition: transform .16s ease;
}
.cat-chk[data-hot] { inset-block-start: 34px; }   /* 这款有「热销」，让到下一行 */
.cat-card:hover + .cat-chk { transform: translateY(-2px); }   /* 跟随卡片浮起 */

.cat-chk-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 8px 0 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .2px;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.cat-chk-ico { display: flex; }
.cat-chk-ico svg { width: 11px; height: 11px; display: block; }

/* 未核对：绝大多数卡片都是这个状态，必须低调，但要看得见、点得到 */
.cat-chk-pill.is-none {
  color: #5b6676;
  background: rgba(255, 255, 255, .9);
  border: 1px dashed #c2cad8;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.cat-chk-pill.is-none:hover {
  color: #6d28d9;
  border-color: #8b5cf6;
  border-style: solid;
  background: #fff;
}

/* 已核对：紫色实心。跟橙黄的「热销」明确分开，扫一眼就知道哪款动过 */
.cat-chk-pill.is-ok {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 2px 8px rgba(109, 40, 217, .32);
}
.cat-chk-pill.is-ok:hover { transform: translateY(-1px) scale(1.04); }

/* 需重核：橙黄实心，跟顶栏「需重核」筛选同色系 */
.cat-chk-pill.is-stale {
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 2px 8px rgba(245, 158, 11, .34);
}
.cat-chk-pill.is-stale:hover { transform: translateY(-1px) scale(1.04); }

.cat-chk-pill:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cat-chk-pill.pop { animation: catChkPop .42s ease; }
@keyframes catChkPop {
  0% { transform: scale(1); }
  38% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* 顶栏筛选胶囊 + 进度 */
.cat-chk-chip em {
  font-style: normal;
  margin-inline-start: 5px;
  font-size: 11px;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}
.cat-chk-prog {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px 0 54px;
  border-radius: 20px;
  background: #eceef2;
  color: var(--cat-muted);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.cat-chk-prog::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  width: 38px;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: #d3d8e0;
}
.cat-chk-prog i {
  position: absolute;
  left: 10px;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  width: calc(38px * var(--p, 0));
  border-radius: 2px;
  background: #16a34a;
  transition: width .3s ease;
}
.cat-chk-prog b { font-weight: 600; }

.cat-chk-batch { border-color: #c4b5fd; color: #6d28d9; background: #faf5ff; }
.cat-chk-batch:hover { background: #f3e8ff; }

/* ---------------------------------------------------------------- 确认弹窗 */
.cat-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .46);
  animation: catFade .14s ease;
}
@keyframes catFade { from { opacity: 0; } to { opacity: 1; } }
.cat-modal {
  box-sizing: border-box;
  width: min(430px, 100%);
  background: #fff;
  border-radius: 15px;
  padding: 22px 22px 16px;
  box-shadow: 0 22px 64px rgba(15, 23, 42, .3);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.cat-modal h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #0f172a; }
.cat-modal-msg { margin: 0 0 16px; font-size: 14px; line-height: 1.68; color: #475569; }
.cat-modal-msg b { color: #0f172a; }
.cat-modal-note {
  display: block;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f6f4ff;
  color: #5b21b6;
  font-size: 13px;
  line-height: 1.55;
}
.cat-modal-input {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.cat-modal-input:focus { border-color: #7c3aed; }
.cat-modal-err { margin: 0 0 12px; color: #dc2626; font-size: 13px; }
.cat-modal-foot { display: flex; gap: 10px; justify-content: flex-end; }
.cat-modal-foot button {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .14s, border-color .14s;
}
.cat-modal-no { background: #fff; border: 1px solid #e2e8f0; color: #475569; }
.cat-modal-no:hover { background: #f8fafc; }
.cat-modal-yes { background: #7c3aed; border: 1px solid #7c3aed; color: #fff; }
.cat-modal-yes:hover { background: #6d28d9; }
.cat-modal-yes.danger { background: #dc2626; border-color: #dc2626; }
.cat-modal-yes.danger:hover { background: #b91c1c; }
.cat-modal-yes:disabled { opacity: .6; cursor: default; }

/* ---------------------------------------------------------------- 动画 */
/* 勾选成功的小烟花：fixed 挂在 body 上，用屏幕坐标定位（网格重渲染后按钮节点会消失） */
.cat-spark-fx {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9400;
}
.cat-spark-fx i {
  position: absolute;
  left: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0;
  animation: catSpark .72s ease-out forwards;
}
.cat-spark-fx i:nth-child(2n) { background: #86efac; width: 4px; height: 4px; }
.cat-spark-fx i:nth-child(3n) { background: #a78bfa; }
@keyframes catSpark {
  0% { opacity: 1; transform: translate(0, 0) scale(.5); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(1); }
}

.cat-bloom {
  position: fixed;
  inset: 0;
  z-index: 9600;
  pointer-events: none;
  overflow: hidden;
}
.cat-bloom i {
  position: absolute;
  bottom: 16%;
  width: 10px;
  height: 10px;
  border-radius: 50% 0 50% 50%;
  background: #f472b6;
  opacity: 0;
  animation: catBloom 1.35s ease-out forwards;
}
.cat-bloom i:nth-child(3n) { background: #a78bfa; }
.cat-bloom i:nth-child(3n+1) { background: #fbbf24; }
@keyframes catBloom {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(.7); }
  100% { opacity: 0; transform: translate(var(--bx, 0px), -190px) rotate(var(--r, 90deg)) scale(1); }
}

/* 2026-11-11 11:20：档案卡（截图给客户看的那张）里不再有任何核对元素，
   原来的 .dos-check 核对条整套删除。别再加回来 —— 客户会看见内部台账。 */

@media (max-width: 560px) {
  /* 手机卡片窄，徽标只留图标不留文字，避免跟左上型号徽标打架 */
  .cat-chk-tx { display: none; }
  .cat-chk-pill { height: 26px; padding: 0 7px; }   /* 点按区放大 */
  .cat-chk-ico svg { width: 13px; height: 13px; }
  /* 手机上 5 个胶囊本来就挤，进度条再占位就把「配件」挤到第三行 —— 数字在胶囊上已有，藏掉 */
  .cat-chk-prog { display: none; }
  .cat-chk-chip { padding: 4px 8px; }
  .cat-chk-chip em { margin-inline-start: 3px; }
  .cat-modal { padding: 18px 16px 12px; }
}

/* ==========================================================================
   2026-11-12 · 进站「更新提醒」弹窗（catalog-notice.js）
   独立组件，挂在 body 下，不进 .cat-app 作用域，字体要自己带一份。
   z-index 9000：必须低于密码门 #pwd-overlay（9999），没解锁时不弹在门后面。
   ========================================================================== */
.cat-nt-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border: 1px solid var(--cat-line);
  border-radius: 9px; background: #fff; color: var(--cat-ink-2);
  font: 600 13px/1 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background .15s;
}
.cat-nt-btn:hover { border-color: var(--cat-accent); color: var(--cat-accent); background: var(--cat-accent-soft); }
.cat-nt-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.cat-nt-dot {
  position: absolute; top: 5px; right: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: #e11d48; box-shadow: 0 0 0 2px #fff;
}

.cat-nt-mask {
  position: fixed; inset: 0; z-index: 9000; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 23, 42, .46); backdrop-filter: blur(3px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
}
.cat-nt-mask.on { display: flex; animation: catNtFade .18s ease-out; }
.cat-nt-mask, .cat-nt-mask * { box-sizing: border-box; }
@keyframes catNtFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes catNtRise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.cat-nt-card {
  width: min(620px, 100%); max-height: min(88vh, 820px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 16px; color: #0f172a;
  box-shadow: 0 24px 72px rgba(15, 23, 42, .28);
  animation: catNtRise .22s cubic-bezier(.2, .8, .2, 1);
}
/* 标题居中，只四个字；关闭按钮绝对定位，不挤占居中 */
.cat-nt-hd {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 18px 22px 8px;
}
.cat-nt-hd h2 { margin: 0; font-size: 17px; font-weight: 700; color: #0f172a; }
.cat-nt-x {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: #94a3b8; font-size: 22px; line-height: 1; cursor: pointer;
}
.cat-nt-x:hover { background: #f1f5f9; color: #334155; }

/* 标题正下方：一张点赞图，居中，不加文字不加图标 */
.cat-nt-pic { display: flex; justify-content: center; padding: 2px 0 4px; }
.cat-nt-pic img {
  display: block; width: 80px; height: 80px; object-fit: cover;
  border-radius: 16px; border: 2px solid #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .16);
}

.cat-nt-tabs { display: flex; gap: 6px; padding: 10px 22px 0; }
.cat-nt-tabs button {
  flex: 1; padding: 9px 10px; border: 1px solid #e5e7eb; border-radius: 9px 9px 0 0;
  border-bottom: 0; background: #f8fafc; color: #64707f;
  font: 600 13.5px/1.2 inherit; cursor: pointer; transition: all .15s;
}
.cat-nt-tabs button.on { background: #f4ecff; border-color: #ddd0fb; color: #6d28d9; }

.cat-nt-body {
  flex: 1 1 auto; min-height: 120px; overflow-y: auto;
  padding: 14px 22px 14px; border-top: 1px solid #ddd0fb;
  -webkit-overflow-scrolling: touch;
}
.cat-nt-pane { display: none; }
.cat-nt-pane.on { display: block; }
.cat-nt-empty { padding: 30px 0; text-align: center; color: #94a3b8; font-size: 13px; }

/* 左栏：两条大白话，不做时间线、不加日期、不加图标 */
.cat-nt-news { display: grid; gap: 12px; }
.cat-nt-ni { border: 1px solid #e8eaf0; border-radius: 11px; padding: 14px 16px; background: #fcfcfd; }
.cat-nt-ni-t { font-size: 14.5px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.cat-nt-ni-p { font-size: 13.5px; line-height: 1.75; color: #475569; }

/* 右栏：修补的产品 */
.cat-nt-fixlist { display: grid; gap: 8px; }
.cat-nt-fx { border: 1px solid #e5e7eb; border-radius: 11px; padding: 10px 12px; background: #fcfcfd; }
.cat-nt-fx-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-nt-badge {
  padding: 2px 8px; border-radius: 20px; background: #d1fae5; color: #047857;
  font-size: 11px; font-weight: 700;
}
.cat-nt-fx-hd strong { font-size: 14px; color: #0f172a; letter-spacing: .2px; }
.cat-nt-fx-name { font-size: 12.5px; color: #64707f; }
.cat-nt-fx-meta { margin: 5px 0 7px; font-size: 11.5px; color: #94a3b8; }
.cat-nt-fx-meta span { margin: 0 5px; }
.cat-nt-fx-row { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.6; color: #334155; }
.cat-nt-fx-row + .cat-nt-fx-row { margin-top: 4px; }
.cat-nt-k { flex: 0 0 30px; color: #94a3b8; }
.cat-nt-fx-ok { color: #047857; }

/* 页脚只有一个「知道了」，不显示版本号 */
/* 三栏：左留白 / 中「使用教程」/ 右「知道了」。
   用 grid 而不是 flex+absolute：教程要真的落在整行正中，不能靠 margin 凑。 */
.cat-nt-ft {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 22px 16px; border-top: 1px solid #f0f1f4;
}
.cat-nt-ok {
  grid-column: 3; justify-self: end;
  padding: 9px 26px; border: 0; border-radius: 9px; background: #7c3aed;
  color: #fff; font: 600 14px/1 inherit; cursor: pointer;
}
.cat-nt-ok:hover { background: #6d28d9; }
.cat-nt-ok.pop { animation: catNtPop .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes catNtPop {
  0% { transform: scale(1); } 24% { transform: scale(.88); }
  56% { transform: scale(1.14); } 100% { transform: scale(1); }
}

/* ---------------- 点「知道了」→ 像素红心点赞爆炸（可爱风） ----------------
   特效层挂在 body 上，z-index 高于密码门 9999 与弹窗 9000；
   弹窗 520ms 后收起，动画在页面上层继续播完，不看得到「被遮掉」的半截。 */
/* ⚠️ 类名不能写成 .cat-nt-fx —— 那是右栏修复卡的类，会把它压成 width:0 */
.cat-nt-lovefx {
  position: fixed; z-index: 10020; width: 0; height: 0; pointer-events: none;
}
.cat-nt-lovefx > i { position: absolute; left: 0; top: 0; display: block; }
.cat-nt-love {
  width: var(--sz); height: calc(var(--sz) * .75);
  margin-left: calc(var(--sz) * -.5); margin-top: calc(var(--sz) * -.375);
  background-repeat: no-repeat; background-size: 100% 100%;
  image-rendering: pixelated;
  animation: catNtBurst 1s cubic-bezier(.18, .72, .32, 1) var(--d) both;
}
.cat-nt-spark {
  width: var(--sz); height: var(--sz);
  margin-left: calc(var(--sz) * -.5); margin-top: calc(var(--sz) * -.5);
  border-radius: 2px;
  animation: catNtBurst .9s cubic-bezier(.18, .72, .32, 1) var(--d) both;
}
@keyframes catNtBurst {
  0%   { opacity: 0; transform: translate(0, 0) scale(.15) rotate(0); }
  18%  { opacity: 1; transform: translate(calc(var(--dx) * .38), calc(var(--dy) * .38 - 8px)) scale(1.15) rotate(0); }
  70%  { opacity: 1; transform: translate(var(--dx), calc(var(--dy) - 6px)) scale(1) rotate(var(--rot)); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.08), calc(var(--dy) + 20px)) scale(.5) rotate(var(--rot)); }
}
/* 中间一颗大心，Q 弹两下再散 */
.cat-nt-love-core {
  width: 64px; height: 48px; margin-left: -32px; margin-top: -24px;
  background-repeat: no-repeat; background-size: 100% 100%;
  image-rendering: pixelated;
  animation: catNtCore .7s cubic-bezier(.2, .9, .3, 1.4) both;
}
@keyframes catNtCore {
  0%   { opacity: 0; transform: scale(.1) rotate(-14deg); }
  22%  { opacity: 1; transform: scale(1.3) rotate(8deg); }
  40%  { transform: scale(.95) rotate(-4deg); }
  52%  { opacity: .9; transform: scale(1.05) rotate(0); }
  72%  { opacity: 0; transform: scale(1.35) rotate(0); }
  100% { opacity: 0; transform: scale(1.5) rotate(0); }
}
.cat-nt-love-ring {
  width: 34px; height: 34px; margin-left: -17px; margin-top: -17px;
  border: 3px solid #ff9db3; border-radius: 50%;
  animation: catNtRing .68s ease-out both;
}
@keyframes catNtRing {
  0%   { opacity: .85; transform: scale(.3); }
  100% { opacity: 0; transform: scale(5.2); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-nt-lovefx { display: none; }
  .cat-nt-ok.pop { animation: none; }
}

@media (max-width: 560px) {
  /* 顶栏在手机上是 display:contents，按钮要给它 order 才不会乱跑 */
  .cat-top .cat-nt-btn { order: 3; height: 38px; padding: 0 11px; }
  .cat-nt-btn span { display: none; }
  .cat-nt-btn { padding: 0 11px; }
  .cat-nt-mask { padding: 10px; align-items: flex-end; }
  .cat-nt-card { max-height: 88vh; border-radius: 16px 16px 10px 10px; }
  .cat-nt-hd { padding: 16px 16px 6px; }
  .cat-nt-pic img { width: 68px; height: 68px; }
  .cat-nt-tabs { padding: 10px 16px 0; }
  .cat-nt-body { padding: 14px 16px 16px; }
  .cat-nt-ft { padding-left: 16px; padding-right: 16px; }
}

/* ==========================================================================
   勾选导出 Word 报价单（2026-11-17）
   - 顶栏多一个「选择」按钮；选择模式下点卡片＝勾选，不打开档案卡
   - 底部浮条显示已选数量 + 导出
   - 导出弹窗：客户名 / 编号 / 日期 / 逐款数量 / 两个勾选框
   样式全部挂在 .cat-app 之外（浮条与弹窗都 append 到 body），所以不复用 --cat-* 变量。
   ========================================================================== */

/* ---------------------------------------------------------------- 顶栏按钮 */
.cat-pick-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  flex-shrink: 0;
  border: 1px solid #d9d2f7;
  border-radius: 10px;
  background: #faf7ff;
  color: #6d28d9;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
               BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-md);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.cat-pick-btn svg { width: 16px; height: 16px; }
.cat-pick-btn:hover {
  background: #f3ebff;
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .10);
}
.cat-pick-btn.is-on {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}
.cat-pick-btn.is-on:hover { background: #6d28d9; }

/* 顶栏「清空 N」：只在选择模式且已选 >0 时出现，紧贴「选择」按钮右侧 */
.cat-pick-clear {
  flex-shrink: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  background: #fff;
  color: #64707f;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
               BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.cat-pick-clear b { color: #7c3aed; font-weight: 700; }
.cat-pick-clear:hover { background: #f8f5ff; border-color: #d9d2f7; color: #4b5563; }

/* ---------------------------------------------------------------- 卡片选中态 */
/* 勾选圈浮在卡片左上角外侧（-9px），落在 grid 的 16px 间隙里：
   卡片左上角本来就有型号徽标、右上角有核对徽标，往里放一律会盖住信息。 */
.cat-grid.is-picking .cat-cell::before {
  content: '';
  position: absolute;
  inset-inline-start: -9px;
  top: -9px;
  z-index: 4;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cdd3dc;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
  transition: background .12s, border-color .12s;
  pointer-events: none;
}
/* 已选：必须带上 .cat-grid.is-picking 前缀，否则优先级输给上面那条
   （同样带 :pseudo，上面多一个类选择器），content 会被改回空串，勾就画不出来 */
.cat-grid.is-picking .cat-cell.is-picked::before {
  content: '✓';
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff;
  font: 700 13px/18px "PingFang SC", -apple-system, sans-serif;
  text-align: center;
}
.cat-cell.is-picked > .cat-card {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, .22);
}
.cat-grid.is-picking { padding-bottom: 78px; }   /* 给底部浮条留位，别盖住最后一排卡片 */
.cat-grid.is-picking .cat-card:hover { transform: none; }
/* 底部浮条是 fixed 的，会盖住视口最下沿那一排卡片；留出滚动余量，
   滚到底时最后一行不会被浮条挡住（浮条高度 34+9*2+22 ≈ 74）。 */
.cat-grid.is-picking { padding-bottom: 78px; }

/* ---------------------------------------------------------------- 底部浮条 */
.cat-pickbar {
  position: fixed;
  inset-inline: 0;
  bottom: 22px;
  margin: 0 auto;
  z-index: 8000;
  width: fit-content;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, .94);
  color: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
               BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .3);
  backdrop-filter: blur(6px);
}
.cat-pickbar .pb-n b { color: #c4b5fd; font-size: 16px; }
.cat-pickbar .pb-hint { color: #fca5a5; font-size: 13px; }
.cat-pickbar button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  color: #e6e9ef;
  height: 34px;
  padding: 0 13px;
  transition: background .14s;
}
.cat-pickbar button:hover { background: rgba(255, 255, 255, .1); }
.cat-pickbar .pb-go {
  border: none;
  background: #7c3aed;
  color: #fff;
  padding: 0 18px;
}
.cat-pickbar .pb-go:hover { background: #6d28d9; }
.cat-pickbar .pb-go:disabled { background: #4b5563; color: #9ca3af; cursor: default; }
/* 核对版是次要动作：描边而非实心，避免业务员手快点到它、把内部核对单发给客户 */
.cat-pickbar .pb-check {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .45);
  color: #e6e9ef;
  padding: 0 14px;
}
.cat-pickbar .pb-check:hover { background: rgba(255, 255, 255, .14); }
.cat-pickbar .pb-check:disabled { border-color: rgba(255, 255, 255, .18); color: #6b7280; background: transparent; cursor: default; }
.cat-pickbar .pb-x {
  border: none;
  width: 34px;
  padding: 0;
  color: #9ca3af;
  font-size: 15px;
}

/* ---------------------------------------------------------------- 导出弹窗 */
.cat-exdlg {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
               BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}
.cat-exdlg .ex-card {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: min(84vh, 720px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .28);
  overflow: hidden;
}
.cat-exdlg .ex-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #eef0f3;
}
.cat-exdlg .ex-hd b { font-size: 16px; }
.cat-exdlg .ex-x {
  border: none;
  background: none;
  font-size: 16px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.cat-exdlg .ex-x:hover { background: #f1f3f6; color: #334155; }
.cat-exdlg .ex-body {
  padding: 14px 18px 4px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.cat-exdlg .ex-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.cat-exdlg .ex-f { display: flex; flex-direction: column; gap: 4px; }
/* 2026-11-17：客户名与联系方式并排（原来客户名独占一行）。
   两列保持等宽，下面一行是编号 / 日期。 */

.cat-exdlg .ex-f span { font-size: 12px; color: #64707f; font-weight: 600; }
.cat-exdlg .ex-f input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  min-width: 0;
}
.cat-exdlg .ex-f input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .1); }
.cat-exdlg .ex-list-h {
  font-size: 12px;
  color: #64707f;
  font-weight: 600;
  margin-bottom: 6px;
}
.cat-exdlg .ex-list {
  max-height: 34vh;
  overflow-y: auto;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  margin-bottom: 14px;
}
.cat-exdlg .ex-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px 86px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #f4f5f7;
  font-size: 13px;
}
.cat-exdlg .ex-row:last-child { border-bottom: none; }
.cat-exdlg .ex-m { font-family: ui-monospace, Menlo, monospace; font-weight: 700; }
.cat-exdlg .ex-n { color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-exdlg .ex-p { text-align: right; color: #0f172a; font-weight: 600; }
.cat-exdlg .ex-p i { color: #94a3b8; font-style: normal; font-weight: 400; }
.cat-exdlg .ex-q {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64707f;
  font-weight: 600;
  justify-content: flex-end;
}
.cat-exdlg .ex-q input {
  width: 46px;
  height: 28px;
  padding: 0 4px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  color: #0f172a;
  outline: none;
}
.cat-exdlg .ex-q input:focus { border-color: #7c3aed; }
.cat-exdlg .ex-opts { display: flex; gap: 18px; flex-wrap: wrap; }
.cat-exdlg .ex-cb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  padding: 4px 0;
}
.cat-exdlg .ex-cb input { width: 15px; height: 15px; accent-color: #7c3aed; cursor: pointer; }
.cat-exdlg .ex-cb.is-off { opacity: .45; cursor: default; }
.cat-exdlg .ex-cb.is-off input { cursor: default; }
.cat-exdlg .ex-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12.5px;
  line-height: 1.5;
}
.cat-exdlg .ex-ft {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid #eef0f3;
}
.cat-exdlg .ex-msg {
  flex: 1 1 auto;
  font-size: 12.5px;
  color: #64707f;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-exdlg .ex-cancel,
.cat-exdlg .ex-ok {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cat-exdlg .ex-cancel { border: 1px solid #e2e8f0; background: #fff; color: #334155; }
.cat-exdlg .ex-cancel:hover { background: #f8fafc; }
.cat-exdlg .ex-ok { border: none; background: #7c3aed; color: #fff; }
.cat-exdlg .ex-ok:hover { background: #6d28d9; }
.cat-exdlg .ex-ok:disabled { background: #c4b5fd; cursor: default; }

@media (max-width: 1280px) {
  .cat-pick-btn span { display: none; }
  .cat-pick-btn { padding: 0 11px; }
}
@media (max-width: 560px) {
  /* 手机端不导出报价单（业务员是在电脑上做单），按钮直接收掉，别挤顶栏 */
  .cat-pick-btn { display: none; }
  .cat-pickbar { bottom: 12px; padding-left: 14px; gap: 8px; }
  .cat-exdlg { padding: 10px; align-items: flex-end; }
  .cat-exdlg .ex-card { max-height: 90vh; border-radius: 16px 16px 10px 10px; }
  .cat-exdlg .ex-fields { grid-template-columns: 1fr; }
  .cat-exdlg .ex-row { grid-template-columns: 76px minmax(0, 1fr) 74px 78px; }
}

/* ==========================================================================
   使用教程（2026-11-17）
   - 入口：更新提醒底部中间的「使用教程」
   - 独立浮层 .cat-gd-*，z-index 9200（盖住更新提醒 9000，压在密码门 9999 之下）
   - 左目录 + 右正文滚动；窄屏（<760px）目录收起，正文单栏
   ========================================================================== */

/* ---------------------------------------------------- 更新提醒底部那个入口 */
.cat-nt-guide {
  /* 必须显式指定列：grid 自动排布会把两个按钮塞进第 1、2 列，
     结果教程跑到左边、知道了占了中间（实测偏左 167px）。 */
  grid-column: 2; justify-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px dashed #d9d2f7; border-radius: 9px;
  background: #faf7ff; color: #6d28d9;
  font: 600 13px/1 inherit; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.cat-nt-guide svg { width: 15px; height: 15px; }
.cat-nt-guide:hover { background: #f3ebff; border-color: #c4b5fd; }

/* ------------------------------------------------------------------ 浮层 */
.cat-gd-mask {
  position: fixed; inset: 0; z-index: 9200;
  display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, .5);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
               BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #0f172a; -webkit-font-smoothing: antialiased;
}
.cat-gd-mask.on { display: flex; animation: catNtFade .18s ease-out; }
.cat-gd-mask, .cat-gd-mask * { box-sizing: border-box; }

.cat-gd-card {
  display: flex; flex-direction: column;
  width: min(900px, 100%); height: min(88vh, 820px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 72px rgba(15, 23, 42, .32);
  animation: catNtRise .22s cubic-bezier(.2, .8, .2, 1);
}

/* 标题区：左对齐（教程要读，居中反而不好扫） */
.cat-gd-hd {
  position: relative; flex: 0 0 auto;
  padding: 20px 24px 14px; border-bottom: 1px solid #eef0f4;
}
.cat-gd-hd h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.cat-gd-hd p { margin: 5px 0 0; font-size: 12.5px; color: #7a828f; }
.cat-gd-x {
  position: absolute; right: 16px; top: 18px;
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: none; color: #94a3b8; font-size: 20px; line-height: 1;
  cursor: pointer;
}
.cat-gd-x:hover { background: #f1f5f9; color: #334155; }

.cat-gd-main { flex: 1 1 auto; display: flex; min-height: 0; }

/* 左目录 */
.cat-gd-nav {
  flex: 0 0 196px; overflow-y: auto; padding: 14px 10px 20px;
  border-right: 1px solid #eef0f4; background: #fbfbfd;
}
.cat-gd-nav-t {
  padding: 0 10px 8px; font-size: 11.5px; font-weight: 700; color: #94a3b8;
  letter-spacing: .5px;
}
.cat-gd-nav a {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.5; color: #475569; text-decoration: none;
}
.cat-gd-nav a i {
  flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 700;
  color: #a5aec0; padding-top: 1px;
}
.cat-gd-nav a:hover { background: #f1f4f9; color: #1e293b; }
.cat-gd-nav a.on { background: #f4ecff; color: #6d28d9; font-weight: 600; }
.cat-gd-nav a.on i { color: #7c3aed; }

/* 右正文 */
.cat-gd-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 26px 28px; position: relative; }
.cat-gd-sec { padding: 20px 0 4px; border-bottom: 1px solid #f4f5f7; }
.cat-gd-sec:last-child { border-bottom: 0; }
.cat-gd-sec h3 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px; font-size: 15.5px; font-weight: 700; color: #0f172a;
}
.cat-gd-sec h3 i {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: #7c3aed; color: #fff; font-style: normal;
  font-size: 11.5px; font-weight: 700; line-height: 22px; text-align: center;
}
.cat-gd-sec p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.8; color: #334155; }
.cat-gd-ul { margin: 0 0 10px; padding-left: 18px; }
.cat-gd-ul-sub { margin-top: 6px; }
.cat-gd-ul li { font-size: 13.5px; line-height: 1.85; color: #334155; margin-bottom: 3px; }
.cat-gd-ol { margin: 0 0 10px; padding-left: 20px; }
.cat-gd-ol > li { font-size: 13.5px; line-height: 1.85; color: #334155; margin-bottom: 6px; }
/* 章节内的小标题（如 §9 里「另一个按钮：导出核对版」），别用 h4 默认样式，太大 */
.cat-gd-h4 { margin: 18px 0 6px; font-size: 14px; font-weight: 700; color: #1e293b; }
.cat-gd-sec b { color: #1e293b; font-weight: 700; }
.cat-gd-tip {
  padding: 9px 12px; margin: 10px 0 4px !important;
  border-left: 3px solid #c4b5fd; border-radius: 0 8px 8px 0;
  background: #faf8ff; font-size: 13px !important; color: #475569 !important;
}
.cat-gd-sec kbd {
  padding: 1px 5px; border: 1px solid #dfe4ea; border-bottom-width: 2px;
  border-radius: 4px; background: #f8fafc; font: 600 11.5px/1.4 ui-monospace, Menlo, monospace;
  color: #475569;
}

/* 表格式速查（价格四档 / 按钮清单） */
.cat-gd-tb { width: 100%; border-collapse: collapse; margin: 4px 0 10px; }
.cat-gd-tb th, .cat-gd-tb td {
  padding: 8px 10px; border-bottom: 1px solid #eef0f4;
  font-size: 13px; line-height: 1.6; color: #334155; text-align: left; vertical-align: top;
}
.cat-gd-tb th { background: #fafbfc; font-size: 12px; color: #7a828f; font-weight: 700; }
.cat-gd-tb tr:last-child td { border-bottom: 0; }
.cat-gd-tb td:first-child { white-space: nowrap; font-weight: 600; color: #1e293b; }
/* 表格里示意按钮外观，不可点 —— 跟真按钮长得像，但只是「长这样」 */
.cat-gd-b {
  display: inline-block; padding: 2px 9px; border: 1px solid #dfe4ea; border-radius: 6px;
  background: #f7f9fb; font-size: 12px; font-weight: 600; color: #475569;
}

/* 溢价举例：三个并排的小块 */
.cat-gd-eg {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px;
}
.cat-gd-eg > div {
  flex: 1 1 120px; padding: 10px 12px; border: 1px solid #e8eaf0; border-radius: 9px;
  background: #fcfcfd;
}
.cat-gd-eg span { display: block; font-size: 11.5px; color: #8a93a2; margin-bottom: 4px; }
.cat-gd-eg b { font-size: 16px; color: #0f172a; letter-spacing: .3px; }

/* 常见问答 */
.cat-gd-qa { display: grid; gap: 2px; }
.cat-gd-q { font-size: 13.5px; font-weight: 700; color: #1e293b; margin-top: 10px; }
.cat-gd-q::before { content: 'Q  '; color: #7c3aed; font-weight: 700; }
.cat-gd-a {
  font-size: 13.5px; line-height: 1.8; color: #475569;
  padding-left: 24px; position: relative;
}
.cat-gd-a::before { content: 'A'; position: absolute; left: 4px; color: #94a3b8; font-weight: 700; }

/* 页面示意图 */
.cat-gd-map { display: block; margin: 8px 0 12px; max-width: 560px; }

/* 底部 */
.cat-gd-ft {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px 14px; border-top: 1px solid #eef0f4; background: #fcfcfd;
}
.cat-gd-ft span { font-size: 12px; color: #94a3b8; }
.cat-gd-ok {
  padding: 9px 24px; border: 0; border-radius: 9px; background: #7c3aed;
  color: #fff; font: 600 14px/1 inherit; cursor: pointer;
}
.cat-gd-ok:hover { background: #6d28d9; }

@media (max-width: 760px) {
  .cat-gd-mask { padding: 10px; align-items: flex-end; }
  /* 手机上一行三列的表格太挤（390px 宽时「美元，出厂价」会被压成两行），
     缩字号 + 收内边距 + 允许首列换行 */
  .cat-gd-tb th, .cat-gd-tb td { padding: 6px 7px; font-size: 12px; }
  .cat-gd-tb td:first-child { white-space: normal; }
  .cat-gd-sec p, .cat-gd-ul li, .cat-gd-ol > li, .cat-gd-q, .cat-gd-a { font-size: 13px; }
  .cat-gd-card { height: 92vh; border-radius: 16px 16px 10px 10px; }
  .cat-gd-nav { display: none; }
  .cat-gd-body { padding: 4px 16px 24px; }
  .cat-gd-hd { padding: 16px 18px 12px; }
  .cat-gd-hd h2 { font-size: 16.5px; }
  .cat-gd-ft { padding: 10px 16px 12px; }
  .cat-gd-ft span { display: none; }
  .cat-gd-ok { width: 100%; }
  .cat-nt-ft { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .cat-nt-ok { justify-self: stretch; width: 100%; }
  .cat-nt-guide { order: 2; }
}
