/* 对齐 Nuxt InventoryZone / InventoryGuide / InventoryFloatDock / InventoryDetail */

.inventory-zone .filter-section {
  background: #fff;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border-color, #ebeef5);
}
.inventory-zone .filter-section .filter-group--brands {
  padding-bottom: 4px;
}
.inv-sortbar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
  background: #f7f8fa;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  position: relative;
  z-index: 2;
}
.inv-sortbar__composite {
  position: relative;
  display: inline-flex;
}
.inv-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 16px;
  margin: 0;
  border: 0;
  border-right: 1px solid #ebeef5;
  background: transparent;
  font-size: 14px;
  color: #606266 !important;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}
.inv-sort:hover { color: var(--primary-color, #e83500) !important; }
.inv-sort.is-active,
.inv-sortbar__composite.is-active > .inv-sort {
  color: var(--primary-color, #e83500) !important;
  font-weight: 600;
  background: #fff;
}
.inv-sort__caret {
  font-size: 10px;
  color: #909399;
  transform: scaleY(0.85);
}
.inv-sortbar__composite.is-open .inv-sort__caret { transform: scaleY(0.85) rotate(180deg); }
.inv-sort__arrows {
  display: inline-flex;
  flex-direction: column;
  font-size: 8px;
  line-height: 1;
  margin-left: 2px;
  color: #c0c4cc;
}
.inv-sort__arrows i { font-style: normal; }
.inv-sort__arrows i.is-on { color: var(--primary-color, #e83500); }
.inv-sortbar__count {
  margin-left: auto;
  padding: 0 12px;
  font-size: 12px;
  color: #909399;
  line-height: 40px;
}
.inv-sort-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  margin-top: -1px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e4e7ed;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  z-index: 20;
}
.inv-sort-dropdown__item {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #606266 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.inv-sort-dropdown__item:hover {
  color: var(--primary-color, #e83500) !important;
  background: #f5f7fa;
}
.inv-sort-dropdown__item.is-active {
  color: var(--primary-color, #e83500) !important;
  font-weight: 600;
  background: #fff5f2;
}
.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.filter-group + .filter-group {
  border-top: 1px dashed #ebeef5;
  margin-top: 4px;
  padding-top: 16px;
}
.filter-group__label {
  flex-shrink: 0;
  width: 72px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color, #303133);
  line-height: 32px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.filter-chips-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.filter-chips-clip {
  --filter-chip-row-h: 30px;
  --filter-chip-gap: 10px;
  --filter-chips-collapsed-h: calc(var(--filter-chip-row-h) * 2 + var(--filter-chip-gap));
  flex: 1;
  min-width: 0;
}
.filter-chips-clip:not(.filter-chips-clip--expanded) .filter-chips {
  max-height: var(--filter-chips-collapsed-h);
  overflow: hidden;
}
.filter-expand-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: var(--primary-color, #e83500);
  font-size: 13px;
  line-height: 24px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 4px;
}
.filter-expand-btn:hover { background: rgba(232, 53, 0, 0.06); }
.filter-chip {
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  border-radius: 999px;
  padding: 3px 12px;
  min-height: 30px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.filter-chip:hover {
  color: var(--primary-color, #e83500);
  border-color: var(--primary-color, #e83500);
}
.filter-chip.active {
  color: #1677ff;
  background: #e6f4ff;
  border-color: #91caff;
  font-weight: 500;
}
.filter-hint {
  flex-shrink: 0;
  font-size: 12px;
  color: #909399;
  line-height: 32px;
  white-space: nowrap;
}
.filter-empty {
  font-size: 14px;
  color: #909399;
  line-height: 32px;
}
.spec-search, .price-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
  align-items: center;
}
.spec-search__input {
  flex: 1;
  min-width: 200px;
  max-width: 480px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
}
.price-range__input {
  width: 140px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
}
.price-range__sep { color: #909399; user-select: none; }
.ai-search-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e83500;
  background: #e83500;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
.ai-search-btn:hover { background: #cf2f00; color: #fff; }
.ai-search-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 700;
}

.inventory-zone .product-list-section {
  padding: 16px 0 48px;
  min-height: 500px;
  background: #f5f7fa;
}
.inventory-zone .product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebeef5;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.product-card__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
}
.product-card__image-wrap {
  aspect-ratio: 1;
  background: #fafafa;
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c4cc;
  font-size: 13px;
  background: #f5f7fa;
}
.product-card__body {
  padding: 10px 12px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card__main .product-card__body {
  padding-bottom: 8px;
}
.product-card__name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.product-card__price {
  font-size: 16px;
  font-weight: 700;
  color: #e6a23c;
}
.product-card__price-wrap {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.product-card__market-price {
  font-size: 12px;
  color: #909399;
  text-decoration: line-through;
}
.product-card__stock {
  font-size: 12px;
  color: #909399;
  white-space: nowrap;
}
.inv-sortbar__freight {
  margin-left: auto;
  font-size: 12px;
  color: #909399;
  white-space: nowrap;
}
.product-card__freight {
  margin-top: 4px;
  font-size: 12px;
  color: #e6a23c;
  line-height: 1.4;
}
.product-card__freight:empty { display: none; }
.buy-panel__freight-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #909399;
  line-height: 1.5;
}
.info-row--freight .info-value {
  color: #e6a23c;
  font-weight: 600;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 0 12px 12px;
  font-size: 12px;
  color: #909399;
}
.product-card__factory {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #606266 !important;
  text-decoration: none !important;
}
a.product-card__factory:hover {
  color: var(--primary-color, #e83500) !important;
}
.product-card__factory--empty { flex: 1; }
.product-card__cs {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--primary-color, #e83500) !important;
  background: rgba(232, 53, 0, 0.06);
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.product-card__cs:hover {
  background: rgba(232, 53, 0, 0.12);
  color: var(--primary-color, #e83500) !important;
}
.product-card__brand {
  flex-shrink: 0;
  color: #606266;
}
/* 商家信誉等级标识（管理办法：前台展示等级，不展示分值构成） */
.credit-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid transparent;
  vertical-align: middle;
}
.credit-grade-badge--s {
  color: #9a3412;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border-color: #fdba74;
}
.credit-grade-badge--a {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.credit-grade-badge--b {
  color: #a16207;
  background: #fefce8;
  border-color: #fde68a;
}
.credit-grade-badge--c {
  color: #b45309;
  background: #fff7ed;
  border-color: #fdba74;
}
.credit-grade-badge--d {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}
.shop-entry__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inv-shop-band__title-row .credit-grade-badge {
  margin-left: 4px;
}
.inventory-zone .pagination,
.inventory-zone .inventory-pagination {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  color: #606266;
  font-size: 14px;
}
.inventory-zone .pagination__meta {
  color: #909399;
  font-size: 13px;
}
.inventory-zone .pagination__meta strong {
  color: #303133;
  font-weight: 600;
}
.inventory-zone .pagination__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.inventory-zone .pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
}
.inventory-zone .pagination__btn,
.inventory-zone .pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  background: #fff;
  color: #606266;
  text-decoration: none;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.inventory-zone .pagination__btn:hover,
.inventory-zone .pagination__page:hover {
  color: var(--primary-color, #e83500);
  border-color: var(--primary-color, #e83500);
  background: #fff7f4;
}
.inventory-zone .pagination__page.is-active {
  background: var(--primary-color, #e83500);
  border-color: var(--primary-color, #e83500);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(232, 53, 0, 0.25);
  pointer-events: none;
}
.inventory-zone .pagination__btn--disabled {
  color: #c0c4cc;
  background: #f5f7fa;
  border-color: #ebeef5;
  cursor: not-allowed;
}
.inventory-zone .pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  color: #c0c4cc;
  letter-spacing: 1px;
}
@media (max-width: 640px) {
  .inventory-zone .inventory-pagination {
    padding: 14px 12px;
    gap: 12px;
  }
  .inventory-zone .pagination__btn,
  .inventory-zone .pagination__page {
    min-width: 32px;
    height: 34px;
    padding: 0 10px;
  }
}

/* guide — banner box（左菜单板块 + 右 Banner 轮播，高度对齐首页 banner-box 350px） */
.inventory-guide { background: #fff; }
.guide-banner-box {
  width: 100%;
  padding: 16px 0 12px;
  background: #fff;
  border-bottom: 1px solid #555555;
  box-sizing: border-box;
}
.guide-banner-box__inner {
  display: flex;
  align-items: stretch;
  gap: 10px;
  /* 宽度由 .container（与首页 .banner-box__inner 一致）控制 */
}
.guide-banner-box__sidebar {
  width: 25%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 350px; /* 与首页 .banner-box__carousel 一致 */
  min-height: 350px;
  box-sizing: border-box;
}
.guide-menu-item {
  padding: 16px 18px;
  cursor: pointer;
  background-color: #ffffff;
  color: #222222;
  transition: all 0.3s ease;
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  text-decoration: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
a.guide-menu-item,
a.guide-menu-item:visited,
a.guide-menu-item:hover {
  color: inherit;
  text-decoration: none;
}
.guide-menu-item.is-active {
  background-color: #e21b1b;
  color: #ffffff;
}
a.guide-menu-item.is-active,
a.guide-menu-item.is-active:visited,
a.guide-menu-item.is-active:hover {
  color: #ffffff;
}
.guide-menu-item__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.guide-menu-item__desc {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.guide-banner-box__carousel {
  width: 75%;
  flex: 1;
  min-width: 0;
  height: 350px; /* 对齐首页 banner-box__carousel */
  min-height: 350px;
  overflow: hidden;
  position: relative;
  background: #c9cccb;
  box-sizing: border-box;
}
.guide-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1;
}
.guide-carousel-slide.is-active {
  opacity: 1;
  z-index: 2;
}
.guide-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guide-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.guide-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.3s;
}
.guide-carousel-dot.is-active {
  background-color: #e21b1b;
}

@media (max-width: 992px) {
  .guide-banner-box__inner { flex-direction: column; gap: 0; }
  .guide-banner-box__sidebar {
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: row;
  }
  .guide-menu-item {
    width: 50%;
    min-height: 120px;
    padding: 14px 16px;
  }
  .guide-menu-item__title { font-size: 16px; margin-bottom: 6px; }
  .guide-menu-item__desc { font-size: 12px; line-height: 1.45; }
  .guide-banner-box__carousel {
    width: 100%;
    height: 350px;
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .guide-banner-box__sidebar { flex-direction: column; }
  .guide-menu-item {
    width: 100%;
    min-height: 100px;
  }
  .guide-banner-box__carousel {
    height: 260px; /* 对齐首页移动端 banner 高度 */
    min-height: 260px;
  }
  .guide-menu-item__title { font-size: 15px; }
  .guide-menu-item__desc { font-size: 12px; }
}

/* legacy guide blocks (kept for other pages if referenced) */
.guide-main { padding: 28px 0 48px; }
.guide-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.guide-hero__media {
  min-height: 240px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f7fa;
}
.guide-hero__img, .guide-hero__placeholder {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c4cc;
}
.guide-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #00a876;
  font-weight: 700;
}
.guide-hero__title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
}
.guide-hero__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #606266;
}
.guide-search-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.search-nav-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.search-nav-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.search-nav-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.search-nav-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: #00a876;
}
.search-nav-card--ai .search-nav-card__icon { background: #e83500; }
.search-nav-card--search .search-nav-card__icon { background: #005bac; }
.search-nav-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.search-nav-card__intro {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #909399;
}
.guide-section-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
}
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.advantage-card {
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 18px;
  background: #fafbfc;
}
.advantage-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.advantage-card__desc {
  margin: 0;
  font-size: 13px;
  color: #909399;
  line-height: 1.6;
}

/* detail — 对齐 InventoryDetail.vue */
.inventory-detail-page {
  background: #f5f7fa;
  width: 100%;
}
/* 与首页 .container / .banner-box__inner 同一套内容区宽度 */
.inventory-detail-page > .container.detail-wrap,
.inventory-detail-page .detail-wrap.container {
  width: 100%;
  max-width: var(--content-max-width, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-padding-x, 16px);
  padding-right: var(--content-padding-x, 16px);
  box-sizing: border-box;
}
.inventory-detail-page .detail-wrap {
  padding-top: 24px;
  padding-bottom: 48px;
  min-height: 60vh;
}
/* 兼容其它页仍用 .detail-wrap 时的上下内边距（工厂详情等） */
.detail-wrap {
  padding-top: 24px;
  padding-bottom: 48px;
  min-height: 60vh;
}
.inventory-detail-page .breadcrumb {
  margin-bottom: 20px;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.5;
  color: #909399;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.inventory-detail-page .breadcrumb a {
  color: #606266;
  text-decoration: none;
  font-size: inherit;
}
.inventory-detail-page .breadcrumb a:hover { color: var(--primary-color, #e83500); }
.inventory-detail-page .breadcrumb__sep { color: #c0c4cc; font-size: inherit; }
.inventory-detail-page .breadcrumb__current { color: #303133; font-size: inherit; }
.detail-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #faecd8;
  border-radius: 8px;
  background: #fdf6ec;
  color: #b88230;
  font-size: 13px;
  line-height: 1.5;
}
.detail-preview-banner__text { flex: 1; min-width: 200px; }
.detail-preview-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.detail-preview-banner__link {
  color: var(--primary-color, #e83500);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.detail-preview-banner__link:hover { text-decoration: underline; }
/* 详情页：京东式双列 —— 左 gallery+tabs，右 sticky buy-panel；PC 端约 1:1 */
.detail-main,
.detail-layout {
  --detail-sticky-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 24px;
  min-width: 0;
}
@media (min-width: 1300px) {
  .detail-main,
  .detail-layout {
    gap: 28px;
  }
}
.detail-layout__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-layout__gallery {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
  height: auto;
}
.gallery {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.inventory-detail-page .detail-layout .detail-tabs {
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.inventory-detail-page .detail-layout .buy-panel {
  position: sticky;
  top: var(--detail-sticky-top, 12px);
  align-self: start;
  width: 100%;
  min-width: 0;
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  padding: 16px 20px 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  overflow: visible;
  z-index: 2;
}
.buy-panel__scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}
.buy-panel__scroll::-webkit-scrollbar {
  width: 6px;
}
.buy-panel__scroll::-webkit-scrollbar-track {
  background: transparent;
}
.buy-panel__scroll::-webkit-scrollbar-thumb {
  background: #d4d7de;
  border-radius: 999px;
}
.buy-panel__scroll::-webkit-scrollbar-thumb:hover {
  background: #b8bdc8;
}
.buy-panel__footer {
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fff 40%);
}
.gallery__main {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  /* 主图固定正方形 1:1，不再跟购买栏高度对齐 */
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  margin: 0;
  background: #f5f7fa;
  overflow: hidden;
}
.gallery__main img,
.gallery__main video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.gallery__main img {
  cursor: zoom-in;
}
.gallery__main video {
  background: #000;
  cursor: default;
}
.gallery__main img[hidden],
.gallery__main video[hidden],
.gallery__placeholder[hidden] {
  display: none !important;
}

/* 主图预览：全屏窗口内缩放（对齐 el-image viewer） */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 4000;
}
.img-viewer[hidden] { display: none !important; }
.img-viewer__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.img-viewer__toolbar {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.img-viewer__btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.img-viewer__btn:hover { background: rgba(255, 255, 255, 0.32); }
.img-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.img-viewer__nav:hover { background: rgba(255, 255, 255, 0.32); }
.img-viewer__nav--prev { left: 20px; }
.img-viewer__nav--next { right: 20px; }
.img-viewer__nav[hidden] { display: none !important; }
.img-viewer__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: zoom-out;
}
.img-viewer__img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: min(90vw, var(--content-max-width, 1280px));
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  cursor: default;
  will-change: transform;
}
.img-viewer__img.is-zoomed { cursor: grab; }
.img-viewer__img.is-dragging { cursor: grabbing; transition: none; }
.img-viewer__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.gallery__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c4cc;
  background: #f5f7fa;
}
.gallery__thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  /* 与 gallery__main 同宽（跟随 .gallery） */
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.gallery__thumbs-nav {
  flex-shrink: 0;
  width: 32px;
  height: 72px;
  padding: 0;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #fff;
  color: #606266;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gallery__thumbs-nav:hover:not(:disabled) {
  border-color: var(--primary-color, #e83500);
  color: var(--primary-color, #e83500);
  background: #fff4f0;
}
.gallery__thumbs-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.gallery__thumb.active {
  border-color: var(--primary-color, #e83500);
}
.gallery__thumb img,
.gallery__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__thumb--video {
  position: relative;
}
.gallery__thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 18px;
  pointer-events: none;
}
.buy-panel {
  min-width: 0;
}
.buy-panel__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: #303133;
  line-height: 1.3;
}
.buy-panel__desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: #606266;
  line-height: 1.5;
}
.buy-panel__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  margin-bottom: 12px;
}
.buy-panel__price {
  font-size: 28px;
  font-weight: 700;
  color: #e6a23c;
}
.buy-panel__market-price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 14px;
  color: #909399;
  line-height: 1.4;
}
.buy-panel__market-label {
  color: #909399;
  text-decoration: none;
}
.buy-panel__market-value {
  color: #909399;
  text-decoration: line-through;
}
.buy-panel__spec {
  font-size: 14px;
  color: #606266;
}
.buy-panel__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-bottom: 12px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  min-width: 0;
}
.info-row--stock {
  flex-wrap: wrap;
}
.info-label {
  flex: 0 0 auto;
  min-width: 4.5em;
  color: #909399;
  font-size: inherit;
  white-space: nowrap;
}
.info-value {
  color: #303133;
  font-size: inherit;
  min-width: 0;
}
.info-row__action {
  margin-left: auto;
  appearance: none;
  border: 1px solid var(--primary-color, #e83500);
  background: #fff;
  color: var(--primary-color, #e83500);
  font-size: 13px;
  line-height: 1;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.info-row__action:hover {
  background: var(--primary-color, #e83500);
  color: #fff;
}

.demand-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.demand-modal[hidden] { display: none !important; }
.demand-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.demand-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.demand-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #ebeef5;
}
.demand-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}
.demand-modal__close {
  appearance: none;
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
  color: #909399;
  cursor: pointer;
  border-radius: 6px;
}
.demand-modal__close:hover {
  background: #f5f7fa;
  color: #303133;
}
.demand-modal__form {
  padding: 18px 20px 20px;
}
.demand-modal__product {
  margin: 0 0 14px;
  font-size: 14px;
  color: #606266;
  line-height: 1.5;
}
.demand-field {
  display: block;
  margin-bottom: 14px;
}
.demand-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #606266;
}
.demand-field__label em {
  color: #e83500;
  font-style: normal;
}
.demand-field__input,
.demand-field__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #303133;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.demand-field__input:focus,
.demand-field__textarea:focus {
  border-color: var(--primary-color, #e83500);
}
.demand-field__textarea {
  resize: vertical;
  min-height: 96px;
}
.demand-modal__error {
  margin: 0 0 12px;
  font-size: 13px;
  color: #f56c6c;
}
.demand-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.demand-btn {
  appearance: none;
  border: 1px solid transparent;
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.demand-btn--ghost {
  background: #fff;
  border-color: #dcdfe6;
  color: #606266;
}
.demand-btn--ghost:hover { color: var(--primary-color, #e83500); border-color: var(--primary-color, #e83500); }
.demand-btn--primary {
  background: var(--primary-color, #e83500);
  color: #fff;
}
.demand-btn--primary:hover { background: var(--primary-dark, #c42d00); }
.demand-btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.sku-block { margin-bottom: 12px; }
.sku-collapse {
  border: 1px solid #ebeef5;
  border-radius: 8px;
  background: #fafbfc;
  overflow: hidden;
}
.sku-collapse__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: #303133;
}
.sku-collapse__toggle:hover { background: #f5f7fa; }
.sku-collapse__title {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #606266;
}
.sku-collapse__summary {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: #303133;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sku-collapse__arrow {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--primary-color, #e83500);
  white-space: nowrap;
}
.sku-collapse__body {
  padding: 4px 12px 12px;
  border-top: 1px solid #ebeef5;
  background: #fff;
}
.sku-collapse__body[hidden] { display: none !important; }
.sku-dimension { margin-bottom: 10px; }
.sku-dimension:last-child { margin-bottom: 0; }
.sku-label {
  display: block;
  font-size: 14px;
  color: #606266;
  margin-bottom: 10px;
}
.sku-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sku-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #303133;
  transition: border-color 0.2s, background 0.2s;
}
.sku-option.active {
  border-color: var(--primary-color, #e83500);
  background: #fff4f0;
}
.sku-option.disabled,
.sku-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f5f7fa;
}
.sku-hint {
  margin-bottom: 10px;
  font-size: 13px;
  color: #606266;
}
.sku-hint--warn { color: #e6a23c; }
.sku-option__price {
  color: #e6a23c;
  font-weight: 600;
}
.sku-option__market-price {
  font-size: 12px;
  color: #909399;
  text-decoration: line-through;
}
.sku-option__img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ebeef5;
}
.product-tags {
  display: flex;
  gap: 8px;
  margin: 4px 0 2px;
}
.tag-bulk {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 4px;
}
.tag-retail {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  color: #c2410c;
  background: #fff1eb;
  border: 1px solid #fdba74;
  border-radius: 4px;
}
.qty-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.inventory-detail-page .buy-panel .buy-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  margin-bottom: 0;
  width: 100%;
  gap: 8px;
}
.inventory-detail-page .buy-panel .buy-actions > .buy-btn,
.inventory-detail-page .buy-panel .buy-actions > a.buy-btn,
.inventory-detail-page .buy-panel .buy-actions > .buy-actions__fav-form,
.inventory-detail-page .buy-panel .buy-actions > form {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  margin: 0;
  box-sizing: border-box;
}
.inventory-detail-page .buy-panel .buy-actions .buy-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 8px !important;
  white-space: nowrap;
  font-size: 13px;
  box-sizing: border-box;
}
.inventory-detail-page .buy-panel .buy-actions .buy-actions__fav-form,
.inventory-detail-page .buy-panel .buy-actions > form {
  display: flex !important;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
}
.inventory-detail-page .buy-panel .buy-actions .buy-actions__fav-form .buy-btn,
.inventory-detail-page .buy-panel .buy-actions > form .buy-btn {
  flex: 1 1 auto;
  width: 100% !important;
}
.qty-label {
  font-size: 14px;
  color: #606266;
}
.qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  overflow: hidden;
}
.qty-btn {
  width: 36px;
  border: none;
  background: #f5f7fa;
  color: #606266;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.qty-btn:hover { background: #eef1f6; }
.qty-input {
  width: 72px;
  height: 36px;
  border: none;
  border-left: 1px solid #dcdfe6;
  border-right: 1px solid #dcdfe6;
  text-align: center;
  font-size: 14px;
  color: #303133;
}
.qty-hint {
  font-size: 12px;
  color: #909399;
}
.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.buy-btn--cart {
  border: none;
}
.buy-btn--buy {
  background: #fff;
  border: 1px solid #e6a23c;
  color: #e6a23c;
}
.buy-btn--buy:hover {
  background: #fdf6ec;
}
.detail-block {
  background: #fff;
  border-radius: 12px;
  padding: 8px 28px 24px;
  border: 1px solid #ebeef5;
  margin-bottom: 24px;
}
/* 下划线统一用下方样式块的 border-bottom，避免双重红线 */
.spec-simple { padding: 4px 0 8px; }
.spec-simple__row {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.spec-simple__label {
  flex-shrink: 0;
  width: 72px;
  color: #909399;
}
.spec-simple__value { color: #303133; }
.spec-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  border: 1px solid #ebeef5;
  padding: 10px 12px;
  text-align: left;
  color: #303133;
}
.spec-table th {
  background: #f5f7fa;
  color: #606266;
  font-weight: 500;
}
.spec-table .is-right { text-align: right; }
.table-market-price {
  color: #909399;
  text-decoration: line-through;
}
.product-params {
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.product-params__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.product-params__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  line-height: 1.4;
}
.product-params__count {
  font-size: 12px;
  color: #909399;
  flex-shrink: 0;
}
.product-params__list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.product-params__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #ebeef5;
  border-right: 1px solid #ebeef5;
  font-size: 13px;
  line-height: 1.5;
  background: #fafbfc;
}
.product-params__row:nth-child(2n) {
  border-right: none;
  background: #fff;
}
.product-params__row:nth-last-child(-n + 2) {
  border-bottom: none;
}
.product-params__row:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
}
.product-params__row dt {
  margin: 0;
  color: #909399;
  font-weight: 400;
}
.product-params__row dd {
  margin: 0;
  color: #303133;
  word-break: break-word;
}
.detail-intro {
  margin-top: 4px;
}
.detail-intro__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  line-height: 1.4;
}
.intro-rich {
  font-size: 15px;
  line-height: 1.8;
  color: #303133;
  max-width: 100%;
}
.intro-rich img,
.intro-rich p img,
.intro-rich figure img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto !important;
  margin: 1em auto;
  border-radius: 8px;
  object-fit: contain;
}
.intro-rich figure {
  max-width: 100%;
  margin: 1em 0;
}
.intro-rich img[style] {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}
.intro-rich p { margin: 0.65em 0; }
.intro-rich h1,
.intro-rich h2,
.intro-rich h3 {
  margin: 1.2em 0 0.55em;
  color: #303133;
  font-weight: 600;
  line-height: 1.4;
}
.intro-rich h1 { font-size: 1.35em; }
.intro-rich h2 { font-size: 1.2em; }
.intro-rich h3 { font-size: 1.08em; }
.intro-rich ul,
.intro-rich ol {
  margin: 0.6em 0;
  padding-left: 1.35em;
}
.intro-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 13px;
}
.intro-rich table th,
.intro-rich table td {
  border: 1px solid #ebeef5;
  padding: 10px 12px;
}


/* float dock — 首页 / 购物车 / 客服 / 回顶部 / 收起 */
.inv-float-dock {
  position: fixed;
  right: 16px;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
}
.inv-float-dock__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 58px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.14);
  overflow: hidden;
}
.inv-float-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 4px 6px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
  color: #606266 !important;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: color 0.15s ease, background 0.15s ease;
}
.inv-float-item:last-child { border-bottom: none; }
.inv-float-item:hover {
  color: var(--primary-color, #e83500) !important;
  background: #fff8f5;
}
.inv-float-item__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
  color: inherit;
}
.inv-float-item__label {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.inv-float-item__badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-20%);
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #f56c6c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
  z-index: 1;
  pointer-events: none;
}
.inv-float-dock.is-collapsed .inv-float-item:not([data-dock-top]):not([data-dock-expand]) {
  display: none !important;
}
.inv-float-dock.is-collapsed .inv-float-item--expand {
  display: flex !important;
}
.inv-float-item--expand[hidden] { display: none !important; }
@media (max-width: 768px) {
  .inv-float-dock {
    right: 10px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .inv-float-dock__actions { width: 52px; }
  .inv-float-item {
    min-height: 50px;
    padding: 6px 2px 4px;
  }
  .inv-float-item__label { font-size: 11px; }
}

.enterprise-header {
  background: linear-gradient(135deg, var(--page-header-bg-start), var(--page-header-bg-end));
  color: #fff;
  padding: 36px 0;
  text-align: center;
}
.enterprise-header__title {
  margin: 0 0 8px;
  font-size: 28px;
}
.enterprise-header__desc {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

@media (max-width: 1679px) {
  .inventory-zone .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1439px) {
  .inventory-zone .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .inventory-zone .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .inventory-zone .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .guide-search-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-hero { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .detail-main,
  .detail-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .detail-layout__main {
    order: 1;
    gap: 16px;
  }
  .inventory-detail-page .detail-layout > .buy-panel {
    order: 0;
  }
  .detail-layout__gallery {
    padding: 16px;
    min-height: 0 !important;
    height: auto !important;
  }
  .gallery {
    width: 100%;
    max-width: 100%;
  }
  .gallery__main {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }
  .inventory-detail-page .detail-layout .buy-panel {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible;
  }
  .buy-panel__info {
    grid-template-columns: 1fr;
  }
  .inventory-detail-page .buy-panel .buy-actions {
    flex-wrap: wrap !important;
  }
  .inventory-detail-page .buy-panel .buy-actions > .buy-btn,
  .inventory-detail-page .buy-panel .buy-actions > a.buy-btn,
  .inventory-detail-page .buy-panel .buy-actions > .buy-actions__fav-form,
  .inventory-detail-page .buy-panel .buy-actions > form {
    flex: 1 1 calc(50% - 4px) !important;
  }
  .inventory-detail-page .buy-panel .buy-actions .buy-btn {
    font-size: 14px;
    padding: 0 12px !important;
  }
  .inventory-detail-page .detail-layout .buy-panel,
  .inventory-detail-page .buy-panel {
    position: static;
    height: auto !important;
    max-height: none !important;
    width: 100%;
    overflow: visible;
    box-shadow: none;
  }
  .buy-panel__scroll {
    overflow: visible;
    padding-right: 0;
  }
  .inventory-detail-page .breadcrumb {
    padding-left: 20px;
  }
  .gallery__main,
  .gallery__thumbs-wrap {
    width: 100%;
    max-width: 100%;
  }
  .inventory-detail-page .detail-layout .detail-tabs {
    padding: 0;
  }
}
@media (max-width: 767px) {
  .filter-group { flex-direction: column; gap: 8px; }
  .filter-group__label { line-height: 1.4; width: auto; }
  .inventory-zone .product-grid { grid-template-columns: 1fr; gap: 10px; }
  .guide-search-nav, .advantage-grid { grid-template-columns: 1fr; }
  .guide-hero__title { font-size: 24px; }
}

/* AI 智能检索（对齐 InventoryAiSearch.vue） */
.ai-search-page {
  min-height: 60vh;
  background: linear-gradient(180deg, #f3f7ff 0%, #f7f8fa 240px, #f7f8fa 100%);
}
.ai-search-main {
  padding: 24px 0 48px;
  box-sizing: border-box;
}
.ai-search-hero {
  text-align: center;
  margin-bottom: 20px;
}
.ai-search-hero .back-link {
  display: inline-flex;
  margin-bottom: 12px;
  border: none;
  background: transparent;
  color: #606266;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
.ai-search-hero .hero-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 28px);
  color: #1f2d3d;
}
.ai-search-hero .hero-desc {
  margin: 0;
  color: #606266;
  font-size: 14px;
  line-height: 1.7;
}
.chat-panel {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(31, 45, 61, 0.06);
  overflow: hidden;
}
.chat-messages {
  max-height: min(62vh, 680px);
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
}
.chat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.chat-row--user { flex-direction: row-reverse; }
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-row--assistant .chat-avatar {
  background: linear-gradient(135deg, #409eff, #7c5cff);
  color: #fff;
}
.chat-row--user .chat-avatar {
  background: #ecf5ff;
  color: #409eff;
}
.chat-bubble {
  max-width: min(100%, 860px);
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ebeef5;
}
.chat-row--user .chat-bubble {
  background: #409eff;
  border-color: #409eff;
  color: #fff;
}
.chat-text {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
}
.chat-bubble--loading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #409eff;
  animation: ai-blink 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
.typing-text { color: #909399; font-size: 13px; }
@keyframes ai-blink {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}
.result-block { margin-top: 14px; }
.result-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #606266;
}
.result-rewrite { color: #909399; }
.result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-card {
  display: grid;
  grid-template-columns: 123px 1fr auto;
  gap: 14px;
  padding: 12px;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  background: #fafcff;
}
.result-thumb,
.result-thumb__placeholder {
  width: 123px;
  height: 123px;
  border-radius: 8px;
  border: 1px solid #ebeef5;
  object-fit: cover;
  display: block;
}
.result-thumb__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  color: #909399;
  font-size: 12px;
}
.result-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.result-card__name {
  margin: 0;
  font-size: 16px;
  color: #303133;
}
.result-card__brand {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecf5ff;
  color: #409eff;
  font-size: 12px;
}
.result-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
}
.result-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.result-field__label { font-size: 12px; color: #909399; }
.result-field__value {
  font-size: 14px;
  color: #303133;
  word-break: break-word;
}
.result-field__price { color: #e6a23c; font-weight: 600; }
.result-field__market { color: #909399; text-decoration: line-through; }
.result-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.result-link {
  color: #409eff;
  text-decoration: none;
  font-size: 14px;
}
.result-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #409eff;
  background: #fff;
  color: #409eff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.result-cart-btn:hover {
  background: #ecf5ff;
}
.prompt-section {
  padding: 14px 16px 0;
  border-top: 1px solid #ebeef5;
  background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
}
.prompt-section__title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #606266;
}
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prompt-chip {
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.prompt-chip:hover:not(:disabled) {
  border-color: #409eff;
  color: #409eff;
  background: #ecf5ff;
}
.prompt-chip:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-input-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 16px;
  border-top: 1px solid #ebeef5;
  background: #fff;
}
.chat-input-wrap {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 14px;
  background: #f8fbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-input-wrap:focus-within {
  border-color: #409eff;
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
  background: #fff;
}
.chat-textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  resize: none;
  font-size: 15px;
  line-height: 1.7;
  color: #303133;
  outline: none;
  font-family: inherit;
}
.send-btn {
  flex-shrink: 0;
  min-width: 96px;
  height: 44px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  background: #409eff;
  color: #fff;
  cursor: pointer;
}
.send-btn:disabled { opacity: 0.7; cursor: wait; }
.recommend-section {
  padding: 16px 16px 20px;
  border-top: 1px solid #ebeef5;
  background: #fff;
}
.recommend-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.recommend-section__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}
.recommend-section__hint {
  font-size: 12px;
  color: #909399;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.recommend-body { min-height: 88px; }
.recommend-empty {
  margin: 0;
  text-align: center;
  color: #909399;
  font-size: 14px;
  padding: 24px 0;
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.recommend-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  background: #fafcff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.recommend-card:hover {
  border-color: #c6e2ff;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.1);
}
.recommend-card__image {
  aspect-ratio: 1;
  background: #f5f7fa;
}
.recommend-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.recommend-thumb__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #909399;
  font-size: 12px;
  background: #f5f7fa;
}
.recommend-card__body { padding: 10px 10px 12px; }
.recommend-card__name {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.recommend-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.recommend-card__price {
  font-size: 14px;
  font-weight: 600;
  color: #e6a23c;
}
.recommend-card__market {
  font-size: 12px;
  color: #909399;
  text-decoration: line-through;
}
.recommend-card__stock { font-size: 12px; color: #909399; }
.recommend-card__brand {
  margin: 6px 0 0;
  font-size: 12px;
  color: #606266;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 992px) {
  .result-card__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recommend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .result-card { grid-template-columns: 88px 1fr; }
  .result-card__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
  .result-thumb,
  .result-thumb__placeholder { width: 88px; height: 88px; }
  .recommend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-input-bar { flex-direction: column; align-items: stretch; }
  .send-btn { width: 100%; }
}

/* ---- 商品详情：店铺入口 ---- */
.shop-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7f4 0%, #fff 55%);
}
.shop-entry__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-light, #fff0eb);
  color: var(--primary-color, #e83500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.shop-entry__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-entry__meta { flex: 1; min-width: 0; }
.shop-entry__name {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-entry__hint {
  margin-top: 4px;
  font-size: 12px;
  color: #909399;
}
.shop-entry__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--primary-color, #e83500);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .15s ease;
}
.shop-entry__btn:hover { background: var(--primary-dark, #c42d00); }

/* ---- 厂家店铺页：上简介 / 左分类品牌 / 右商品 ---- */
.inv-shop-page { background: var(--bg-color, #f5f7fa); padding-bottom: 48px; }

.inv-shop-band {
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  padding: 20px 0;
}
.inv-shop-band__inner {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(220px, 320px);
  gap: 20px;
  align-items: center;
}
.inv-shop-band__avatar {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f7fa;
  border: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color, #e83500);
  flex-shrink: 0;
}
.inv-shop-band__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-shop-band__main { min-width: 0; }
.inv-shop-band__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.inv-shop-band__name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #303133;
  line-height: 1.3;
}
.inv-shop-band__chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--primary-color, #e83500) !important;
  background: var(--primary-light, #fff0eb);
  text-decoration: none !important;
}
.inv-shop-band__meta {
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: #909399;
}
.inv-shop-band__intro {
  margin: 0 0 10px;
  font-size: 13px;
  color: #606266;
  line-height: 1.5;
  max-width: 640px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inv-shop-band__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-shop-band__btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  font-size: 13px;
  cursor: pointer;
}
.inv-shop-band__btn:hover:not(:disabled) {
  border-color: var(--primary-color, #e83500);
  color: var(--primary-color, #e83500);
}
.inv-shop-band__btn.is-muted,
.inv-shop-band__btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.inv-shop-band__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--primary-color, #e83500);
  vertical-align: middle;
}
.inv-shop-band__search {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--primary-color, #e83500);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  height: 40px;
}
.inv-shop-band__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
}
.inv-shop-band__search-btn {
  border: 0;
  background: var(--primary-color, #e83500);
  color: #fff;
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.inv-shop-band__search-btn:hover { filter: brightness(.95); }

.inv-shop-main { padding-top: 16px; }
.inv-shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.inv-shop-aside { display: flex; flex-direction: column; gap: 12px; }
.inv-shop-side {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 12px 0 8px;
}
.inv-shop-side__title {
  margin: 0 14px 10px;
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}
.inv-shop-side__all {
  display: block;
  margin: 0 10px 8px;
  padding: 8px 12px;
  border-radius: 4px;
  background: #ffe8d9;
  color: var(--primary-color, #e83500) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  text-align: center;
}
.inv-shop-side__all.is-active,
.inv-shop-side__all:hover { background: #ffd4b8; }
.inv-shop-side__list,
.inv-shop-side__sub,
.inv-shop-side__brands {
  list-style: none;
  margin: 0;
  padding: 0;
}
.inv-shop-side__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  color: #303133 !important;
  text-decoration: none !important;
  font-size: 14px;
  border-top: 1px solid #f5f7fa;
}
.inv-shop-side__item.is-active > .inv-shop-side__link,
.inv-shop-side__link:hover {
  color: var(--primary-color, #e83500) !important;
  background: #fffaf7;
}
.inv-shop-side__chev {
  font-size: 10px;
  color: #c0c4cc;
  transition: transform .15s;
}
.inv-shop-side__item.is-open .inv-shop-side__chev,
.inv-shop-side__item.is-active .inv-shop-side__chev { transform: rotate(180deg); }
.inv-shop-side__sub { display: none; background: #fafbfc; }
.inv-shop-side__item.is-open .inv-shop-side__sub,
.inv-shop-side__item.is-active .inv-shop-side__sub { display: block; }
.inv-shop-side__sublink {
  display: block;
  padding: 8px 16px 8px 28px;
  font-size: 13px;
  color: #606266 !important;
  text-decoration: none !important;
}
.inv-shop-side__sublink:hover,
.inv-shop-side__sublink.is-active {
  color: var(--primary-color, #e83500) !important;
}
.inv-shop-side__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 8px;
}
.inv-shop-side__brand {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid #e4e7ed;
  font-size: 12px;
  color: #606266 !important;
  text-decoration: none !important;
  background: #fff;
}
.inv-shop-side__brand:hover,
.inv-shop-side__brand.is-active {
  border-color: var(--primary-color, #e83500);
  color: var(--primary-color, #e83500) !important;
  background: var(--primary-light, #fff0eb);
}
.inv-shop-side__empty {
  padding: 8px 16px 12px;
  font-size: 13px;
  color: #909399;
}

.inv-shop-content {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 0 0 16px;
  min-width: 0;
}
.inv-shop-sortbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  padding: 0 8px;
  border-bottom: 1px solid #f0f2f5;
  background: #fafbfc;
  border-radius: 8px 8px 0 0;
}
.inv-shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
  color: #606266 !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
}
.inv-shop-sort:hover { color: var(--primary-color, #e83500) !important; }
.inv-shop-sort.is-active {
  color: var(--primary-color, #e83500) !important;
  font-weight: 600;
  border-bottom-color: var(--primary-color, #e83500);
}
.inv-shop-sort__arrows {
  display: inline-flex;
  flex-direction: column;
  font-size: 8px;
  line-height: 1;
  margin-left: 2px;
  color: #c0c4cc;
}
.inv-shop-sort__arrows i.is-on { color: var(--primary-color, #e83500); font-style: normal; }
.inv-shop-sort__arrows i { font-style: normal; }
.inv-shop-sortbar__count {
  margin-left: auto;
  padding: 0 12px;
  font-size: 12px;
  color: #909399;
}
.inv-shop-grid {
  margin: 16px 16px 0;
}
.inv-shop-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.inv-shop-card-tags span {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f5f7fa;
  color: #909399;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inv-shop-empty { margin: 0; font-size: 14px; color: #909399; line-height: 1.6; }
.inv-shop-empty--panel { padding: 48px 16px; text-align: center; }
.inv-shop-content .pagination { margin: 20px 16px 0; justify-content: center; }

.inv-shop-report-section { margin-bottom: 22px; }
.inv-shop-report-section:last-child { margin-bottom: 0; }
.inv-shop-report-section__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}
.inv-shop-report-section__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #909399;
}
.inv-shop-report-section__sub {
  margin: 14px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #606266;
}
.inv-shop-report-section__sub:first-of-type {
  margin-top: 4px;
}
.inv-shop-scenes {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eef0f3;
}
.inv-shop-scenes__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}
.inv-shop-scenes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.inv-shop-scenes__item {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f7fa;
  aspect-ratio: 4 / 3;
  text-decoration: none !important;
}
.inv-shop-scenes__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inv-shop-scenes__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inv-shop-quals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.inv-shop-qual {
  display: flex;
  flex-direction: column;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
.inv-shop-qual:hover {
  border-color: #f3b59a;
  box-shadow: 0 6px 18px rgba(232, 53, 0, 0.08);
}
.inv-shop-qual__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f7fa;
  overflow: hidden;
}
.inv-shop-qual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f5f7fa;
}
.inv-shop-qual__file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  color: #606266;
  font-size: 13px;
  background: linear-gradient(180deg, #fafbfc 0%, #f0f2f5 100%);
}
.inv-shop-qual__file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #e83500;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.inv-shop-qual__file-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
  line-height: 1.45;
  max-width: 100%;
}
.inv-shop-qual__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 10px 12px 0;
  font-size: 13px;
  font-weight: 500;
  color: #303133;
  line-height: 1.4;
  word-break: break-word;
}
.inv-shop-qual__action {
  display: block;
  padding: 8px 12px 12px;
  font-size: 12px;
  color: var(--primary-color, #e83500);
}
.inv-shop-report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inv-shop-report-item {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.inv-shop-report-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f5;
}
.inv-shop-report-item__name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: #303133 !important;
  text-decoration: none !important;
  word-break: break-word;
}
.inv-shop-report-item__name:hover {
  color: var(--primary-color, #e83500) !important;
}
.inv-shop-report-item__link {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--primary-color, #e83500) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.inv-shop-report-item__body {
  font-size: 14px;
  color: #606266;
  line-height: 1.7;
  max-height: none;
  overflow: visible;
  word-break: break-word;
}
.inv-shop-report-item__body.intro-rich {
  max-width: 100%;
}
.inv-shop-report-item__body.intro-rich img,
.inv-shop-report-item__body.intro-rich p img,
.inv-shop-report-item__body.intro-rich figure img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin: 0.75em auto;
  border-radius: 8px;
  border: 1px solid #eef0f3;
  background: #fafbfc;
}
.inv-shop-report-item__body.intro-rich table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.inv-shop-modal[hidden] { display: none !important; }
.inv-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.inv-shop-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.inv-shop-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.inv-shop-modal__dialog--report {
  width: min(980px, 100%);
  max-height: min(92vh, 960px);
}
.inv-shop-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 14px 20px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}
.inv-shop-modal__head h3 { margin: 0; font-size: 16px; }
.inv-shop-modal__close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #909399;
  cursor: pointer;
}
.inv-shop-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px 20px;
  overflow: auto;
  font-size: 14px;
  color: #606266;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: #d4d7de transparent;
}
.inv-shop-modal__body--report {
  padding: 18px 22px 24px;
}
.inv-shop-modal__body::-webkit-scrollbar { width: 6px; }
.inv-shop-modal__body::-webkit-scrollbar-thumb {
  background: #d4d7de;
  border-radius: 999px;
}
.inv-shop-modal__body.intro-rich img { max-width: 100%; height: auto; }

@media (max-width: 992px) {
  .inv-shop-band__inner {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .inv-shop-band__search {
    grid-column: 1 / -1;
  }
  .inv-shop-layout { grid-template-columns: 1fr; }
  .inv-shop-quals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-shop-scenes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-shop-modal { padding: 12px; }
  .inv-shop-modal__dialog,
  .inv-shop-modal__dialog--report {
    width: 100%;
    max-height: min(92vh, 960px);
  }
  .inv-shop-band__name { font-size: 18px; }
  .inv-shop-band__intro { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (max-width: 640px) {
  .shop-entry { flex-wrap: wrap; }
  .shop-entry__btn { width: 100%; }
  .inv-shop-quals { grid-template-columns: 1fr; }
  .inv-shop-band__avatar { width: 64px; height: 64px; font-size: 24px; }
  .inv-shop-sortbar__count { width: 100%; margin: 0; padding-bottom: 8px; }
  .inv-shop-report-item__head { flex-direction: column; align-items: flex-start; }
}

/* ---- 详情页排版优化 / 视频 / 评价 ---- */
.inventory-detail-page .breadcrumb {
  padding-left: 0;
  margin-bottom: 16px;
}
.gallery__main {
  border: 1px solid #ebeef5;
  border-radius: 10px;
  background: #fafbfc;
  aspect-ratio: 1 / 1;
}
.buy-panel__price {
  color: var(--primary-color, #e83500);
}
.buy-btn--cart {
  background: var(--primary-color, #e83500) !important;
  border-color: var(--primary-color, #e83500) !important;
  color: #fff !important;
}
.buy-btn--buy {
  background: #fff7e8 !important;
  border: 1px solid #f0b429 !important;
  color: #b8820c !important;
}
.buy-btn--buy:hover {
  background: #fff1d6 !important;
}
.detail-block {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.detail-block__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

/* 商品详情 Tab + 内容区 */
.inventory-detail-page .detail-tabs.detail-block {
  padding: 0;
  overflow: hidden;
}
.detail-tabs__bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0 8px;
  flex-wrap: nowrap;
  background: #f7f8fa;
  border-bottom: 1px solid #ebeef5;
}
.detail-tabs__item {
  appearance: none;
  border: 0;
  background: transparent;
  position: relative;
  padding: 0 22px;
  height: 52px;
  font-size: 15px;
  color: #606266;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, background 0.15s ease;
}
.detail-tabs__item:hover {
  color: #303133;
  background: rgba(255, 255, 255, 0.55);
}
.detail-tabs__item.is-active {
  color: var(--primary-color, #e83500);
  font-weight: 600;
  background: #fff;
  border-bottom-color: var(--primary-color, #e83500);
}
.detail-tabs__label {
  display: inline-flex;
  align-items: center;
  height: 100%;
  letter-spacing: 0.02em;
}
.detail-tabs__body {
  padding: 24px 28px 28px;
  box-sizing: border-box;
}
.detail-tabs__pane[hidden] {
  display: none !important;
}
.detail-tabs .intro-rich {
  max-width: 860px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: #303133;
}
.detail-tabs .intro-rich img,
.detail-tabs .intro-rich video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.detail-empty {
  margin: 12px 0 0;
  padding: 28px 16px;
  text-align: center;
  color: #909399;
  font-size: 14px;
  background: #fafbfc;
  border: 1px dashed #e4e7ed;
  border-radius: 10px;
}

.detail-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f2f5;
}
.detail-reviews__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.detail-reviews__head .detail-block__title { margin: 0; }
.detail-reviews__summary { font-size: 14px; color: #606266; }
.detail-reviews__avg span,
.detail-review-item__stars span {
  color: #dcdfe6;
  font-size: 16px;
  letter-spacing: 1px;
}
.detail-reviews__avg span.is-on,
.detail-review-item__stars span.is-on,
.detail-reviews__stars button.is-on {
  color: #f7ba2a;
}
.detail-reviews__form {
  margin: 12px 0 20px;
  padding: 16px;
  border: 1px dashed #e4e7ed;
  border-radius: 10px;
  background: #fafbfc;
}
.detail-reviews__stars { display: flex; gap: 4px; margin-bottom: 10px; }
.detail-reviews__stars button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #dcdfe6;
  font-size: 22px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.detail-reviews__textarea {
  width: 100%;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.detail-reviews__submit { height: 36px; padding: 0 18px; border-radius: 8px; }
.detail-reviews__hint { margin: 8px 0 0; font-size: 12px; color: #909399; }
.detail-reviews__list { display: flex; flex-direction: column; gap: 14px; }
.detail-review-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f5;
}
.detail-review-item:last-child { border-bottom: 0; }
.detail-review-item__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.detail-review-item__user { font-weight: 600; color: #303133; }
.detail-review-item__time { color: #909399; margin-left: auto; }
.detail-review-item__content {
  margin: 0;
  font-size: 14px;
  color: #606266;
  line-height: 1.6;
  white-space: pre-wrap;
}
.detail-reviews__empty { margin: 8px 0 0; font-size: 14px; color: #909399; }

@media (max-width: 960px) {
  .detail-block { padding: 18px 16px; }
  .detail-layout__gallery { padding: 18px 16px; }
  .inventory-detail-page .detail-tabs.detail-block { padding: 0; }
  .detail-tabs__bar { padding: 0 4px; }
  .detail-tabs__item { padding: 0 16px; height: 48px; font-size: 14px; }
  .detail-tabs__body { padding: 18px 16px 20px; }
  .product-params__list { grid-template-columns: 1fr; }
  .product-params__row,
  .product-params__row:nth-child(2n) {
    border-right: none;
    background: #fff;
  }
  .product-params__row:nth-child(odd) { background: #fafbfc; }
  .product-params__row:nth-last-child(-n + 2) { border-bottom: 1px solid #ebeef5; }
  .product-params__row:last-child { border-bottom: none; }
  .product-params__row:last-child:nth-child(odd) { grid-column: auto; }
  .detail-tabs .intro-rich { max-width: 100%; }
}
