@charset "UTF-8";

/*
  Game Store - Shared Styles
  - Cool, modern, responsive design for game websites
  - Works on desktop and mobile without JS frameworks
*/

/* CSS Reset (minimal) */
* { 
  box-sizing: border-box; 
}
html { 
  line-height: 1.5; 
  -webkit-text-size-adjust: 100%; 
}
body { 
  margin: 0; 
}
img { 
  max-width: 100%; 
  display: block; 
  height: auto; 
}
button, input, select { 
  font: inherit; 
}
a { 
  color: inherit; 
  text-decoration: none; 
}

:root {
  /* 游戏风格颜色方案 */
  --primary-color: #ff2a6d;
  --secondary-color: #05d9e8;
  --accent-color: #d1f7ff;
  --dark-bg: #0c0c14;
  --darker-bg: #080810;
  --card-bg: #151528;
  --card-border: #2a2a4a;
  --text-light: #ffffff;
  --text-muted: #a0a0c0;
  --success: #00ff9d;
  --warning: #ffcc00;
  --danger: #ff3860;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --glow: 0 0 15px rgba(5, 217, 232, 0.7);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --container: 1200px;
}

/* 霓虹动画效果 */
@keyframes glow {
  0% {
    text-shadow: 0 0 5px var(--secondary-color),
                 0 0 10px var(--secondary-color),
                 0 0 15px var(--secondary-color),
                 0 0 20px var(--accent-color);
  }
  100% {
    text-shadow: 0 0 10px var(--secondary-color),
                 0 0 20px var(--secondary-color),
                 0 0 30px var(--secondary-color),
                 0 0 40px var(--accent-color);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 217, 232, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(5, 217, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 217, 232, 0);
  }
}

body {
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  color: var(--text-light);
  font-family: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 20, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.5rem;
  animation: glow 2s ease-in-out infinite alternate;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: var(--glow);
}

.brand-name { 
  color: var(--text-light); 
  animation: glow 2s ease-in-out infinite alternate;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-links a {
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--secondary-color);
  background: rgba(5, 217, 232, 0.1);
  text-shadow: 0 0 8px var(--secondary-color);
  box-shadow: 0 0 10px rgba(5, 217, 232, 0.3);
}

.search-bar {
  flex: 1 1 auto;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-input {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  outline: none;
  background: rgba(21, 21, 40, 0.7);
  color: var(--text-light);
  transition: all 0.3s ease;
}
.search-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(5, 217, 232, 0.5);
}
.search-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), #ff0055);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
}
.search-btn:hover { 
  background: linear-gradient(135deg, #ff0055, var(--primary-color)); 
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.8);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  padding: 32px 0 8px;
}
.hero-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 2px);
  animation: glow 2s linear infinite;
  background-size: 400%;
}
.hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  z-index: -1;
  margin: 1px;
}
.hero img { 
  border-radius: var(--radius-md); 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.hero-content h1 { 
  margin: 0 0 8px; 
  font-size: 28px; 
  animation: glow 3s ease-in-out infinite alternate;
}
.hero-content p { 
  margin: 0 0 16px; 
  color: var(--text-muted); 
}

.btn {
  --btn-bg: linear-gradient(135deg, var(--primary-color), #ff0055);
  --btn-hover: linear-gradient(135deg, #ff0055, var(--primary-color));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: var(--btn-bg);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
}
.btn:hover { 
  background: var(--btn-hover); 
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.8);
  transform: translateY(-3px);
}
.btn-outline { 
  background: transparent; 
  color: var(--secondary-color); 
  border: 1px solid var(--secondary-color);
  box-shadow: 0 0 10px rgba(5, 217, 232, 0.3);
}
.btn-outline:hover { 
  background: rgba(5, 217, 232, 0.1); 
  box-shadow: 0 0 15px rgba(5, 217, 232, 0.5);
  border-color: var(--secondary-color); 
  color: var(--text-light);
}

/* Sections */
.section { 
  padding: 28px 0; 
}
.section-header { 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  margin-bottom:16px; 
}
.section-title { 
  font-size: 24px; 
  margin: 0; 
  color: var(--text-light);
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.muted { 
  color: var(--text-muted); 
  transition: all 0.3s ease;
}
.muted:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 8px var(--secondary-color);
}

/* Filters */
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  position: relative;
}
.filters::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--radius-md);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  z-index: -1;
  opacity: 0.3;
}
.filter-chips { 
  display:flex; 
  align-items:center; 
  gap:8px; 
  flex-wrap: wrap; 
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(21, 21, 40, 0.5);
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}
.chip:hover { 
  border-color: var(--secondary-color); 
  color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(5, 217, 232, 0.3);
}
.chip.active { 
  background: rgba(5, 217, 232, 0.1); 
  color: var(--secondary-color); 
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(5, 217, 232, 0.5);
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sort-select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(21, 21, 40, 0.7);
  color: var(--text-light);
}

