/* ============================================================
   Esinparts 电商化展示层 (shop-ui.css)  v1  —  2026-10-18
   作用域：分类页 / 搜索结果页产品列表（页面内唯一的 .flex.gap-8 容器）
   桌面端：电商风格产品卡（白底完整图 / 悬停抬升 / Get Quote / View Details）
   移动端：类目侧栏改顶部横滑胶囊、双列卡片、页头与分页修复
   依赖页面真实 DOM（Vue scoped，仅用类名，不依赖 data-v 属性）
   ============================================================ */

/* ========== 通用：容器 / 侧栏 ========== */

/* 空侧栏（该分类无兄弟类目时）不占位，产品区自动全宽 */
#app .flex.gap-8 .w-64:not(:has(label)) {
  display: none !important;
}
#app .flex.gap-8 {
  gap: 24px;
}
/* 「其他类目」无功能复选框，纯文字入口 */
#app .flex.gap-8 .w-64 label {
  cursor: pointer;
}

/* 页头视图切换（列表视图字段不全，统一只保留网格电商视图） */
#app .flex.items-center.border.rounded-lg:not(.border-gray-300) {
  display: none !important;
}

/* ========== 桌面 / 平板：电商产品卡 ========== */

@media (min-width: 768px) {
  #app .flex.gap-8 .flex-1 .grid {
    gap: 18px !important;
  }
  #app .flex.gap-8 .flex-1 .grid > div {
    border: 1px solid #eceff3;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: box-shadow .24s ease, transform .24s ease, border-color .24s ease;
    will-change: transform;
  }
  #app .flex.gap-8 .flex-1 .grid > div:hover {
    border-color: #dfe6ee;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .13);
    transform: translateY(-3px);
  }

  /* 图片区：白底、完整展示（contain），不再裁切产品 */
  #app .flex.gap-8 .flex-1 .grid .relative {
    background: #fff;
    border-bottom: 1px solid #f1f4f7;
    overflow: hidden;
  }
  #app .flex.gap-8 .flex-1 .grid .relative > img {
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    padding: 12px 12px 6px;
    transform: none !important;
    transition: transform .32s ease;
  }
  #app .flex.gap-8 .flex-1 .grid > div:hover .relative > img {
    transform: scale(1.045) !important;
  }

  /* 收藏按钮无实际功能，电商卡不展示 */
  #app .flex.gap-8 .flex-1 .grid .relative > .absolute {
    display: none !important;
  }

  /* 悬停底部 View Details 渐层条 */
  #app .flex.gap-8 .flex-1 .grid .relative::after {
    content: "View Details \203A";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 34px 0 12px;
    background: linear-gradient(180deg, rgba(9, 30, 60, 0) 0%, rgba(9, 30, 60, .60) 100%);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: center;
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
  }
  #app .flex.gap-8 .flex-1 .grid > div:hover .relative::after {
    opacity: 1;
  }

  /* 文本区 */
  #app .flex.gap-8 .flex-1 .grid > div > div > div {
    padding: 14px 14px 13px !important;
  }
  #app .flex.gap-8 .flex-1 .grid h3 {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
  }
  #app .flex.gap-8 .flex-1 .grid .mb-4 {
    margin-bottom: 2px !important;
  }

  /* 后台未填价格 → 显示 Get Quote 引导询盘 */
  #app .flex.gap-8 .flex-1 .grid span.text-xl:empty {
    font-size: 14px;
  }
  #app .flex.gap-8 .flex-1 .grid span.text-xl:empty::after {
    content: "Get Quote";
    color: #0589f3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
  }
}

