:root {
  --bg-deep: #0a0e17;
  --bg-card: #121a28;
  --text: #e8edf5;
  --text-muted: #8b9bb4;
  --accent: #3d9cf5;
  --accent-soft: rgba(61, 156, 245, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --header-h: 64px;
  --radius: 12px;
  --font: "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

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

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 24px 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(10, 14, 23, 0.75) 0%, rgba(10, 14, 23, 0.55) 45%, rgba(10, 14, 23, 0.92) 100%),
    url("https://images.unsplash.com/photo-1538481199705-c710c4e965fc?w=1920&q=85") center / cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-tagline {
  margin: 0 0 32px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(61, 156, 245, 0.35);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.section-lead {
  margin: 0 0 40px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Games */
.games {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0d121c 100%);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.game-card:hover {
  border-color: rgba(61, 156, 245, 0.35);
  transform: translateY(-4px);
}

.game-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-media img {
  transform: scale(1.05);
}

.game-card-body {
  padding: 20px 22px 24px;
}

.game-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.game-card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
}

.about-text .section-title {
  margin-bottom: 20px;
}

.about-text p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.about-visual img {
  width: 100%;
  height: auto;
}

/* Contact */
.contact {
  background: #0d121c;
  border-top: 1px solid var(--border);
}

.contact-inner {
  text-align: center;
  max-width: 520px;
}

.contact-intro {
  margin: 0 0 28px;
  color: var(--text-muted);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.contact-qq {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.contact-qq .label {
  display: inline-block;
  margin-right: 12px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
}

.contact-qq a {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.contact-qq a:hover {
  color: var(--accent);
}

.contact-hint {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 32px 24px 40px;
  border-top: 1px solid var(--border);
  background: #080b12;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-icp {
  margin: 0 0 8px;
  font-size: 0.875rem;
}

.footer-icp a {
  color: var(--text-muted);
}

.footer-icp a:hover {
  color: var(--accent);
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 24px 24px;
    background: rgba(10, 14, 23, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 12px 16px;
  }
}
