/* 轮播图样式 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-slide.active {
  opacity: 1;
}

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

/* 轮播图内容覆盖层 */
.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 60px 40px 40px;
  text-align: left;
}

.carousel-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.carousel-description {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
}

/* 导航箭头 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* 指示器 */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

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

.carousel-dot.active,
.carousel-dot:hover {
  background: white;
  border-color: white;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .carousel-container {
    height: 400px;
    border-radius: var(--border-radius-md);
  }
  
  .carousel-content {
    padding: 40px 20px 20px;
  }
  
  .carousel-title {
    font-size: 24px;
    margin-bottom: 8px;
  }
  
  .carousel-description {
    font-size: 14px;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .carousel-prev {
    left: 12px;
  }
  
  .carousel-next {
    right: 12px;
  }
  
  .carousel-dots {
    bottom: 16px;
    gap: 8px;
  }
  
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 300px;
    border-radius: var(--border-radius-sm);
  }
  
  .carousel-content {
    padding: 30px 16px 16px;
  }
  
  .carousel-title {
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .carousel-description {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .carousel-prev {
    left: 8px;
  }
  
  .carousel-next {
    right: 8px;
  }
  
  .carousel-dots {
    bottom: 12px;
    gap: 6px;
  }
  
  .carousel-dot {
    width: 8px;
    height: 8px;
    border-width: 1px;
  }
}

/* 轮播图加载状态 */
.carousel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  font-size: 16px;
}

/* 轮播图错误状态 */
.carousel-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  text-align: center;
  padding: 20px;
}

.carousel-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.carousel-error-text {
  font-size: 16px;
  margin-bottom: 8px;
}

.carousel-error-desc {
  font-size: 14px;
  opacity: 0.7;
}
