/* 轮播图蓝色滤镜和科技感样式 */
.slide-overlay {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.slide-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 74, 153, 0.6); /* 蓝色滤镜 */
  z-index: 1;
  pointer-events: none; /* 允许点击穿透滤镜层 */
}

/* 确保轮播图控制元素在滤镜层上方 */
.flex-control-nav,
.flex-direction-nav {
  position: relative;
  z-index: 100 !important;
}

.flex-direction-nav li a {
  z-index: 100 !important;
}

.flex-control-nav li a {
  z-index: 100 !important;
}

/* 修复轮播图箭头和点的显示 */
.flexslider .flex-direction-nav li {
  z-index: 100 !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* 覆盖banner.css中的底部定位 */
.flex-direction-nav li {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

.flexslider .flex-control-nav {
  z-index: 100 !important;
  position: relative !important;
  bottom: 20px !important;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #ffffff;
  text-align: center;
  width: 80%;
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  animation: glitch 5s infinite;
}

.slide-title::before {
  content: '';
  position: absolute;
  left: -2px;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #00ffff;
  animation: line-animation 3s ease-in-out infinite;
}

.slide-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
}

.slide-subtitle::before {
  content: '<';
  margin-right: 8px;
  color: #00ffff;
  animation: blink 1.5s infinite;
}

.slide-subtitle::after {
  content: '>';
  margin-left: 8px;
  color: #00ffff;
  animation: blink 1.5s infinite;
}

/* 动画效果 */
@keyframes line-animation {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes glitch {
  0% { transform: translateX(0); }
  5% { transform: translateX(-2px); }
  10% { transform: translateX(2px); }
  15% { transform: translateX(0); }
  100% { transform: translateX(0); }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .slide-title {
    font-size: 1.8rem;
  }
  
  .slide-subtitle {
    font-size: 1rem;
  }
}