/* =============================================================
   智能制造装备独立详情页扩展（css/smart-product.css）
   挂载 <body class="ep pd">，叠加于 style.css + editorial.css + product.css
   扩展块：品类眉题 / 标签组 / 装备简介 / 关键指标格 / 核心特性 / 备注条
   ============================================================= */

/* 主区下边距收窄，为下方特性区留出节奏 */
body.ep.pd .pd-main { padding-bottom: 36px; }

/* 品类眉题 */
body.ep.pd .pd-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ep-blue);
  margin: 0 0 14px;
}
body.ep.pd .pd-cat small {
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ep-mute);
  margin-left: 8px;
}

/* 标签组 */
body.ep.pd .pd-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.ep.pd .pd-tags span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ep-body);
  background: var(--ep-alt);
  border: 1px solid var(--ep-line-light);
  border-radius: 999px;
  padding: 4px 12px;
}

/* 装备简介 */
body.ep.pd .pd-desc {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ep-body);
}
body.ep.pd .pd-desc strong { color: var(--ep-ink); font-weight: 600; }

/* 关键指标格（2×2，细线分隔） */
body.ep.pd .pd-kpis {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ep-alt);
  border-radius: 16px;
  overflow: hidden;
}
body.ep.pd .pd-kpi { padding: 15px 22px; min-width: 0; }
body.ep.pd .pd-kpi:nth-child(2) { border-left: 1px solid var(--ep-line-light); }
body.ep.pd .pd-kpi:nth-child(3) { border-top: 1px solid var(--ep-line-light); }
body.ep.pd .pd-kpi:nth-child(4) { border-top: 1px solid var(--ep-line-light); border-left: 1px solid var(--ep-line-light); }
body.ep.pd .pd-kpi b {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ep-ink);
  font-variant-numeric: tabular-nums;
}
body.ep.pd .pd-kpi span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ep-mute);
}

/* ---------- 核心特性区 ---------- */
body.ep.pd .pd-feats-sec { background: #fff; padding: 0 0 92px; }
body.ep.pd .pd-feats-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ep-ink);
  margin-bottom: 0;
}
body.ep.pd .pd-feats-head h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ep-ink);
  margin: 0;
}
body.ep.pd .pd-feats-head span { font-size: 12.5px; color: var(--ep-mute); }

body.ep.pd .pd-feats {
  counter-reset: pdfeat;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
body.ep.pd .pd-feat { padding: 20px 0 6px; border-bottom: 1px solid var(--ep-line-light); min-width: 0; }
body.ep.pd .pd-feats .pd-feat:last-child,
body.ep.pd .pd-feats .pd-feat:nth-last-child(2):nth-child(odd) { border-bottom: none; }
body.ep.pd .pd-feat h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ep-ink);
  margin: 0 0 7px;
}
body.ep.pd .pd-feat h3::before {
  counter-increment: pdfeat;
  content: counter(pdfeat, decimal-leading-zero);
  font-size: 12px;
  font-weight: 600;
  color: var(--ep-blue);
  font-variant-numeric: tabular-nums;
}
body.ep.pd .pd-feat p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ep-body);
}

/* 能力指标卡：标题 + 指标 + 说明 */
body.ep.pd .pd-kpi h3 {
  margin: 0 0 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--ep-blue);
}

/* 备注条（交付说明 / 关联动态） */
body.ep.pd .pd-note {
  margin-top: 30px;
  padding: 14px 18px;
  background: var(--ep-alt);
  border-left: 3px solid var(--ep-blue);
  border-radius: 0 12px 12px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ep-body);
}

/* 相关装备区微调：卡图更高以适配装备照片比例。
   仅非紧凑详情页（智能装备）生效，避免影响同样加载本文件的阀门管件页。 */
body.ep.pd:not(.pd-compact) .pd-rel-im { height: 158px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  body.ep.pd .pd-feats-sec { padding-bottom: 60px; }
  body.ep.pd .pd-feats { grid-template-columns: 1fr; gap: 0; }
  body.ep.pd .pd-feat { border-bottom: 1px solid var(--ep-line-light); }
  body.ep.pd .pd-feats .pd-feat:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  body.ep.pd .pd-main { padding-bottom: 32px; }
}
@media (max-width: 640px) {
  body.ep.pd .pd-main { padding-bottom: 26px; }
  body.ep.pd .pd-kpi { padding: 12px 16px; }
  body.ep.pd .pd-kpi b { font-size: 17px; }
  body.ep.pd .pd-note { margin-top: 24px; }
  body.ep.pd .pd-feats-sec { padding-bottom: 48px; }
  body.ep.pd:not(.pd-compact) .pd-rel-im { height: 118px; }
}


/* ---------- 主区左右等高（智能制造装备详情页） ---------- */
/* 左图库按右栏内容高度伸缩：整列上下边缘与右侧标题、说明齐平，图片在框内按可用高度居中缩放 */
@media (min-width: 1081px) {
  body.ep.pd .pd-layout.pd-eq { align-items: stretch; }
  body.ep.pd .pd-layout.pd-eq .pd-media { min-height: 0; }
  body.ep.pd .pd-layout.pd-eq .pd-media .p-gallery {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
  }
  body.ep.pd .pd-layout.pd-eq .pd-gallery .p-stage {
    flex: 1;
    height: auto;
    min-height: 0;
  }
  body.ep.pd .pd-layout.pd-eq .pd-gallery .p-main-img { max-height: 100%; }
}
