:root {
  color-scheme: dark;
  --bg: #101612;
  --bg-2: #17231c;
  --ink: #f8f3e7;
  --muted: #b4c0b1;
  --line: rgba(248, 243, 231, 0.16);
  --leaf: #80c65a;
  --mint: #b7eb8f;
  --amber: #f2c94c;
  --danger: #ff8a65;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(140deg, rgba(128, 198, 90, 0.16), transparent 34rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 88px),
    var(--bg);
  color: var(--ink);
}

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

code {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(128, 198, 90, 0.34);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--mint);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 22, 18, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgba(183, 235, 143, 0.45);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(128, 198, 90, 0.34), rgba(242, 201, 76, 0.12));
  color: var(--mint);
  font-weight: 900;
}

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

.brand small,
.nav-links,
.hero-lede,
.feature-card p,
.route-band p,
.gallery-body p,
.download-panel p,
.notice p,
.site-footer {
  color: var(--muted);
}

.brand small {
  margin-top: 0.1rem;
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.92rem;
}

.nav-links a {
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.section-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(3rem, 8vw, 7rem) 0 4rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--amber);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: 5.4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.hero-lede {
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions,
.download-actions,
.donation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 2.95rem;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0.78rem 1.05rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  border: 1px solid rgba(242, 201, 76, 0.65);
  background: var(--amber);
  color: #1b1607;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.button-donation {
  border: 1px solid rgba(183, 235, 143, 0.42);
  background: rgba(128, 198, 90, 0.12);
  color: var(--mint);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 38rem;
  margin: 2.2rem 0 0;
}

.hero-stats div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.hero-stats dt {
  color: var(--mint);
  font-size: 1.35rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.console-visual {
  border: 1px solid rgba(183, 235, 143, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(242, 234, 215, 0.1), transparent 40%), rgba(7, 13, 9, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-topbar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem;
}

.console-topbar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--danger);
}

.console-topbar span:nth-child(2) {
  background: var(--amber);
}

.console-topbar span:nth-child(3) {
  background: var(--leaf);
}

.console-topbar strong {
  margin-left: auto;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.75rem;
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 1rem;
}

.metric-card,
.timeline-card {
  min-height: 8.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.055);
}

.metric-card small,
.metric-card span,
.timeline-card span {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 0.65rem 0;
  color: var(--mint);
  font-size: 2rem;
}

.metric-card.accent strong {
  color: var(--amber);
}

.meter {
  display: block;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--amber));
}

.timeline-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.7rem;
}

.timeline-card span {
  border-left: 2px solid rgba(128, 198, 90, 0.8);
  padding-left: 0.7rem;
}

.route-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.route-band article {
  padding: clamp(1.4rem, 4vw, 3rem);
  background: var(--bg-2);
}

.route-label {
  color: var(--amber);
  font-weight: 900;
}

.route-band h2 {
  margin-top: 0.8rem;
  font-size: 2.1rem;
}

.feature-section,
.gallery-section,
.download-section,
.donate-section,
.start-section,
.notice {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid,
.gallery-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card,
.gallery-card,
.steps article,
.notice,
.donate-panel,
.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.feature-card {
  min-height: 13rem;
  padding: 1.25rem;
}

.feature-card span {
  color: var(--amber);
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 900;
}

.feature-card p,
.gallery-body p,
.notice p,
.download-panel p {
  line-height: 1.75;
}

.gallery-section {
  background: #f2ead7;
  color: #17231c;
}

.gallery-section .eyebrow {
  color: #7a5d19;
}

.gallery-section .section-heading p:not(.eyebrow),
.gallery-body p {
  color: #53614f;
}

.gallery-card {
  overflow: hidden;
  background: #fbf6e8;
  color: #17231c;
  border-color: rgba(23, 35, 28, 0.14);
}

.gallery-media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(128, 198, 90, 0.28), rgba(242, 201, 76, 0.18)),
    repeating-linear-gradient(45deg, rgba(23, 35, 28, 0.05) 0 10px, transparent 10px 20px);
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-zoom-button {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.gallery-zoom-button img {
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-zoom-button:hover img,
.gallery-zoom-button:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}

.gallery-zoom-label {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  background: rgba(23, 35, 28, 0.78);
  color: #fbf6e8;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-zoom-button:hover .gallery-zoom-label,
.gallery-zoom-button:focus-visible .gallery-zoom-label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(9, 13, 10, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-frame {
  width: min(96vw, 1180px);
  margin: 0;
  color: #fbf6e8;
}

.gallery-lightbox-frame img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #0f1711;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.42);
}

.gallery-lightbox-frame figcaption {
  margin-top: 0.8rem;
  color: rgba(251, 246, 232, 0.82);
  font-weight: 800;
  text-align: center;
}

.gallery-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 101;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(251, 246, 232, 0.12);
  color: #fbf6e8;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

body.lightbox-open {
  overflow: hidden;
}

.placeholder-index {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  color: rgba(23, 35, 28, 0.52);
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 900;
}

.gallery-media strong {
  padding: 0 1rem;
  text-align: center;
}

.gallery-body {
  padding: 1rem;
}

.credits-section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.credit-card {
  display: block;
  min-height: 13rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.credit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 235, 143, 0.42);
  background: rgba(128, 198, 90, 0.1);
}

.credit-card span {
  color: var(--amber);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.credit-card h3 {
  margin-top: 0.8rem;
}

.credit-card p {
  color: var(--muted);
  line-height: 1.75;
}

.credit-community {
  border-color: rgba(242, 201, 76, 0.34);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, rgba(128, 198, 90, 0.16), rgba(242, 201, 76, 0.08));
}

.donate-section {
  padding-top: 0;
}

.donate-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(128, 198, 90, 0.07);
}

.download-actions,
.donation-actions {
  align-content: start;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
}

.download-meta,
.donation-meta {
  display: block;
  margin: -0.35rem 0 0.45rem;
  color: var(--muted);
  line-height: 1.5;
}

.steps article {
  display: flex;
  gap: 1rem;
  min-height: 8rem;
  padding: 1.25rem;
}

.steps span {
  display: grid;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  background: var(--leaf);
  color: #0b160d;
  font-weight: 900;
}

.steps a {
  color: var(--mint);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.notice {
  margin-bottom: 3rem;
  padding: 1.5rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .hero,
  .donate-panel,
  .download-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 14ch;
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.35rem;
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-stats,
  .route-band,
  .feature-grid,
  .gallery-grid,
  .credits-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .timeline-card {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
