@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  .text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .card-hover {
    transition: all 0.3s ease;
  }
  .card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  }
  .carousel-item {
    transition: transform 0.5s ease-in-out;
  }
  .carousel-indicator {
    transition: all 0.3s ease;
  }
  .carousel-indicator.active {
    background-color: #FF9900;
    width: 2rem;
  }
}

:root {
  --primary: #FF9900;
  --secondary: #333333;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-300: #D4D4D4;
  --neutral-400: #A3A3A3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* 导航菜单动画 */
#mobile-menu-button {
  transition: transform 0.3s ease;
}

#mobile-menu-button.open {
  transform: rotate(90deg);
}

/* 游戏卡片动画 */
.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* 模态框动画 */
.modal {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal.active .modal-content {
  transform: scale(1);
}

/* 筛选按钮样式 */
.filter-btn.active {
  background-color: var(--primary);
  color: white;
}

/* 加载动画 */
.loader {
  border: 3px solid rgba(255, 153, 0, 0.3);
  border-radius: 50%;
  border-top: 3px solid var(--primary);
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 下载进度条动画 */
@keyframes download-progress {
  0% { width: 0%; }
  100% { width: 100%; }
}