/* Bichun Hot Product Component Styles */

.bichun-hot-product {
  width: 100%;
  padding: 6.875rem 0;
  overflow: hidden;
}

.bichun-hot-product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.bichun-hot-product-title {
  color: var(--color-primary);
  margin: 0;
}
/* .bichun-hot-product-more-btn {
} */

.bichun-hot-product-brands {
  position: relative;
  min-height: 3.5rem;
  border-radius: 8px;
  background: #f3f8fe;
  /* display: flex; */
  /* flex-wrap: wrap; */
  /* gap: 1rem; */
  /* margin-bottom: 2rem; */
}

.bichun-hot-product-brand-group {
  display: flex;
  width: 100%;
  position: absolute;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  background: #f3f8fe;
  padding: 0.9375rem 1.25rem;
  border-radius: 8px;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.bichun-hot-product-brand-group.hide {
  opacity: 0;
  visibility: hidden;
}

.bichun-hot-product-brand-group.show {
  opacity: 1;
  visibility: visible;
}

.bichun-hot-product-brand-group .brand-label {
  color: var(--color-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-lg);
  font-weight: 500;
}

.bichun-hot-product-brand-group .brand-list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-left: 10px;
}

.bichun-hot-product-brand-item {
  color: #666;
  font-family: var(--font-family);
  font-size: var(--font-size-lg);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.bichun-hot-product-brand-item:hover {
  color: #333;
}

.bichun-hot-product-swiper {
  position: relative;
  padding: 2rem !important;
  margin: 0 -2rem !important;
}

.bichun-hot-product-swiper .swiper-wrapper .swiper-slide {
  /* width: 25%; */
  /* flex: 1; */
  width: 100%;
  /* min-width: 20.3125rem; */
  /* margin-right: 2.0625rem; */
}

.bichun-hot-product-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  gap: 20px;
  /* max-width: 325px; */
  /* max-height: 500px; */
  position: relative;
}

.bichun-hot-product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  flex-shrink: 0;
}

.bichun-hot-product-card-image img {
  width: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  user-select: none;
}

.bichun-hot-product-card-pic {
  transition: opacity 0.5s ease;
}

.bichun-hot-product-card-hover-pic {
  opacity: 0;
  transition: opacity 0.5s ease;
  user-select: none;
}

.bichun-hot-product-card.active .bichun-hot-product-card-pic {
  opacity: 0;
}

.bichun-hot-product-card.active .bichun-hot-product-card-hover-pic {
  opacity: 1;
}

.bichun-hot-product-card.active .bichun-hot-product-card-image {
  box-shadow: 0 0 20px 0 rgba(13, 76, 145, 0.15);
}

/* 倒三角指示器 */
.bichun-hot-product-card::after {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid #f3f8fe;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.bichun-hot-product-card.active::after {
  opacity: 1;
  visibility: visible;
}

.bichun-hot-product-card-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bichun-hot-product-card.active
  .bichun-hot-product-card-content
  .bichun-hot-product-card-title {
  color: var(--color-primary);
  transition: all 0.5s;
}

.bichun-hot-product-card-content button {
  --button-size: 40px;
  flex-shrink: 0;
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: var(--button-size);
  height: var(--button-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #f3f8fe;
  overflow: hidden;
  transition: all 0.5s;
}

.bichun-hot-product-card.active .bichun-hot-product-card-content button {
  background-color: var(--color-primary);
  transition: all 0.5s;
}

.bichun-hot-product-card-content button svg {
  width: 22px;
  aspect-ratio: 1 / 1;
  transition: all 0.5s;
}

.bichun-hot-product-card.active .bichun-hot-product-card-content button svg,
.bichun-hot-product-card.active .bichun-hot-product-card-content button svg * {
  fill: #fff;
  color: #fff;
  transition: all 0.5s;
}

/* Responsive */
@media screen and (max-width: 768px) {
  /* .bichun-hot-product-swiper {
    margin: 0px !important;
  } */

  /* .bichun-hot-product-swiper .swiper-wrapper {
    margin-left: -20px !important;
  } */

  .bichun-hot-product-header {
    margin-bottom: 2rem;
  }

  .bichun-hot-product {
    padding: 2rem 0;
  }
}

@media screen and (max-width: 767px) {

  
  .bichun-hot-product-swiper .swiper-wrapper .swiper-slide {
    /* flex: 100% 0 0; */
    /* min-width: 0px; */
    /* width: 100%; */
  }

  .bichun-hot-product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0px;
  }
}
