﻿/* ==========================================
   ====== 轮播图样式 ======
   ========================================== */



/* App容器 */
#app1122 {
  width: 100%;
}

/* ====== 轮播图容器 ====== */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #000;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
}

/* ====== 轮播图片轨道 ====== */
.carousel-slides {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out; /* 【过渡动画时长】可在JS配置中修改 transitionDuration */
}

/* ====== 单张轮播图 ====== */
.carousel-slide {
  flex: 0 0 100%; /* 每张图片占满容器宽度 */
  width: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  /* 固定高度设置，可根据需要调整或移除 */
  /* max-height: 500px; */
  object-fit: cover;
}

/* ====== 左右切换按钮 ====== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.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;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ====== 响应式适配 ====== */
@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-btn-prev {
    left: 10px;
  }

  .carousel-btn-next {
    right: 10px;
  }

  .carousel-indicators {
    bottom: 15px;
    gap: 8px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }
}
