/* =============================================================
   独立产品页 — 简洁双栏皮肤（css/product.css）
   挂载 <body class="ep pd">，依赖 style.css + editorial.css 变量
   页面结构：面包屑 → 主区（左图库 / 右参数）→ 相关产品
   ============================================================= */

body.ep.pd {
  font-family: var(--font-sans);
}

/* ---------- 面包屑 ---------- */
/* 分隔细线用伪元素绘制：直接给容器加 border-bottom 会撑出约 43px 的空白 */
body.ep.pd .pd-crumb { position: relative; background: #fff; }
body.ep.pd .pd-crumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ep-line-light);
}
body.ep.pd .pd-crumb .ep-crumb { margin-bottom: 0; padding: 12px 0; font-size: 13px; }

/* ---------- 主区：左图库 · 右参数 ---------- */
body.ep.pd .pd-main { background: #fff; padding: 46px 0 36px; }
body.ep.pd .pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px 64px;
  align-items: start;
}

/* 左：图库（复用 .p-gallery 布局骨架，尺寸放大、随滚动吸附） */
body.ep.pd .pd-media {
  position: sticky;
  top: calc(var(--header-h, 76px) + 28px);
  min-width: 0;
}
body.ep.pd .pd-gallery .p-stage { height: 450px; border-radius: 22px; }
body.ep.pd .pd-gallery .p-main-img { max-height: 392px; }
body.ep.pd .pd-gallery .p-caption { margin-top: 12px; font-size: 12.5px; line-height: 1.6; }
/* 白底实景图（触控气站柜）：正片叠底融入展台渐变，避免出现白色图块边框 */
body.ep.pd .pd-gallery .p-main-img[src$="station-3.webp"] { mix-blend-mode: multiply; filter: none; }