/* 桌面列数：4 列（与阿里国际站等同行一致，卡片留白更均衡） */
@media (min-width: 1024px) {
  #app .flex.gap-8 .flex-1 .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #app .flex.gap-8 .flex-1 .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ========== 移动端（≤767px） ========== */
@media (max-width: 767px) {

  /* 主体：双栏 flex → 单栏堆叠 */
  #app .flex.gap-8 {
    display: block !important;
    gap: 0 !important;
  }
  /* 产品区外层上下留白收紧 */
  #app div:has(> .flex.gap-8).py-8 {
    padding-top: 14px !important;
    padding-bottom: 18px !important;
  }

  /* 「其他类目」→ 顶部横向滑动胶囊条 */
  #app .flex.gap-8 .w-64 {
    width: 100% !important;
    margin-bottom: 12px;
  }
  #app .flex.gap-8 .w-64 > div {
    padding: 10px 12px 9px !important;
    border-radius: 12px !important;
    border: 1px solid #eef1f5;
  }
  #app .flex.gap-8 .w-64 h3 {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin-bottom: 8px !important;
  }
  #app .flex.gap-8 .w-64 .space-y-2 {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1px;
  }
  #app .flex.gap-8 .w-64 .space-y-2::-webkit-scrollbar {
    display: none;
  }
  #app .flex.gap-8 .w-64 .space-y-2 > * {
    margin-top: 0 !important;
    flex: 0 0 auto !important;
  }
  #app .flex.gap-8 .w-64 label {
    display: block !important;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    padding: 8px 14px;
    -webkit-tap-highlight-color: transparent;
  }
  #app .flex.gap-8 .w-64 label:active {
    background: #eef6ff;
    border-color: #0589f3;
  }
  #app .flex.gap-8 .w-64 label > div {
    display: block;
  }
  #app .flex.gap-8 .w-64 label span {
    font-size: 13px !important;
    white-space: nowrap;
    color: #334155;
  }

  /* 页头：标题 + 排序换行排布，不再挤压溢出 */
  #app .flex.items-center.justify-between:has(h1.text-3xl) {
    flex-wrap: wrap;
    gap: 10px 8px;
  }
  #app .flex.items-center.justify-between:has(h1.text-3xl) h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  #app .flex.items-center.justify-between:has(h1.text-3xl) p {
    font-size: 12.5px !important;
  }
  #app .flex.items-center.justify-between:has(h1.text-3xl) > div:last-child {
    width: 100%;
    gap: 8px !important;
  }
  #app .flex.items-center.justify-between:has(h1.text-3xl) select {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    font-size: 13.5px;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* 面包屑 */
  #app .border-b.bg-white nav.flex.items-center {
    font-size: 12px;
    flex-wrap: wrap;
    row-gap: 2px;
  }

  /* 产品网格：双列紧凑 */
  #app .flex.gap-8 .flex-1 .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #app .flex.gap-8 .flex-1 .grid > div {
    border-radius: 11px !important;
    border: 1px solid #eef1f5;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 3px 10px rgba(16, 24, 40, .04) !important;
  }
  #app .flex.gap-8 .flex-1 .grid .relative {
    background: #fff;
    border-bottom: 1px solid #f4f6f9;
    overflow: hidden;
  }
  #app .flex.gap-8 .flex-1 .grid .relative > img {
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    padding: 7px 7px 3px;
    transform: none !important;
    transition: none !important;
  }
  /* 移动端不显示悬停层 / 收藏 */
  #app .flex.gap-8 .flex-1 .grid .relative::after {
    display: none !important;
  }
  #app .flex.gap-8 .flex-1 .grid .relative > .absolute {
    display: none !important;
  }
  #app .flex.gap-8 .flex-1 .grid > div > div > div {
    padding: 9px 10px 11px !important;
  }
  #app .flex.gap-8 .flex-1 .grid h3 {
    font-size: 12.5px !important;
    line-height: 1.42 !important;
    margin-bottom: 6px !important;
    -webkit-line-clamp: 2;
  }
  #app .flex.gap-8 .flex-1 .grid .mb-4 {
    margin-bottom: 0 !important;
  }
  #app .flex.gap-8 .flex-1 .grid span.text-xl:empty {
    font-size: 12.5px;
  }
  #app .flex.gap-8 .flex-1 .grid span.text-xl:empty::after {
    content: "Get Quote";
    color: #0589f3;
    font-size: 12.5px;
    font-weight: 700;
  }

  /* 分页：横向滚动，不再挤成两行 */
  #app .flex.gap-8 .flex-1 .mt-12 {
    margin-top: 18px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }
  #app .flex.gap-8 .flex-1 .mt-12::-webkit-scrollbar {
    display: none;
  }
  #app .flex.gap-8 .flex-1 .mt-12 > * {
    margin-left: 0 !important;
    flex: 0 0 auto;
  }
  #app .flex.gap-8 .flex-1 .mt-12 button {
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 9px !important;
  }
}

