:root {
  --bg: #0b0b12;
  --bg-card: #14141f;
  --bg-elevated: #1a1a28;
  --gold: #f0c14b;
  --gold-dark: #d4a017;
  --purple: #7c3aed;
  --text: #f0f0f5;
  --text-muted: #9a9ab0;
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
  --font: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--gold); text-decoration: none; transition: 0.2s; }
a:hover { color: #ffe08a; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt { margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,18,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.25rem; color: var(--text);
}
.logo-mark {
  background: linear-gradient(135deg, var(--gold), #ff9f1c);
  color: #1a1200;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 1rem;
}
.logo-text { letter-spacing: 0.04em; }
.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 14px;
  color: var(--text-muted); font-weight: 500; border-radius: 8px;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold); background: rgba(240,193,75,0.1);
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
}

/* Hero */
.hero {
  position: relative; padding: 80px 0 70px; overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.25), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(240,193,75,0.12), transparent);
  pointer-events: none;
}
.hero-content { position: relative; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(240,193,75,0.4);
  border-radius: 20px;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 30%, #c8c8d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}
.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
}
.hero-stats div { text-align: center; }
.hero-stats strong {
  display: block; font-size: 1.4rem; color: var(--gold); font-weight: 700;
}
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: 0.2s;
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e8a820);
  color: #1a1200;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #ffe08a, var(--gold));
  color: #1a1200;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Sections */
.section { padding: 64px 0; }
.section-dark { background: var(--bg-card); }
.section-title {
  font-size: 1.7rem; font-weight: 700; text-align: center; margin-bottom: 8px;
}
.section-desc {
  text-align: center; color: var(--text-muted); margin-bottom: 36px;
}

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.game-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: 0.25s;
}
.game-card:hover {
  border-color: rgba(240,193,75,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.game-icon { font-size: 2.2rem; margin-bottom: 10px; }
.game-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.game-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(124,58,237,0.2);
  color: #c4b5fd;
  border-radius: 12px;
}

/* Features */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.feature-box h3 {
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.feature-box p { color: var(--text-muted); font-size: 0.95rem; }

/* Advantages */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.adv-item {
  padding: 20px;
  border-left: 3px solid var(--gold);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.adv-num {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.adv-item h3 { margin: 8px 0; font-size: 1.1rem; }
.adv-item p { color: var(--text-muted); font-size: 0.92rem; }

/* CTA band */
.section-cta {
  background: linear-gradient(135deg, #1a1030, #0f1a2a);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-cta h2 { margin-bottom: 8px; }
.section-cta p { color: var(--text-muted); margin-bottom: 24px; }

/* Page header */
.page-header {
  padding: 48px 0 36px;
  text-align: center;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(124,58,237,0.2), transparent);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 1.9rem; margin-bottom: 8px; }
.page-header p { color: var(--text-muted); }

/* Content */
.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.content-block h2 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}
.content-block p { color: var(--text-muted); margin-bottom: 10px; }
.content-block ul { margin: 10px 0 10px 20px; color: var(--text-muted); }
.content-block li { margin-bottom: 6px; }

/* News */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: 0.2s;
}
.news-item:hover { border-color: rgba(240,193,75,0.3); }
.news-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.news-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.news-item p { color: var(--text-muted); font-size: 0.92rem; }

/* Form */
.contact-form { display: grid; gap: 16px; max-width: 480px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,193,75,0.15);
}
.form-group textarea { min-height: 110px; resize: vertical; }

/* Footer */
.site-footer {
  background: #06060c;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-about { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.site-footer h4 { color: var(--text); margin-bottom: 12px; font-size: 0.95rem; }
.site-footer ul { list-style: none; }
.site-footer ul a {
  color: var(--text-muted); font-size: 0.9rem; display: block; padding: 3px 0;
}
.site-footer ul a:hover { color: var(--gold); }
.footer-note { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.3s;
  }
  .main-nav.open { max-height: 300px; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 16px; }
  .main-nav a { padding: 12px 14px; }
  .hero { padding: 56px 0 48px; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 0; }
}

/* News page extras */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.filter-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: default;
}
.filter-tag.active {
  background: rgba(240,193,75,0.15);
  border-color: rgba(240,193,75,0.4);
  color: var(--gold);
}
.news-featured {
  border-color: rgba(240,193,75,0.35) !important;
  background: linear-gradient(145deg, var(--bg-card), rgba(240,193,75,0.04)) !important;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.news-cat {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}
.cat-product {
  background: rgba(124,58,237,0.2);
  color: #c4b5fd;
}
.cat-coop {
  background: rgba(240,193,75,0.2);
  color: var(--gold);
}
.cat-industry {
  background: rgba(56,189,248,0.15);
  color: #7dd3fc;
}
.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.news-item h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.news-body {
  color: var(--text-muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.news-body p { margin-bottom: 8px; }
.news-body ul {
  margin: 8px 0 8px 18px;
}
.news-body li { margin-bottom: 4px; }
.news-body strong { color: var(--text); }
