/* =====================================================
   产品详情页样式
   仅作用于面包屑、产品主体与推荐区，不覆盖顶部/底部导航
   ===================================================== */

:root {
  --pd-gold: #f6b400;
  --pd-gold-dark: #d99a00;
  --pd-text: #151515;
  --pd-muted: #666;
  --pd-light: #f7f7f7;
  --pd-border: #ececec;
  --pd-card-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  margin-top: var(--site-header-height, 70px);
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 0;
  font-size: 13px;
  color: #9a9a9a;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: #8a8a8a;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--pd-gold-dark);
}

.breadcrumb .sep {
  color: #c8c8c8;
  font-size: 12px;
}

.breadcrumb .current {
  color: #555;
}

/* ===== 产品详情页整体 ===== */
.product-detail-page {
  background: #fff;
  color: var(--pd-text);
}

/* ===== 产品首屏 ===== */
.product-hero {
  padding: 24px 0 36px;
}

.product-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: start;
}

/* ===== 图片画廊 ===== */
.product-gallery {
  min-width: 0;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 45%, #f4f4f4 100%);
  border: 1px solid #ebebeb;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-img img {
  max-width: 85%;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

/* 主图左右箭头 */
.gallery-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: #1f1f1f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.gallery-control:hover {
  color: var(--pd-gold-dark);
  background: #fff;
}

.gallery-control--prev { left: 14px; }
.gallery-control--next { right: 14px; }

/* 缩略图区域 */
.gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.thumbs-track {
  display: flex;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.thumb {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #f4f4f4;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb.active,
.thumb:hover {
  border-color: var(--pd-gold);
  box-shadow: 0 0 0 2px rgba(246, 180, 0, 0.12);
}

/* 缩略图左右箭头 */
.thumb-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #555;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.thumb-arrow:hover {
  color: var(--pd-gold-dark);
  border-color: var(--pd-gold);
}

/* ===== 产品信息区 ===== */
.product-info {
  padding-top: 6px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 18px;
  border-radius: 14px;
  background: var(--pd-gold);
  color: #111;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-title {
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111;
  margin: 0 0 12px;
}

.product-subtitle {
  font-size: 21px;
  color: #555;
  margin-bottom: 20px;
}

.standard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.standard-pills span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 20px;
  border-radius: 16px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.product-desc {
  max-width: 580px;
  color: #484848;
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 32px;
}

/* 四大性能图标 */
.benefit-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.benefit-item {
  text-align: center;
  min-width: 0;
}

.benefit-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: #fff;
  border: 2px solid #f0d37e;
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
}

.benefit-item strong {
  display: block;
  font-size: 16px;
  color: #111;
  line-height: 1.35;
  margin-bottom: 6px;
}

.benefit-item small {
  display: block;
  font-size: 14px;
  color: #777;
  line-height: 1.45;
}

/* 操作按钮 */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  min-width: 150px;
  height: 48px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--pd-gold);
  color: #111;
  border-color: var(--pd-gold);
}

.btn-primary:hover {
  background: var(--pd-gold-dark);
  border-color: var(--pd-gold-dark);
}

.btn-outline {
  background: #fff;
  color: #111;
  border-color: #ccc;
}

.btn-outline:hover {
  border-color: var(--pd-gold);
  color: var(--pd-gold-dark);
}

/* ===== 通用区块样式 ===== */
.content-section {
  padding: 36px 0;
  border-top: 1px solid #f0f0f0;
}

.section-title {
  position: relative;
  color: #111;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 22px;
  padding-bottom: 11px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--pd-gold);
}

/* ===== 产品描述 + 核心优势（左右两栏） ===== */
.product-desc-advantages {
  padding: 40px 0;
}

.desc-adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.detail-text {
  color: #4e4e4e;
  font-size: 14.5px;
  line-height: 1.9;
  margin: 0;
}

/* 核心优势列表 */
.advantage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.advantage-list li {
  position: relative;
  padding-left: 26px;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
}

