/* 详情页基础样式（复用首页变量，新增特有样式） */
:root {
  --primary-green: #2A8C47; /* 主绿 */
  --dark-green: #1A5E30; /* 深绿 */
  --light-green: #F0F8F2; /* 浅绿背景 */
  --gray-100: #F8F8F8; /* 浅灰 */
  --gray-200: #E8E8E8; /* 分割线/边框 */
  --gray-300: #D8D8D8; /* 次要边框 */
  --gray-800: #333333; /* 正文 */
  --gray-900: #1A1A1A; /* 标题 */
  --white: #FFFFFF;
  --black: #000000;
}

/* -------------------------- 产品英雄区 -------------------------- */
.product-hero {
   background-image: url(../images/banner.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  position: relative;
  color: var(--white);
}

.product-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.product-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.product-hero-container {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  font-size: 14px;
  margin-bottom: 15px;
}

.breadcrumbs a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumbs span {
  color: var(--light-green);
}

.product-title {
  font-size: 48px;
  text-transform: uppercase;
  margin-bottom: 15px;
  line-height: 1.2;
}

.product-subtitle {
  font-size: 18px;
  max-width: 700px;
  opacity: 0.9;
  line-height: 1.6;
}

/* -------------------------- 产品主内容区 -------------------------- */
.product-main {
  padding: 60px 0;
}

.product-main-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* 左侧产品图片区 */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-gallery {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  height: 450px;
}

.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.gallery-prev:hover, .gallery-next:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

.gallery-prev {
  left: 15px;
}

.gallery-next {
  right: 15px;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 缩略图导航 */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 3px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.thumb-item.active {
  border-color: var(--primary-green);
}

.thumb-item:hover:not(.active) {
  border-color: var(--gray-300);
  transform: scale(1.05);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右侧产品信息区 */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-title {
  font-size: 32px;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.info-desc {
  font-size: 16px;
  color: var(--gray-800);
  line-height: 1.8;
}

/* 产品优势列表 */
.product-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-800);
}

.product-benefits li i {
  color: var(--primary-green);
  font-size: 18px;
}

/* 操作按钮 */
.info-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.quote-btn {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.quote-btn:hover {
  background-color: var(--dark-green);
  transform: translateY(-2px);
}

.download-btn {
  background-color: var(--white);
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background-color: var(--light-green);
}

/* 额外图片 + 定制尺寸 */
.product-extra {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.extra-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.custom-sizes {
  background-color: var(--light-green);
  padding: 20px;
  border-radius: 4px;
}

.custom-sizes h3 {
  font-size: 18px;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.custom-sizes p {
  font-size: 15px;
  color: var(--gray-800);
  line-height: 1.6;
  margin-bottom: 15px;
}

.contact-btn {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: var(--dark-green);
  transform: translateY(-2px);
}

/* -------------------------- 产品规格参数 -------------------------- */
.product-specs {
  padding: 60px 0;
  background-color: var(--gray-100);
}

.section-title {
  font-size: 24px;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-green);
  display: inline-block;
}

.specs-table {
  overflow-x: auto;
}

.specs-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
}

.specs-table tr {
  border-bottom: 1px solid var(--gray-200);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.spec-label {
  width: 30%;
  padding: 15px 20px;
  background-color: var(--light-green);
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
}

.spec-value {
  padding: 15px 20px;
  color: var(--gray-800);
  line-height: 1.6;
}

/* -------------------------- 应用场景 -------------------------- */
.product-applications {
  padding: 60px 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.app-item {
  text-align: center;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.app-item:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.app-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.app-item p {
  padding: 15px;
  font-weight: 600;
  color: var(--gray-900);
  text-transform: capitalize;
}

/* -------------------------- 相关产品 -------------------------- */
.related-products {
  padding: 60px 0;
  background-color: var(--gray-100);
}

.related-slider {
  position: relative;
  overflow: hidden;
}

.related-prev, .related-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.related-prev:hover, .related-next:hover {
  background-color: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.related-prev {
  left: -20px;
}

.related-next {
  right: -20px;
}

.related-products-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scroll-behavior: smooth;
}

.related-products-grid::-webkit-scrollbar {
  height: 6px;
}

.related-products-grid::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 3px;
}

.related-product {
  min-width: 200px;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 15px;
  transition: all 0.3s ease;
}

.related-product:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.related-product img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}

.related-product p {
  font-weight: 600;
  color: var(--gray-900);
  text-transform: capitalize;
}

/* -------------------------- CTA 板块 -------------------------- */
.product-cta {
  padding: 60px 0;
  background-color: var(--gray-900);
  color: var(--white);
  background-image: url('../assets/product-cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  position: relative;
}

.product-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1;
}

.cta-container {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.cta-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.cta-content h2 {
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
}

.cta-quote-btn {
  margin-left: auto;
  background-color: var(--primary-green);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-quote-btn:hover {
  background-color: var(--dark-green);
  transform: translateY(-2px);
}

/* -------------------------- 响应式适配 -------------------------- */
@media (max-width: 992px) {
  .product-main-container {
    grid-template-columns: 1fr;
  }

  .product-title {
    font-size: 36px;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
  }

  .cta-quote-btn {
    margin-left: 0;
  }

  .main-gallery {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .info-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .quote-btn, .download-btn {
    text-align: center;
  }

  .product-hero-container {
    padding: 60px 0;
  }

  .product-specs, .product-applications, .related-products {
    padding: 40px 0;
  }

  .related-prev {
    left: 0;
  }

  .related-next {
    right: 0;
  }
}

@media (max-width: 576px) {
  .product-title {
    font-size: 28px;
  }

  .main-gallery {
    height: 300px;
  }

  .spec-label {
    width: 40%;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }
}