/* 单图轮播：每次只显示当前图片 */
body.ep.pd .p-gallery-carousel .p-gallery-slide[hidden] { display: none; }
body.ep.pd .p-gallery-carousel .p-main-img { max-width: calc(100% - 64px); }
body.ep.pd .p-gallery-label {
  position: absolute;
  top: 21px;
  left: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #64758b;
}
body.ep.pd .p-gallery-nav {
  position: absolute;
  z-index: 4;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9e3ed;
  border-radius: 50%;
  color: var(--ep-blue);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 3px 12px rgba(24, 55, 88, .07);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
body.ep.pd .p-gallery-prev { left: 12px; }
body.ep.pd .p-gallery-next { right: 12px; }
body.ep.pd .p-gallery-nav svg { width: 20px; height: 20px; }
body.ep.pd .p-gallery-prev svg { transform: rotate(180deg); }
body.ep.pd .p-gallery-nav:hover { color: #fff; background: var(--ep-blue); border-color: var(--ep-blue); }
body.ep.pd .p-gallery-count {
  position: absolute;
  z-index: 3;
  top: 21px;
  right: 24px;
  color: var(--ep-ink);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  pointer-events: none;
}
body.ep.pd .p-gallery-count span { color: #8391a4; font-weight: 400; }
body.ep.pd .p-gallery-carousel .p-stage:focus-visible,
body.ep.pd .p-gallery-nav:focus-visible { outline: 2px solid var(--ep-blue); outline-offset: 4px; }

/* 右：产品信息 */
body.ep.pd .pd-info { min-width: 0; }
body.ep.pd .pd-title {
  font-size: clamp(28px, 2.9vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ep-ink);
  margin: 0;
}
body.ep.pd .pd-title .pd-code {
  font-size: 0.56em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ep-mute);
  white-space: nowrap;
  margin-left: 2px;
}
body.ep.pd .pd-title .pd-new {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ep-blue);
  background: rgba(0, 102, 204, 0.06);
  border: 1px solid rgba(0, 102, 204, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
  vertical-align: 0.5em;
  margin-left: 8px;
  white-space: nowrap;
}
body.ep.pd .pd-tagline {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ep-body);
}
body.ep.pd .pd-tagline strong { color: var(--ep-ink); font-weight: 600; }

/* 参数表 */
body.ep.pd .pd-spec-block { margin-top: 30px; }
body.ep.pd .pd-spec-h {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ep-ink);
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ep-ink);
}
body.ep.pd .pd-spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.ep.pd .pd-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
body.ep.pd .pd-spec-table thead th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ep-mute);
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--ep-line);
}
body.ep.pd .pd-spec-table tbody th {
  width: 160px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ep-body);
  padding: 12px 14px 12px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--ep-line-light);
}
body.ep.pd .pd-spec-table tbody td {
  color: var(--ep-ink);
  padding: 12px 0 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--ep-line-light);
}
body.ep.pd .pd-spec-table tbody tr:hover th,
body.ep.pd .pd-spec-table tbody tr:hover td { background: #fafcff; }
body.ep.pd .pd-spec-table tbody tr:last-child th,
body.ep.pd .pd-spec-table tbody tr:last-child td { border-bottom: none; }
body.ep.pd .pd-spec-table td strong,
body.ep.pd .pd-spec-table th strong { color: var(--ep-ink); font-weight: 600; }

/* 紧凑参数区：短项两列并排、长项整行铺满，把整组参数压进首屏 */
body.ep.pd.pd-compact .pd-main { padding: 30px 0 30px; }
body.ep.pd.pd-compact .pd-tagline { margin-top: 10px; line-height: 1.65; }
/* 图库整列拉伸，使图片底部与右侧参数底部齐平 */
body.ep.pd.pd-compact .pd-layout { align-items: stretch; }
body.ep.pd.pd-compact .pd-media {
  position: static;
  display: flex;
  flex-direction: column;
}
body.ep.pd.pd-compact .pd-media .p-gallery { flex: 1; }
body.ep.pd.pd-compact .pd-gallery .p-stage { flex: 1; }
body.ep.pd .pd-spec-block.is-compact { margin-top: 24px; }
body.ep.pd .pd-spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ep-ink);
}
body.ep.pd .pd-spec-head .pd-spec-h { margin: 0; padding: 0; border: none; }
body.ep.pd .pd-spec-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ep-blue);
}
body.ep.pd .pd-spec-dl svg { width: 15px; height: 15px; }
body.ep.pd .pd-spec-dl em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ep-mute);
}
body.ep.pd .pd-spec-dl:hover span { text-decoration: underline; }

body.ep.pd .pd-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
}
body.ep.pd .pd-spec-item {
  min-width: 0;
  padding: 6px 0 5px;
  border-bottom: 1px solid var(--ep-line-light);
}
body.ep.pd .pd-spec-item.is-wide { grid-column: 1 / -1; }
body.ep.pd .pd-spec-k {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ep-ink);
}
body.ep.pd .pd-spec-v {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ep-body);
  text-wrap: pretty;
}
/* 紧凑对比参数区：标签列 + 多机型列（A15 / A30 同屏对照） */
body.ep.pd .pd-spec-cmp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 30px;
}
body.ep.pd .pd-spec-cmp > * {
  min-width: 0;
  padding: 6px 0 5px;
  border-bottom: 1px solid var(--ep-line-light);
}
body.ep.pd .pd-spec-cmp .pd-spec-k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ep-ink);
}
body.ep.pd .pd-spec-cmp .pd-spec-v {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ep-body);
  text-wrap: pretty;
}
body.ep.pd .pd-spec-cmp .pd-spec-v.is-span-2 { grid-column: 2 / -1; }
body.ep.pd .pd-spec-cmp .is-cmp-head {
  padding-top: 2px;
  padding-bottom: 6px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ep-mute);
}
body.ep.pd .pd-spec-cmp .pd-spec-cmp-model {
  padding-top: 2px;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ep-ink);
}
/* 表头是属性名（尺寸 / 压力等）时，与首列标题同级，避免和行标签抢注意力 */
body.ep.pd .pd-spec-cmp.is-attr .pd-spec-cmp-model {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ep-mute);
}
body.ep.pd .pd-spec-cmp .pd-spec-v strong,
body.ep.pd .pd-spec-cmp .pd-spec-v b { font-weight: 400; color: inherit; }

