/* ============================================================
   product/detail.css —— 产品详情页板块样式（源自设计稿 assets/site.css 的 pdp-* 段）
   配套模板：product-content.html / product/product-content.html
   变量已映射到本站：--o / --r / --muted / --line / --ink
   ============================================================ */

.pdp-intro {
  padding-top: 88px;
}
.pdp-intro-breadcrumb {
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--muted);
}
.pdp-intro-breadcrumb a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pdp-intro-breadcrumb a:hover,
.pdp-intro-breadcrumb a:focus-visible {
  color: var(--o);
  text-decoration: none;
}
.pdp-intro-breadcrumb .pdp-breadcrumb-separator {
  color: #a29ca5;
}
.pdp-intro-breadcrumb .pdp-breadcrumb-current {
  min-width: 0;
  color: var(--o);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pdp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  grid-template-areas:
    "media copy"
    "thumbnails .";
  align-items: start;
  column-gap: 16px;
  row-gap: 32px;
  padding-right: clamp(12px, 2vw, 30px);
}
.pdp-media-column {
  display: contents;
}
.pdp-main-media {
  grid-area: media;
}
.pdp-media-thumbnails {
  grid-area: thumbnails;
}
.pdp-hero-copy {
  grid-area: copy;
  position: relative;
  left: -76px;
  align-self: center;
}
.pdp-main-media,
.pdp-media-thumbnails {
  width: min(88%, 650px);
}
.pdp-main-media {
  min-height: 560px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.pdp-main-media img:not([hidden]) {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}
.pdp-main-media img[hidden] {
  display: none;
}
.pdp-main-video {
  display: block;
  width: 100%;
  max-height: 560px;
  background: #111;
}
.pdp-media-thumbnails {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: thin;
}
.pdp-media-thumbnail {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pdp-media-thumbnail:hover,
.pdp-media-thumbnail:focus-visible,
.pdp-media-thumbnail[aria-pressed="true"] {
  border-color: var(--o);
}
.pdp-media-thumbnail[aria-pressed="true"] {
  box-shadow: inset 0 -3px 0 var(--o);
}
.pdp-media-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.pdp-video-thumbnail {
  position: relative;
}
.pdp-video-thumbnail::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(14, 26, 35, 0.35);
  pointer-events: none;
}
.pdp-video-play-icon {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--o);
  pointer-events: none;
}
.pdp-video-play-icon::after {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
  content: "";
}
.pdp-hero-copy h2 {
  margin-bottom: 22px;
}
.pdp-category {
  margin-bottom: 12px;
  color: var(--o);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}
