/* ========== 4个大型产品分类 Banner 样式 ========== */

.category-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 120px 0;
}

.category-banner-hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  aspect-ratio: 10 / 3;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.category-info-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.category-info {
  max-width: 520px;
  color: #fff;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.category-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 35px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-features {
  list-style: none;
  padding: 0;
  margin: 0 0 45px 0;
}

.category-features li {
  font-size: 20px;
  line-height: 2.1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-style: normal;
  flex-shrink: 0;
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 42px;
  background: #e74c3c;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.see-more-btn span {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.see-more-btn:hover {
  background: #c0392b;
  transform: translateX(4px);
}

.see-more-btn:hover span {
  transform: translateX(4px);
}

/* 产品列表区域 */
.category-products-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 50px 40px 60px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.category-products-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 25px 0;
  color: #333;
  letter-spacing: 0.5px;
}

.category-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}

.product-mini-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 22px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.product-mini-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.product-mini-img {
  position: relative;
  width: 100%;
  height: 150px;
  margin-bottom: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-mini-card:hover .product-mini-img img {
  transform: scale(1.06);
}

.hot-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c;
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.product-mini-card h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 10px 0 10px 0;
  color: #333;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* View Details 按钮样式 */
.view-details-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.product-mini-card:hover .view-details-btn {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
  transform: translateY(-2px);
}

.product-mini-card .price {
  font-size: 16px;
  font-weight: 700;
  color: #e74c3c;
  margin: 4px 0 6px 0;
}

.product-mini-card .min-order {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* 响应式优化 */
@media screen and (max-width: 1200px) {
  .category-info-wrapper {
    justify-content: center;
    text-align: center;
    padding: 0 40px;
  }

  .category-info {
    max-width: 640px;
  }

  .category-products-section {
    margin: 40px 20px 0;
    padding: 45px 32px 50px;
  }
}

@media screen and (max-width: 768px) {
  .category-section {
    margin: 0 0 80px 0;
  }

  .category-banner-hero {
    aspect-ratio: 10 / 3;
    min-height: auto;
  }

  .category-info {
    text-align: left;
    max-width: 100%;
  }

  .category-info-wrapper {
    padding: 0 20px;
    justify-content: flex-start;
  }

  .category-title {
    font-size: 22px;
    margin-bottom: 14px;
    line-height: 1.15;
  }

  .category-features {
    margin-bottom: 0;
  }

  .category-features li {
    font-size: 10px;
    line-height: 2.1;
    gap: 8px;
    justify-content: flex-start;
  }

  .feature-icon {
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 8px;
  }

  /* 隐藏按钮 */
  .see-more-btn {
    display: none;
  }

  .category-products-section {
    margin: 40px 20px 0;
    padding: 35px 20px 40px;
  }

  .category-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-mini-card {
    padding: 14px 12px 18px;
  }

  .product-mini-img {
    height: 120px;
  }

  .product-mini-card h4 {
    font-size: 13px;
    height: 36px;
  }

  .view-details-btn {
    padding: 8px 18px;
    font-size: 12px;
    margin-top: 8px;
  }
}

@media screen and (max-width: 480px) {
  .category-section {
    margin: 0 0 60px 0;
  }

  .category-banner-hero {
    aspect-ratio: 10 / 3;
    min-height: auto;
  }

  .category-info-wrapper {
    padding: 0 15px;
  }

  .category-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .category-features {
    margin-bottom: 0;
  }

  .category-features li {
    font-size: 8px;
    line-height: 2.1;
    gap: 6px;
  }

  .feature-icon {
    width: 13px;
    height: 13px;
    line-height: 13px;
    font-size: 7px;
  }

  /* 隐藏按钮 */
  .see-more-btn {
    display: none;
  }

  .category-products-section {
    margin: 30px 15px 0;
    padding: 25px 15px 30px;
  }

  .category-products {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-mini-card {
    padding: 12px 10px 16px;
  }

  .product-mini-img {
    height: 180px;
  }

  .product-mini-card h4 {
    font-size: 14px;
    height: auto;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .view-details-btn {
    padding: 8px 20px;
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .category-banner-hero {
    padding: 80px 0 100px 0;
  }

  .category-title {
    font-size: 24px;
  }

  .feature-icon {
    width: 26px;
    height: 26px;
    line-height: 26px;
  }

  .see-more-btn {
    padding: 12px 28px;
    font-size: 14px;
  }

  .category-products {
    grid-template-columns: 1fr;
  }
}
