/* 报价（店员端二级页）样式。原型与将来的应用引用同一文件；只用 globals.css 的 box2 token，
   类名统一 qt- 前缀，避免和现有 staff-/management- 规则撞车。断点只有 640 / 1024，移动优先。 */

.qt {
  --qt-bar-h: 56px;
  --qt-tab-h: calc(82px + env(safe-area-inset-bottom));
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.qt-y {
  font-size: 0.72em;
  font-weight: 600;
  margin-right: 1px;
}

/* ---------- 吸顶返回栏 ---------- */
.qt-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: calc(var(--qt-bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--s3) 0 var(--s2);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 244, 248, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.qt-bar h1 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 报价入口页标题下的更新时间 */
.qt-bar h1 small {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
.qt-icon-btn {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.qt-icon-btn:active {
  background: var(--g200);
}
.qt-icon-btn:focus-visible,
.qt button:focus-visible,
.qt-search-input:focus-within {
  outline: none;
  box-shadow: var(--ring);
}
.qt-icon-btn svg {
  width: 22px;
  height: 22px;
}

/* ---------- 页面容器 ---------- */
.qt-page {
  padding: var(--s4) var(--s4) calc(var(--qt-tab-h) + var(--s6));
  animation: qt-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes qt-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.qt-sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--s6) 2px var(--s3);
}
.qt-sec h3 {
  font-size: 15px;
  font-weight: 700;
}
.qt-sec small {
  color: var(--ink-3);
  font-size: 12px;
}
.qt-link {
  border: 0;
  background: none;
  color: var(--brand-500);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.qt-ctile:active,
.qt-hcard:active,
.qt-card:active {
  transform: scale(0.98);
}

.qt-foot {
  margin-top: var(--s6);
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}

/* ---------- 分类页：左大类 + 右品牌 ---------- */
/* 手机与平板：分类页固定在顶栏与底部 tab 之间，整页不滚，左栏和右侧商品各自滚动。
   整页滚动时 iOS 地址栏伸缩会让按屏高算的左栏跟着重排，拖动时整页都在晃（用户 10-07 实测）。 */
.qt-cate {
  position: fixed;
  top: calc(var(--qt-bar-h) + env(safe-area-inset-top));
  right: 0;
  bottom: var(--qt-tab-h);
  left: 0;
  display: flex;
}
.qt-rail {
  flex: 0 0 88px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--g200);
}
.qt-rail button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 56px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.qt-rail button small {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
}
.qt-rail button[aria-current='true'] {
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
}
.qt-rail button[aria-current='true']::before {
  content: '';
  position: absolute;
  top: var(--s4);
  bottom: var(--s4);
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand-500);
}
/* 右侧＝原列表页：品牌 tab、型号 chip、排序与价种、商品卡；列窄，左右边距收到 12px */
.qt-cmain {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
/* 筛选固定在右栏顶部，不吸顶、不透明，滚动时不重绘毛玻璃 */
.qt-cmain .qt-filter {
  position: static;
  flex: none;
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.qt-cmain .qt-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: var(--s6);
}
.qt-cmain .qt-tabs,
.qt-cmain .qt-hscroll,
.qt-cmain .qt-filter-row,
.qt-cmain .qt-list {
  padding-right: var(--s3);
  padding-left: var(--s3);
}
.qt-cmain .qt-tabs {
  gap: var(--s4);
}
/* 320 宽时排序与价种放不下一行，价种换到下一行 */
.qt-cmain .qt-filter-row {
  flex-wrap: wrap;
}
/* 列窄，颜色报价一行一个，价格不被挤掉 */
.qt-cmain .qt-colors {
  grid-template-columns: minmax(0, 1fr);
}
.qt-schips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s2);
}

/* ---------- 胶囊 / 徽标 ---------- */
.qt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--s3);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--g100);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.qt-chip[aria-pressed='true'] {
  border-color: var(--brand-100);
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 650;
}
.qt-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.qt-badge-brand {
  background: var(--brand-50);
  color: var(--brand-600);
}
.qt-badge-gray {
  background: var(--g200);
  color: var(--ink-2);
}
.qt-badge-ok {
  background: var(--ok-soft);
  color: var(--ok-ink);
}

