/* ==========================================================================
   产品详情页 · pdp.css
   结构参考电商型产品页：左图库 / 中信息 / 右工程支持，下方标签页 + 侧栏推荐
   最后加载（在 theme.css 之后），仅在 .pdp 命名空间内生效
   ========================================================================== */

/* ---------- 0. 容器 ---------- */
.pdp {
  padding: clamp(16px, 2.2vw, 30px) 0 clamp(22px, 2.8vw, 36px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.pdp-top {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr) 258px;
  gap: clamp(20px, 2.4vw, 36px);
  align-items: stretch;
}

/* ---------- 1. 图库 ---------- */
.pdp-gal {
  min-width: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
}
.pdp-gal__stage {
  position: relative;
  aspect-ratio: 1 / 1.08;
  min-height: 300px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
}
.pdp-gal__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4%;
  opacity: 0;
  transition: opacity .32s var(--ease);
}
.pdp-gal__stage img.is-on { opacity: 1; }
.pdp-gal__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5E5A00;
  background: rgba(242, 242, 36, .92);
  border-radius: 2px;
}
.pdp-gal__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.pdp-th {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #FBFBF8;
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pdp-th img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  opacity: .78;
  transition: opacity .2s var(--ease);
}
.pdp-th:hover { border-color: var(--line-2); }
.pdp-th:hover img { opacity: 1; }
.pdp-th[aria-pressed="true"] {
  border-color: var(--brand-d);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.pdp-th[aria-pressed="true"] img { opacity: 1; }

/* ---------- 2. 信息区 ---------- */
.pdp-info { min-width: 0; }
.pdp-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-d);
}
.pdp-kicker::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.pdp-info h1 {
  margin: 12px 0 0;
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -.028em;
  color: var(--ink);
}
.pdp-info h1 em {
  display: block;
  margin-top: 7px;
  font-size: .5em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
}
.pdp-sub {
  margin-top: 10px;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.pdp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.pdp-chips li {
  padding: 5px 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #5E5A00;
  background: var(--brand-l);
  border: 1px solid var(--brand-line);
  border-radius: 2px;
}

.pdp-spec {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.pdp-spec > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.pdp-spec dt {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.pdp-spec dd {
  font-size: 13.5px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: break-word;
}

.pdp-tax {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-3);
}
.pdp-tax b { font-weight: 500; color: var(--ink-2); }
.pdp-tax a {
  color: var(--brand-d);
  border-bottom: 1px solid transparent;
}
.pdp-tax a:hover { border-bottom-color: var(--brand-d); }
.pdp-tax i { color: var(--line-2); font-style: normal; }

.pdp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.pdp-cta .btn { height: 46px; padding: 0 22px; }
.pdp-cta .btn--primary {
  background: var(--brand) !important;
  color: var(--ink) !important;
  border: 1px solid #DBDA0C;
  box-shadow: none;
  font-weight: 700;
}
.pdp-cta .btn--primary:hover {
  background: var(--brand-hi) !important;
  color: var(--ink) !important;
}
.pdp-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 3. 右侧工程支持 ---------- */
.pdp-aside {
  align-self: start;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.pdp-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  padding: 16px 16px 18px;
}
.pdp-card > h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}
.pdp-card--dark {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
  padding: 0 0 16px;
  overflow: hidden;
}
.pdp-card--dark > h4 {
  margin-bottom: 14px;
  padding: 9px 16px;
  background: var(--brand);
  color: var(--ink);
  font-size: 12.5px;
  letter-spacing: .06em;
}
.pdp-card--dark > *:not(h4) { margin-left: 16px; margin-right: 16px; }
.pdp-card--dark p {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .72);
}
.pdp-tel {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--brand);
}
.pdp-tel:hover { color: var(--brand-hi); }
.pdp-card__sm {
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
}
.pdp-card--dark .btn {
  margin-top: 14px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
}
.pdp-assure {
  display: grid;
  gap: 5px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.pdp-assure li {
  position: relative;
  padding-left: 14px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .62);
}
.pdp-assure li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
}
.pdp-links { margin-top: 2px; }
.pdp-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.pdp-links a:last-child { border-bottom: 0; padding-bottom: 0; }
.pdp-links a em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
}
.pdp-links a:hover { color: var(--brand-dd); }

