/* 轮播图容器 */
.carousel {
  width: 100%;
  height: 600px;
  overflow: hidden;
  position: relative;
}

/* 轮播项容器 */
.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  overflow: visible;
  will-change: transform;
}

.carousel-item {
  width: 100%;
  height: 600px;
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  color: white; /* 确保文字颜色不会和背景混淆 */
  font-size: 24px;
  font-weight: bold;
}

.carousel-item p {
  text-align: center;
  margin: 0;
}

/* 每个幻灯片 */
.slide {
  flex: 0 0 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
}
.slide img {
    width: 100%;
}

/* 轮播指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

/* 指示器圆点 */
.indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: white;
}

/* 适配移动端 */
@media screen and (max-width: 768px) {
  .carousel {
    height: 400px;
  }
  .slide {
    height: 400px;
  }
  .slide img {
    width: 100%;
    height: 100%;
  }
  .carousel-indicators {
    bottom: 15px;
  }
  .indicator {
    width: 10px;
    height: 10px;
  }
}
