:root {
  color-scheme: light;
  --ink: #24364b;
  --muted: #5f7287;
  --sea: #69cddd;
  --sea-deep: #2d9ab1;
  --mint: #b7ead9;
  --cream: #fff7df;
  --coral: #ff9a90;
  --peach: #ffd3bc;
  --lavender: #d7ccff;
  --sun: #ffe58f;
  --white: #ffffff;
  --shell: #fffaf1;
  --line: rgba(45, 154, 177, 0.18);
  --shadow: 12px 16px 30px rgba(70, 124, 141, 0.18), -8px -8px 22px rgba(255, 255, 255, 0.88);
  --inner: inset 4px 4px 12px rgba(96, 152, 168, 0.12), inset -4px -4px 12px rgba(255, 255, 255, 0.85);
  --radius: 8px;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(183, 234, 217, 0.55), transparent 34rem),
    linear-gradient(180deg, #eefcff 0%, #fffaf1 38%, #f5fffb 100%);
  text-rendering: optimizeLegibility;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(45, 154, 177, 0.32);
  outline-offset: 4px;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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: 50;
  background: rgba(244, 253, 255, 0.84);
  border-bottom: 1px solid rgba(105, 205, 221, 0.24);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(100% - 32px, var(--container));
  min-height: 66px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

.brand:hover {
  color: var(--sea-deep);
  transform: translateY(-3px);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brand:hover img {
  transform: rotate(-7deg) scale(1.1);
  box-shadow: 0 16px 34px rgba(105, 205, 221, 0.42);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #365169;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--sea-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(45, 154, 177, 0.18);
  transform: translateY(-2px);
}

.nav-links a:active {
  transform: translateY(1px);
}

.nav-links .nav-download {
  color: #153343;
  background: linear-gradient(135deg, var(--sun), var(--peach));
  box-shadow: 0 12px 26px rgba(255, 154, 144, 0.3);
}

.nav-links .nav-download:hover {
  color: #153343;
  background: linear-gradient(135deg, #ffeaa8, #ffc7af);
  box-shadow: 0 18px 36px rgba(255, 154, 144, 0.42);
  transform: translateY(-3px) scale(1.03);
}

.nav-toggle {
  display: none;
  min-width: 58px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--sea-deep);
  font: inherit;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover {
  color: #153343;
  background: var(--sun);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(255, 154, 144, 0.26);
}

.nav-toggle-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-band,
.section-pad {
  position: relative;
}

.section-pad {
  padding: 68px 0;
}

.hero {
  padding: 46px 0 40px;
  overflow: hidden;
}

.island-bubble {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}

.bubble-a {
  width: 220px;
  height: 220px;
  right: 8%;
  top: 88px;
  background: rgba(255, 211, 188, 0.35);
}

.bubble-b {
  width: 120px;
  height: 120px;
  left: 5%;
  bottom: 24px;
  background: rgba(215, 204, 255, 0.36);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 1.05fr);
  align-items: center;
  gap: 46px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--sea-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 18px;
  color: var(--sea-deep);
  font-size: 4.15rem;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(255, 229, 143, 0.58);
}

h2 {
  margin-bottom: 14px;
  color: #244154;
  font-size: 2.18rem;
  line-height: 1.15;
  letter-spacing: 0;
}

h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sea), var(--coral), var(--sun));
}

.section-heading.centered h2::after {
  margin-inline: auto;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.subtitle {
  max-width: 610px;
  margin-bottom: 22px;
  color: #405b72;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  color: #153343;
  background: linear-gradient(135deg, var(--sun), var(--peach));
  box-shadow: 0 14px 28px rgba(255, 154, 144, 0.24);
}

.btn.primary:hover {
  box-shadow: 0 22px 42px rgba(255, 154, 144, 0.45);
}

.btn.secondary {
  color: var(--sea-deep);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(45, 154, 177, 0.22);
  box-shadow: var(--inner);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(45, 154, 177, 0.58);
  box-shadow: 0 16px 30px rgba(45, 154, 177, 0.16);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin: 0;
}

.quick-facts div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--inner);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.quick-facts div:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-5px);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.quick-facts dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.soft-card {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.soft-card:hover {
  border-color: rgba(105, 205, 221, 0.62);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 18px 26px 46px rgba(70, 124, 141, 0.28), -10px -10px 24px rgba(255, 255, 255, 0.95);
}

.hero-art {
  position: relative;
  margin: 0;
  padding: 12px;
  transform: rotate(1deg);
}

.hero-art:hover {
  transform: rotate(0deg) translateY(-7px);
}

.hero-art img,
.feature-image img,
.wide-showcase img,
.story-image img,
.gallery-item img {
  width: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  transition: transform 0.28s ease, filter 0.28s ease;
}

.feature-image,
.wide-showcase,
.story-image,
.gallery-item,
.hero-art {
  overflow: hidden;
}

.feature-image:hover img,
.wide-showcase:hover img,
.story-image:hover img,
.gallery-item:hover img,
.hero-art:hover img {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.04);
}

