/* 霓虹发光效果 */
.glow-purple {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.glow-pink {
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.5);
}

/* 文字发光 */
.text-glow-purple {
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.8), 0 0 20px rgba(139, 92, 246, 0.4);
}

.text-glow-cyan {
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.8), 0 0 20px rgba(6, 182, 212, 0.4);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a78bfa;
}

/* 星星背景动画 */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

/* 浮动动画 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* 霓虹边框效果 */
.neon-border {
  position: relative;
}

.neon-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #8b5cf6, #06b6d4, #f472b6, #8b5cf6);
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  animation: gradient-shift 8s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.neon-border:hover::before {
  opacity: 1;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 游戏卡片悬停效果增强 */
.game-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* 导航链接悬停效果 */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* 按钮霓虹效果 */
.btn-neon {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-neon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-neon:hover::before {
  width: 300px;
  height: 300px;
}

/* 玻璃拟态效果增强 */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 脉冲动画 */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* 平滑过渡 */
* {
  scroll-behavior: smooth;
}

/* 表单输入框聚焦效果 */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* 社交媒体图标悬停 */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-4px);
}

/* 移动端菜单动画 */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-animate {
  animation: slideDown 0.3s ease forwards;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .text-glow-purple,
  .text-glow-cyan {
    text-shadow: 0 0 5px currentColor;
  }
}
