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

:root {
  color-scheme: dark;
  --background: #0b1016;
  --ink: #f6f2ea;
  --muted: #c4ced4;
  --blue: #7ed9ff;
  --blue-bright: #a8e8ff;
  --gold: #ffd36e;
}

html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
body.is-loading .navbar, body.is-loading .hero, body.is-loading .section, body.is-loading footer { visibility: hidden; }
a { color: inherit; text-decoration: none; transition: .3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

.page-loader {
  position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, rgba(126,217,255,.16), transparent 34%), linear-gradient(135deg,#081018 0%,#12283a 46%,#06090d 100%);
  transition: opacity .45s ease, visibility .45s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-panel { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 32px; }
.loader-logo { width: 96px; height: 96px; object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 0 24px rgba(126,217,255,.24)); }
.loader-spinner { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--blue); border-radius: 50%; animation: spin .9s linear infinite; }
.loader-panel p { color: #d7f7ff; font-weight: bold; }

.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; background: linear-gradient(to bottom, rgba(7,12,18,.92), rgba(7,12,18,0)); transition: .3s; }
.navbar.scrolled { padding: 15px 0; background: rgba(7,12,18,.94); box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.navbar .container { max-width: 100%; padding: 0 50px; }
.logo { display: block; width: 50px; height: 50px; overflow: hidden; border-radius: 10px; }
.logo img, .mobile-menu-header img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-links a { color: #fff; font-size: 1rem; font-weight: 700; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { margin-left: 28px; }
.hamburger { display: none; border: 0; background: none; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.btn-primary, .btn-secondary { display: inline-block; padding: 10px 25px; border-radius: 12px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: all .3s ease; }
.btn-primary { border: 1px solid rgba(214,244,255,.35); background: linear-gradient(135deg,#7ed9ff,#62b8de); color: #06121a; box-shadow: 0 10px 24px rgba(44,94,122,.35); }
.btn-primary:hover { transform: translateY(-2px); background: linear-gradient(135deg,#94e2ff,#77c4e8); }
.btn-secondary { border: 1px solid rgba(126,217,255,.45); background: rgba(10,22,30,.54); color: #ecfbff; backdrop-filter: blur(10px); }
.btn-secondary:hover { transform: translateY(-2px); background: rgba(126,217,255,.16); }
.large { padding: 15px 40px; font-size: 1.2rem; }

.mobile-menu { display: none; position: fixed; inset: 0; z-index: 1200; min-height: 100vh; background: rgba(7,12,18,.98); }
.mobile-menu.active { display: flex; flex-direction: column; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid rgba(126,217,255,.12); }
.mobile-menu-header img { width: 42px; height: 42px; }
.close-mobile-menu { border: 0; background: none; color: #fff; font-size: 2rem; cursor: pointer; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 30px; padding: 84px 24px 48px; }
.mobile-nav-links a { font-size: 1.35rem; font-weight: bold; }

.hero { position: relative; display: flex; align-items: center; justify-content: center; height: 100vh; min-height: 650px; padding-top: 80px; background: url('assets/美宣图.jpg') center / cover no-repeat; text-align: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,10,16,.12), rgba(10,22,30,.34) 42%, rgba(12,22,30,.78) 86%, rgba(8,12,16,1)); }
.hero-content { position: relative; z-index: 2; max-width: 900px; margin-top: 20vh; padding: 20px; animation: fadeIn 1s ease-out; }
.hero-content h1 { margin-bottom: 10px; font-size: 4.2rem; line-height: 1.1; font-weight: 700; text-shadow: 0 5px 18px rgba(0,0,0,.82); }
.slogan-sub { margin-bottom: 20px; color: var(--blue-bright); font-size: 1.6rem; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,.75); }
.description { max-width: 600px; margin: 0 auto 40px; color: #d6dde2; font-size: 1.1rem; text-shadow: 0 1px 5px rgba(0,0,0,.8); }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.section { position: relative; padding: 100px 0; background: linear-gradient(180deg, rgba(8,12,16,.92), rgba(10,14,20,.98)); }
.section-title { position: relative; margin-bottom: 60px; color: #f4f1ea; font-size: 2.5rem; text-align: center; }
.section-title::after { display: block; width: 60px; height: 4px; margin: 15px auto 0; border-radius: 2px; background: linear-gradient(90deg,var(--blue),var(--gold)); content: ''; }
.section-intro { max-width: 760px; margin: -34px auto 48px; color: var(--muted); font-size: 1.05rem; text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { position: relative; overflow: hidden; padding: 40px 30px; border: 1px solid rgba(126,217,255,.12); border-radius: 14px; background: linear-gradient(145deg, rgba(22,34,43,.96), rgba(12,18,24,.96)); text-align: center; transition: .4s cubic-bezier(.175,.885,.32,1.275); }
.feature-card::before { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(126,217,255,.12), transparent 70%); content: ''; opacity: 0; transition: .4s; }
.feature-card:hover { transform: translateY(-10px); border-color: rgba(126,217,255,.4); box-shadow: 0 15px 30px rgba(0,0,0,.38); }
.feature-card:hover::before { opacity: 1; }
.icon-box { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin: 0 auto 25px; border: 1px solid rgba(126,217,255,.16); border-radius: 20px; background: rgba(126,217,255,.12); transition: .4s; }
.feature-card:hover .icon-box { transform: translateY(-2px); background: rgba(126,217,255,.22); }
.icon-box span { color: var(--blue); font-family: "KaiTi", "STKaiti", "Songti SC", serif; font-size: 2.5rem; line-height: 1; }
.feature-card h3, .feature-card p { position: relative; z-index: 1; }
.feature-card h3 { margin-bottom: 15px; color: #f9f5ec; font-size: 1.4rem; }
.feature-card p { color: var(--muted); font-size: 1rem; line-height: 1.7; }

.screenshots-section { position: relative; padding: 100px 0; background: linear-gradient(180deg, rgba(10,14,20,.98), rgba(8,12,16,.94)); }
.screenshot-carousel { max-width: 1100px; margin: 0 auto; }
.carousel-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 8.3; border: 1px solid rgba(126,217,255,.18); border-radius: 16px; background: #101820; box-shadow: 0 18px 42px rgba(0,0,0,.3); }
.carousel-image { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b1117; opacity: 1; transition: opacity .18s ease, transform .45s ease; }
.carousel-image.is-changing { opacity: .18; transform: scale(1.015); }
.carousel-arrow { position: absolute; top: 50%; z-index: 2; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: rgba(5,10,15,.58); color: #fff; font-size: 36px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: .25s; }
.carousel-arrow:hover { background: rgba(126,217,255,.28); border-color: rgba(168,232,255,.7); }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-caption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: baseline; justify-content: space-between; padding: 42px 24px 18px; background: linear-gradient(transparent, rgba(5,8,12,.9)); color: #f5f2ea; }
.carousel-caption strong { font-size: 1rem; }
.carousel-caption span { color: #a8e8ff; font-size: .82rem; letter-spacing: .14em; }
.carousel-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.carousel-thumb { overflow: hidden; padding: 0; border: 1px solid rgba(126,217,255,.15); border-radius: 10px; background: #101820; cursor: pointer; opacity: .55; transition: .25s; }
.carousel-thumb img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.carousel-thumb:hover, .carousel-thumb.active { border-color: var(--blue); opacity: 1; box-shadow: 0 0 0 2px rgba(126,217,255,.16); }

footer { position: relative; z-index: 2; padding: 60px 0 30px; border-top: 1px solid rgba(126,217,255,.12); background: linear-gradient(180deg, rgba(8,12,16,.98), #05070a); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-bottom: 30px; }
.footer-logos { display: flex; align-items: center; gap: 20px; }
.game-logo { width: 64px; height: 60px; object-fit: contain; }
.studio-logo { width: 76px; height: 56px; object-fit: contain; mix-blend-mode: screen; }
.studio-name { color: #e7eef1; font-size: 1.05rem; letter-spacing: .14em; }
.divider { color: #6a8a97; font-size: 1.5rem; }
.copyright { color: #6d7c84; font-size: .9rem; text-align: center; }
.copyright a:hover { color: var(--blue); }

.legal-page { width: min(760px, calc(100% - 44px)); margin: 0 auto; padding: 58px 0 90px; }
.legal-back { display: inline-block; margin-bottom: 72px; color: var(--blue-bright); font-size: 14px; }
.legal-page h1 { margin-bottom: 8px; font-size: clamp(44px, 7vw, 72px); }
.legal-date { margin-bottom: 56px; color: #6d7c84; font-size: 13px; }
.legal-content { color: #c8d0d1; font-size: 16px; }
.legal-content h2 { margin: 34px 0 10px; color: var(--ink); font-size: 19px; }
.legal-content p { margin-bottom: 16px; }
.legal-content a { color: var(--blue-bright); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 992px) {
  .hero-content h1 { font-size: 3.5rem; }
  .slogan-sub { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .navbar { padding: 12px 0; }
  .navbar .container { padding: 0 18px; }
  .navbar.scrolled { padding: 10px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .hero { min-height: 100svh; height: auto; align-items: flex-end; background-position: 56% center; padding: 88px 0 104px; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(5,10,16,.08), rgba(8,16,24,.22) 34%, rgba(8,14,20,.78) 74%, #080c10); }
  .hero-content { width: 100%; max-width: 520px; margin-top: 0; padding: 0 18px; }
  .hero-content h1 { font-size: 2.55rem; }
  .slogan-sub { margin-bottom: 12px; font-size: 1.12rem; }
  .description { margin-bottom: 24px; font-size: .95rem; line-height: 1.65; }
  .cta-buttons { display: block; }
  .large { width: 100%; padding: 12px 14px; font-size: 1rem; }
  .section { padding: 72px 0; }
  .section-title { margin-bottom: 42px; font-size: 2rem; }
  .section-intro { margin: -20px auto 34px; padding: 0 12px; font-size: .95rem; }
  .feature-card { padding: 30px 22px; border-radius: 12px; }
  .icon-box { width: 68px; height: 68px; margin-bottom: 20px; border-radius: 16px; }
  .icon-box span { font-size: 2rem; }
  .feature-card h3 { font-size: 1.22rem; }
  .screenshots-section { padding: 72px 0; }
  .carousel-stage { aspect-ratio: 16 / 10; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 28px; }
  .carousel-arrow.prev { left: 10px; }
  .carousel-arrow.next { right: 10px; }
  .carousel-caption { padding: 34px 14px 12px; }
  .carousel-caption strong { font-size: .88rem; }
  .carousel-thumbs { gap: 8px; margin-top: 10px; }
  footer { padding: 48px 0 30px; }
  .footer-logos { flex-direction: column; gap: 15px; }
  .divider { display: none; }
  .legal-page { padding-top: 34px; }
  .legal-back { margin-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