.pdp-summary,
.pdp-section-head p {
  color: var(--muted);
  line-height: 1.75;
}
.pdp-summary {
  margin-bottom: 24px;
  font-size: 16px;
}
.pdp-use-cases {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 30px;
  margin-bottom: 0;
}
.pdp-use-cases-label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pdp-use-case-list {
  min-width: 0;
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pdp-use-case {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(230, 92, 26, 0.3);
  border-radius: var(--r);
  background: rgba(248, 120, 63, 0.07);
  color: var(--o);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
.pdp-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.pdp-product-actions .btn {
  flex: 0 1 auto;
}
.pdp-product-actions .pdp-download-button {
  border-color: #b84b25;
  background: #b84b25;
  color: #fff;
  white-space: nowrap;
}
.pdp-product-actions .pdp-download-button:hover,
.pdp-product-actions .pdp-download-button:focus-visible {
  border-color: #9f3e21;
  background: #9f3e21;
  color: #fff;
}
@media (min-width: 1181px) {
  .pdp-use-cases,
  .pdp-use-case-list {
    flex-wrap: nowrap;
  }
}
.pdp-whatsapp-button {
  border-color: #25d366;
  background: #25d366;
  color: #fff;
}
.pdp-whatsapp-button:hover,
.pdp-whatsapp-button:focus-visible {
  border-color: #1fb659;
  background: #1fb659;
  color: #fff;
}
.pdp-resources {
  margin-top: 24px;
}
.pdp-resources-heading {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pdp-resource-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pdp-resource-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #d8d5d2;
  border-radius: var(--r);
  background: #fff;
  color: #252525;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pdp-resource-trigger:hover,
.pdp-resource-trigger:focus-visible {
  border-color: #b84b25;
  background: #b84b25;
  color: #fff;
  text-decoration: none;
}
.pdp-resource-trigger:focus-visible {
  outline: 2px solid #b84b25;
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .pdp-resource-trigger {
    flex: 1 1 auto;
  }
}
.pdp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 36px;
}
.pdp-section-head > * {
  margin-bottom: 0;
}
.pdp-section-head p {
  max-width: 620px;
}
.pdp-section-title {
  margin-bottom: 24px;
}
.pdp-section-head .pdp-section-title {
  margin-bottom: 0;
}
.pdp-specifications {
  background: #f6f6f6;
}
.pdp-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
}
.pdp-spec-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  padding: 18px 20px;
  background: #fff;
}
.pdp-spec-row dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}
.pdp-spec-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.pdp-spec-block + .pdp-spec-block {
  margin-top: 54px;
}
.pdp-spec-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.pdp-spec-subhead h3 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.3;
}
.pdp-technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.pdp-technical-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.pdp-technical-card-head {
  display: block;
  padding: 24px 26px 0;
}
.pdp-technical-card-head h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}
.pdp-technical-artboard {
  display: grid;
  place-items: center;
  min-height: 310px;
  padding: 20px 22px 10px;
}
.pdp-technical-artboard svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 820px) {
  .pdp-technical-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .pdp-spec-block + .pdp-spec-block {
    margin-top: 40px;
  }
  .pdp-spec-subhead {
    display: block;
  }
  .pdp-technical-card-head {
    padding: 20px 18px 0;
  }
  .pdp-technical-artboard {
    min-height: 230px;
    padding: 12px;
  }
}
.pdp-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1180px) {
  .pdp-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
    column-gap: 12px;
    padding-right: 16px;
  }
  .pdp-main-media,
  .pdp-media-thumbnails {
    width: 94%;
  }
  .pdp-hero-copy {
    left: -16px;
  }
  .pdp-main-media {
    min-height: 460px;
  }
  .pdp-main-media img {
    max-height: 460px;
  }
  .pdp-recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .pdp-intro {
    padding-top: 64px;
  }
  .pdp-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "thumbnails"
      "copy";
    row-gap: 28px;
    padding-right: 0;
  }
  .pdp-hero-copy {
    left: 0;
    align-self: start;
  }
  .pdp-main-media,
  .pdp-media-thumbnails {
    width: 100%;
  }
  .pdp-main-media {
    min-height: 380px;
  }
  .pdp-main-media img {
    max-height: 380px;
  }
  .pdp-section-head {
    display: grid;
    align-items: start;
  }
  .pdp-spec-list {
    grid-template-columns: 1fr;
  }
  .pdp-recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .pdp-intro-breadcrumb {
    align-items: flex-start;
    margin-bottom: 28px;
  }
  .pdp-main-media {
    min-height: 300px;
  }
  .pdp-main-media img {
    max-height: 300px;
  }
  .pdp-media-thumbnails {
    gap: 10px;
  }
  .pdp-media-thumbnail {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
  .pdp-spec-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .pdp-recommendation-grid {
    grid-template-columns: 1fr;
  }
}
/* ---------- 详情页：视频主媒体 与 技术图纸图片 ---------- */
.pdp-main-media video[hidden] {display:none}
.pdp-main-media .pdp-main-video {width:100%;max-height:560px;background:#111}
.pdp-technical-artboard img {display:block;width:100%;height:auto;object-fit:contain}
.pdp-specifications {padding:88px 0}
.pdp-intro {padding-bottom:0}
@media(max-width:820px){
  .pdp-specifications {padding:64px 0}
}

/* ============================================================
   头部操作按钮组（设计稿：Discuss This Product / WhatsApp / Download PDF）
   本站 base.css 的 .btn 是「透明基底」版，设计稿 .btn 是「橙底白字」版，
   这里只针对产品详情的按钮组局部覆盖，不影响全站其它按钮。
   ============================================================ */
.pdp-product-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid var(--o);
  border-radius: var(--r);
  background: var(--o);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s, background-color .2s, border-color .2s, color .2s;
}
.pdp-product-actions .btn:hover {
  transform: translateY(-2px);
  border-color: #e96832;
  background: #e96832;
  color: #fff;
}
.pdp-product-actions .pdp-whatsapp-button {
  border-color: #25d366;
  background: #25d366;
  color: #fff;
}
.pdp-product-actions .pdp-whatsapp-button:hover {
  border-color: #1fbe5a;
  background: #1fbe5a;
}
.pdp-product-actions .pdp-download-button {
  border-color: #b84b25;
  background: #b84b25;
  color: #fff;
  white-space: nowrap;
}
.pdp-product-actions .pdp-download-button:hover {
  border-color: #a1401f;
  background: #a1401f;
}
@media (max-width: 520px) {
  .pdp-product-actions { gap: 10px; }
  .pdp-product-actions .btn { flex: 1 1 100%; }
}