/* ---------- 列表筛选（吸顶） ---------- */
.qt-filter {
  position: sticky;
  top: calc(var(--qt-bar-h) + env(safe-area-inset-top));
  z-index: 15;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 244, 248, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.qt-tabs {
  display: flex;
  gap: var(--s5);
  padding: 0 var(--s4) var(--s3);
  overflow-x: auto;
  scrollbar-width: none;
}
.qt-tabs button {
  position: relative;
  min-height: 32px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
}
.qt-tabs button[aria-current='true'] {
  color: var(--ink);
  font-weight: 700;
}
.qt-tabs button[aria-current='true']::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-500);
  transform: translateX(-50%);
}
.qt-hscroll {
  display: flex;
  gap: var(--s2);
  padding: 0 var(--s4);
  overflow-x: auto;
  scrollbar-width: none;
}
.qt-hscroll::-webkit-scrollbar,
.qt-tabs::-webkit-scrollbar {
  display: none;
}
.qt-filter-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
  padding: 0 var(--s4);
}
.qt-filter-row > small {
  flex: 1;
  color: var(--ink-3);
  font-size: 12px;
}
.qt-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 var(--s3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.qt-sort svg {
  width: 14px;
  height: 14px;
}
.qt-sort[aria-pressed='true'] {
  border-color: var(--brand-100);
  background: var(--brand-50);
  color: var(--brand-600);
}
.qt-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--r-pill);
  background: var(--g200);
}
.qt-seg button {
  min-height: 28px;
  padding: 0 var(--s3);
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.qt-seg button[aria-pressed='true'] {
  background: var(--surface);
  box-shadow: var(--sh-sm);
  color: var(--ink);
}

/* ---------- 商品卡 ---------- */
.qt-list {
  padding: 0 var(--s4);
}
.qt-group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--s5) 2px var(--s2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
}
.qt-group small {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}
.qt-cards {
  display: grid;
  gap: var(--s3);
}
.qt-card {
  display: block;
  width: 100%;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.1s;
}
.qt-card-head {
  display: flex;
  gap: var(--s3);
}
.qt-card-main {
  flex: 1;
  min-width: 0;
}
.qt-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s2);
}
.qt-card-top strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.qt-card-off {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-size: 12px;
}
.qt-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.qt-spec {
  color: var(--ink-2);
  font-size: 13px;
}
.qt-note-hint {
  color: var(--warn-ink);
  font-size: 12px;
}
.qt-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: var(--s3);
}
.qt-color {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 36px;
  padding: 0 var(--s3);
  border: 1px solid transparent;
  border-radius: var(--r-ctrl);
  background: var(--g50);
  font-size: 13px;
}
.qt-color i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.qt-color > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qt-color b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.qt-color em {
  color: var(--ink-3);
  font-size: 12px;
  font-style: normal;
}
.qt-color-out {
  border: 1px dashed var(--line-2);
  background: transparent;
}
.qt-card-sold {
  opacity: 0.55;
}

/* 商品图：上传的图或按分类画的默认图 */
.qt-img {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r-ctrl);
  background: var(--g50);
}
.qt-img img,
.qt-img svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qt-img-sm {
  width: 64px;
  height: 64px;
}
.qt-img-md {
  width: 100%;
  aspect-ratio: 1;
}
.qt-img-lg {
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: zoom-in;
}