/* ---------- 4. 标签页 + 内容 ---------- */
.pdp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: clamp(24px, 3.2vw, 46px);
  margin-top: clamp(24px, 3vw, 40px);
  align-items: start;
}
.pdp-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.pdp-tabs::-webkit-scrollbar { display: none; }
.pdp-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.pdp-tab:first-child { padding-left: 2px; }
.pdp-tab:hover { color: var(--ink); }
.pdp-tab[aria-selected="true"] { color: var(--ink); }
.pdp-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--brand);
}
.pdp-tab:first-child[aria-selected="true"]::after { left: 2px; }
.pdp-panel { padding-top: clamp(20px, 2.4vw, 30px); }
.pdp-panel[hidden] { display: none; }
.pdp-panel > .aio { margin-bottom: clamp(20px, 2.4vw, 30px); }
.pdp-panel .block + .block { margin-top: clamp(30px, 3.4vw, 46px) !important; }
.pdp-panel .block > h2 { font-size: clamp(19px, 1.9vw, 24px) !important; }
.pdp-panel .g3,
.pdp-panel .g4 { gap: 0 clamp(18px, 2.2vw, 30px); }
.pdp-panel .card { padding: 18px 18px 18px 0 !important; }
.pdp-panel .card:first-child { padding-left: 0 !important; }
.pdp-panel .pd-fig,
.pdp-panel .pd-pair { margin-top: clamp(18px, 2.2vw, 26px); }
.pdp-panel .pd-fig { max-width: 744px; }
.pdp-panel .pd-fig figcaption { max-width: 744px; }
.pdp-panel .aio { max-width: 880px; }
.pdp-panel .prose p + p { margin-top: 12px; }

/* 规格参数表（详情页口径） */
.pdp-panel table th {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: #FAFAF6;
}
.pdp-panel table td { font-size: 13.5px; }
.pdp-panel table td.n { font-weight: 600; color: var(--ink); width: 132px; }

/* 侧栏推荐 */
.pdp-reco { position: sticky; top: 92px; min-width: 0; }
.pdp-reco__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.pdp-reco__hd h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}
.pdp-reco__hd em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.pdp-reco__list a {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pdp-reco__list img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  padding: 4px;
  background: #FAFAF6;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.pdp-reco__list b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.pdp-reco__list span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.pdp-reco__list a:hover b { color: var(--brand-dd); }
.pdp-reco__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-d);
  border-bottom: 1px solid var(--brand-line);
  padding-bottom: 2px;
}
.pdp-reco__more:hover { border-bottom-color: var(--brand-d); }

/* ---------- 5. 上一款 / 下一款 ---------- */
.pdp .pager { margin-top: clamp(28px, 3.4vw, 44px); }

/* ---------- 6. 响应式 ---------- */
@media (max-width: 1200px) {
  .pdp-top { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
  .pdp-aside {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pdp-body { grid-template-columns: minmax(0, 1fr) 250px; }
}
@media (max-width: 980px) {
  .pdp-top { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; }
  .pdp-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp-body { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pdp-reco { position: static; }
  .pdp-reco__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
@media (max-width: 860px) {
  .pdp-top { grid-template-columns: minmax(0, 1fr); }
  .pdp-gal__stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .pdp { padding-top: 12px; }
  .pdp-top { grid-template-columns: minmax(0, 1fr); }
  .pdp-gal__stage { aspect-ratio: 5 / 4; }
  .pdp-info h1 { font-size: clamp(24px, 6.4vw, 30px); }
  .pdp-info h1 em {
  display: block;
  margin-top: 7px;
  font-size: .5em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
}
.pdp-sub { font-size: 14px; }
  .pdp-spec > div { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
  .pdp-cta { display: grid; grid-template-columns: 1fr 1fr; }
  .pdp-cta .btn { padding: 0 10px; font-size: 13.5px; }
  .pdp-aside { grid-template-columns: minmax(0, 1fr); }
  .pdp-card--dark { order: -1; }
  .pdp-tab { padding: 12px 16px; font-size: 13.5px; }
  .pdp-tab:first-child { padding-left: 0; }
  .pdp-panel .card { padding: 16px 0 !important; }
  .pdp-panel table td.n { width: 96px; }
  .pdp-reco__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .pdp-cta { grid-template-columns: minmax(0, 1fr); }
  .pdp-gal__thumbs { gap: 6px; }
}
