/* game.eyetoolkit.com 全站样式 */
:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #818CF8;
  --accent: #FBBF24;
  --bg: #F9FAFB;
  --bg-dark: #1F2937;
  --text: #111827;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --success: #10B981;
  --danger: #EF4444;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 10px -5px rgba(0,0,0,0.04);
  --radius: 1rem;
  --radius-sm: 0.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ═══ 导航栏 ═══ */
.nav {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-menu a {
  color: var(--text);
  font-weight: 500;
}

/* ═══ 容器 ═══ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ═══ Hero ═══ */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══ 游戏卡片网格 ═══ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.game-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-align: center;
  display: block;
  color: var(--text);
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.game-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}
.game-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.game-desc {
  font-size: 0.875rem;
  color: var(--text-light);
}
.game-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}

/* ═══ 通用按钮 ═══ */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn:hover { background: var(--primary-dark); color: white; text-decoration: none; }
.btn-alt { background: var(--text-light); }
.btn-alt:hover { background: var(--text); }

/* ═══ 游戏页通用 ═══ */
.game-page {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.game-header h1 { font-size: 1.75rem; }
.game-stats {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}
.game-stats span {
  background: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* ═══ 页脚 ═══ */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-light);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* ═══ 移动端适配 ═══ */
@media (max-width: 768px) {
  .nav-menu { gap: 1rem; font-size: 0.875rem; }
  .hero h1 { font-size: 1.875rem; }
  .hero { padding: 2rem 1rem; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .game-icon { font-size: 2rem; }
  .game-title { font-size: 1rem; }
  .container { padding: 1rem; }
}
@media (max-width: 480px) {
  .nav-inner { flex-direction: column; gap: 0.5rem; }
  .game-grid { grid-template-columns: 1fr; }
}

/* ═══ 深色模式（系统跟随）═══ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --text: #F9FAFB;
    --text-light: #9CA3AF;
    --border: #374151;
  }
  .nav, .game-card, .game-page { background: var(--bg-dark); }
}