/* ---------- 详情 ---------- */
.qt-pd-head {
  display: flex;
  gap: var(--s4);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--sh-xs);
}
.qt-pd-head > div:last-child {
  flex: 1;
  min-width: 0;
}
.qt-pd-title {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.qt-dots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s3);
}
.qt-dots button {
  width: 22px;
  height: 22px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-2);
  cursor: pointer;
}
.qt-dots button[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--brand-500);
}
.qt-card-block {
  margin-top: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--sh-xs);
}
.qt-card-block > h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s3);
  font-size: 15px;
  font-weight: 700;
}
.qt-card-block > h3 small {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}
.qt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.qt-table th {
  padding: 0 0 var(--s2);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.qt-table th:first-child,
.qt-table td:first-child {
  text-align: left;
}
.qt-table td {
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.qt-table td:first-child {
  white-space: normal;
}
.qt-table td i {
  display: inline-block;
  margin-right: var(--s2);
  vertical-align: 0;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.qt-table td b {
  font-size: 15px;
  font-weight: 750;
}
.qt-table tr.qt-out td {
  color: var(--ink-3);
}
.qt-kv {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.qt-kv + .qt-kv {
  margin-top: var(--s3);
}
.qt-kv span:first-child {
  color: var(--ink-2);
}
.qt-note {
  margin-top: var(--s3);
  padding: var(--s3);
  border-radius: var(--r-ctrl);
  background: var(--warn-soft);
  color: var(--warn-ink);
  font-size: 13px;
}

.qt-zoom-trigger {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.qt-foot-left {
  margin-top: 0;
  text-align: left;
}
.qt-group-first {
  padding-top: 0;
}
/* 给固定操作条留出位置，最后一行价格不被挡住 */
.qt-actionbar-spacer {
  height: 72px;
}

/* 底部固定操作条：常驻在底部 tab 上方 */
.qt-actionbar {
  position: fixed;
  right: 0;
  bottom: var(--qt-tab-h);
  left: 0;
  z-index: 25;
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.qt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--r-ctrl);
  background: var(--brand-500);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}
.qt-btn:active {
  background: var(--brand-600);
}
.qt-btn svg {
  width: 19px;
  height: 19px;
}
.qt-btn-ghost {
  width: auto;
  min-height: var(--tap);
  padding: 0 var(--s5);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}
.qt-btn-ghost:active {
  background: var(--g100);
}

/* ---------- 搜索 ---------- */
.qt-search-input {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
  min-height: 40px;
  padding: 0 var(--s3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctrl);
  background: var(--surface);
  color: var(--ink-3);
}
.qt-search-input svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.qt-search-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* <16px 时 iOS 会放大页面 */
}
/* The box above draws the focus ring; the app's global input ring would draw a second one inside
   it (user, 2026-10-07: "难看的线条框"). */
.qt-search-input input:focus-visible {
  box-shadow: none;
}
.qt-search-input input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* ---------- 空态 / 出错 / 骨架 ---------- */
.qt-empty {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s8) var(--s5);
  text-align: center;
}
.qt-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--g200);
  color: var(--ink-3);
}
.qt-empty-icon svg {
  width: 26px;
  height: 26px;
}
.qt-empty-danger .qt-empty-icon {
  background: var(--danger-soft);
  color: var(--danger);
}
.qt-empty strong {
  font-size: 15px;
}
.qt-empty p {
  max-width: 280px;
  color: var(--ink-2);
  font-size: 13px;
}
.qt-empty .qt-btn-ghost {
  margin-top: var(--s2);
}
.qt-sk {
  border-radius: var(--r-ctrl);
  background: linear-gradient(90deg, var(--g200) 25%, var(--g100) 50%, var(--g200) 75%);
  background-size: 200% 100%;
  animation: qt-sk 1.2s ease-in-out infinite;
}
@keyframes qt-sk {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* 轻提示 */
.qt-toast {
  position: fixed;
  bottom: calc(var(--qt-tab-h) + 88px);
  left: 50%;
  z-index: 60;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-pill);
  background: rgba(27, 29, 36, 0.88);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: qt-in 0.2s ease;
}

/* 大图浮层 */
.qt-zoom {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: var(--s6);
  background: rgba(27, 29, 36, 0.72);
  cursor: zoom-out;
}
.qt-zoom .qt-img {
  width: min(80vw, 420px);
  height: min(80vw, 420px);
  border-radius: var(--r-card);
  background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  .qt-page,
  .qt-toast {
    animation: none;
  }
}

/* ---------- 商品详情：历史价格卡 ----------
   照搬报价系统客户端（prototype/client.html 的 .hr-*／.chart／.tip／.mseg／.chg），数值保持原样，
   颜色换成同值的 box2 变量（accent＝brand-500，accent-soft＝brand-50，sunken＝g100）。 */