.advantage-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 17px;
  height: 17px;
  border: 1px solid var(--pd-gold);
  border-radius: 3px;
  color: var(--pd-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: #fffbf0;
}

/* ===== 适用范围 + 卓越保护 Banner（左右两栏） ===== */
.product-scope-banner {
  padding: 40px 0;
}

.scope-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* 适用范围图标 */
.application-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.application-item {
  text-align: center;
}

.application-item svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: block;
  color: #333;
  stroke-width: 1.3;
}

.application-item strong {
  display: block;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* 卓越保护 Banner */
.protection-banner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
  background: #111;
  display: flex;
  align-items: flex-end;
}

.protection-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.protection-banner-overlay {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
  color: #fff;
}

.protection-banner-overlay h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}

.protection-banner-overlay p {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ===== 包装规格（全宽独立区块） ===== */
.product-packaging {
  padding: 40px 0;
}

.packaging-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: end;
  margin-top: 8px;
}

.packaging-item {
  text-align: center;
}

.packaging-img-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 160px;
  margin-bottom: 14px;
}

.packaging-img-wrap img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
}

.packaging-item strong {
  display: block;
  color: #333;
  font-size: 15px;
  font-weight: 700;
}

/* ===== 相关产品推荐 ===== */
.section-related {
  padding: 40px 0 60px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 8px;
}

.section-heading-row .section-title {
  margin-bottom: 0;
}

.view-all-link {
  color: #333;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 9px;
  white-space: nowrap;
  transition: color 0.2s ease;
  text-decoration: none;
}

.view-all-link:hover {
  color: var(--pd-gold-dark);
}

/* 轮播 */
.related-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 24px;
}

.carousel-track-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  transition: transform 0.35s ease;
}

.carousel-arrow {
  align-self: center;
  flex: 0 0 auto;
  width: 36px;
  height: 60px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.carousel-arrow:hover {
  color: var(--pd-gold-dark);
  border-color: var(--pd-gold);
}

/* 产品卡片 */
.product-card {
  min-width: 0;
  border: 1px solid var(--pd-border);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #f0d37e;
  box-shadow: var(--pd-card-shadow);
}

.card-product-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  overflow: hidden;
}

.card-product-visual img {
  max-width: 80%;
  max-height: 140px;
  object-fit: contain;
  display: block;
}

.card-info {
  padding: 16px 18px 20px;
}

.card-info h3 {
  margin: 0 0 6px;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.card-type,
.card-spec {
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

.card-spec {
  color: #9a9a9a;
  margin-bottom: 12px;
}

.card-link {
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: var(--pd-gold-dark);
}

/* ===== 响应式 ===== */
@media (max-width: 1180px) {
  .product-hero__grid {
    gap: 32px;
  }

  .desc-adv-grid,
  .scope-banner-grid {
    gap: 36px;
  }

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

@media (max-width: 980px) {
  .product-hero__grid {
    grid-template-columns: 1fr;
  }

  .gallery-main,
  .gallery-main-img {
    min-height: 360px;
  }

  .desc-adv-grid,
  .scope-banner-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .packaging-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

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

@media (max-width: 720px) {
  .breadcrumb {
    padding: 10px 0;
  }

  .product-hero {
    padding-top: 16px;
  }

  .gallery-main,
  .gallery-main-img {
    min-height: 300px;
  }

  .product-tag {
    font-size: 14px;
    padding: 5px 16px;
  }

  .product-title {
    font-size: 32px;
  }

  .product-subtitle {
    font-size: 19px;
  }

  .product-desc {
    font-size: 16px;
  }

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

  .benefit-item strong {
    font-size: 15px;
  }

  .benefit-item small {
    font-size: 13px;
  }

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

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .related-carousel {
    gap: 8px;
  }

  .carousel-arrow {
    display: none;
  }

  .thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 520px) {
  .product-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .carousel-track {
    grid-template-columns: 1fr;
  }

  .desc-adv-grid,
  .scope-banner-grid {
    gap: 24px;
  }
}
