:root {
  --bg: #f5fffb;
  --paper: #ffffff;
  --paper-soft: #f0fbfa;
  --ink: #26343b;
  --muted: #667b82;
  --aqua: #78dbe0;
  --aqua-deep: #22a7b4;
  --mint: #bff2d3;
  --leaf: #71c28a;
  --sun: #ffe28e;
  --peach: #ffc6b6;
  --rose: #f6a8c6;
  --line: rgba(40, 148, 158, 0.18);
  --shadow: 0 18px 48px rgba(52, 128, 134, 0.14);
  --shadow-soft: 0 10px 28px rgba(78, 155, 145, 0.1);
  --max: 1180px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.75;
  background:
    linear-gradient(120deg, rgba(120, 219, 224, 0.18), transparent 28%),
    linear-gradient(210deg, rgba(255, 198, 182, 0.22), transparent 32%),
    linear-gradient(180deg, #f2fffb 0%, #ffffff 48%, #fff9f4 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 167, 180, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 167, 180, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 72%);
}

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

button {
  font: inherit;
}

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: rgba(245, 255, 251, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(245, 255, 251, 0.95);
  box-shadow: 0 12px 32px rgba(45, 118, 128, 0.1);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(37, 137, 150, 0.18);
}

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

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

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-width: 82px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #435a62;
  font-size: 14px;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #12626c;
  background: rgba(120, 219, 224, 0.2);
}

.nav-links a.nav-download {
  color: #fff;
  background: linear-gradient(135deg, #ff8aa8, #ffbd6f);
  box-shadow: 0 10px 22px rgba(255, 138, 168, 0.24);
}

.nav-links a.nav-download:hover {
  color: #fff;
  background: linear-gradient(135deg, #f9769b, #ffad55);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  display: grid;
  align-items: stretch;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(245, 255, 251, 0.96) 0%, rgba(245, 255, 251, 0.84) 45%, rgba(245, 255, 251, 0.46) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.84));
}

.hero-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

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

.eyebrow {
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(34, 167, 180, 0.22);
  border-radius: 999px;
  color: #176f78;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.text-aqua {
  color: #0b8793;
}

.text-rose {
  color: #d94d78;
}

.text-leaf {
  color: #2c8f53;
}

.text-gold {
  color: #a46f00;
}

.text-focus {
  font-weight: 800;
}