.qt-hr-card {
  border-color: #cbd3fa;
}
.qt-hr-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -3px 0;
}
.qt-hr-head[role='button'] {
  cursor: pointer;
}
.qt-hr-ic {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-500);
}
.qt-hr-ic svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qt-hr-ht {
  flex: 1;
  min-width: 0;
}
.qt-hr-ht b {
  display: block;
  font-size: 14.5px;
  font-weight: 680;
}
.qt-hr-ht small {
  display: block;
  margin-top: 1px;
  color: var(--ink-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.qt-hr-head + .qt-hr-range {
  margin-top: 14px;
}
.qt-hr-range {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}
.qt-hr-range b {
  font-size: 25px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.qt-hr-range em {
  margin: 0 2px;
  color: var(--ink-3);
  font-size: 18px;
  font-style: normal;
}
.qt-hr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 12px;
}
.qt-hr-meta i {
  color: var(--ink-3);
  font-style: normal;
}
.qt-hr-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 2px;
}
.qt-hr-colors button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--g100);
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.qt-hr-colors button[aria-pressed='true'] {
  background: var(--brand-50);
  color: var(--brand-500);
  font-weight: 650;
}
.qt-hr-ctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 6px;
}
.qt-mseg {
  display: flex;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 9px;
  background: var(--g100);
}
.qt-mseg button {
  padding: 3px 9px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.qt-mseg button[aria-pressed='true'] {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(27, 29, 36, 0.08);
  color: var(--ink);
  font-weight: 650;
}
.qt-chart {
  position: relative;
  margin-top: 30px;
  cursor: crosshair;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.qt-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.qt-tip {
  position: absolute;
  top: -32px;
  padding: 4px 9px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}
.qt-tip b {
  font-size: 13px;
  font-weight: 700;
}
.qt-hint {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 11.5px;
  text-align: center;
}
.qt-hr-sub {
  padding: 14px 0 4px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}
.qt-chg {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.qt-chg-d,
.qt-chg-df {
  color: var(--ink-3);
}
.qt-chg-df {
  margin-left: 6px;
  font-size: 12px;
}

/* ---------- ≥640：平板 ---------- */
@media (min-width: 640px) {
  .qt-page {
    padding-right: var(--s6);
    padding-left: var(--s6);
  }
  .qt-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qt-list,
  .qt-hscroll,
  .qt-tabs,
  .qt-filter-row {
    padding-right: var(--s6);
    padding-left: var(--s6);
  }
  .qt-colors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .qt-cards .qt-colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qt-cmain .qt-tabs,
  .qt-cmain .qt-hscroll,
  .qt-cmain .qt-filter-row,
  .qt-cmain .qt-list {
    padding-right: var(--s4);
    padding-left: var(--s4);
  }
  .qt-cmain .qt-cards .qt-colors {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- ≥1024：桌面，底部 tab 收起 ---------- */
@media (min-width: 1024px) {
  .qt {
    --qt-tab-h: 0px;
  }
  .qt-bar {
    padding-left: var(--s4);
  }
  .qt-page {
    max-width: 1120px;
    padding: var(--s6) var(--s7) var(--s8);
  }
  .qt-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .qt-list,
  .qt-hscroll,
  .qt-tabs,
  .qt-filter-row {
    padding-right: var(--s7);
    padding-left: var(--s7);
  }
  .qt-pd {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: var(--s4);
  }
  .qt-pd .qt-card-block:first-of-type {
    margin-top: 0;
  }
  .qt-actionbar-spacer {
    display: none;
  }
  .qt-actionbar {
    position: static;
    margin-top: var(--s4);
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
  }
  .qt-actionbar .qt-btn {
    width: auto;
    padding: 0 var(--s6);
  }
  /* 桌面没有地址栏伸缩，回到整页滚动：左栏与筛选吸顶 */
  .qt-cate {
    position: static;
    min-height: calc(100vh - var(--qt-bar-h));
  }
  .qt-rail {
    position: sticky;
    top: var(--qt-bar-h);
    align-self: flex-start;
    flex-basis: 120px;
    height: calc(100vh - var(--qt-bar-h));
  }
  .qt-cmain {
    display: block;
    padding-bottom: var(--s8);
  }
  .qt-cmain .qt-filter {
    position: sticky;
  }
  .qt-cmain .qt-list {
    overflow: visible;
  }
  .qt-cmain .qt-tabs,
  .qt-cmain .qt-hscroll,
  .qt-cmain .qt-filter-row,
  .qt-cmain .qt-list {
    padding-right: var(--s6);
    padding-left: var(--s6);
  }
  .qt-cmain .qt-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qt-cmain .qt-cards .qt-colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* 桌面没有横滑，型号多时换行 */
  .qt-cmain .qt-hscroll {
    flex-wrap: wrap;
  }
  .qt-toast {
    bottom: var(--s8);
  }
}
