/* ==========================================================
   产品详情页 part.html
   复用 style.css 的主色与变量
   ========================================================== */

.pd-page { padding-top: 72px; }
.pd-wrap { padding: 34px 0 0; }

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 22px;
}
.back-link:hover { color: var(--accent); }

/* ---------- 顶部：图集 + 关键信息 ---------- */
.pd-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: start;
}

.pd-main {
  height: 430px;
  background: #edf1f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pd-main img { width: 100%; height: 100%; object-fit: contain; }

.pd-thumbs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 12px;
}
.pd-thumb {
  width: 84px; height: 64px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #edf1f7;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
}
.pd-thumb:hover { border-color: #c9d4e3; }
.pd-thumb.is-active { border-color: var(--accent); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-head .part-flag {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 20px;
}
.pd-head .part-flag.is-muted { background: var(--primary); }

.pd-head h1 { font-size: 36px; line-height: 1.25; color: var(--primary); }
.pd-en { font-size: 13px; letter-spacing: 2px; color: var(--text-light); margin: 6px 0 14px; }
.pd-lead { font-size: 15px; color: var(--text-sub); line-height: 1.75; margin-bottom: 26px; }

.pd-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
}
.pd-kpi { background: #fff; padding: 14px 16px; }
.pd-kpi span { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 3px; }
.pd-kpi strong { font-size: 15px; color: var(--primary); font-weight: 600; }

.pd-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pd-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--line);
}
.pd-ghost:hover { border-color: var(--primary); background: rgba(11, 46, 89, .04); }

/* ---------- 内容区块 ---------- */
.pd-block { padding: 54px 0; border-top: 1px solid var(--line); }
.pd-block h2 { font-size: 26px; color: var(--primary); margin-bottom: 20px; }
.pd-desc p { font-size: 15px; color: var(--text-sub); line-height: 1.9; max-width: 900px; }
.pd-desc p + p { margin-top: 14px; }
.pd-note { font-size: 12px; color: var(--text-light); margin-top: 14px; }

/* 工序路线 */
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.route-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 14px;
  color: var(--text-main);
}
.route-step.is-outside { border-style: dashed; color: var(--text-light); }
.route-arrow { color: #c3ccda; font-size: 15px; }

/* 加工难点 */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.diff-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.diff-no { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--accent); }
.diff-card h3 { font-size: 17px; color: var(--primary); margin: 5px 0 8px; }
.diff-card p { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

/* 参数表 */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { background: var(--bg-light); color: var(--primary); width: 28%; font-weight: 600; }
.spec-table td { color: var(--text-sub); }

/* 底部 CTA */
.pd-cta {
  text-align: center;
  padding: 60px 24px 76px;
  background: var(--bg-light);
  border-radius: 14px;
  margin: 10px 0 80px;
}
.pd-cta h2 { font-size: 26px; color: var(--primary); margin-bottom: 10px; }
.pd-cta p { font-size: 15px; color: var(--text-sub); margin-bottom: 26px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .pd-hero { grid-template-columns: 1fr; gap: 34px; }
  .pd-main { height: 360px; }
  .diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pd-main { height: 260px; }
  .pd-head h1 { font-size: 27px; }
  .pd-block { padding: 40px 0; }
  .pd-block h2 { font-size: 22px; }
  .pd-thumb { width: 68px; height: 54px; }
  .pd-cta { margin-bottom: 56px; padding: 44px 20px 52px; }
  .pd-cta h2 { font-size: 22px; }
}
