/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */

.product-detail-page {
  background: #fff;
}

/* 模块小标题：复用 .section-title / .section-head，仅加红色竖条与字号修正 */
.section-container .section-title.pdetail-h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 0;
}

.section-container .section-title.pdetail-h2::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 18px;
  background: var(--secondary-color);
}

.pdetail-head {
  margin-bottom: 18px;
}

.pdetail-head p {
  margin-top: 6px;
  font-size: 16px;
}

.pdetail-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.pdetail-breadcrumb-bar {
  padding: 92px 0 16px;
}

.pdetail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-color);
}

.pdetail-breadcrumb a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.pdetail-breadcrumb a:hover {
  color: var(--secondary-color);
}

.pdetail-breadcrumb span[aria-hidden] {
  color: #c4c4c4;
}

.pdetail-breadcrumb span[aria-current] {
  color: var(--title-color);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.pdetail-hero {
  padding: 10px 0 40px;
}

.pdetail-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.pdetail-hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--title-color);
  margin: 6px 0 12px;
}

.pdetail-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 3px;
  background: var(--secondary-color);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.pdetail-hero-desc {
  margin: 16px 0 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
}

/* 快速规格 */
.pdetail-quick-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdetail-quick-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.pdetail-quick-row dt {
  flex: 0 0 148px;
  font-weight: 500;
  color: var(--title-color);
  font-size: 1rem;
  text-align: right;
}

.pdetail-quick-row dd {
  flex: 1;
  min-width: 0;
  color: var(--text-color);
  font-size: 0.95rem;
  text-align: left;
}

.pdetail-hero-cta {
  margin-top: 26px;
  align-items: center;
  gap: 22px;
}

.pdetail-download {
  color: var(--title-color);
  font-size: 13.5px;
}

.pdetail-download:hover {
  color: var(--secondary-color);
}

.pdetail-download i {
  color: var(--secondary-color);
  font-size: 12px;
}

.pdetail-hero-media{
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  min-height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pdetail-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   Specifications table
   （外框 + 单元格完整边框 + 两级表头，数据由后台 HTML 字段输出）
   ========================================================================== */
.pdetail-spec-section {
  padding: 10px 0 40px;
}

.product-name{
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdetail-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pdetail-spec-table {
  width: 100%;
  min-width: 1020px;
  border: 1px solid #c9c9c9;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
  table-layout: auto;
  color: #3a3a3a;
}

/* ============ 表头 ============ */
.pdetail-spec-table thead th {
  padding: 12px 10px;
  background: #f5f5f5;
  border: 1px solid #c9c9c9;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  color: var(--text-color);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.pdetail-spec-table thead tr:first-child th {
  background: #efefef;
  color: #2b2b2b;
  font-weight: 500;
  font-size: 15px;
}

.pdetail-spec-table thead tr:nth-child(2) th {
  background: #f5f5f5;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-color);
  border: 1px solid #c9c9c9;
}

.pdetail-spec-table tbody th,
.pdetail-spec-table tbody td {
  padding: 10px 10px;
  border: 1px solid #dcdcdc;
  line-height: 1.5;
  text-align: center;
  font-weight: 400;
  vertical-align: middle;
  color: #3a3a3a;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ============ 斑马纹：奇数行 #f4f4f4，偶数行白色 ============ */
.pdetail-spec-table tbody tr:nth-child(odd) > th,
.pdetail-spec-table tbody tr:nth-child(odd) > td {
  background: #f4f4f4;
}

.pdetail-spec-table tbody tr:nth-child(even) > th,
.pdetail-spec-table tbody tr:nth-child(even) > td {
  background: #ffffff;
}

/* 首列（Wire Range 分组列）不跟随斑马纹，保持统一浅底，
   避免 rowspan 单元格出现"半灰半白"的断裂 */
.pdetail-spec-table tbody th {
  font-weight: 500;
  color: #2b2b2b;
  white-space: normal;
  min-width: 120px;
  background: #fafafa;             /* 覆盖斑马纹 */
}

.pdetail-spec-table tbody th.pdetail-spec-group {
  min-width: 132px;
  width: 132px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  padding-left: 12px;
  color: #1a1a1a;
  background: #f2f2f2;             /* 覆盖斑马纹，固定分组列底色 */
}

/* ============ 分组：组间线加粗 ============ */
.pdetail-spec-table tbody tr.pdetail-row-red:first-child > *,
.pdetail-spec-table tbody tr.pdetail-row-blue:first-child > * {
  border-top: 2px solid var(--secondary-color);
}


.pdetail-row-blue > th.pdetail-spec-group::before {
  background: #9a9a9a;
}

/* ============ 跨组合并单元格（Packaging） ============ */
.pdetail-spec-table tbody td.pdetail-spec-span {
  background: #f7f7f7;             /* 覆盖斑马纹，固定底色 */
  font-weight: 500;
  color: #6f6f6f;
  font-size: 13px;
}

/* ============ 悬停 ============ */
.pdetail-spec-table tbody tr:hover > th,
.pdetail-spec-table tbody tr:hover > td {
  background: #fbf3f3 !important;  /* 带红调暖白，覆盖斑马纹 */
  color: #1a1a1a;
}

/* ==========================================================================
   Structure & Material
   ========================================================================== */
.pdetail-split-section {
  padding: 10px 0 40px;
}

.pdetail-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 24px;
}

.pdetail-panel {
  padding: 20px 22px 22px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background: #fff;
}

.pdetail-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.pdetail-diagram-svg {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
}

/* 后台配置了 structure_image 时替代默认示意图 */
.pdetail-diagram-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Inquiry form
   ========================================================================== */
.pdetail-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdetail-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pdetail-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pdetail-form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--title-color);
}

