/* Hero Banner 滑动功能 - 修复版 */

/* Banner容器 */
.hero-banner-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 视频Banner使用与第一个Banner相同的背景 */
.banner-slide:nth-child(2) .bg {
  background: inherit;
}

/* 视频容器样式 */
.video-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* 大尺寸视频容器 */
.video-container-large {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.video-container-large video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  min-height: 400px;
  object-fit: cover;
}

.video-container-large .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.video-container-large:hover .video-overlay {
  opacity: 1;
}

.video-container-large .play-button {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #333;
  transition: all 0.3s ease;
}

.video-container-large .play-button:hover {
  transform: scale(1.1);
  background: white;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.video-container:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #333;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
  background: white;
}

.video-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Banner导航点 */
.banner-dots {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--neo-cyan, #00ffff);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Banner导航箭头 */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 10;
  pointer-events: none;
}

.nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(0, 255, 255, 0.3);
  border-color: var(--neo-cyan, #00ffff);
  transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .banner-nav {
    padding: 0 20px;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .banner-dots {
    bottom: 60px;
  }
}

@media (max-width: 480px) {
  .video-container {
    margin: 1rem auto;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .video-actions {
    flex-direction: column;
    align-items: center;
  }
}