.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 1s ease,
    transform 0.6s ease;
  cursor: pointer;
  will-change: transform;
  pointer-events: none;
}

.carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel:hover .carousel-item.active {
  transform: scale(1.03);
}

/* 箭头按钮（默认可见，rem 单位） */
.carousel-arrow {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 0.6rem;
  height: 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0.08rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.carousel-arrow::before {
  content: '';
  display: block;
  width: 0.16rem;
  height: 0.16rem;
  border-left: 0.04rem solid #fff;
  border-bottom: 0.04rem solid #fff;
  transform: rotate(45deg);
  margin: 0.34rem auto 0 0.22rem;
}

.carousel-prev {
  left: 0.24rem;
}

.carousel-next {
  right: 0.24rem;
}

.carousel-next::before {
  transform: rotate(225deg);
  margin: 0.34rem 0 0 0.18rem;
}

/* 圆点指示器 */
.carousel-dots {
  position: absolute;
  bottom: 0.18rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.12rem;
  z-index: 5;
}

.carousel-dots span {
  width: 0.14rem;
  height: 0.14rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    width 0.3s,
    background 0.3s;
}

.carousel-dots span.active {
  width: 0.32rem;
  border-radius: 0.08rem;
  background: #fff;
}

/* NEW 角标 */
.carousel-new-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  background: url(../../images/v1/new.png) no-repeat center / 100% 100%;
  z-index: 3;
  pointer-events: none;
}

/* ============ PC 覆盖（>= 800px 用 px 单位）=========== */
@media (min-width: 800px) {
  .carousel-arrow {
    top: 50%;
    width: 42px;
    height: 64px;
    border-radius: 6px;
  }

  .carousel-arrow::before {
    width: 14px;
    height: 14px;
    border-left-width: 3px;
    border-bottom-width: 3px;
    margin: 24px auto 0 15px;
  }

  .carousel-next::before {
    margin: 24px 0 0 13px;
  }

  .carousel-prev {
    left: 20px;
  }

  .carousel-next {
    right: 20px;
  }

  .carousel-dots {
    bottom: 16px;
    gap: 10px;
  }

  .carousel-dots span {
    width: 10px;
    height: 10px;
  }

  .carousel-dots span.active {
    width: 24px;
    border-radius: 6px;
  }

  .carousel-new-badge {
    width: 157px;
    height: 156px;
  }
}