.pdetail-req {
  color: var(--secondary-color);
}

.pdetail-form-group input,
.pdetail-form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--title-color);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pdetail-form-group textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

.pdetail-form-group input::placeholder,
.pdetail-form-group textarea::placeholder {
  color: #b3b3b3;
}

.pdetail-form-group input:focus,
.pdetail-form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(176, 13, 21, 0.08);
}

.pdetail-form-group.has-error input,
.pdetail-form-group.has-error textarea {
  border-color: #d92d20;
  background: rgba(217, 45, 32, 0.04);
}

.pdetail-form-error {
  font-size: 12px;
  color: #d92d20;
}

.pdetail-form-submit {
  align-self: flex-start;
  padding: 11px 28px;
  font-size: 14px;
  cursor: pointer;
}

.pdetail-form-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-color);
}

.pdetail-form-note.is-success {
  color: #12805c;
}

.pdetail-form-note.is-error {
  color: #d92d20;
}

/* ==========================================================================
   Inquiry CTA
   ========================================================================== */
.pdetail-cta {
  position: relative;
  padding: 26px 0;
  background: #101014 url("/dist/img/banner/cta-banner.webp") center / cover no-repeat;
}

.pdetail-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
          90deg,
          rgba(8, 8, 10, 0.94) 0%,
          rgba(20, 8, 9, 0.9) 55%,
          rgba(10, 10, 12, 0.82) 100%
  );
}

.pdetail-cta .section-container {
  position: relative;
  z-index: 1;
  padding: 0;
}

.pdetail-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.pdetail-cta-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.pdetail-cta-desc {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.pdetail-cta-actions {
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.pdetail-cta-link {
  color: #fff;
}

.pdetail-cta-link:hover {
  color: #fff;
  opacity: 0.85;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.pdetail-faq-section {
  padding: 40px 0 30px;
}

.pdetail-faq {
  border-top: 1px solid #ececec;
}

.pdetail-faq-item {
  padding: 18px 0 20px;
  border-bottom: 1px solid #ececec;
}

.pdetail-faq-q {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--title-color);
}

.pdetail-faq-a {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-color);
}

/* ==========================================================================
   Related series
   ========================================================================== */
.pdetail-related-section {
  padding: 30px 0 56px;
}

.pdetail-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pdetail-related-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background: #fff;
  text-decoration: none;
  transition:
          border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
          box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdetail-related-card:hover {
  border-color: #d9d9d9;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.pdetail-related-media {
  flex: 0 0 86px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdetail-related-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdetail-related-card:hover .pdetail-related-media img {
  transform: scale(1.05);
}

.pdetail-related-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pdetail-related-name {
  font-size: 13px;
  line-height: 1.4;
  color: #5a5a5a;
}

.pdetail-related-series {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--title-color);
}

.pdetail-related-link {
  margin-top: 6px;
  font-size: 12.5px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ≤ 1200px */
@media (max-width: 1200px) {
  .pdetail-hero-grid {
    gap: 34px;
  }

  .pdetail-hero-title {
    font-size: 30px;
  }

  .pdetail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ≤ 1000px */
@media (max-width: 1000px) {
  .pdetail-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdetail-diagram {
    min-height: 0;
  }
}

/* ≤ 860px */
@media (max-width: 860px) {
  .pdetail-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .product-detail-page {
    padding-top: 25px;
  }

  .pdetail-hero-media {
    order: -1;
    max-width: 520px;
  }

  .pdetail-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ≤ 768px */
@media (max-width: 768px) {
  .pdetail-breadcrumb-bar {
    padding: 76px 0 14px;
  }

  .pdetail-hero-title {
    font-size: 26px;
  }

  .section-container .section-title.pdetail-h2 {
    font-size: 16px;
  }

  .pdetail-related-card {
    padding: 12px 14px;
  }
}

/* ≤ 560px */
@media (max-width: 560px) {
  .pdetail-quick-row {
    flex-direction: column;
    gap: 2px;
  }

  .pdetail-quick-row dt {
    flex: none;
  }

  .pdetail-panel {
    padding: 16px;
  }

  .pdetail-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdetail-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdetail-form-submit {
    align-self: stretch;
    width: 100%;
  }

  .pdetail-cta-actions {
    flex-wrap: wrap;
  }
}