/* 乐趣萌宠 — adventure download landing (official art) */
:root {
  --ink: #14253a;
  --ink-soft: #4a5d73;
  --yellow: #ffd84d;
  --yellow-deep: #f0b400;
  --blue: #1e4f9c;
  --blue-deep: #163a74;
  --sky: #6ec8ef;
  --sky-soft: #dff4ff;
  --grass: #5cb86a;
  --red: #e23b3b;
  --line: rgba(20, 37, 58, 0.12);
  --white: #ffffff;
  --font-display: "ZCOOL KuaiLe", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--sky-soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
strong {
  font-weight: 700;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(110, 200, 239, 0.55), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 8%, rgba(255, 216, 77, 0.35), transparent 50%),
    linear-gradient(180deg, #e8f7ff 0%, #f7fbff 42%, #eef8f0 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(232, 247, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  background: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--blue);
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--blue-deep) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 0 var(--yellow-deep);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-cta:hover {
  background: #ffe27a;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero — full-bleed official banner */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  animation: heroKen 18s ease-in-out infinite alternate;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 28, 48, 0.62) 0%, rgba(12, 28, 48, 0.28) 48%, rgba(12, 28, 48, 0.12) 100%),
    linear-gradient(180deg, rgba(12, 28, 48, 0.18) 0%, transparent 35%, rgba(12, 28, 48, 0.55) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4.5rem;
  color: var(--white);
}

.hero-brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--yellow);
  text-shadow:
    0 0 0 var(--blue-deep),
    3px 3px 0 var(--blue-deep),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 14em;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 26rem;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.45rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--blue-deep);
  box-shadow: 0 6px 0 var(--yellow-deep);
}

.btn-primary:hover {
  background: #ffe27a;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost:hover {
  background: var(--sky-soft);
}

.btn-lg {
  min-height: 3.4rem;
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 5.25rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--blue);
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

/* Features — image as visual anchor, no card chrome */
.feature-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.feature-row.reverse .feature-visual {
  order: 2;
}

.feature-row.reverse .feature-copy {
  order: 1;
}

.feature-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(22, 58, 116, 0.14);
}

.feature-copy h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--blue);
  letter-spacing: 0.02em;
}

.feature-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Gallery */
.gallery {
  background:
    linear-gradient(180deg, rgba(110, 200, 239, 0.16), transparent 40%),
    linear-gradient(180deg, transparent, rgba(92, 184, 106, 0.1));
}

.gallery-stage {
  display: grid;
  gap: 1rem;
}

.gallery-main {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(22, 58, 116, 0.14);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #d9eef8;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.thumb {
  border-radius: 10px;
  overflow: hidden;
  outline: 2px solid transparent;
  opacity: 0.72;
  transition: opacity 0.25s var(--ease), outline-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.thumb.is-active {
  opacity: 1;
  outline-color: var(--yellow-deep);
}

/* Guide */
.guide-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.guide-list {
  display: grid;
  gap: 1.5rem;
  counter-reset: guide;
}

.guide-list li {
  display: grid;
  gap: 0.3rem;
  padding-left: 3.25rem;
  position: relative;
}

.guide-list li::before {
  counter-increment: guide;
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 var(--yellow-deep);
}

.guide-list strong {
  font-size: 1.12rem;
  color: var(--ink);
}

.guide-list span {
  color: var(--ink-soft);
}

.guide-mascot {
  justify-self: center;
  width: min(100%, 340px);
  animation: floatMascot 4.5s ease-in-out infinite;
}

.guide-mascot img {
  width: 100%;
  filter: drop-shadow(0 18px 28px rgba(22, 58, 116, 0.22));
}

/* Download */
.download {
  padding-bottom: 6rem;
}

.download-inner {
  text-align: center;
  padding: 3.25rem 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 80% at 15% 0%, rgba(255, 216, 77, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 70% at 90% 100%, rgba(110, 200, 239, 0.35), transparent 50%),
    linear-gradient(145deg, #fffdf5, #e8f7ff);
  border: 1px solid rgba(30, 79, 156, 0.12);
}

.download-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  background: var(--white);
}

.download-inner .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.download-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3rem;
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--yellow);
}

.footer-legal {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.32s; }

@keyframes heroKen {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); }
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img,
  .guide-mascot {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.75rem;
  }

  .feature-row.reverse .feature-visual,
  .feature-row.reverse .feature-copy {
    order: unset;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-mascot {
    order: -1;
    width: min(100%, 240px);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(232, 247, 255, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .hero-copy {
    padding: 2.5rem 1.15rem 3.25rem;
  }

  .hero-fade {
    background:
      linear-gradient(180deg, rgba(12, 28, 48, 0.2) 0%, rgba(12, 28, 48, 0.15) 40%, rgba(12, 28, 48, 0.72) 100%);
  }

  .section {
    padding: 4rem 1.15rem;
  }

  .gallery-thumbs {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-thumbs .thumb {
    flex: 0 0 28%;
  }

  .download-inner {
    padding: 2.5rem 1.15rem;
    border-radius: 22px;
  }

  .download-actions {
    flex-direction: column;
  }

  .download-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .gallery-thumbs .thumb {
    flex-basis: 38%;
  }
}
