/* ============================================================
   Best Sellers 栏目 · 专属样式
   延续站点 Apple 式浅色语言，不引入新设计语言
   ============================================================ */

/* ---------- 筛选条 ---------- */
.bs-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 40px;
  padding: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: relative;
  z-index: 20;
}
.bs-chip {
  appearance: none;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  color: #1d1d1f;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.bs-chip span {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
  background: rgba(0,0,0,.05);
  border-radius: 999px;
  padding: 1px 7px;
  transition: background .2s ease, color .2s ease;
}
.bs-chip:hover { border-color: rgba(0,0,0,.22); transform: translateY(-1px); }
.bs-chip.is-on {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #fff;
}
.bs-chip.is-on span { background: rgba(255,255,255,.18); color: rgba(255,255,255,.85); }

/* ---------- 分组 ---------- */
.bs-group { margin-bottom: 64px; scroll-margin-top: 140px; }
.bs-group[hidden] { display: none; }
.bs-group-head { margin-bottom: 22px; }
.bs-group-t h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  color: #1d1d1f;
}
.bs-group-t p {
  margin: 0;
  color: #6e6e73;
  font-size: 15px;
  line-height: 1.6;
  max-width: 62ch;
}

/* ---------- 卡片补充信息 ---------- */
.pd-tag {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #86868b;
}

/* ---------- 详情页画廊 ---------- */
.bs-gallery { display: block; }
.bs-gal-main {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
}
.bs-gal-main .pd-item-shot { border: 0; border-radius: 0; }
.bs-gal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.bs-gal-item {
  display: block;
  appearance: none;
  border: 1px solid rgba(0,0,0,.08);
  padding: 0;
  margin: 0;
  background: #fff;
  cursor: pointer;
  font: inherit;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
  aspect-ratio: 1 / 1;
}
.bs-gal-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bs-gal-item:hover { border-color: rgba(0,0,0,.28); transform: translateY(-2px); }
.bs-gal-item.is-active { border-color: #1d1d1f; box-shadow: 0 0 0 1px #1d1d1f; }

/* ---------- 详情页要点表 ---------- */
.bs-meta {
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 14px;
  overflow: hidden;
  margin: 22px 0;
  background: rgba(255,255,255,.66);
}
.bs-meta-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(0,0,0,.055);
  font-size: 14px;
  line-height: 1.55;
}
.bs-meta-row:last-child { border-bottom: 0; }
.bs-meta-row span { color: #86868b; }
.bs-meta-row b { color: #1d1d1f; font-weight: 600; }

/* ---------- 配色表 ---------- */
.bs-colors {
  list-style: none;
  margin: 16px 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.bs-colors li {
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 11px;
  padding: 10px 13px;
  background: rgba(255,255,255,.66);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bs-colors li b { font-size: 14px; font-weight: 600; color: #1d1d1f; }
.bs-colors li span { font-size: 12.5px; color: #86868b; }

/* ---------- Why 区块 ---------- */
.bs-why .pd-path-grid { margin-top: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .bs-filter-bar { position: static; }
}
@media (max-width: 640px) {
  .bs-meta-row { grid-template-columns: 1fr; gap: 3px; }
  .bs-colors { grid-template-columns: 1fr 1fr; }
  .bs-gal-thumbs { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
}

/* ---------- 品类页的 Best Sellers 入口 ---------- */
.bs-entry {
  margin-top: 22px;
  border: 1px solid rgba(0,0,0,.07);
  border-left: 3px solid #FF5722;
  border-radius: 12px;
  background: rgba(255,255,255,.66);
  padding: 15px 18px;
}
.bs-entry p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #424245;
}
.bs-entry b { color: #1d1d1f; font-weight: 600; }
.bs-entry a {
  color: #FF5722;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,87,34,.35);
  padding-bottom: 1px;
  transition: border-color .2s ease, color .2s ease;
}
.bs-entry a:hover { color: #e64a19; border-bottom-color: #e64a19; }

/* ---------- 锚点定位避让（防止被顶栏盖住标题） ---------- */
.bs-group, .pd-item-block, #inquire {
  scroll-margin-top: 96px;
}

/* ---------- 筛选条改为静态后，网格区顶部留白收紧 ---------- */
.bs-filter-bar { margin-bottom: 32px; }

/* ============================================================
   修正：详情页 .pd-item-body 是 flex + order 布局。
   原 CSS 用 .pd-item-h2{order:6} / .pd-spec{order:7}，
   但详情页有两个 h2（SPECIFICATION / AVAILABLE COLOURWAYS），
   第二个 h2 拿到 order:6 会排在 .pd-spec(order:7) 之后 → 标题跑到表格下面。
   解法：用 nth-of-type 递增给同类型兄弟排唯一 order。
   阅读顺序：eyebrow → h1 → mat → desc → bs-meta → H2 → spec → H2 → colors → fine → act
   ============================================================ */
.pd-item-body > .bs-meta{order:5}
.pd-item-body > .pd-item-h2:nth-of-type(1){order:6}
.pd-item-body > .pd-spec{order:7}
.pd-item-body > .pd-item-h2:nth-of-type(2){order:8}
.pd-item-body > .bs-colors{order:9}
.pd-item-body > .pd-item-fine{order:10}
.pd-item-body > .pd-item-act{order:11}
