/* 首页特定样式 */

/* 添加平滑滚动效果 */
html {
  scroll-behavior: smooth;
}

/* 主视觉区 */
.hero {
  height: 100vh;
  min-height: 100vh;
  background: none;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  margin-top: 0;
  padding-top: 0;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../123.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: brightness(0.75);
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 3;
}

/* 轮播容器 */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; /* 确保轮播内容在所有粒子层之上 */
}

/* 轮播内容科技感增强 */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 科技感边框效果 */
.carousel-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid rgba(77, 255, 234, 0.2);
  border-radius: 10px;
  animation: borderPulse 4s ease-in-out infinite;
}

.carousel-container::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid rgba(82, 239, 187, 0.15);
  border-radius: 8px;
  animation: borderPulse 4s ease-in-out infinite 2s;
}

@keyframes borderPulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.02);
  }
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.slide-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-content:hover {
  transform: translateY(-5px);
}

.slide-title {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  color: #ffffff;
  position: relative;
}

/* 标题科技感额外效果已移除 */

/* 动画效果已移除 */

.slide-subtitle {
  font-size: 1.4rem;
  margin-bottom: 24px;
  font-weight: 400;
  text-shadow: 0px 1px 15px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.slide-description {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* 轮播控制按钮 */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 11; /* 确保控制按钮在轮播内容之上 */
  pointer-events: none;
}

.carousel-prev,
.carousel-next {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: scale(1.1);
}

/* 轮播指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 11; /* 确保指示器在轮播内容之上 */
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.indicator.active {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .slide-title {
    font-size: 4rem;
  }
  
  .slide-subtitle {
    font-size: 1.2rem;
  }
  
  .carousel-controls {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .slide-title {
    font-size: 3.2rem;
    margin-bottom: 16px;
  }
  
  .slide-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  .slide-description {
    font-size: 0.9rem;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .carousel-controls {
    padding: 0 15px;
  }
  
  .carousel-indicators {
    bottom: 30px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  .slide-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }
  
  .slide-subtitle {
    font-size: 1rem;
    margin-bottom: 16px;
  }
  
  .slide-description {
    font-size: 0.85rem;
  }
  
  .slide-content {
    padding: 0 16px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .carousel-indicators {
    bottom: 20px;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
  }
}
