/* ============================================
   智存游戏厅 - 炫酷版样式
   玻璃拟态 + 霓虹光效 + 动态背景
   ============================================ */

/* === 设计变量 === */
:root {
  /* 颜色 */
  --bg-0: #050511;
  --bg-1: #0a0a1f;
  --bg-2: #11112a;
  --glass: rgba(20, 20, 50, 0.55);
  --glass-2: rgba(30, 30, 60, 0.7);
  --glass-border: rgba(168, 85, 247, 0.25);
  --text-1: #ffffff;
  --text-2: #c4c4e0;
  --text-3: #8888a8;

  /* 渐变 */
  --grad-1: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #06b6d4 100%);
  --grad-2: linear-gradient(135deg, #06b6d4 0%, #a855f7 100%);
  --grad-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-4: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

  /* 霓虹色 */
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-cyan: #06b6d4;
  --neon-amber: #f59e0b;
  --neon-green: #10b981;

  /* 阴影 */
  --shadow-1: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.4);

  /* 尺寸 */
  --nav-h: 130px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  position: relative;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--neon-purple); color: #fff; }

/* === 动态背景层 === */
.bg-aurora {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(168, 85, 247, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(236, 72, 153, 0.25), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(6, 182, 212, 0.25), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  pointer-events: none;
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.bg-orbs { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orb-float 20s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: var(--neon-purple); top: -150px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--neon-cyan); bottom: -100px; right: -50px; animation-delay: -7s; }
.orb-3 { width: 350px; height: 350px; background: var(--neon-pink); top: 40%; left: 50%; animation-delay: -14s; }
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, -50px) scale(1.15); }
  66% { transform: translate(-60px, 60px) scale(0.9); }
}

/* === 玻璃拟态 === */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
}
.glass-strong {
  background: var(--glass-2);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* === 顶部导航 === */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-left: none; border-right: none; border-top: none;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 40px; height: 40px;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
  animation: logo-pulse 3s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6)); }
  50% { filter: drop-shadow(0 0 16px rgba(236, 72, 153, 0.9)); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-size: 18px; font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}
.brand-sub { font-size: 11px; color: var(--text-3); }

.search {
  flex: 1; max-width: 500px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 30px;
  transition: all 0.3s;
}
.search:focus-within {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15), var(--shadow-glow);
}
.search-icon { color: var(--text-3); flex-shrink: 0; }
.search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-1); font-size: 14px;
}
.search input::placeholder { color: var(--text-3); }
.search-kbd {
  padding: 2px 8px; border-radius: 6px;
  background: rgba(255,255,255,0.08);
  font-size: 11px; color: var(--text-3);
  border: 1px solid rgba(255,255,255,0.1);
}

.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--text-2);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s;
}
.icon-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  color: var(--neon-purple);
  transform: translateY(-1px);
}

