:root {
  --bg: #0a0b10;
  --bg-alt: #12141c;
  --bg-card: #181b26;
  --text: #e8eaef;
  --text-muted: #9aa3b5;
  --accent: #7c5cff;
  --accent-2: #00d4aa;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font: "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Orbitron", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
}

.site-header {
  grid-row: 1;
  width: 100%;
}

#main {
  grid-row: 2;
  width: 100%;
  min-width: 0;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #33e8c4;
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
}

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

.logo-mark {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 6px;
  color: #fff;
}

.logo-text {
  font-size: 1.05rem;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(124, 92, 255, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 90% 50%, rgba(0, 212, 170, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(124, 92, 255, 0.15), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  border: 1px solid rgba(0, 212, 170, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.hero-en {
  display: block;
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-top: 0.35rem;
  font-family: var(--font-display);
}

.hero-copy {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.hero-tagline {
  width: 100%;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  text-align: center;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* 介绍正文：左对齐，与标题同宽 */
.hero-intro {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero-intro.prose,
.hero-intro.prose p {
  text-align: left;
}

.hero-intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.15rem;
}

.hero-intro p:last-child {
  margin-bottom: 0;
}

.hero-intro strong {
  color: var(--text);
  font-weight: 600;
}

.hero-intro em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a3fd4);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  border-color: var(--accent-2);
  color: var(--accent-2) !important;
}

/* Stats */
.stats {
  padding: 2.5rem 0;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-2);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

.section-more {
  text-align: center;
  margin-top: 2rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.game-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e2235, #2a2040);
  overflow: hidden;
}

.game-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 212, 170, 0.9);
  color: #0a0b10;
}

.game-card-body {
  padding: 1.25rem;
}

.game-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.game-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.game-tags span {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(124, 92, 255, 0.2);
  color: #c4b8ff;
}

.game-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Page */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0;
  font-size: 2rem;
}

.page-desc {
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.page-content {
  padding: 3rem 0 4rem;
}

.our-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5.75rem;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.our-values span {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.prose {
  max-width: 720px;
  margin-inline: auto;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  text-align: left;
}

.prose th {
  background: var(--bg-card);
  color: var(--text);
}

/* Contact page */
.page-hero--compact {
  padding-bottom: 1.5rem;
}

.contact-page {
  padding-top: 0;
  padding-bottom: 4rem;
}

.contact-page .container {
  display: flex;
  justify-content: center;
}

.contact-page .contact-panel {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.games-page {
  padding-top: 3rem;
}

.privacy-page,
.legal-page {
  padding-top: 0;
  padding-bottom: 2rem;
}

.privacy-document,
.legal-document {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
}

.privacy-document .privacy-meta,
.legal-document .privacy-meta {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.privacy-document .privacy-meta strong,
.legal-document .privacy-meta strong {
  font-weight: 700;
}

.privacy-document h1,
.legal-document h1 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.privacy-document h2,
.legal-document h2 {
  margin: 1.75rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.privacy-document h3,
.legal-document h3 {
  margin: 2rem 0 0.85rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.privacy-document p,
.legal-document p {
  margin: 0 0 1rem;
  font-weight: 400;
}

.privacy-document p strong,
.legal-document p strong {
  font-weight: 700;
}

.privacy-document ul,
.legal-document ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.privacy-document ul li,
.legal-document ul li {
  margin: 0 0 0.45rem;
  padding-left: 1.1rem;
  text-indent: -1.1rem;
  font-weight: 400;
}

.privacy-document ul li::before,
.legal-document ul li::before {
  content: "·  ";
  font-weight: 700;
}

.privacy-document a,
.legal-document a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}

.contact-page .contact-panel {
  padding: 0.5rem 1.25rem;
}

.contact-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.contact-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 1.5rem;
}

.contact-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  word-break: break-word;
}

/* Timeline */
.timeline {
  max-width: 640px;
  margin-inline: auto;
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.5);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-founded {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.footer-contact a {
  color: var(--accent-2);
  font-size: 0.9rem;
}

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

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

/* Copyright bar — 全宽贴底、文字水平居中 */
.copyright-bar {
  grid-row: 3;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.25rem 0;
  box-sizing: border-box;
}

.copyright-bar__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  box-sizing: border-box;
}

.copyright-bar p {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
}

.cta-inner p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0.25rem 0;
}

.icp {
  font-size: 0.8rem;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
