/* ===== 产品详情页独有样式 ===== */

/* 面包屑导航 */
.breadcrumb {
  margin: 20px 0;
  padding: 10px 0;
  color: #666;
}
.breadcrumb a {
  color: #2c3e50;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #e74c3c;
}
.breadcrumb .separator {
  margin: 0 10px;
  color: #ccc;
}

/* 产品详情布局 */
.product-detail {
  display: flex;
  gap: 50px;
  margin: 30px 0 50px 0;
}

/* 左侧图片区域 */
.product-gallery {
  flex: 1;
  max-width: 500px;
}

/* 主图显示 */
.main-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #eee;
}
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 缩略图导航 */
.thumbnail-slider {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}
.thumbnail-wrapper {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 5px;
}
.thumbnail-wrapper::-webkit-scrollbar {
  height: 4px;
}
.thumbnail-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.thumbnail-item {
  flex: 0 0 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}
.thumbnail-item.active {
  border-color: #e74c3c;
}
.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 缩略图导航按钮 */
.thumbnail-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}
.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 20px;
  font-weight: bold;
}
.nav-btn:hover {
  background: #e74c3c;
  color: white;
}

/* 右侧详情区域 */
.product-info {
  flex: 1;
}

.product-title {
  font-size: 36px;
  color: #2c3e50;
  border-bottom: 2px solid #eee;
}

.product-meta {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.meta-item {
  margin-bottom: 10px;
  font-size: 16px;
}
.meta-item .label {
  font-weight: 600;
  color: #2c3e50;
  min-width: 100px;
  display: inline-block;
}
.meta-item .value {
  color: #666;
}

.product-content {
  line-height: 1.5;
  color: #555;
}
.product-content h1,
.product-content h2,
.product-content h3 {
  color: #2c3e50;
}
.product-content p {
  margin-bottom: 2px;
}
.product-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 相关文章推荐 */
.related-articles {
  margin: 60px 0;
}
.related-title {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.related-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.related-card .related-card-title {
  padding: 15px;
  font-size: 16px;
  font-weight: 500;
  color: #2c3e50;
  text-align: center;
}
.related-card a {
  text-decoration: none;
  color: inherit;
}

/* Contact 区块 */
.contact {
  text-align: center;
  padding: 40px 0;
  background-color: #f1f1f1;
  border-radius: 8px;
  margin: 50px 0;
}
.contact h1 {
  margin-bottom: 20px;
  color: #2c3e50;
}
.contact p {
  font-size: 18px;
  line-height: 2.5;
  font-weight: 400;
}

/* 响应式 */
@media (max-width: 992px) {
  .product-detail {
    flex-direction: column;
  }
  .product-gallery {
    max-width: 100%;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
  .product-title {
    font-size: 28px;
  }
}