/* Grid */
.grid {
  display: grid;
  gap: 16px;
}
.grid.cards-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cards-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cards-2 { grid-template-columns: repeat(2, 1fr); }

/* Card */
.card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  border-color: var(--secondary-color);
}
.card-media { 
  aspect-ratio: 16/9; 
  background: linear-gradient(45deg, #1a1a2e, #16213e);
}
.card-body { 
  padding: 12px; 
  display:flex; 
  flex-direction:column; 
  gap:8px; 
}
.card-title { 
  font-weight: 700; 
  margin: 0; 
  color: var(--text-light);
  font-size: 1.1rem;
}
.card-meta { 
  color: var(--text-muted); 
  font-size: 14px; 
}
.price { 
  font-weight: 700; 
  color: var(--success);
}
.badge { 
  display:inline-block; 
  font-size:12px; 
  padding:4px 8px; 
  border-radius:999px; 
  background: rgba(5, 217, 232, 0.1); 
  color: var(--secondary-color);
}

/* Details layout */
.details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.details .panel {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  padding: 16px;
  box-shadow: var(--shadow);
}
/* 为详情页的游戏图片添加专门的样式 */
.details .panel img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.list { 
  margin: 0; 
  padding-left: 18px; 
  color: var(--text-muted); 
}

/* Footer */
.site-footer { 
  border-top: 1px solid var(--card-border); 
  padding: 24px 0; 
  margin-top: 40px; 
  color: var(--text-muted); 
}
.footer-grid { 
  display:grid; 
  grid-template-columns: 1fr 1fr; 
  gap:16px; 
  align-items:center; 
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--card-bg);
  transition: all 0.3s ease;
}
.page:hover { 
  border-color: var(--secondary-color); 
  color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(5, 217, 232, 0.3);
}
.page.active { 
  background: linear-gradient(135deg, var(--primary-color), #ff0055);
  color: #fff; 
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
}
.page.disabled { 
  opacity: .5; 
  pointer-events: none; 
}

/* Play button styles */
.play-btn {
  display: block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-color), #ff0055);
  color: white;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 42, 109, 0.5);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

.play-btn:hover {
  background: linear-gradient(135deg, #ff0055, var(--primary-color));
  box-shadow: 0 6px 20px rgba(255, 42, 109, 0.8);
  transform: translateY(-3px);
}

.play-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 42, 109, 0.5);
}

/* Utilities */
.spacer { height: 16px; }
.row { display:flex; align-items:center; gap:12px; }
.wrap { flex-wrap: wrap; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* Responsive */
@media (max-width: 1024px) {
  .grid.cards-4 { grid-template-columns: repeat(3, 1fr); }
  .details { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .search-bar { order: 3; width: 100%; max-width: none; }
  .nav-links { order: 2; width: 100%; justify-content: space-between; }
  .grid.cards-3 { grid-template-columns: repeat(2, 1fr); }
  .filters { flex-direction: column; align-items: flex-start; }
  .sort { width: 100%; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .grid.cards-4, .grid.cards-3, .grid.cards-2 { grid-template-columns: 1fr; }
}

.ad-box{
  position: relative;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  margin: 20px auto;
}