/* ========================================
   产品详情页面样式 - product-detail.css
   ======================================== */
/* ========================================
   产品详情主体
   ======================================== */
.product-detail {
  padding: 60px 0;
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* 产品图片区 */
.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  aspect-ratio: 4/3;
  background: #202020;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* margin-bottom: 20px; */
  overflow: hidden;
}

.main-image svg {
  width: 100px;
  height: 100px;
  color: #bdc3c7;
}

.thumbnail-list {
  display: flex;
  gap: 15px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e3e8ef 100%);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--active-color);
}

.thumbnail svg {
  width: 24px;
  height: 24px;
  color: #bdc3c7;
}

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

.product-category {
  display: inline-block;
  padding: 5px 15px;
  background: var(--active-color);
  color: #320F00;
  font-size: 13px;
  font-weight: 600;
  border-radius: 15px;
  margin-bottom: 15px;
}

.product-info h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--active-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-subtitle {
  font-size: 16px;
  color: var(--deputy-color);
  margin-bottom: 25px;
  padding-bottom: 25px;
  line-height: 1.7;
  /* border-bottom: 1px solid var(--deputy-color); */
}

.product-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge.hot {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #ffffff;
}

.badge.new {
  background: linear-gradient(135deg, var(--active-color), #0099cc);
  color: #ffffff;
}

.badge.cert {
  background: #f0f4f8;
  color: #5a6c7d;
}

/* 产品参数 */
.product-specs {
  margin-bottom: 30px;
}

.product-specs h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: #f8fafc;
  border-radius: 10px;
}

.spec-label {
  font-size: 14px;
  color: #5a6c7d;
}

.spec-value {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

/* 操作按钮 */
.action-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-primary {
  flex: 1;
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--active-color), #0099cc);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 168, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 168, 107, 0.4);
}

.btn-secondary {
  padding: 10px 30px;
  color: var(--active-color);
  border: 1px solid var(--active-color);
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--active-color);
  color: #320F00;
}

/* 联系信息 */
.contact-quick {
  /* background: #f8fafc; */
  background: #202020;
  border-radius: 15px;
  padding: 25px;
}

.contact-quick h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--active-color);
  margin-bottom: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--deputy-color);
}

.contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--deputy-color);
}

.contact-item a {
  color: var(--deputy-color);
  text-decoration: none;
}

/* ========================================
   产品详情描述
   ======================================== */
.product-description {
  padding: 0 0 60px;
}

.description-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.description-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--deputy-color);
  padding-bottom: 15px;
}

.tab-btn {
  padding: 10px 25px;
  background: transparent;
  border: none;
  color: #5a6c7d;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--active-color);
}

.tab-btn.active::after {
  background: linear-gradient(90deg, var(--active-color), var(--deputy-color));
}

.tab-content {
  background: #202020;
  border-radius: 15px;
  padding: 35px;
  line-height: 1.7;
            color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}
.tab-content img,.tab-content iframe,.tab-content video,.tab-content audio,.tab-content table{
  max-width: 100%;
  height: auto !important;
}
.tab-content h3 {
  font-size: 20px;
  font-weight: 600;
            color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.tab-content p {
  font-size: 15px;
  line-height: 1.8;
            color: rgba(255, 255, 255, 0.8);
  margin-bottom: 5px;
}

.tab-content ul {
  list-style: none;
  padding-left: 0;
}

.tab-content li {
  font-size: 15px;
  line-height: 1.8;
            color: rgba(255, 255, 255, 0.8);
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}

.tab-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--active-color), var(--deputy-color));
}

/* ========================================
   相关产品
   ======================================== */
.related-products {
  padding: 60px 0;
  background: #ffffff;
}

.related-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.related-header h2 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--active-color), #0099cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.related-header a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--active-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.related-header a:hover {
  gap: 12px;
}

.related-header a svg {
  width: 16px;
  height: 16px;
}

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

.product-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0f4f8 0%, #e3e8ef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image svg {
  width: 50px;
  height: 50px;
  color: #bdc3c7;
}

.product-card-content {
  padding: 20px;
}

.product-card-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.product-card:hover .product-card-content h4 {
  color: var(--active-color);
}

.product-card-content p {
  font-size: 13px;
  color: #5a6c7d;
}

/* ========================================
   响应式设计
   ======================================== */
@media screen and (max-width: 1024px) {
  .detail-container {
    gap: 40px;
  }
  
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .product-detail {
    padding: 40px 0;
  }
  
  .detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .product-gallery {
    position: static;
  }
  
  .product-info h1 {
    font-size: 26px;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  /* .action-buttons {
    flex-direction: column;
  } */
  
  .product-description {
    padding: 30px 0;
  }
  
  .description-tabs {
    overflow-y: hidden;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 15px;
  }
  
  .tab-content {
    padding: 25px;
  }
  
  .related-products {
    padding: 40px 0;
  }
  
  .related-header h2 {
    font-size: 24px;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
    .detail-container{gap: 15px;}
    .product-description{
        padding: 0 0 20px;
    }
    .product-detail{
        padding: 20px 0;
    }
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .product-info h1 {
        font-size: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    .product-subtitle{
        padding-bottom: 0;
        margin-bottom: 15px;
    }
    .contact-quick{
        padding: 20px;
    }
    .description-tabs{margin-bottom: 15px;}
    .tab-btn{padding: 0 20px;}
    .tab-content{
        padding: 20px;
    }
    .main-image{border-radius: 15px;}
    .action-buttons{margin-bottom: 0px;}
}