/* 极小屏（≤360px） */
@media (max-width: 360px) {
  #app .flex.gap-8 .flex-1 .grid h3 {
    font-size: 12px !important;
  }
  #app .flex.gap-8 .flex-1 .grid > div > div > div {
    padding: 8px 9px 10px !important;
  }
}

/* ============================================================
   v2 追加：详情页电商化 (Product Detail)
   ============================================================ */

/* ---------- 面包屑：空分类链接（category 为空时）隐藏 ---------- */
#app nav.flex.items-center a:empty {
  display: none !important;
}
#app nav.flex.items-center a:empty + svg {
  display: none !important;
}

/* ---------- 详情页主图 / 缩略图：白底完整展示 ---------- */
#app .grid.gap-12 img {
  object-fit: contain !important;
  background: #fff;
}
#app .grid.gap-12 .relative > img {
  height: auto !important;
  aspect-ratio: 1 / 1;
  padding: 14px 14px 6px;
  border: 1px solid #eef1f5;
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
#app .grid.gap-12 button img {
  padding: 4px;
  border-radius: 8px;
}

/* ---------- 参数表：电商规格表格化 ---------- */
#app .grid.gap-12 .rounded-lg.bg-gray-50 {
  background: #fff !important;
  border: 1px solid #eef1f5;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
#app .grid.gap-12 .rounded-lg.bg-gray-50 .flex.justify-between {
  padding: 7px 0;
  border-bottom: 1px dashed #eef1f5;
  font-size: 14px;
  margin: 0 !important;
}
#app .grid.gap-12 .rounded-lg.bg-gray-50 .flex.justify-between:last-child {
  border-bottom: 0;
}
/* 空价格行隐藏（后台未填价格） */
#app .grid.gap-12 span.text-4xl:empty {
  display: none;
}
#app .grid.gap-12 .mb-4:has(span.text-4xl:empty) {
  display: none;
}

/* ---------- 询盘主按钮 ---------- */
#app .grid.gap-12 button.bg-blue-600 {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(5, 137, 243, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
#app .grid.gap-12 button.bg-blue-600:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(5, 137, 243, .36);
}

/* ---------- 描述区（Product Details）电商排版 ---------- */
#app .container > .rounded-lg.bg-white.shadow-sm > div {
  padding: 22px 26px 28px !important;
}
#app .container > .rounded-lg.bg-white.shadow-sm h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  text-align: left;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #eef1f5;
  position: relative;
}
#app .container > .rounded-lg.bg-white.shadow-sm h3::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 2px;
  background: #0589f3;
  border-radius: 2px;
}
/* v-html 富文本内容排版 */
#app .prose img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px;
  margin: 10px 0;
}
#app .prose p {
  margin: 0 0 12px;
  line-height: 1.75;
}
#app .prose h1, #app .prose h2, #app .prose h3, #app .prose h4 {
  font-weight: 600;
  color: #111827;
  margin: 16px 0 8px;
}
#app .prose ul, #app .prose ol {
  padding-left: 20px;
  margin: 0 0 12px;
}
#app .prose li {
  margin: 4px 0;
  list-style: inherit;
}
#app .prose ul { list-style: disc; }
#app .prose ol { list-style: decimal; }
#app .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
#app .prose td, #app .prose th {
  border: 1px solid #e8ebf0;
  padding: 8px 12px;
  font-size: 14px;
}
#app .prose th { background: #f8fafc; font-weight: 600; }