/* === 分类 chips === */
.chips {
  position: relative;
  max-width: 1400px; margin: 0 auto;
  padding: 8px 24px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips-track { display: flex; gap: 8px; white-space: nowrap; }
.chips-fade {
  position: absolute; top: 0; bottom: 0; width: 30px;
  pointer-events: none; z-index: 2;
}
.chips-fade-l { left: 0; background: linear-gradient(to right, var(--bg-1), transparent); }
.chips-fade-r { right: 0; background: linear-gradient(to left, var(--bg-1), transparent); }

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}
.chip.active {
  background: linear-gradient(90deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}
.chip-count {
  font-size: 11px; padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
}
.chip.active .chip-count { background: rgba(0,0,0,0.25); }

/* === 主体 === */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* === Hero 轮播 === */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  height: 280px;
  box-shadow: var(--shadow-1);
}
.hero-track {
  display: flex; height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
  flex: 0 0 100%; height: 100%;
  position: relative;
  cursor: pointer;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,5,17,0.9) 0%, rgba(5,5,17,0.4) 50%, transparent 100%);
}
.hero-info {
  position: absolute; left: 32px; bottom: 32px; z-index: 2;
  max-width: 60%;
}
.hero-name {
  font-size: 28px; font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-desc {
  color: var(--text-2); font-size: 14px;
  margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-play {
  padding: 10px 24px; border-radius: 24px;
  background: var(--grad-1);
  color: #fff; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.5);
  transition: transform 0.2s;
}
.hero-play:hover { transform: scale(1.05); }
.hero-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.hero-btn:hover { background: rgba(168, 85, 247, 0.8); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 6px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer; transition: all 0.3s;
}
.hero-dot.active {
  width: 24px; border-radius: 4px;
  background: var(--grad-1);
}

/* === 统计条 === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat {
  padding: 20px;
  text-align: center;
  position: relative; overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: var(--neon-purple);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}
.stat::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-1);
  opacity: 0; transition: opacity 0.3s;
  z-index: -1;
}
.stat:hover::before { opacity: 0.1; }
.stat-num {
  font-size: 32px; font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1px;
}

/* === 内容标题 === */
.content-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.content-title-wrap { display: flex; align-items: center; gap: 16px; flex: 1; }
.content-head h2 {
  font-size: 24px; font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.content-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--neon-purple), transparent);
  border-radius: 2px;
}
.content-count {
  font-size: 13px; color: var(--text-3);
  white-space: nowrap;
}

/* === 游戏网格 === */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

/* === 游戏卡片 === */
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: card-in 0.4s ease-out backwards;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--neon-purple);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.4), var(--shadow-glow);
}
.game-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-2), #1a1a3a);
}
.game-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.game-card:hover .game-thumb img { transform: scale(1.1); }
.game-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
}
.game-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.game-badge.fc { background: rgba(168, 85, 247, 0.85); color: #fff; }
.game-badge.gba { background: rgba(6, 182, 212, 0.85); color: #fff; }
.game-badge.new { background: rgba(16, 185, 129, 0.85); color: #fff; }
.game-badge.hot { background: rgba(239, 68, 68, 0.85); color: #fff; }

.game-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5,5,17,0.9) 0%, transparent 60%);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px;
  opacity: 0; transition: opacity 0.3s;
}
.game-card:hover .game-overlay { opacity: 1; }
.play-btn {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--grad-1);
  color: #fff; font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.5);
}
.game-card:hover .play-btn { transform: translateY(0); }

.game-info { padding: 12px; }
.game-name {
  font-size: 14px; font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-3);
}
.game-plays { display: inline-flex; align-items: center; gap: 3px; }
.game-type {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.2);
  color: var(--neon-purple);
  font-weight: 600;
}

