/* 详情页正文隔离：在 datasheet.css 之后加载，修复 style.css 对资料页封面的泄漏 */

body.product-detail-public {
  font-family: var(--ds-font-sans);
  line-height: var(--ds-lh-body);
  color: var(--ds-body);
}

body.product-detail-public .right-content {
  font-family: var(--ds-font-sans);
  font-size: var(--ds-font-body);
  line-height: var(--ds-lh-body);
  color: var(--ds-body);
  /* 背景见 product-detail-public.css */
}

/* ---------- 封面：产品标题 + 右上角品牌 logo（与 htp2k054-datasheet.css 一致） ---------- */
body.product-detail-public .right-content .page-wrapper > .document-page:first-child .header-left h1 {
  font-size: 33px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

body.product-detail-public .right-content .page-wrapper > .document-page:first-child .header-left h2 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 40px;
  color: #fff;
}

body.product-detail-public
  .right-content
  .page-wrapper
  > .document-page:not(:first-of-type)
  .main-content
  > .section:first-child
  > .section-title
  > h3 {
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
}

body.product-detail-public .right-content .cover-image-section img {
  display: block;
  width: auto;
  max-width: 50%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

/* CR032D048C01 indoor cabinet — cover product image */
body.product-indoor-cabinet .header-top-row {
  min-height: 320px;
  height: 320px;
}

body.product-indoor-cabinet .cover-image-section {
  margin-top: -140px;
}

body.product-indoor-cabinet .cover-image-section img,
body.product-indoor-cabinet .right-content .cover-image-section img {
  max-width: 48%;
  max-height: 320px;
}

body.product-detail-public .right-content .header-top-row .header-right {
  display: flex;
}

body.product-detail-public .right-content .header-content {
  color: #fff;
}

/* ---------- 正文章节：抵消 style.css 的 .section / .section-title ---------- */
body.product-detail-public .right-content .section {
  padding: 0;
}

body.product-detail-public .right-content .section-title {
  text-align: start;
  font-size: inherit;
  margin-bottom: 20px;
  position: static;
  line-height: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.product-detail-public .right-content .section-title::after {
  content: none;
  display: none;
  margin: 0;
  width: 0;
  height: 0;
}

body.product-detail-public .right-content .section-title h3 {
  font-size: var(--ds-font-h3);
  font-weight: 600;
  line-height: var(--ds-lh-h3);
  letter-spacing: -0.01em;
  color: var(--ds-ink);
}

body.product-detail-public .right-content .section-subtitle {
  text-align: start;
  margin: 0 0 20px;
  max-width: none;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* ---------- 每页底部 footer（抵消 components.css 站点页脚样式） ---------- */
body.product-detail-public .right-content .document-page > .footer,
body.product-detail-public .right-content .footer {
  flex-shrink: 0;
  margin-top: auto;
  background: #016189;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px var(--page-gutter-x, 40px);
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border: none;
}

body.product-detail-public .right-content .footer-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: none;
  margin-bottom: 0;
}

body.product-detail-public .right-content .footer img.footer-logo,
body.product-detail-public .right-content .footer .footer-logo {
  display: block;
  max-height: 48px;
  max-width: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: normal;
  line-height: normal;
  gap: unset;
}

body.product-detail-public .right-content .footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

body.product-detail-public .right-content .footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: flex-end;
  font-style: italic;
  font-size: 14px;
  margin: 0;
  padding: 0;
  border: none;
}

body.product-detail-public .right-content .footer-contact-row span {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
}

body.product-detail-public .right-content .footer-company {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 520px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* 资料页 A4 分页容器 */
body.product-detail-public .right-content .document-page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  aspect-ratio: 210 / 297;
}

body.product-detail-public .right-content .document-page > .main-content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

/* 其它图片：不碰 footer-logo */
body.product-detail-public .right-content .images-row img,

body.product-detail-public .right-content .specs-table img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* ---------- 移动端：资料页可读性与布局（仅 product-detail-public） ---------- */
@media (max-width: 767px) {
  body.product-detail-public .right-content {
    font-size: 15px;
  }

  body.product-detail-public .right-content .page-wrapper {
    --page-gutter-x: 1rem;
  }

  /* 取消 A4 固定比例，按内容自然增高，避免窄屏裁切 */
  body.product-detail-public .right-content .document-page {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.product-detail-public .right-content .document-page > .main-content {
    overflow-x: auto;
    overflow-y: visible;
    padding: 1.25rem var(--page-gutter-x) 0;
    -webkit-overflow-scrolling: touch;
  }

  /* 资料页内每页底栏（保留站点页脚 site-page-footer） */
  body.product-detail-public .right-content .document-page > .footer,
  body.product-detail-public .right-content .document-page > .footer.footer,
  body.product-detail-public .right-content .page-wrapper .document-page .footer {
    display: none !important;
  }

  /* 封面 */
  body.product-detail-public .right-content .header-top-row {
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding-right: 0;
  }

  body.product-detail-public .right-content .header-content {
    width: 100%;
    padding: 1.35rem 1rem;
  }

  body.product-detail-public .right-content .page-wrapper > .document-page:first-child .header-left h1 {
    font-size: clamp(1.0625rem, 4.2vw, 1.375rem);
    margin-bottom: 0.4rem;
  }

  body.product-detail-public .right-content .page-wrapper > .document-page:first-child .header-left h2 {
    font-size: clamp(1.25rem, 5.2vw, 1.625rem);
    margin-bottom: 0.75rem;
  }

  body.product-detail-public .right-content .cover-image-section {
    margin-top: 0;
    padding: 0.75rem 0.75rem 1.15rem;
  }

  body.product-detail-public .right-content .cover-image-section img {
    max-width: min(280px, 88vw);
    max-height: 200px;
  }

  body.product-indoor-cabinet .right-content .cover-image-section img,
  body.product-indoor-cabinet .cover-image-section img {
    max-width: min(260px, 88vw);
    max-height: 220px;
  }

  /* 正文 */
  body.product-detail-public .right-content .section {
    margin-bottom: 1.5rem;
  }

  body.product-detail-public .right-content .section-title h3 {
    font-size: clamp(1.0625rem, 4.2vw, 1.3125rem);
    line-height: 1.3;
  }

  body.product-detail-public .right-content .section-subtitle {
    margin-bottom: 1rem;
  }

  body.product-detail-public .right-content .images-row {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  body.product-detail-public .right-content .images-row img {
    max-width: 100%;
    width: 100%;
  }

  /* 双栏区块 → 单列（Introduction / Features、规格双列等） */
  body.product-detail-public .right-content .features-grid,
  body.product-detail-public .right-content .specs-two-col-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
  }

  body.product-detail-public .right-content .features-grid-sidebar,
  body.product-detail-public .right-content .specs-two-col-grid .specs-two-col-stack {
    gap: 1.25rem;
  }

  body.product-detail-public .right-content .th-features-stack {
    gap: 1.25rem;
  }

  /* 章节标题：line + h3 同一行；页眉 logo 单独换行 */
  body.product-detail-public .right-content .section-title,
  body.product-detail-public
    .right-content
    .page-wrapper
    > .document-page:not(:first-of-type)
    .main-content
    > .section:first-child
    > .section-title {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.625rem;
    margin-bottom: 1.15rem;
  }

  body.product-detail-public .right-content .section-title > .line {
    flex-shrink: 0;
    align-self: center;
  }

  body.product-detail-public .right-content .section-title h3,
  body.product-detail-public
    .right-content
    .page-wrapper
    > .document-page:not(:first-of-type)
    .main-content
    > .section:first-child
    > .section-title
    > h3 {
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  body.product-detail-public .right-content .section-content {
    padding-left: 14px;
  }

  /* 规格表：栏内横向滑动，字号略减 */
  body.product-detail-public .right-content .specs-table {
    font-size: 13px;
    line-height: 1.38;
  }

  body.product-detail-public .right-content .specs-table th,
  body.product-detail-public .right-content .specs-table td {
    padding: 7px 8px;
  }

  body.product-detail-public .right-content .specs-table .category {
    width: auto;
    min-width: 5.5rem;
    padding-left: 8px;
    padding-right: 8px;
  }

  body.product-detail-public .right-content .specs-table .sub-category {
    padding-left: 14px;
  }

  body.product-detail-public .right-content .specs-table.specs-table-pair {
    min-width:  min(100%, 520px);
  }

  body.product-detail-public .right-content .specs-table.specs-options-3col {
    min-width: min(100%, 560px);
  }

  /* 页内底栏 */
  body.product-detail-public .right-content .document-page > .footer,
  body.product-detail-public .right-content .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem var(--page-gutter-x);
  }

  body.product-detail-public .right-content .footer-right {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  body.product-detail-public .right-content .footer-contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 12px;
  }

  body.product-detail-public .right-content .footer-contact-row span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.product-detail-public .right-content .footer img.footer-logo,
  body.product-detail-public .right-content .footer .footer-logo {
    max-height: 34px;
    max-width: 160px;
  }

  body.product-detail-public .right-content .footer-company {
    max-width: 100%;
    font-size: 11px;
  }

  body.product-detail-public .right-content .datasheet-chart-block img {
    width: 100%;
  }
}

@media (max-width: 399px) {
  body.product-detail-public .right-content .page-wrapper {
    --page-gutter-x: 0.75rem;
  }

  body.product-detail-public .right-content .document-page > .main-content {
    padding-top: 1rem;
  }
}