h1 {
  font-size: clamp(44px, 7.4vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
  color: #0b8793;
  background: linear-gradient(135deg, #0b8793 0%, #22a7b4 36%, #71c28a 68%, #d94d78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 670px;
  margin-top: 24px;
  color: #4f6871;
  font-size: clamp(16px, 2vw, 19px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #25aebc, #71c28a);
  box-shadow: 0 14px 26px rgba(34, 167, 180, 0.28);
}

.button.download {
  color: #fff;
  background: linear-gradient(135deg, #ff8aa8, #ffbd6f);
  box-shadow: 0 14px 28px rgba(255, 138, 168, 0.3);
}

.button.secondary {
  color: #176f78;
  border: 1px solid rgba(34, 167, 180, 0.24);
  background: rgba(255, 255, 255, 0.78);
}

.hero-panel {
  align-self: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 7 / 9;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
}

.hero-panel dl {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.hero-panel div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(240, 251, 250, 0.82);
}

.hero-panel dt {
  color: #57717a;
  font-size: 13px;
}

.hero-panel dd {
  margin: 0;
  font-weight: 700;
}

.quickbar {
  margin-top: -26px;
  position: relative;
  z-index: 2;
}

.quickbar-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quickbar article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.quickbar strong,
.quickbar span {
  display: block;
}

.quickbar strong {
  font-size: 18px;
}

.quickbar article:nth-child(1) strong {
  color: #0b8793;
}

.quickbar article:nth-child(2) strong {
  color: #d94d78;
}

.quickbar article:nth-child(3) strong {
  color: #2c8f53;
}

.quickbar article:nth-child(4) strong {
  color: #a46f00;
}

.quickbar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) 0 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head h2,
.split-copy h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.14;
  letter-spacing: 0;
  color: #0b8793;
  background: linear-gradient(135deg, #0b8793 0%, #22a7b4 46%, #d94d78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head p:not(.eyebrow),
.split-copy > p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.feature-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.system-card,
.note-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  padding: 24px;
}

.feature-card h3,
.system-card h3,
.character-list h3,
.route-panel h3,
.timeline h3 {
  font-size: 20px;
  line-height: 1.25;
}

.feature-card:nth-child(1) h3,
.system-card:nth-child(1) h3 {
  color: #0b8793;
}

.feature-card:nth-child(2) h3,
.system-card:nth-child(2) h3 {
  color: #d94d78;
}

.feature-card:nth-child(3) h3,
.system-card:nth-child(3) h3 {
  color: #2c8f53;
}

.feature-card p,
.system-card p,
.character-list p,
.route-panel p,
.timeline p,
.faq-item p {
  margin-top: 10px;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.split-media img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.character-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.character-list article {
  padding: 18px 20px;
  border-left: 4px solid var(--aqua);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.character-list article:nth-child(1) h3 {
  color: #0b8793;
}

.character-list article:nth-child(2) h3 {
  color: #d94d78;
}

.character-list article:nth-child(3) h3 {
  color: #2c8f53;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.system-card {
  overflow: hidden;
}

.system-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.system-card h3,
.system-card p {
  padding-inline: 20px;
}

.system-card h3 {
  padding-top: 20px;
}

.system-card p {
  padding-bottom: 22px;
}

.guide-section {
  position: relative;
}

.guide-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.guide-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(240, 251, 250, 0.86);
}

.guide-tab {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  color: #4b6269;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.guide-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #25aebc, #71c28a);
}

.route-panel h3 {
  color: #0b8793;
}

.route-panel li::marker {
  color: #d94d78;
  font-weight: 800;
}

.route-panel {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: clamp(22px, 4vw, 34px);
}

.route-panel.is-active {
  display: grid;
}

.route-panel ol {
  margin: 0;
  padding-left: 22px;
  color: #405962;
}

.route-panel li + li {
  margin-top: 8px;
}

.guide-notes {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.note-card {
  padding: 18px;
}

.note-card strong,
.note-card span {
  display: block;
}

.note-card span {
  margin-top: 4px;
  color: var(--muted);
}

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

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.035);
}

.gallery-grid figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(25, 68, 78, 0.72);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.timeline time {
  color: #12717c;
  font-weight: 800;
}

.timeline article:nth-child(2) h3,
.timeline article:nth-child(5) h3 {
  color: #d94d78;
}

.timeline article:nth-child(3) h3,
.timeline article:nth-child(4) h3 {
  color: #2c8f53;
}

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

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  color: #174a55;
  font-weight: 800;
}

.faq-item p {
  padding: 0 20px 20px;
}

.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 90px auto 28px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #39555d;
  background: rgba(255, 255, 255, 0.8);
}

.site-footer p {
  max-width: 760px;
  margin-top: 6px;
  color: var(--muted);
}

.site-footer a {
  min-width: max-content;
  padding: 10px 14px;
  border-radius: 999px;
  color: #12626c;
  background: rgba(120, 219, 224, 0.2);
  font-weight: 800;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #25aebc;
  box-shadow: 0 12px 28px rgba(34, 167, 180, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .hero-panel {
    max-width: 390px;
  }

  .quickbar-inner,
  .feature-layout,
  .system-grid,
  .guide-notes {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .route-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .nav-wrap,
  .hero-inner,
  .quickbar-inner,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .nav-links.is-open {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(245, 255, 251, 0.92) 0%, rgba(245, 255, 251, 0.9) 58%, rgba(255, 255, 255, 0.94) 100%);
  }

  h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .hero-actions,
  .guide-tabs,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

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

  .quickbar {
    margin-top: 0;
    padding-top: 18px;
  }

  .quickbar-inner,
  .feature-layout,
  .system-grid,
  .guide-notes,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 64px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .guide-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }
}

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