/* ---------- 移动端详情页（≤767px） ---------- */
@media (max-width: 767px) {
  #app .grid.gap-12 .relative > img {
    padding: 8px 8px 4px;
  }
  #app .grid.gap-12 .rounded-lg.bg-gray-50 {
    padding: 8px 12px !important;
  }
  #app .grid.gap-12 .rounded-lg.bg-gray-50 .flex.justify-between {
    font-size: 13px;
    padding: 6px 0;
  }
  #app .container > .rounded-lg.bg-white.shadow-sm > div {
    padding: 16px 14px 20px !important;
  }
  #app .container > .rounded-lg.bg-white.shadow-sm h3 {
    font-size: 15.5px !important;
  }
  /* 详情页主标题移动端字号 */
  #app .grid.gap-12 h1 {
    font-size: 19px !important;
    line-height: 1.35 !important;
  }
  #app .grid.gap-12 h1 + p {
    font-size: 14px !important;
  }
}

/* ============================================================
   v4 追加：产品分享面板（由 ui-en.js 注入）
   ============================================================ */
.wb-share-mask {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .55);
  opacity: 0;
  transition: opacity .18s ease;
}
.wb-share-mask.on { opacity: 1; }
.wb-share-box {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .3);
  transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.wb-share-mask.on .wb-share-box { transform: none; }
.wb-share-box h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}
.wb-share-sub {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}
.wb-share-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.wb-share-x:hover { background: #e5e7eb; color: #111827; }
.wb-share-url {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.wb-share-url input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
}
.wb-share-url button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #0589f3;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s ease;
}
.wb-share-url button:hover { background: #0472cc; }
.wb-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.wb-share-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  background: #f9fafb;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.wb-share-item:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: #d7dde6;
}
.wb-si-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9ca3af;
  flex: 0 0 auto;
}
.wb-si-wa .wb-si-dot { background: #25d366; }
.wb-si-fb .wb-si-dot { background: #1877f2; }
.wb-si-li .wb-si-dot { background: #0a66c2; }
.wb-si-x  .wb-si-dot { background: #111827; }
.wb-si-em .wb-si-dot { background: #f59e0b; }
.wb-si-more { width: 100%; }
.wb-share-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 99999;
  transform: translate(-50%, 12px);
  padding: 10px 16px;
  font-size: 13px;
  color: #fff;
  background: rgba(17, 24, 39, .92);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.wb-share-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 767px) {
  .wb-share-mask {
    align-items: flex-end;
    padding: 0;
  }
  .wb-share-box {
    max-width: none;
    border-radius: 18px 18px 0 0;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
  }
  .wb-share-mask.on .wb-share-box { transform: none; }
  .wb-share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wb-share-toast { bottom: 84px; }
}

/* ============================================================
   v5 追加：详情页左侧产品分类栏（由 ui-en.js 注入）
   ============================================================ */

/* ---------- 布局：容器变两列（左分类 / 右内容） ---------- */
@media (min-width: 1024px) {
  #app .container.wb-detail-host {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    column-gap: 26px;
    max-width: 1290px;
  }
  #app .container.wb-detail-host > .wb-cat-side {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 14px;
    align-self: start;
    max-height: calc(100vh - 28px);
    overflow: auto;
    overscroll-behavior: contain;
  }
  #app .container.wb-detail-host > *:not(.wb-cat-side) {
    grid-column: 2;
    min-width: 0;
  }
  #app .container.wb-detail-host > .grid.gap-12 {
    grid-row: 1;
    margin-bottom: 26px !important;
  }
}

/* ---------- 分类卡 ---------- */
#app .wb-cat-side {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #374151;
  text-align: left;
}
#app .wb-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  letter-spacing: .01em;
  text-align: left;
  cursor: pointer;
  transition: color .15s;
}
#app .wb-cat-head:hover { color: #0589f3; }
#app .wb-cat-chev {
  display: block;
  flex: 0 0 auto;
  color: #9ca3af;
  transition: transform .2s ease, color .15s;
}
#app .wb-cat-head:hover .wb-cat-chev { color: #0589f3; }
#app .wb-cat-side:not(.is-collapsed) .wb-cat-chev { transform: rotate(180deg); }
#app .wb-cat-side.is-collapsed .wb-cat-body { display: none; }
#app .wb-cat-body { padding: 8px 8px 12px; }
#app .wb-cat-load {
  padding: 20px 16px;
  font-size: 13px;
  color: #9ca3af;
}