/* 参数正文保持常规字重，仅标题加粗 */
body.ep.pd .pd-spec-v strong,
body.ep.pd .pd-spec-v b { font-weight: 400; color: inherit; }
body.ep.pd .pd-spec-v .pd-inline-link { font-weight: 400; }
body.ep.pd .pd-spec-item.is-note { padding-top: 8px; line-height: 1.45; border-bottom: none; }
body.ep.pd .pd-spec-item.is-note .pd-spec-k { display: inline; margin: 0 8px 0 0; }
body.ep.pd .pd-spec-item.is-note .pd-spec-v { display: inline; font-size: 12.5px; color: var(--ep-body); }
body.ep.pd .pd-spec-grid .pd-model-list { gap: 1px; line-height: 1.45; }
body.ep.pd .pd-spec-grid .pd-model-list b { flex-basis: 56px; color: var(--ep-ink); font-weight: 400; }
body.ep.pd .pd-spec-grid .pd-model-list span { font-size: 12.5px; color: var(--ep-body); }

/* 型号序列：左型号 / 右说明，逐行对齐 */
body.ep.pd .pd-model-list { display: grid; gap: 3px; }
body.ep.pd .pd-model-list > div { display: flex; align-items: baseline; gap: 10px; }
body.ep.pd .pd-model-list b {
  flex: 0 0 64px;
  font-weight: 600;
  color: var(--ep-ink);
  white-space: nowrap;
}
body.ep.pd .pd-model-list span { color: var(--ep-body); }

body.ep.pd .pd-inline-link { color: var(--ep-blue); font-weight: 500; }
body.ep.pd .pd-inline-link:hover { text-decoration: underline; }

/* 操作按钮 */
body.ep.pd .pd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--ep-line-light);
}
body.ep.pd .pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--ep-blue);
  border-radius: 999px;
  padding: 12px 28px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
body.ep.pd .pd-btn:hover { background: #004fa3; transform: translateY(-1px); }
body.ep.pd .pd-btn.ghost {
  color: var(--ep-ink);
  background: #fff;
  border: 1px solid var(--ep-line);
  padding: 11px 22px;
}
body.ep.pd .pd-btn.ghost:hover { border-color: rgba(0, 102, 204, 0.45); background: rgba(0, 102, 204, 0.03); }
body.ep.pd .pd-btn.ghost svg { width: 15px; height: 15px; color: var(--ep-blue); flex-shrink: 0; }
body.ep.pd .pd-btn.ghost span { font-size: 12px; font-weight: 400; color: var(--ep-mute); }

/* ---------- 相关产品 ---------- */
body.ep.pd .pd-related { background: var(--ep-alt); padding: 36px 0 36px; }
body.ep.pd .pd-related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ep-line);
}
body.ep.pd .pd-related-head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ep-ink);
  margin: 0;
}
body.ep.pd .pd-all { font-size: 13.5px; font-weight: 600; color: var(--ep-blue); white-space: nowrap; }
body.ep.pd .pd-all:hover { text-decoration: underline; }