.hero-art img {
  aspect-ratio: 460 / 215;
}

figcaption {
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.magazine-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px 34px;
  align-items: start;
}

.section-heading {
  max-width: 720px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.copy-block {
  font-size: 0.98rem;
}

.lead-block {
  padding-top: 42px;
}

.feature-image {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding: 12px;
}

.feature-image img,
.wide-showcase img,
.story-image img {
  aspect-ratio: 16 / 9;
}

.pastel-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(183, 234, 217, 0.2)),
    repeating-linear-gradient(90deg, rgba(105, 205, 221, 0.09) 0 1px, transparent 1px 42px);
}

.character-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.character-card,
.system-item,
.guide-card {
  padding: 20px;
}

.character-card:hover,
.system-item:hover,
.guide-card:hover {
  transform: translateY(-8px);
}

.route-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #244154;
  font-size: 0.8rem;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.character-card:hover .route-tag {
  transform: translateX(6px) scale(1.04);
}

.route-tag.coral {
  background: rgba(255, 154, 144, 0.42);
}

.route-tag.mint {
  background: rgba(183, 234, 217, 0.75);
}

.route-tag.lavender {
  background: rgba(215, 204, 255, 0.7);
}

.wide-showcase {
  margin: 22px 0 0;
  padding: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: start;
}

.sticky-note {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 247, 223, 0.68);
  box-shadow: var(--inner);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.story-band {
  background: linear-gradient(135deg, rgba(105, 205, 221, 0.18), rgba(255, 211, 188, 0.22));
}

.story-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.story-image {
  margin: 0;
  padding: 12px;
}

.walkthrough-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.guide-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.guide-card li + li {
  margin-top: 10px;
}

.gallery-band {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.36), rgba(238, 252, 255, 0.7));
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.gallery-item {
  margin: 0;
  padding: 10px;
  cursor: default;
}

.gallery-item:hover {
  transform: translateY(-8px);
}

.gallery-item img {
  aspect-ratio: 16 / 9;
}

.gallery-item.large img {
  aspect-ratio: 460 / 215;
}

.timeline-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 0 0 20px 32px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--shell);
  border-radius: 50%;
  background: var(--sea);
  box-shadow: 0 0 0 1px rgba(45, 154, 177, 0.2);
}

.timeline time {
  color: var(--sea-deep);
  font-weight: 900;
}

.timeline span {
  color: var(--muted);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 34px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--inner);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

details:hover {
  border-color: rgba(105, 205, 221, 0.58);
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(70, 124, 141, 0.15);
}

summary {
  cursor: pointer;
  padding: 15px 18px;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--sea-deep);
  font-weight: 900;
  transition: transform 0.18s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 0;
  padding: 0 18px 16px;
}

.download-strip {
  padding: 24px 0 68px;
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 229, 143, 0.42), rgba(183, 234, 217, 0.58)),
    rgba(255, 255, 255, 0.7);
}

.download-inner:hover {
  transform: translateY(-7px);
  box-shadow: 18px 28px 50px rgba(70, 124, 141, 0.24), -10px -10px 24px rgba(255, 255, 255, 0.95);
}

.download-inner h2 {
  margin-bottom: 10px;
}

.download-inner p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 34px 0;
  background: #244154;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr;
  gap: 26px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid nav a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-grid nav a:hover {
  color: var(--sun);
  transform: translateX(8px);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(105, 205, 221, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-grid,
  .magazine-grid,
  .split-layout,
  .story-layout,
  .timeline-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .lead-block {
    padding-top: 0;
  }

  .character-layout,
  .walkthrough-grid {
    grid-template-columns: 1fr;
  }

  .sticky-note {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 2.42rem;
  }

  h2 {
    font-size: 1.68rem;
  }

  .subtitle {
    font-size: 1.04rem;
  }

  .container,
  .nav-shell {
    width: min(100% - 24px, var(--container));
  }

  .section-pad {
    padding: 48px 0;
  }

  .quick-facts,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .download-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-art {
    transform: none;
  }

  .character-card,
  .system-item,
  .guide-card {
    padding: 18px;
  }

  .site-header {
    position: sticky;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (hover: none) {
  .brand:hover,
  .nav-links a:hover,
  .nav-links .nav-download:hover,
  .nav-toggle:hover,
  .btn:hover,
  .quick-facts div:hover,
  .soft-card:hover,
  .hero-art:hover,
  .feature-image:hover img,
  .wide-showcase:hover img,
  .story-image:hover img,
  .gallery-item:hover img,
  .character-card:hover,
  .system-item:hover,
  .guide-card:hover,
  .gallery-item:hover,
  details:hover,
  .download-inner:hover,
  .footer-grid nav a:hover {
    transform: none;
  }
}

@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;
  }
}
