/* 轮播容器样式 */
.carousel-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#carousel {
  position: relative;
  height: 100%;
}

/* 轮播项样式 */
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
  z-index: 10;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(23, 25, 35, 0.7), rgba(23, 25, 35, 0.3));
  z-index: 10;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 轮播文字描述 */
.carousel-caption {
  position: absolute;
  bottom: 64px;
  left: 32px;
  max-width: 400px;
  z-index: 20;
}

@media (min-width: 768px) {
  .carousel-caption {
    bottom: 96px;
    left: 64px;
  }
}

.carousel-caption span {
  display: inline-block;
  padding: 4px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 16px;
  margin-bottom: 16px;
}

.carousel-caption h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

.carousel-caption p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(247, 250, 252, 0.9);
  margin-bottom: 32px;
  max-width: 300px;
}

.carousel-caption a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--light);
  color: var(--light);
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.carousel-caption a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 轮播控制样式 */
.carousel-controls {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 24px;
}

/* 轮播指示器 */
.carousel-indicators {
  display: flex;
  gap: 12px;
}

.carousel-indicators button {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 2px;
  width: 32px;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-indicators button:hover,
.carousel-indicators button.active {
  background-color: white;
}

.carousel-indicators button.active {
  width: 64px;
}

/* 轮播按钮 */
.carousel-buttons {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.carousel-buttons button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-buttons button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}