/* 游策堂全局背景样式 */

/* 全局背景 - 游戏风格深色渐变 */
body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #487ebf  50%, #16213e 75%, #1a1a2e 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  position: relative;
}

/* 背景动画 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 添加纹理效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(245, 87, 108, 0.08) 0%, transparent 50%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

/* 添加网格纹理 */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* 确保内容在背景之上 */
.container--outer {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 头部区域优化 */
.header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-radius: 8px 8px 0 0;
}

/* 内容区域保持白色背景 */
.wrapper {
  background: #fff;
}

/* 侧边栏优化 */
.sidebar {
  background: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
  body {
    background-size: 200% 200%;
  }
  
  .container--outer {
    margin: 10px;
    border-radius: 4px;
  }
}

/* 深色模式下的游戏卡片背景保持 */
.game-card {
  background: #1a1a1a;
}

/* 确保加载动画在背景之上 */
.loading-container {
  position: relative;
  z-index: 2;
}

/* 分页器样式优化 */
.pagination-container {
  position: relative;
  z-index: 2;
}