#app .wb-cat-g { border-radius: 8px; }
#app .wb-cat-row { display: flex; align-items: center; gap: 2px; }
#app .wb-cat-top {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
#app .wb-cat-top:hover { color: #0589f3; background: #f6f9fd; }
#app .wb-cat-tgl {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  transition: transform .18s ease, background .15s, color .15s;
}
#app .wb-cat-tgl:hover { background: #f3f4f6; color: #4b5563; }
#app .wb-cat-g.is-open .wb-cat-tgl { transform: rotate(180deg); color: #0589f3; }
#app .wb-cat-subs {
  display: none;
  margin: 1px 0 5px 9px;
  padding: 2px 0 3px 8px;
  border-left: 1px solid #eef1f5;
}
#app .wb-cat-g.is-open .wb-cat-subs { display: block; }
#app .wb-cat-sub {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #5b6472;
  text-decoration: none;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
#app .wb-cat-sub:hover { color: #0589f3; background: #f6f9fd; }
#app .wb-cat-sub.is-current {
  color: #0589f3;
  font-weight: 700;
  background: #eaf4fe;
}

#app .wb-cat-quote {
  display: block;
  width: calc(100% - 12px);
  height: 38px;
  margin: 8px 6px 2px;
  border: 0;
  border-radius: 9px;
  background: #0589f3;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(5, 137, 243, .22);
  transition: background .15s, transform .15s;
}
#app .wb-cat-quote:hover { background: #0472cc; transform: translateY(-1px); }

/* ---------- 平板 / 手机：分类卡默认折叠为一条 ---------- */
@media (max-width: 1023px) {
  #app .wb-cat-side { margin-bottom: 16px; }
  #app .wb-cat-subs { margin-left: 6px; }
}

/* ============================================================
   v7 追加：询盘弹窗（Request a Quote）移动端可提交
   问题：底部悬浮操作条 .wbm-bar(z-90) 压住弹窗遮罩(z-50)，
        且弹窗内容在矮屏上溢出、不可滚动，提交按钮被遮挡。
   做法：抬高弹窗层级 → 内容可滚动 → 提交按钮固定在弹窗底部。
   ============================================================ */

.wb-quote-mask { z-index: 96 !important; }

.wb-quote-card {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
@supports (height: 100dvh) {
  .wb-quote-card { max-height: calc(100dvh - 32px); }
}

/* 提交按钮吸附在卡片滚动区底部，滚到哪都能点 */
.wb-quote-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
}

@media (max-width: 767px) {
  .wb-quote-mask {
    align-items: center !important;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .wb-quote-card {
    width: 100%;
    margin: 0;
    padding: 16px 14px 4px !important;
    border-radius: 14px;
  }

  /* 压缩字段高度，矮屏也能一屏看完 */
  .wb-quote-card h2 { font-size: 17px !important; margin-bottom: 12px !important; }
  .wb-quote-card .space-y-4 > * + * { margin-top: 10px; }
  .wb-quote-card .mb-6 { margin-bottom: 12px !important; }
  .wb-quote-card input,
  .wb-quote-card textarea { font-size: 16px; } /* 防 iOS 聚焦自动缩放 */
  .wb-quote-card textarea { min-height: 60px; }
  .wb-quote-card > .relative.rounded-lg,
  .wb-quote-card .rounded-lg.bg-gray-50 { padding: 10px 12px !important; }
  .wb-quote-card .rounded-lg.bg-gray-50 img { width: 48px !important; height: 48px !important; }
  .wb-quote-card .rounded-lg.bg-gray-50 h3 { font-size: 13px !important; }

  /* 提交按钮通栏吸附卡片底部 */
  .wb-quote-actions {
    margin: 8px -14px 0;
    padding: 10px 14px 12px;
    background: #fff;
    border-radius: 0 0 14px 14px;
  }
  .wb-quote-actions > button {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    font-size: 15px;
  }

  /* 弹窗打开时底部悬浮条让位，避免误触 */
  body.wb-modal-open { overflow: hidden; }
  body.wb-modal-open .wbm-bar {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
}
