:root {
  --bg: #fffdf7;
  --paper: #ffffff;
  --paper-warm: #fff7e5;
  --ink: #18242a;
  --muted: #627276;
  --line: #e8ddc8;
  --gold: #f5b83f;
  --gold-soft: #ffe49a;
  --blue: #72c7d6;
  --green: #83bd68;
  --rose: #d75d78;
  --shadow: 0 24px 70px rgba(74, 53, 25, 0.16);
  --soft-shadow: 0 16px 36px rgba(50, 75, 80, 0.12);
  --radius: 8px;
  --wide: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf7 0%, #f2fbfd 48%, #fffaf0 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 1px solid rgba(232, 221, 200, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: #061242;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(5, 18, 66, 0.2);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #334247;
  font-size: 14px;
  font-weight: 850;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #0f2e36;
  background: #edf8fb;
  outline: none;
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  color: #4e3210;
  background: #ffd96d;
  box-shadow: inset 0 -2px 0 rgba(126, 83, 22, 0.22);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(74, 53, 25, 0.08);
}

.language-option {
  min-width: 44px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #52656a;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.language-option.is-active {
  color: #3d2607;
  background: var(--gold-soft);
  box-shadow: inset 0 -2px 0 rgba(126, 83, 22, 0.16);
}

.menu-button {
  display: none;
  width: 46px;
  height: 42px;
  place-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.menu-line {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 99px;
}

.section-inner {
  width: min(var(--wide), calc(100% - 40px));
  margin: 0 auto;
}

section {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  padding: clamp(54px, 7vw, 94px) 0 88px;
  background:
    linear-gradient(135deg, rgba(114, 199, 214, 0.2) 0%, transparent 38%),
    linear-gradient(315deg, rgba(245, 184, 63, 0.22) 0%, transparent 42%),
    #fffdf7;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -5vw -90px -5vw;
  height: 230px;
  background:
    radial-gradient(ellipse at 18% 80%, rgba(131, 189, 104, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(255, 253, 247, 0), #ffffff 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(400px, 1.06fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
}

.hero-copy {
  max-width: 650px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

html[lang="zh-CN"] .hero h1 {
  max-width: 680px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.12;
}

.hero-lead {
  max-width: 610px;
  margin: 26px 0 0;
  color: #405158;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
  font-weight: 700;
}

.hero-actions,
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.button-primary {
  color: #3c2506;
  background: linear-gradient(180deg, #ffe58b, #ffc44f);
  box-shadow: 0 12px 24px rgba(185, 118, 33, 0.24), inset 0 -3px 0 rgba(126, 83, 22, 0.18);
}

.button-secondary {
  color: #224048;
  background: var(--paper);
  border: 1px solid #cfe7ed;
  box-shadow: 0 10px 22px rgba(63, 101, 111, 0.1);
}

.button-arrow {
  font-size: 18px;
  line-height: 1;
}

.store-row {
  margin-top: 18px;
}

.store-badge {
  display: inline-flex;
  width: 168px;
  aspect-ratio: 3.34 / 1;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(25, 36, 42, 0.14);
  overflow: hidden;
}

.store-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-art {
  position: relative;
  min-height: 640px;
}

.hero-card {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(92%, 560px);
  overflow: hidden;
  border: 14px solid #ffffff;
  border-radius: 46px;
  background:
    linear-gradient(160deg, #ffffff 0%, #fff5d8 52%, #e8f9fc 100%);
  box-shadow: var(--shadow);
  transform: translateY(-52%);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(245, 184, 63, 0.35);
  border-radius: 32px;
  pointer-events: none;
}

.hero-card img {
  width: 120%;
  max-width: none;
  transform: translate(-12%, 2%);
}

.hero-ribbon {
  position: absolute;
  left: 4%;
  bottom: 44px;
  width: min(360px, 76%);
  padding: 18px 20px;
  border: 1px solid rgba(232, 221, 200, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.hero-ribbon strong,
.hero-ribbon span {
  display: block;
}

.hero-ribbon strong {
  font-size: 20px;
}

.hero-ribbon span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.game-feature,
.gallery-section,
.studio-section,
.contact-section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.feature-copy > p,
.section-heading p,
.studio-grid p,
.contact-strip p {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.feature-points article {
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(72, 58, 35, 0.08);
}

.point-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(74, 53, 25, 0.13));
}

.feature-points h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.feature-points p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-media {
  max-width: 400px;
  justify-self: end;
  overflow: hidden;
  border: 12px solid #ffffff;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.gallery-section {
  background: linear-gradient(180deg, #eff9fb 0%, #fffdf7 100%);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 430px;
  margin-top: 0;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(300px, 450px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.gallery-main {
  margin: 0;
  overflow: hidden;
  border: 12px solid var(--paper);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.gallery-main figcaption {
  padding: 16px 18px 18px;
  color: #32454a;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.gallery-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: #2f4045;
  box-shadow: 0 12px 28px rgba(37, 83, 93, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  background: #fff;
}

.gallery-card.is-active {
  border-color: var(--gold);
  background: #fff8e7;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 156px;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-card span {
  display: block;
  min-height: 22px;
  color: #253840;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.studio-section {
  background: #fffdf7;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.studio-panel {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid #dbeef3;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #eff9fb 100%);
  box-shadow: var(--soft-shadow);
}

.studio-number {
  display: flex;
  gap: 18px;
  align-items: center;
}

.studio-number strong {
  display: grid;
  place-items: center;
  flex: 0 0 74px;
  height: 74px;
  border-radius: 8px;
  color: #4b320f;
  background: #ffdc75;
  font-size: 42px;
  line-height: 1;
  box-shadow: inset 0 -4px 0 rgba(117, 77, 20, 0.16);
}

.studio-number span {
  color: #304247;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.28;
}

.studio-divider {
  height: 1px;
  margin: 26px 0;
  background: #cfe7ed;
}

.studio-panel p {
  margin: 0;
}

.contact-section {
  padding: clamp(56px, 8vw, 92px) 0 0;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0), #f1f8f9 100%);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 clamp(44px, 6vw, 72px);
  border-bottom: 1px solid rgba(54, 87, 92, 0.14);
}

.contact-strip h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.contact-strip p {
  max-width: 560px;
}

.site-footer {
  color: #d9e8e7;
  background: #182f35;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.35fr) minmax(150px, 0.65fr) minmax(190px, 0.8fr);
  gap: clamp(28px, 5vw, 58px);
  padding: clamp(42px, 6vw, 68px) 0 34px;
}

.footer-brand p {
  max-width: 300px;
  margin: 18px 0 0;
  color: #aec5c7;
  font-size: 15px;
}

.footer-logo .brand-mark {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.footer-logo strong {
  color: #ffffff;
}

.footer-logo small {
  color: #aec5c7;
}

.footer-column h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-column address {
  display: grid;
  gap: 10px;
  margin: 0;
  color: #aec5c7;
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
}

.footer-column address strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-email {
  width: fit-content;
  color: #d9e8e7;
  font-size: 14px;
  font-weight: 800;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-email:hover,
.footer-email:focus-visible {
  color: var(--gold-soft);
  outline: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(217, 232, 231, 0.13);
  color: #93abad;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .feature-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .gallery,
  .studio-grid,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .contact-strip {
    display: grid;
    align-items: start;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy {
    max-width: none;
  }

  .hero-art {
    min-height: 570px;
  }

  .hero-card {
    left: 50%;
    right: auto;
    width: min(560px, 94%);
    transform: translate(-50%, -52%);
  }

  .hero-ribbon {
    left: 50%;
    transform: translateX(-50%);
  }

  .feature-media {
    justify-self: center;
    width: min(430px, 100%);
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    max-width: 690px;
    margin-top: 16px;
  }

  .gallery-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 11px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-actions {
    gap: 8px;
  }

  .menu-button {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 247, 0.98);
    box-shadow: var(--soft-shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    border-radius: 6px;
  }

  .language-option {
    min-width: 39px;
    height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .section-inner {
    width: min(100% - 28px, var(--wide));
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  html[lang="zh-CN"] .hero h1 {
    font-size: clamp(40px, 11.2vw, 48px);
    line-height: 1.08;
  }

  .hero-lead {
    font-size: 18px;
  }

  .button,
  .store-badge {
    width: 100%;
  }

  .store-badge {
    max-width: 220px;
  }

  .hero-art {
    min-height: 460px;
  }

  .hero-card {
    border-width: 8px;
    border-radius: 30px;
  }

  .hero-card img {
    width: 128%;
    transform: translate(-15%, 4%);
  }

  .hero-ribbon {
    bottom: 18px;
    width: min(330px, 88%);
  }

  .feature-points {
    grid-template-columns: 1fr;
  }

  .gallery-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card img {
    min-height: 134px;
  }
}

@media (max-width: 460px) {
  .language-switch {
    padding: 3px;
  }

  .hero-art {
    min-height: 392px;
  }

  .feature-points article,
  .studio-panel,
  .contact-strip {
    padding: 22px;
  }

  .contact-strip {
    padding: 0 0 34px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .gallery-controls {
    gap: 10px;
  }

  .gallery-card {
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
