/* 轮播banner样式 */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  width: 33.333%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.carousel-slide:nth-child(1) {
  background-image: url('//static.lzmobi.com/static/lzmobi.com/images/banner-1.jpg');
}

.carousel-slide:nth-child(2) {
  background-image: url('//static.lzmobi.com/static/lzmobi.com/images/banner-2.jpg');
}

.carousel-slide:nth-child(3) {
  background-image: url('//static.lzmobi.com/static/lzmobi.com/images/banner-3.jpg');
}

.carousel-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
}

.carousel-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 0.5s ease-out;
}

.carousel-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s ease-out;
}

.carousel-content .btn {
  animation: fadeInUp 0.9s ease-out;
}

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

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

.carousel-indicator.active {
  background-color: #fff;
  transform: scale(1.2);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-control {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-control:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.carousel-control i {
  color: #fff;
  font-size: 1.2rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-carousel {
    height: 400px;
  }
  
  .carousel-content h1 {
    font-size: 2rem;
  }
  
  .carousel-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-carousel {
    height: 350px;
  }
  
  .carousel-content h1 {
    font-size: 1.8rem;
  }
  
  .carousel-slide {
    /* padding: 0 10%; */
  }
  
  .carousel-controls {
    /* display: none; */
  }
}
