/* ========== Banner ========== */
.banner {
  height: 320px;
  background: linear-gradient(to right, #1e7539, #2d8b47);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.banner h1 {
  font-size: 40px;
  margin-bottom: 15px;
}
.banner p {
  font-size: 18px;
  opacity: 0.9;
}

/* ========== 容器（统一） ========== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}
.breadcrumb a {
  color: #2d8b47;
}
.breadcrumb span {
  color: #333;
}

/* ========== 产品详情布局 ========== */
.product-detail {
  display: flex;
  gap: 50px;
  margin-bottom: 60px;
}
/* 产品图片 */
.product-img {
  flex: 1;
  height: 450px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 产品信息 */
.product-info {
  flex: 1;
}
.product-title {
  font-size: 32px;
  color: #2d8b47;
  margin-bottom: 20px;
  font-weight: 600;
}
.product-label {
  display: inline-block;
  padding: 6px 15px;
  background: #f0f9f4;
  color: #2d8b47;
  border-radius: 4px;
  font-size: 14px;
  margin-right: 10px;
  margin-bottom: 20px;
}
.info-item {
  margin-bottom: 18px;
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}
.info-item strong {
  color: #2d8b47;
  width: 100px;
  display: inline-block;
}

/* ========== 详情按钮 ========== */
.btn-group {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}
.detail-btn {
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.3s ease;
}
.btn-primary {
  background: #2d8b47;
  color: #fff;
}
.btn-primary:hover {
  background: #1e7539;
}
.btn-back {
  border: 1px solid #2d8b47;
  color: #2d8b47;
}
.btn-back:hover {
  background: #2d8b47;
  color: #fff;
}

/* ========== 产品详情内容 ========== */
.detail-content {
  margin-top: 50px;
}
.detail-tab {
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
  display: flex;
  gap: 30px;
}
.tab-item {
  padding: 15px 0;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  position: relative;
}
.tab-item.active {
  color: #2d8b47;
  font-weight: 600;
}
.tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2d8b47;
}
.tab-content {
  font-size: 15px;
  color: #333;
  line-height: 2;
}
.tab-content p {
  margin-bottom: 15px;
}
.tab-panel {
  display: none;
}
.tab-panel.show {
  display: block;
}

/* ========== 推荐产品 ========== */
.recommend {
  margin-top: 80px;
}
.recommend-title {
  text-align: center;
  font-size: 26px;
  color: #2d8b47;
  margin-bottom: 40px;
  position: relative;
}
.recommend-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #2d8b47;
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
}
.recommend-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.rec-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}
.rec-card:hover {
  transform: translateY(-5px);
}
.rec-img {
  width: 100%;
  height: 180px;
  background: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}
.rec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-name {
  font-size: 16px;
  color: #2d8b47;
  margin-bottom: 10px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }
  .banner h1 { font-size: 28px; }
  .banner p { font-size: 15px; }
  .container { width: 95%; padding: 0 10px; margin: 40px auto; }
  .product-detail {
    flex-direction: column;
    gap: 30px;
  }
  .recommend-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-img {
    height: 280px;
  }
  .product-title {
    font-size: 24px;
  }
  .info-item strong {
    width: 80px;
    font-size: 14px;
  }
  .info-item {
    font-size: 14px;
  }
  .tab-item {
    font-size: 16px;
    padding: 12px 15px;
  }
  .detail-tab {
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
  }
}