/* 主要样式 */
:root {
  --primary: #8A2BE2;
  --secondary: #FF00FF;
  --background: #F5F5F5;
  --dark: #0D0D0D;
  --darker: #070707;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #070707;
  color: white;
}

/* 游戏卡片 */
.game-card {
  transition: all 0.3s ease;
  background-color: var(--dark);
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(138, 43, 226, 0.2);
}

/* 响应式iframe容器 */
.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.aspect-h-9 {
  position: relative;
}

.aspect-w-16 iframe,
.aspect-h-9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 游戏详情页面大图 */
.game-banner {
  position: relative;
}

.game-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(7, 7, 7, 0) 0%, rgba(7, 7, 7, 1) 100%);
  pointer-events: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .game-card {
    margin-bottom: 1rem;
  }

  header .container {
    padding: 0.75rem 1rem;
  }

  .game-banner {
    height: 300px !important;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .aspect-w-16 {
    padding-bottom: 75%;
  }
}

/* 辅助功能 */
@media (prefers-reduced-motion: reduce) {

  .game-card {
    transition: none;
    animation: none;
  }

  .game-card:hover {
    transform: none;
  }
}

/* 额外SEO优化 */
.hidden-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 鼠标跟随雾气效果 */
#cursor-fog {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 300px;
  height: 300px;
  filter: blur(30px);
  background: rgba(255, 255, 255, 0.1);
  mix-blend-mode: screen;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: opacity 0.2s ease;
}

/* 霓虹文字效果 */
.neon-text {
  color: #fff;
  text-shadow:
    0 0 5px rgba(138, 43, 226, 0.5),
    0 0 10px rgba(138, 43, 226, 0.3),
    0 0 15px rgba(138, 43, 226, 0.2);
}

/* 按钮悬停效果 */
button:hover {
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

/* 搜索结果样式 */
#search-results {
  transition: all 0.3s ease;
}

#search-results-container {
  min-height: 200px;
}