/* ==========================================================================
   product-detail.css
   产品详情页专属样式。由 products/_TEMPLATE.html 通过 <link> 引用。
   抽离自模板内联 <style>，目的是让 3000+ 个详情页共享同一份样式，
   浏览器缓存命中后不再重复下载。

   依赖 main.css 中的 CSS 变量（--blue-*、--navy-*、--ink-*、--line 等）。
   ========================================================================== */

.pd-wrap { max-width: 1080px; margin: 0 auto; }

/* ---------- 分节节奏 ----------
   详情页由三段连续 .section 拼成，靠这三个修饰符收掉多余的内边距，
   使标题区与正文区连成一体（原先写在模板的 style="" 里）。 */
.pd-hero     { padding-bottom: 0; }
.pd-main     { padding-top: 14px; }
.pd-sections { padding-top: 0; }
.pd-crumb    { margin-bottom: 22px; }

/* ---------- 页头：标题区 + 速览参数卡 ---------- */
.pd-head { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; margin-bottom: 44px; }
.pd-eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 12px; }
.pd-title { font-size: 2.1rem; line-height: 1.2; margin-bottom: 10px; color: var(--navy-900); }
.pd-brandline { font-size: .92rem; color: var(--ink-500); margin-bottom: 18px; }
.pd-overview { font-size: 1.05rem; line-height: 1.75; color: var(--ink-700); }

.pd-quick { background: var(--blue-50); border: 1px solid #d6e6fa; border-radius: var(--radius-lg); padding: 26px 28px; }
/* 侧栏小标题是构件标签，不是章节标题；若用 h3 会出现在首个 h2 之前，造成 h1→h3 跳级 */
.pd-quick .pd-quick-title { font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-700); margin: 0 0 14px; font-weight: 700; line-height: 1.22; }
.pd-quick dl { margin: 0; }
.pd-quick dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(26,111,212,.13); font-size: .89rem; }
.pd-quick dl > div:last-child { border-bottom: 0; }
.pd-quick dt { color: var(--ink-500); }
.pd-quick dd { margin: 0; font-weight: 600; color: var(--navy-800); text-align: right; }
.pd-quick .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.pd-quick .btn { width: 100%; justify-content: center; }

/* ---------- 通用区块 ---------- */
.pd-section { margin-bottom: 46px; }
.pd-section > h2 { font-size: 1.3rem; color: var(--navy-900); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--blue-500); display: inline-block; }
.pd-subhead { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 10px; }

/* ---------- 特性 / 应用列表 ---------- */
.pd-features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.pd-features li { position: relative; padding-left: 26px; font-size: .96rem; line-height: 1.6; color: var(--ink-700); }
.pd-features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue-500); }

.pd-apps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; }
.pd-apps li { position: relative; padding-left: 22px; font-size: .95rem; line-height: 1.6; color: var(--ink-700); }
.pd-apps li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); }

/* ---------- 规格参数表 ---------- */
.pd-specgroup { margin-bottom: 26px; }
.pd-specgroup h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 10px; }
.pd-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.pd-table th, .pd-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.pd-table th { color: var(--ink-500); font-weight: 500; width: 42%; background: var(--surface-2); }
.pd-table td { color: var(--ink-900); }
.pd-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }

/* ---------- 参数免责说明 ---------- */
.pd-note { margin-top: 22px; background: var(--surface-2); border-left: 3px solid var(--blue-500); padding: 18px 22px; font-size: .92rem; line-height: 1.65; color: var(--ink-700); border-radius: 0 var(--radius) var(--radius) 0; }
.pd-note strong { color: var(--navy-800); }

/* ---------- 替代型号徽标 ---------- */
.pd-alt { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-alt a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; color: var(--navy-700); text-decoration: none; transition: all .15s; }
.pd-alt a:hover { border-color: var(--blue-500); color: var(--blue-500); background: var(--blue-50); }
/* 「替代型号」区块的导语 */
.pd-alt-lead { color: var(--ink-700); margin-bottom: 16px; font-size: .95rem; }

/* ---------- 相关型号卡片 ---------- */
.pd-rel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pd-rel a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: all .15s; background: var(--surface-1); }
.pd-rel a:hover { border-color: var(--blue-500); box-shadow: 0 6px 20px rgba(10,28,51,.08); }
.pd-rel .t { font-weight: 600; color: var(--navy-900); font-size: .97rem; line-height: 1.4; margin-bottom: 6px; }
.pd-rel .d { font-size: .86rem; color: var(--ink-500); line-height: 1.55; }

/* ---------- 相关产品（同系列 / 同分类同品牌自动生成）---------- */
.pd-relprods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-relprods .rp-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: var(--surface-1); transition: all .15s;
}
.pd-relprods .rp-card:hover { border-color: var(--blue-500); background: var(--blue-50); }
.pd-relprods .rp-model {
  font-family: var(--mono); font-size: .88rem; font-weight: 700;
  color: var(--navy-900); word-break: break-all; line-height: 1.35;
}
.pd-relprods .rp-card:hover .rp-model { color: var(--blue-500); }
.pd-relprods .rp-meta { font-size: .76rem; color: var(--ink-500); line-height: 1.4; }
.pd-relprods .rp-why {
  font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-400); margin-top: 4px;
}

/* ---------- 底部询价区块 ---------- */
.pd-cta { background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 60%, #1a4b80); border-radius: var(--radius-lg); padding: 38px 36px; color: #cbd8e8; }
.pd-cta h2 { color: #fff; font-size: 1.35rem; margin-bottom: .4em; border: 0; }
.pd-cta p { color: #a9c1da; margin-bottom: 20px; font-size: .96rem; max-width: 620px; }
.pd-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Overview 正文 ----------
   由 insights/gen_copy.py 按真实参数逐页生成，内容每页不同。
   手工维护的主推产品没有 body 字段，此时容器为空，靠 :empty 直接隐藏，
   不占版面。 */
.pd-body { margin: 0 0 26px; }
.pd-body p {
  margin: 0 0 14px;
  color: var(--ink-700);
  font-size: .96rem;
  line-height: 1.75;
}
.pd-body p:last-child { margin-bottom: 0; }
.pd-body:empty { display: none; margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .pd-head { grid-template-columns: 1fr; gap: 30px; }
  .pd-features, .pd-apps, .pd-rel, .pd-cols { grid-template-columns: 1fr; }
  .pd-relprods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-title { font-size: 1.65rem; }
}

@media (max-width: 560px) {
  .pd-relprods { grid-template-columns: minmax(0, 1fr); }
}
