/* =============================================================
   阀门管件系列产品页
   在 product.css 双栏骨架上补充：实拍展台 / 缩略图 / 产品图集
   ============================================================= */

/* Berslok 阀门页的两组参数区收紧顶部留白。 */
body.ep.pd.vf-valves-page .pd-spec-block.is-compact { margin-top: 16px; }

/* 展台：白底产品实拍正片叠底，融入浅灰渐变 */
body.ep.pd .pd-gallery .p-main-img.bl-shot { mix-blend-mode: multiply; filter: none; }

/* 缩略图：三列等宽 */
body.ep.pd .pd-gallery .p-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.ep.pd .pd-gallery .p-thumb { padding: 7px 9px; }
body.ep.pd .pd-gallery .p-thumb img { width: 42px; height: 42px; padding: 3px; }
body.ep.pd .pd-gallery .p-thumb span { font-size: 11.5px; }

body.ep.pd .vf-detail-link { display: inline-block; margin-top: 14px; font-size: 13px; }
body.ep.pd .vf-detail { scroll-margin-top: calc(var(--header-h, 76px) + 20px); }
/* 分隔线只随内容栏宽度，不做整屏贯穿：波纹管阀与 Berslok 同属一个内容块。
   用伪元素贴住 section 顶边，保持原有的竖直位置与留白。 */
body.ep.pd .vf-detail { position: relative; }
body.ep.pd .vf-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--page-w);
  transform: translateX(-50%);
  border-top: 1px solid var(--ep-line);
}

/* 波纹管截止阀：参数表沿用上方 Berslok 区块的对照表骨架，仅改成标签列 + 规格列两栏。 */
body.ep.pd #bellows .pd-spec-cmp { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* ---------- 产品图集 ---------- */
body.ep.pd .bl-series { background: #fff; padding-bottom: 36px; }
body.ep.pd .bl-series-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 20px;
  margin-bottom: 28px;
  border-top: 1px solid var(--ep-line);
}
body.ep.pd .bl-series-head h2,
body.ep.pd .bl-sub-title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ep-ink);
}

/* 分类分组 */
body.ep.pd .bl-group + .bl-group { margin-top: 56px; }
body.ep.pd .bl-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-top: 16px;
  margin-bottom: 18px;
  border-top: 1px solid var(--ep-line);
}
body.ep.pd .bl-group-head h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ep-ink);
}
body.ep.pd .bl-group-head p { flex: 1 1 auto; margin: 0; font-size: 12.5px; color: var(--ep-mute); }

body.ep.pd .bl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
body.ep.pd .bl-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #fff;
  border: 1px solid var(--ep-line-light);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
body.ep.pd .bl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 102, 204, 0.32);
  box-shadow: var(--ep-shadow-hover);
}
body.ep.pd .bl-im {
  --pad: 12px;
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
  box-sizing: border-box;
  padding: var(--pad);
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f6fa 100%);
}
body.ep.pd .bl-im img {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  width: calc(100% - var(--pad) * 2);
  height: calc(100% - var(--pad) * 2);
  object-fit: contain;
  mix-blend-mode: multiply;
}
body.ep.pd .bl-meta {
  display: flex;
  align-items: baseline;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--ep-line-light);
}
body.ep.pd .bl-meta h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ep-ink);
}

body.ep.pd .bl-im:focus-visible { outline: 2px solid var(--ep-blue); outline-offset: -4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  body.ep.pd .bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ep.pd .bl-series { padding-bottom: 32px; }
  body.ep.pd .bl-group + .bl-group { margin-top: 44px; }
}

@media (max-width: 640px) {
  body.ep.pd .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.ep.pd .bl-im { --pad: 8px; }
  body.ep.pd .bl-meta { padding: 9px 11px 10px; }
  body.ep.pd .bl-meta h3 { font-size: 12.5px; }
  body.ep.pd .bl-series-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  body.ep.pd .bl-group-head { gap: 2px 10px; }
  body.ep.pd .bl-group-head h3 { font-size: 18px; }
  body.ep.pd .bl-group-head p { flex: 1 1 100%; order: 3; }
}