/* ---------- 推荐产品卡片（产品详情页底部，与产品列表卡片同一套视觉） ---------- */
.catalog-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.catalog-product-card:hover,
.catalog-product-card:focus-within {
  border-color: rgba(248, 120, 63, .5);
  box-shadow: 0 14px 32px rgba(30, 27, 33, .09);
  transform: translateY(-2px);
}
.catalog-product-link {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.catalog-product-image {
  position: relative;
  aspect-ratio: 1 / 0.78;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.catalog-product-image img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 70%;
  object-fit: contain;
  transform: translateY(-50%);
  transition: transform .25s ease;
}
.catalog-product-card:hover .catalog-product-image img,
.catalog-product-card:focus-within .catalog-product-image img {
  transform: translateY(-50%) scale(1.025);
}
.catalog-product-body {
  display: flex;
  flex-direction: column;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
}
.catalog-product-model {
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 520px) {
  .catalog-product-image { aspect-ratio: 1 / 0.74; }
  .catalog-product-body { padding: 11px 16px 15px; }
}
/* base.css 里 a 选择器被一段坏注释吃掉，链接默认带下划线；推荐卡片按设计稿去掉 */
.pdp-recommendations .catalog-product-link { text-decoration: none; }

/* ---------- 推荐产品：板块间距 / 标题字号对齐设计稿（.section 96px · h2 clamp(32px,3.2vw,48px)） ---------- */
.pdp-recommendations { padding: 96px 0; background: #fff; }
.pdp-section-title { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.12; letter-spacing: 0; }
.pdp-section-head p { font-size: 15px; }
@media (max-width: 820px) {
  .pdp-recommendations { padding: 64px 0; }
}

/* ---------- 产品名改用 h1（SEO/GEO 主标题），视觉沿用设计稿 h2 规格 ---------- */
.pdp-hero-copy h1,
.pdp-hero-copy .pdp-product-title {
  margin: 0 0 22px;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  color: inherit;
}

/* 规格参数 · 标签页 */
.pdp-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.pdp-tab {
  appearance: none;
  margin: 0 0 -1px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.pdp-tab:hover,
.pdp-tab:focus-visible,
.pdp-tab.is-active {
  color: var(--ink);
}
.pdp-tab.is-active {
  border-bottom-color: var(--o);
}
.pdp-tab-panel {
  display: none;
}
.pdp-tabs:not(.is-ready) .pdp-tab-panel:first-child,
.pdp-tab-panel.is-active {
  display: block;
}
.pdp-tab-panel > :first-child {
  margin-top: 0;
}
.pdp-tab-panel img {
  max-width: 100%;
  height: auto;
}
.pdp-tab-panel table {
  width: 100%;
  border-collapse: collapse;
}
.pdp-tab-panel th,
.pdp-tab-panel td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
}
@media (max-width: 640px) {
  .pdp-tabs-bar {
    flex-wrap: nowrap;
    gap: 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pdp-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 15px;
  }
}
