/**
 * 暗黑生存风格主题
 * 为Monster Survivors网站提供暗黑主题的视觉效果
 */

:root {
  /* 主题颜色变量 */
  --dark-bg: #0d1117;
  --darker-bg: #050608;
  --glass-bg: rgba(13, 17, 23, 0.7);
  --neon-purple: #bf5af2;
  --neon-blue: #0a84ff;
  --neon-green: #30d158;
  --neon-red: #ff453a;
  --neon-indigo: #5e5ce6;
  --text-light: #e6e6e6;
  --text-gray: #8e8e93;
  
  /* 辉光效果变量 - 优化发光效果 */
  --purple-glow: 0 0 2px rgba(191, 90, 242, 0.9), 0 0 4px rgba(191, 90, 242, 0.6);
  --blue-glow: 0 0 2px rgba(10, 132, 255, 0.9), 0 0 4px rgba(10, 132, 255, 0.6);
  --green-glow: 0 0 2px rgba(48, 209, 88, 0.9), 0 0 4px rgba(48, 209, 88, 0.6);
  --red-glow: 0 0 2px rgba(255, 69, 58, 0.9), 0 0 4px rgba(255, 69, 58, 0.6);
}

/* 背景和基本样式 */
body {
  background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
  color: var(--text-light);
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-smooth: always;
  letter-spacing: 0.01em;
}

/* 粒子背景 */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 导航栏样式 */
.navbar {
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(191, 90, 242, 0.2);
  transition: all 0.3s ease;
}

.navbar-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: rgba(5, 6, 8, 0.95);
}

/* 链接悬停效果 */
a:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* 卡片样式 */
.card, .feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.card:hover, .feature-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(191, 90, 242, 0.4);
}

/* 霓虹文本效果 - 优化文本阴影，提高清晰度 */
.neon-text {
  color: var(--neon-purple);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.8), 0 0 2px rgba(191, 90, 242, 0.7);
  letter-spacing: 0.3px;
  font-weight: 700;
}

.neon-text-blue {
  color: var(--neon-blue);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.8), 0 0 2px rgba(10, 132, 255, 0.7);
  letter-spacing: 0.3px;
  font-weight: 700;
}

.neon-text-green {
  color: var(--neon-green);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.8), 0 0 2px rgba(48, 209, 88, 0.7);
  letter-spacing: 0.3px;
  font-weight: 700;
}

.neon-text-purple {
  color: var(--neon-purple);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.8), 0 0 2px rgba(191, 90, 242, 0.7);
  letter-spacing: 0.3px;
  font-weight: 700;
}

/* 霓虹边框效果 */
.neon-border {
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 15px rgba(191, 90, 242, 0.4);
}

.neon-border-blue {
  border: 1px solid var(--neon-blue);
  box-shadow: 0 0 15px rgba(10, 132, 255, 0.4);
}

.neon-border-green {
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 15px rgba(48, 209, 88, 0.4);
}

/* 脉冲发光效果 */
.pulse-effect {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(191, 90, 242, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(191, 90, 242, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(191, 90, 242, 0);
  }
}

/* 优化发光文本动画，减少模糊程度 */
.glow-text {
  animation: glowText 2s infinite alternate;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.9);
}

@keyframes glowText {
  0% {
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.9), 0 0 2px rgba(191, 90, 242, 0.6);
  }
  100% {
    text-shadow: 0 0 1px rgba(255, 255, 255, 1), 0 0 2px rgba(191, 90, 242, 0.8);
  }
}

/* 游戏预览容器 */
.game-preview {
  border: 1px solid rgba(191, 90, 242, 0.3);
  transition: all 0.5s ease;
  margin: 0 auto;
  max-width: 1400px; /* 增大最大宽度 */
}

.game-preview:hover {
  box-shadow: 0 0 25px rgba(191, 90, 242, 0.4);
}

/* 按钮样式 */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(191, 90, 242, 0.2), transparent);
  transition: all 0.6s;
  z-index: -1;
}

.btn:hover:before {
  left: 100%;
}

/* 回到顶部按钮 */
.back-to-top {
  background: rgba(10, 132, 255, 0.3);
  border: 1px solid var(--neon-blue);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: rgba(10, 132, 255, 0.5);
  box-shadow: 0 0 15px rgba(10, 132, 255, 0.6);
}

.back-to-top.visible {
  opacity: 1;
}

/* 加载占位符效果 */
.loading-skeleton {
  position: relative;
}

@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.3;
  }
}

/* 移动菜单样式 */
.mobile-menu.active {
  display: block;
  background: rgba(5, 6, 8, 0.95);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid rgba(191, 90, 242, 0.3);
}

.mobile-menu-button.active {
  color: var(--neon-purple);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .neon-text, .neon-text-blue, .neon-text-green, .neon-text-purple {
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.6), 0 0 2px rgba(191, 90, 242, 0.7); /* 移动端优化文本阴影 */
    letter-spacing: 0.3px;
  }
  
  .pulse-effect {
    animation: none; /* 移动端禁用脉冲动画以提高性能 */
  }
}

/* 普通文本清晰度优化 */
p, li, span, a, h1, h2, h3, h4, h5, h6 {
  text-shadow: 0 0 0.5px rgba(255, 255, 255, 0.1);
}

/* FAQ部分样式优化 */
.faq-section {
  margin-bottom: 2rem;
}

.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  cursor: pointer;
  position: relative;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.faq-question svg {
  transition: transform 0.3s ease;
}

.faq-question.active {
  color: var(--neon-purple);
}

.faq-answer {
  line-height: 1.6;
  padding-bottom: 0.5rem;
  border-left: 2px solid var(--neon-blue);
  padding-left: 1rem;
  margin-left: 0.5rem;
} 