/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #00cec9;
  --dark: #1a1a2e;
  --darker: #16213e;
  --text: #e0e0e0;
  --text-muted: #a0a0b0;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none;
  color: #fff; font-size: 24px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 206, 201, 0.1) 0%, transparent 50%),
    var(--dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c5ce7' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: bgScroll 60s linear infinite;
}

@keyframes bgScroll { to { transform: translate(30px, 30px); } }

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--primary);
  border-radius: 50px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover { box-shadow: 0 6px 30px rgba(108, 92, 231, 0.6); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ===== Sections ===== */
.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-4px); }

.stat-number {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 36px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-icon.purple { background: rgba(108, 92, 231, 0.15); }
.feature-icon.teal   { background: rgba(0, 206, 201, 0.15); }
.feature-icon.pink   { background: rgba(253, 121, 168, 0.15); }
.feature-icon.orange  { background: rgba(255, 165, 2, 0.15); }
.feature-icon.blue   { background: rgba(9, 132, 227, 0.15); }
.feature-icon.green  { background: rgba(0, 184, 148, 0.15); }

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Game Cards ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.game-card:hover { transform: translateY(-6px); }

.game-cover {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}

.game-cover.cover1 { background: linear-gradient(135deg, #6c5ce7, #0984e3); }
.game-cover.cover2 { background: linear-gradient(135deg, #00cec9, #00b894); }
.game-cover.cover3 { background: linear-gradient(135deg, #fd79a8, #e17055); }

.game-tag {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  background: rgba(0,0,0,0.5);
  color: var(--accent);
}

.game-info { padding: 24px; }
.game-info h3 { font-size: 20px; margin-bottom: 8px; }
.game-info p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.game-meta {
  display: flex; gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.game-meta span {
  display: flex; align-items: center; gap: 4px;
}

/* ===== CTA ===== */
.cta-section {
  margin: 0 24px 100px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 80px 48px;
  background:
    linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.1)),
    var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.footer {
  background: var(--darker);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.3s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Page Hero (sub pages) ===== */
.page-hero {
  padding: 140px 24px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.15) 0%, transparent 60%),
    var(--dark);
}

.page-hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: var(--text-muted); }

/* ===== About Page ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 { font-size: 30px; margin-bottom: 20px; }
.about-text p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }

.about-image {
  height: 360px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
}

.timeline { margin-top: 60px; }

.timeline-item {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-year {
  font-size: 24px;
  font-weight: 700;
  min-width: 80px;
  color: var(--accent);
}

.timeline-desc h4 { font-size: 17px; margin-bottom: 6px; }
.timeline-desc p { font-size: 14px; color: var(--text-muted); }

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }

.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }

.contact-card {
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-detail h4 { font-size: 16px; margin-bottom: 4px; }
.contact-detail p { font-size: 14px; color: var(--text-muted); }

/* ===== News Page ===== */
.news-list { display: flex; flex-direction: column; gap: 28px; }

.news-item {
  display: flex;
  gap: 28px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s;
}

.news-item:hover { transform: translateX(4px); }

.news-date {
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
}

.news-date .day { font-size: 32px; font-weight: 700; color: var(--accent); }
.news-date .month { font-size: 13px; color: var(--text-muted); }
.news-body h3 { font-size: 18px; margin-bottom: 8px; }
.news-body p { font-size: 14px; color: var(--text-muted); }

/* ===== Join Page ===== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.job-card {
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s;
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.job-card h3 { font-size: 20px; margin-bottom: 8px; }

.job-tags {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}

.job-tag {
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 12px;
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary);
}

.job-card p { font-size: 14px; color: var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .games-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--darker);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .footer-content { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 12px; }
  .news-date { text-align: left; display: flex; gap: 8px; align-items: baseline; }
}
