/* product_detail.html — 产品详情（参考 biochemjx 左图右文） */

.pd-page {
  padding: 48px 0 88px;
  background: #f5f5f5;
}

.pd-inner {
  width: min(1300px, 92%);
  margin: 0 auto;
}

/* 上：左图固定 + 右文滚动 */
.pd-page,
.pd-inner,
.pd-hero {
  overflow: visible;
}

.pd-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
  gap:60px;
  align-items: start;
  background: #fff;
  border-radius: 20px;
  padding: 60px 40px 80px 40px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
  margin-bottom: 28px;
}

.pd-left {
  min-width: 0;
  align-self: start;
}

.pd-left-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  z-index: 5;
}

.pd-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: 16px;
  background: #f7f7f5;
  padding: 28px;
  box-sizing: border-box;
}

.pd-media img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
}

.pd-info {
  min-width: 0;
}

.pd-cat {
  margin: 0 0 12px;
}

.pd-cat a {
  display: inline-flex;
  align-items: center;
  padding: 6px 30px;
  border-radius: 999px;
  background: #eef5f0;
  color: #2d6a3e;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pd-cat a:hover {
  background: #2d6a3e;
  color: #fff;
}

.pd-title {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}

.pd-summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #656565;
}

/* 按钮两行：上行咨询/返回，下行 MSDS/COA */
.pd-actions {
  display: flex;
  flex-direction: column;
  gap:15px;
  margin-top:40px; padding-left:20px; padding-right:20px;
}

.pd-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.pd-btn--primary {
  background: #2d6a3e;
  color: #fff;
  border: 1px solid #2d6a3e;
}

.pd-btn--primary:hover {
  background: #245a33;
}

.pd-btn--ghost {
  background: #fff;
  color: #2d6a3e;
  border: 1px solid #2d6a3e;
}

.pd-btn--ghost:hover {
  background: #eef5f0;
}

.pd-btn--file {
  background: #fff;
  color: #2d6a3e;
  border: 1px solid #2d6a3e;
  gap: 8px;
}

.pd-btn--file:hover {
  background: #eef5f0;
}

.pd-btn-ico {
  flex-shrink: 0;
}

.pd-btn--file.is-disabled {
  color: #9aa59e;
  border-color: #cfd6d2;
  background: #f3f5f4;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.72;
}

/* 产品详情正文 */
.pd-body {
  background: #fff;
  border-radius: 20px;
  padding: 40px 44px 48px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.pd-body-title {
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8ece9;
  font-size: 22px;
  font-weight: 700;
  color: #1b3022;
}

.pd-content {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}

.pd-content img {
  max-width: 100% !important;
  height: auto !important;
}

/* 产品详情表格：纯 CSS 控制，覆盖编辑器自带 border/bgcolor/align/width 等 */
.pd-content table,
.pd-content.xxx table {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 2px solid #b7d4c0 !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #333 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  table-layout: fixed !important;
  box-sizing: border-box !important;
}

.pd-content table tr,
.pd-content.xxx table tr {
  background: transparent !important;
  background-color: transparent !important;
}

.pd-content table tr:nth-child(odd),
.pd-content.xxx table tr:nth-child(odd),
.pd-content table tr:nth-child(odd) td,
.pd-content.xxx table tr:nth-child(odd) td,
.pd-content table tr:nth-child(odd) th,
.pd-content.xxx table tr:nth-child(odd) th {
  background: #e8f3ea !important;
  background-color: #e8f3ea !important;
}

.pd-content table tr:nth-child(even),
.pd-content.xxx table tr:nth-child(even),
.pd-content table tr:nth-child(even) td,
.pd-content.xxx table tr:nth-child(even) td,
.pd-content table tr:nth-child(even) th,
.pd-content.xxx table tr:nth-child(even) th {
  background: #fff !important;
  background-color: #fff !important;
}

.pd-content table th,
.pd-content table td,
.pd-content.xxx table th,
.pd-content.xxx table td {
  padding: 14px 18px !important;
  border: 1px solid #fff !important;
  border-color: #fff !important;
  vertical-align: middle !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.pd-content table th,
.pd-content table td:first-child,
.pd-content.xxx table th,
.pd-content.xxx table td:first-child {
  width: 22% !important;
  text-align: center !important;
  font-weight: 600 !important;
  color: #2b3a31 !important;
}

.pd-content table td:last-child,
.pd-content table td:nth-child(n + 2),
.pd-content.xxx table td:last-child,
.pd-content.xxx table td:nth-child(n + 2) {
  text-align: left !important;
  font-weight: 400 !important;
  color: #3d4a42 !important;
}

.pd-content table p,
.pd-content table span,
.pd-content table font,
.pd-content.xxx table p,
.pd-content.xxx table span,
.pd-content.xxx table font {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.7 !important;
  font-size: inherit !important;
  color: inherit !important;
  background: transparent !important;
  background-color: transparent !important;
}

.pd-content table td:first-child p,
.pd-content table th p,
.pd-content.xxx table td:first-child p,
.pd-content.xxx table th p {
  text-align: center !important;
}

.pd-content table td:nth-child(n + 2) p,
.pd-content.xxx table td:nth-child(n + 2) p {
  text-align: left !important;
}

@media (max-width: 640px) {
  .pd-content table,
  .pd-content table tbody,
  .pd-content table tr,
  .pd-content table th,
  .pd-content table td,
  .pd-content.xxx table,
  .pd-content.xxx table tbody,
  .pd-content.xxx table tr,
  .pd-content.xxx table th,
  .pd-content.xxx table td {
    display: block !important;
    width: 100% !important;
  }

  .pd-content table tr,
  .pd-content.xxx table tr {
    margin-bottom: 10px !important;
    border: 1px solid #b7d4c0 !important;
  }

  .pd-content table th,
  .pd-content table td:first-child,
  .pd-content.xxx table th,
  .pd-content.xxx table td:first-child {
    text-align: left !important;
    border-bottom: none !important;
  }
}

/* 同类别产品 */
.pd-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.pd-related-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: #1b3022;
}

.pd-related-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid #2d6a3e;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #2d6a3e;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pd-related-more:hover {
  background: #2d6a3e;
  border-color: #2d6a3e;
  color: #fff;
  text-decoration: none;
}

.pd-more-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 20px !important;
  border: 1.5px solid #2d6a3e !important;
  border-radius: 999px !important;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #2d6a3e !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease;
}

.pd-more-btn:hover {
  background: #2d6a3e !important;
  color: #fff !important;
}

@media (max-width: 960px) {
  .pd-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .pd-left-sticky {
    position: static;
    top: auto;
  }

  .pd-media {
    min-height: 260px;
  }

  .pd-body {
    padding: 28px 20px 36px;
  }

  .pd-related-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