body.ep.pd .pd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
body.ep.pd .pd-related-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
body.ep.pd .pd-rel-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ep-line-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(9, 36, 66, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.ep.pd .pd-rel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(9, 36, 66, 0.10);
}
body.ep.pd .pd-rel-im {
  height: 148px;
  background: linear-gradient(180deg, #fafafa 0%, var(--ep-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
body.ep.pd .pd-rel-im img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(9, 36, 66, 0.10));
}
/* 竖幅设备图（气体纯化设备）：一行 5 张，图版改 1:1 并压低高度，避免左右大片空白 */
body.ep.pd .pd-related.tall .pd-related-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
body.ep.pd .pd-related.tall .pd-rel-im {
  position: relative;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 280px;
  padding: 0;
}
body.ep.pd .pd-related.tall .pd-rel-im img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 86%;
}
body.ep.pd .pd-rel-body {
  padding: 15px 18px 17px;
  border-top: 1px solid var(--ep-line-light);
}
body.ep.pd .pd-rel-body em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ep-blue);
  margin-bottom: 6px;
}
body.ep.pd .pd-rel-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ep-ink);
  margin: 0 0 4px;
}
body.ep.pd .pd-rel-body span {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13.5px;
  color: var(--ep-mute);
}
body.ep.pd .pd-rel-body span::after {
  content: "›";
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s ease;
}
body.ep.pd .pd-rel-card:hover span::after { transform: translateX(3px); color: var(--ep-blue); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  body.ep.pd .pd-main { padding: 34px 0 32px; }
  body.ep.pd .pd-layout { grid-template-columns: 1fr; gap: 34px; }
  body.ep.pd .pd-media { position: static; max-width: 560px; width: 100%; margin: 0 auto; }
  body.ep.pd .pd-gallery .p-stage { height: 380px; }
  body.ep.pd .pd-gallery .p-main-img { max-height: 330px; }
  body.ep.pd .pd-related { padding: 32px 0 32px; }
  body.ep.pd .pd-related-grid,
  body.ep.pd .pd-related-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  body.ep.pd .pd-related.tall .pd-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ep.pd .pd-related.tall .pd-rel-im { aspect-ratio: 1 / 1; max-height: none; }
}

@media (max-width: 640px) {
  body.ep.pd .p-gallery-label { top: 18px; left: 18px; font-size: 11px; }
  body.ep.pd .p-gallery-count { top: 18px; right: 18px; font-size: 11px; }
  body.ep.pd .p-gallery-prev { left: 8px; }
  body.ep.pd .p-gallery-next { right: 8px; }
  body.ep.pd .pd-crumb .ep-crumb { padding: 11px 0; font-size: 12px; }
  body.ep.pd .pd-main { padding: 24px 0 26px; }
  body.ep.pd .pd-gallery .p-stage { height: 270px; padding: 16px; }
  body.ep.pd .pd-gallery .p-main-img { max-height: 232px; }
  body.ep.pd .pd-spec-block { margin-top: 24px; }
  body.ep.pd .pd-spec-table { font-size: 13px; }
  body.ep.pd .pd-spec-table tbody th {
    display: block;
    width: auto;
    padding-bottom: 3px;
  }
  body.ep.pd .pd-spec-table tbody td { display: block; padding-top: 0; padding-left: 0; }
  body.ep.pd .pd-spec-table thead { display: none; }
  body.ep.pd .pd-spec-table tbody td[data-head]::before {
    content: attr(data-head) "：";
    font-weight: 600;
    color: var(--ep-ink);
  }
  body.ep.pd .pd-spec-table tbody tr {
    display: block;
    border-bottom: 1px solid var(--ep-line-light);
    padding: 11px 0;
  }
  body.ep.pd.pd-compact .pd-main { padding: 24px 0 26px; }
  body.ep.pd .pd-spec-head { flex-wrap: wrap; gap: 4px 14px; }
  body.ep.pd .pd-spec-grid { grid-template-columns: 1fr; }
  body.ep.pd .pd-spec-cmp { column-gap: 16px; }
  body.ep.pd .pd-spec-cmp .pd-spec-cmp-model { font-size: 11px; letter-spacing: 0; }
  body.ep.pd .pd-actions { flex-direction: column; align-items: stretch; }
  body.ep.pd .pd-btn { justify-content: center; white-space: normal; text-align: center; line-height: 1.45; }
  body.ep.pd .pd-related { padding: 26px 0 26px; }
  body.ep.pd .pd-related-head { margin-bottom: 20px; }
  body.ep.pd .pd-related-grid { gap: 12px; }
  body.ep.pd .pd-rel-im { height: 108px; padding: 10px; }
  body.ep.pd .pd-related.tall .pd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ep.pd .pd-related.tall .pd-rel-im { height: auto; aspect-ratio: 1 / 1; }
  body.ep.pd .pd-rel-body { padding: 12px 14px 14px; }
}

