:root {
  /* ===== 奶油白 + 莫兰迪蓝 配色 ===== */
  --bg: #FDFAF4;            /* 奶油白 背景 */
  --bg-2: #FFFFFF;          /* 卡片 / 页脚底 */
  --panel: #FFFFFF;         /* 卡片底色 */
  --panel-border: #E8E4D9;  /* 浅燕麦 边框 */
  --text: #1F1F1F;          /* 深灰 主文字 */
  --muted: #3A3A3A;         /* 深灰 次级文字 */
  --primary: #A2B4C0;       /* 雾蓝 主色（按钮/链接/图标） */
  --primary-2: #8EA3B0;     /* 灰蓝 深阶（悬停/强调） */
  --accent: #BDCDD6;        /* 奶蓝 浅阶（图表/浅底） */
  --ink-blue: #6E8593;      /* 莫兰迪深蓝 浅底上的文字强调 */
  --tint: rgba(162, 180, 192, 0.07);          /* 模块浅蓝底 */
  --grad: linear-gradient(120deg, #A2B4C0 0%, #8EA3B0 100%);
  --grad-soft: linear-gradient(120deg, rgba(162, 180, 192, 0.16), rgba(142, 163, 176, 0.12));
  --radius: 18px;
  --maxw: 1180px;
  --shadow: 0 18px 50px rgba(31, 31, 31, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ 导航栏 ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(253, 250, 244, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 18px; color: #fff; transition: color 0.3s; }
.brand-text small { font-size: 9px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.7); font-weight: 500; transition: color 0.3s; }
.navbar.scrolled .brand-text { color: var(--text); }
.navbar.scrolled .brand-text small { color: #6b6b6b; }
.brand-logo {
  height: 36px; width: auto; object-fit: contain;
}
.footer-logo {
  height: 40px; width: auto; object-fit: contain;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(255, 255, 255, 0.85); font-size: 14.5px; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: #fff; }
.navbar.scrolled .nav-links a { color: var(--muted); }
.navbar.scrolled .nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px; background: var(--grad); color: #1F1F1F !important;
  font-weight: 600; box-shadow: 0 8px 22px rgba(142, 163, 176, 0.4);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
.navbar.scrolled .nav-toggle span { background: var(--text); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; overflow: hidden;
  padding: 120px 22px 80px;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05); animation: slowZoom 18s ease-in-out infinite alternate;
}
@keyframes slowZoom { to { transform: scale(1.15); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(162, 180, 192, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(7, 6, 15, 0.4) 0%, rgba(7, 6, 15, 0.72) 58%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-eyebrow {
  display: inline-block; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px; font-size: 13px; letter-spacing: 1px; color: #fff;
  background: rgba(255, 255, 255, 0.1); margin-bottom: 22px;
}
.hero-title { font-size: clamp(38px, 6.5vw, 72px); font-weight: 800; line-height: 1.08; letter-spacing: -1px; color: #fff; }
.hero-sub { color: rgba(255, 255, 255, 0.82); font-size: clamp(15px, 1.8vw, 19px); max-width: 640px; margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 720px; margin: 64px auto 0; padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hstat b { display: block; font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #fff; }
.hstat span { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255, 255, 255, 0.7); z-index: 2; animation: floatY 2s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--grad); color: #1F1F1F; box-shadow: 0 10px 28px rgba(142, 163, 176, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(142, 163, 176, 0.5); }
.btn-ghost { background: var(--panel); border-color: var(--panel-border); color: var(--text); }
.btn-ghost:hover { background: #F4F1EA; transform: translateY(-2px); }

/* ============ 通用 Section ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 22px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kicker { font-size: 13px; letter-spacing: 3px; color: var(--ink-blue); font-weight: 600; margin-bottom: 12px; }
.section-head h2, .about-text h2, .careers-text h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.5px; }
.lead { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ============ 游戏卡片 ============ */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.game-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.game-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow); }
.game-thumb { aspect-ratio: 3 / 4; background-size: cover; background-position: center; position: relative; }
.game-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 6, 15, 0.85));
}
.game-body { padding: 20px; }
.game-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.game-tags span { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--grad-soft); color: var(--ink-blue); border: 1px solid var(--panel-border); }
.game-body h3 { font-size: 20px; font-weight: 700; }
.game-body p { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.game-link { color: var(--ink-blue); font-weight: 600; font-size: 14px; }
.game-link:hover { color: var(--primary-2); }

/* ============ 关于 ============ */
.section-about { background: linear-gradient(180deg, transparent, var(--tint), transparent); border-radius: 30px; }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-text p { color: var(--muted); margin-top: 16px; }
.about-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 26px; color: var(--text); }
.about-list li::before { content: "✦"; position: absolute; left: 0; color: var(--primary-2); }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 30px 22px; text-align: center;
}
.about-card b { display: block; font-size: 30px; font-weight: 800; color: var(--text); }
.about-card span { font-size: 13px; color: var(--muted); }

/* ============ 核心优势 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 28px 24px; transition: transform 0.3s, border-color 0.3s; }
.feature:hover { transform: translateY(-6px); border-color: var(--primary); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--ink-blue); margin-bottom: 18px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ============ 新闻 ============ */
.section-news { background: linear-gradient(180deg, transparent, var(--tint), transparent); border-radius: 30px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 26px; transition: transform 0.3s, border-color 0.3s; }
.news-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.news-date { font-size: 13px; color: var(--ink-blue); font-weight: 600; margin-bottom: 12px; }
.news-card h3 { font-size: 18px; font-weight: 700; line-height: 1.45; margin-bottom: 12px; }
.news-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.news-link { color: var(--ink-blue); font-weight: 600; font-size: 14px; }

/* ============ 加入我们 ============ */
.section-careers { padding-top: 40px; }
.careers-inner {
  background: #E8E4D9; border: 1px solid var(--panel-border); border-radius: 28px;
  padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.careers-text h2 { margin: 12px 0; }
.careers-text p { color: var(--muted); }
.jobs { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; }
.jobs li { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #FFFFFF; border: 1px solid var(--panel-border); border-radius: 14px; transition: 0.2s; }
.jobs li:hover { border-color: var(--primary); transform: translateX(4px); }
.jobs li span { font-weight: 600; }
.jobs li em { font-style: normal; font-size: 13px; color: var(--muted); }

/* ============ 联系 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.ci-item { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; padding: 20px 22px; }
.ci-item b { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.ci-item span { font-size: 16px; font-weight: 600; }
.contact-form { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; padding: 28px; display: grid; gap: 14px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--panel-border);
  background: #FFFFFF; color: var(--text); font-size: 15px; font-family: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.form-tip { font-size: 12px; color: var(--muted); }
.form-status { font-size: 13px; margin-top: 2px; min-height: 18px; }
.form-status--ok { color: #5f8a5a; }
.form-status--err { color: #b56a55; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--panel-border); background: var(--bg-2); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 22px 30px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand strong { font-size: 18px; }
.footer-brand p { color: var(--muted); font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h4 { font-size: 14px; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 18px 22px 40px; border-top: 1px solid var(--panel-border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }

/* ============ 滚动揭示动画 ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .game-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .about-grid, .careers-inner, .contact-grid { grid-template-columns: 1fr; }
  .careers-inner { padding: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 66px; right: 0; height: calc(100vh - 66px); width: 260px;
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px;
    background: rgba(253, 250, 244, 0.98); backdrop-filter: blur(14px);
    transform: translateX(100%); transition: transform 0.3s; border-left: 1px solid var(--panel-border);
  }
  .nav-links a { width: 100%; padding: 12px 0; color: var(--muted); }
  .nav-links a:hover { color: var(--text); }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .game-grid, .feature-grid { grid-template-columns: 1fr; }
  .about-visual { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 20px; }
}
