/* 优化的清晰标题文字效果 */
.cyber-title-text {
  color: #fff;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 1),
    0 0 2px rgba(255, 255, 255, 1),
    0 0 4px rgba(255, 255, 255, 0.8),
    0 0 6px rgba(0, 255, 255, 0.8),
    0 0 12px rgba(0, 255, 255, 0.5),
    0 0 18px rgba(0, 255, 255, 0.3);
  letter-spacing: 2px;
  font-family: 'CyberFont', 'Orbitron', sans-serif;
  font-weight: 700;
  position: relative;
}

/* 优化的返回按钮样式 */
.cyber-button-back {
  background: linear-gradient(to right, 
    hsl(187 100% 42%), 
    hsl(195 100% 50%)
  );
  color: white;
  font-family: 'CyberFont', 'Orbitron', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s;
  box-shadow:
    0 0 10px rgba(0, 255, 255, 0.5),
    0 0 20px rgba(0, 255, 255, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.cyber-button-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: -1;
}

.cyber-button-back:hover::before {
  transform: translateX(100%);
}

.cyber-button-back:hover {
  box-shadow:
    0 0 15px rgba(0, 255, 255, 0.8),
    0 0 30px rgba(0, 255, 255, 0.5);
  transform: translateY(-2px);
}

.cyber-button-back:active {
  transform: translateY(1px);
}

/* 点击提示样式 */
.click-hint-box {
  background-color: rgba(0, 0, 0, 0.7);
  animation: hint-pulse 2s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

.click-hint-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 255, 255, 0.2), 
    transparent
  );
  animation: hint-shine 3s infinite;
}

.click-hint-text {
  background: linear-gradient(90deg, 
    #00ffff, 
    #ffffff, 
    #00ffff
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: hint-text-shine 3s linear infinite;
}

@keyframes hint-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5),
                0 0 10px rgba(0, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8),
                0 0 25px rgba(0, 255, 255, 0.5);
  }
}

@keyframes hint-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes hint-text-shine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* 反击特效 */
/* 闪电攻击特效 */
.lightning-attack {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}

.lightning-attack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;
  filter: blur(1px);
  animation: lightning-flash 1s ease-out forwards;
}

.lightning-attack::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 200%;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.9),
    rgba(30, 144, 255, 0.9),
    rgba(30, 144, 255, 0.5),
    transparent
  );
  box-shadow: 
    0 0 15px rgba(255, 255, 255, 0.9),
    0 0 30px rgba(30, 144, 255, 0.9),
    0 0 45px rgba(30, 144, 255, 0.5);
  animation: lightning-strike 0.5s ease-out forwards;
  clip-path: polygon(
    40% 0, 60% 0, 60% 20%, 100% 20%, 40% 60%, 60% 60%,
    0 100%, 40% 40%, 20% 40%, 50% 10%
  );
}

@keyframes lightning-flash {
  0%, 90% {
    opacity: 0;
  }
  10%, 20%, 80% {
    opacity: 0.2;
  }
  30%, 40%, 50%, 60%, 70% {
    opacity: 0.9;
    box-shadow: 0 0 100px 50px rgba(255, 255, 255, 0.9);
  }
  100% {
    opacity: 0;
  }
}

@keyframes lightning-strike {
  0% {
    width: 2px;
    height: 0;
    opacity: 0;
  }
  10% {
    width: 2px;
    height: 0;
    opacity: 1;
  }
  20% {
    width: 20px;
    height: 200%;
    opacity: 1;
  }
  30%, 40% {
    width: 10px;
    opacity: 1;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

/* 能量波动攻击特效 */
.energy-attack {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}

.energy-attack::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.9) 0%,
    rgba(0, 255, 255, 0.7) 30%,
    rgba(128, 0, 255, 0.5) 70%,
    transparent 100%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: energy-wave 1s ease-out forwards;
}

.energy-attack::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 0, 255, 0.9) 0%,
    rgba(255, 0, 255, 0.7) 30%,
    rgba(0, 0, 255, 0.5) 70%,
    transparent 100%
  );
  transform: translate(-50%, -50%);
  animation: energy-wave 1s ease-out 0.2s forwards;
}

@keyframes energy-wave {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
  }
}

/* 爆炸光芒攻击特效 */
.explosion-attack {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}

.explosion-attack::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 
    0 0 20px 10px rgba(255, 255, 255, 0.9),
    0 0 40px 20px rgba(255, 165, 0, 0.8),
    0 0 60px 30px rgba(255, 0, 0, 0.7);
  animation: explosion-grow 0.8s ease-out forwards;
}

.explosion-attack::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 0, 0.8) 20%,
    rgba(255, 165, 0, 0.7) 40%,
    rgba(255, 0, 0, 0.6) 60%,
    transparent 100%
  );
  opacity: 0;
  animation: explosion-flash 0.8s ease-out forwards;
}

@keyframes explosion-grow {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
  }
  50% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 0;
    height: 0;
    opacity: 0;
  }
}

@keyframes explosion-flash {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  40% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

/* 增强的粒子效果系统 */
.star-particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 3px currentColor;
}

.data-stream {
  position: absolute;
  width: 1px;
  opacity: 0.5;
  background: linear-gradient(to bottom, transparent, currentColor, transparent);
  animation: stream-animation 8s linear infinite;
  transform-origin: top center;
}

@keyframes stream-animation {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.energy-pulse {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  border: 1px solid currentColor;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: pulse-animation 4s ease-out infinite;
}