.banner-carousel {
  position: relative;
  width: 100vw;
  overflow: hidden;
  border-radius: 8px;
  min-width: 1024px;
}

.carousel-container {
  width: 100vw;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track > div {
  width: 100vw;
  height: 420px;
  flex-shrink: 0;
}
.carousel-track > div img {
  width: 100%;
  height: 100%;
  display: block;
  /* 显示最短边 */
  object-fit: cover;
}

/* 切换按钮 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 30px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn-prev {
  left: 20px;
}

.carousel-btn-next {
  right: 20px;
}

/* 指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.indicator.active,
.indicator:hover {
  background: rgba(255, 255, 255, 1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .carousel-btn-prev {
    left: 10px;
  }

  .carousel-btn-next {
    right: 10px;
  }

  .carousel-indicators {
    bottom: 10px;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }
}

/* 产品展示轮播特定样式 */
.product-showcase .carousel-container {
  width: auto;
}
.product-showcase .banner-carousel {
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-carousel .carousel-track img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.showcase-carousel .carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.showcase-carousel .carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.showcase-carousel .carousel-indicators {
  bottom: -40px;
}

.showcase-carousel .indicator {
  width: 10px;
  height: 10px;
  background: #ddd;
}

.showcase-carousel .indicator.active,
.showcase-carousel .indicator:hover {
  background: #007bff;
}

.showcase-carousel .carousel-track > div {
  width: 100%;
  flex-shrink: 0;
}

.showcase-carousel .carousel-track > div {
  height: auto;
}

/* 轮播项样式 */
.item__slider {
  background: #f6f8fc;
  padding: 30px 36px 40px;
  position: relative;
  box-sizing: border-box;
}

.item__slider .abs__button {
  position: absolute;
  top: 48px;
  right: 40px;
}

.item__slider .abs__button .button {
  padding: 10px 24px;
  width: auto;
  height: auto;
}

.item__slider .title {
  font-size: 30px;
  font-weight: 500;
  color: #111827;
}

.item__slider .desc {
  color: #4b5563;
  margin-top: 9px;
  font-size: 18px;
}

.item__slider img {
  width: 100% !important;
  height: auto !important;
  margin-top: 35px;
  /* 禁止拖动 */
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .item__slider {
    padding: 20px 24px 30px;
  }

  .item__slider .abs__button {
    top: 24px;
    right: 24px;
  }

  .item__slider .abs__button .button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .item__slider .title {
    font-size: 24px;
  }

  .item__slider .desc {
    font-size: 16px;
    margin-top: 6px;
  }

  .item__slider img {
    margin-top: 20px;
    overflow: hidden;
  }
}

.banner__list .banner__img {
  min-width: 1920px;
  height: 420px;
  object-fit: fill;
}