/* === 加载 === */
.loader {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 60px 20px;
  color: var(--text-3);
}
.loader-ring {
  width: 50px; height: 50px;
  border: 3px solid rgba(168, 85, 247, 0.2);
  border-top-color: var(--neon-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === 空状态 === */
.empty {
  text-align: center; padding: 80px 20px;
  color: var(--text-3);
}
.empty-emoji { font-size: 64px; margin-bottom: 16px; }
.empty p { margin-bottom: 20px; font-size: 16px; }

/* === 按钮 === */
.btn-glow {
  padding: 10px 24px;
  border-radius: 24px;
  background: var(--grad-1);
  color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
  transition: all 0.2s;
}
.btn-glow:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-text {
  padding: 6px 10px;
  color: var(--text-3); font-size: 14px;
  transition: color 0.2s;
}
.btn-text:hover { color: var(--text-1); }

/* === 分页 === */
.pager {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; flex-wrap: wrap;
  margin: 24px 0;
}
.page-btn {
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-2);
  font-size: 13px; font-weight: 500;
  transition: all 0.2s;
}
.page-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--neon-purple);
}
.page-btn.active {
  background: var(--grad-1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* === 浮动按钮 === */
.fab {
  position: fixed; right: 24px; bottom: 90px;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad-1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5);
  transition: all 0.3s;
  animation: fab-in 0.3s ease-out;
}
@keyframes fab-in { from { transform: scale(0); } to { transform: scale(1); } }
.fab:hover { transform: translateY(-4px) rotate(360deg); }

/* === 安装横幅 === */
.install-card {
  position: fixed; right: 24px; bottom: 24px;
  padding: 14px 18px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px;
  z-index: 50;
  box-shadow: var(--shadow-1);
  animation: install-in 0.4s ease-out;
  max-width: 340px;
}
@keyframes install-in { from { transform: translateY(100px); opacity: 0; } }
.install-icon { font-size: 24px; }
.install-text { display: flex; flex-direction: column; flex: 1; }
.install-text strong { font-size: 14px; }
.install-text span { font-size: 12px; color: var(--text-3); }

/* === 页脚 === */
.footer {
  position: relative;
  margin-top: 60px;
  padding: 40px 24px;
  border-top: 1px solid var(--glass-border);
  overflow: hidden;
}
.footer-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  text-align: center;
  position: relative; z-index: 1;
}
.footer-brand {
  font-size: 16px; font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.footer-tags { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.footer-tags span { margin: 0 4px; }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* === 模态框 === */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 17, 0.85);
  backdrop-filter: blur(8px);
  animation: fade-in 0.3s;
  cursor: pointer;
}
.modal-shell {
  position: relative;
  z-index: 1;
  width: 100%; max-width: 1100px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modal-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--shadow-glow);
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-shell.fullscreen { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
.modal-head {
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}
.modal-title-wrap { display: flex; align-items: center; gap: 10px; }
.modal-badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--grad-1);
  color: #fff; font-size: 11px; font-weight: 700;
}
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-actions { display: flex; gap: 6px; }
.modal-body {
  flex: 1; position: relative;
  background: #000;
  min-height: 400px;
}
.modal-body iframe { width: 100%; height: 100%; border: none; }
.modal-foot {
  padding: 10px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-3);
  border-top: 1px solid var(--glass-border);
}
.modal-link { color: var(--neon-cyan); }

.login-shell, .records-shell { max-width: 450px; }
.login-shell .modal-body, .records-shell .modal-body { background: var(--bg-1); padding: 20px; overflow-y: auto; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus { border-color: var(--neon-purple); }
.form-group input::placeholder { color: var(--text-3); }

.btn-full { width: 100%; margin-top: 8px; }

.login-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 12px;
  display: none;
}

.records-list { max-height: 400px; overflow-y: auto; }
.record-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  margin-bottom: 8px;
}
.record-item:last-child { margin-bottom: 0; }
.record-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--grad-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.record-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.record-info { flex: 1; min-width: 0; }
.record-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-time { font-size: 12px; color: var(--text-3); }
.record-play-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--grad-1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.record-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.5);
}

.nav-actions { display: flex; gap: 8px; }

/* === 响应式 === */
@media (max-width: 1024px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .hero { height: 240px; }
  .hero-name { font-size: 22px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 120px; }
  .nav-inner { padding: 10px 16px; gap: 12px; }
  .brand-text { display: none; }
  .search { padding: 8px 12px; }
  .search-kbd { display: none; }
  .main { padding: 16px; }
  .hero { height: 200px; border-radius: var(--radius); }
  .hero-info { left: 16px; bottom: 16px; max-width: 80%; }
  .hero-name { font-size: 18px; }
  .hero-desc { font-size: 12px; }
  .hero-play { padding: 8px 16px; font-size: 12px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
  .stat { padding: 14px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 11px; }
  .content-head h2 { font-size: 18px; }
  .games { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .game-info { padding: 8px; }
  .game-name { font-size: 13px; }
  .install-card { right: 12px; left: 12px; max-width: none; }
  .fab { right: 16px; bottom: 80px; }
}
@media (max-width: 480px) {
  .games { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-thumb-placeholder { font-size: 40px; }
  .footer-tags span:nth-child(even) { display: none; }
}

/* === 无障碍 === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (hover: none) {
  .game-card:hover { transform: none; }
  .game-overlay { opacity: 1; }
  .play-btn { transform: translateY(0); }
}