:root {
  --bg: #0b1110;
  --bg-2: #111b17;
  --panel: #17241e;
  --panel-2: #213129;
  --ink: #eef7ef;
  --muted: #b8c8bd;
  --soft: #7f9486;
  --green: #45d66f;
  --green-2: #a4ff3f;
  --yellow: #f0cf57;
  --red: #d45a41;
  --stone: #879189;
  --border: #314338;
  --heavy: #050807;
  --shadow: 8px 8px 0 rgba(0, 0, 0, .55);
  --shadow-small: 5px 5px 0 rgba(0, 0, 0, .55);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(18, 32, 26, .94), rgba(8, 13, 12, 1) 620px),
    var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

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

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

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

ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--green);
  color: #06110a;
  border: 3px solid var(--heavy);
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.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;
  background: rgba(8, 14, 12, .92);
  border-bottom: 4px solid var(--heavy);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 3px solid var(--heavy);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .5);
  transition: transform .28s ease, border-color .28s ease;
}

.brand:hover,
.brand:focus-visible {
  color: var(--green-2);
  transform: translateY(-1px);
  outline: none;
}

.brand:hover img,
.brand:focus-visible img {
  border-color: var(--green);
  transform: rotate(-2deg) scale(1.04);
}

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

.site-nav a {
  padding: 8px 11px;
  color: var(--muted);
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 800;
  transition: color .28s ease, background .28s ease, border-color .28s ease, transform .28s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--border);
  transform: translateY(-1px);
  outline: none;
}

.site-nav .nav-download {
  margin-left: 6px;
  color: #06110a;
  background: var(--green);
  border: 3px solid var(--heavy);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
}

.site-nav .nav-download:hover,
.site-nav .nav-download:focus-visible {
  color: #06110a;
  background: var(--green-2);
  border-color: var(--heavy);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .68);
  transform: translate(-2px, -2px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 8px;
  background: var(--panel);
  border: 3px solid var(--heavy);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: var(--green);
  transition: transform .28s ease, opacity .28s ease;
}

.nav-toggle.is-open span:not(.sr-only):nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:not(.sr-only):nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:not(.sr-only):nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 6px solid var(--heavy);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 11, 10, .95) 0%, rgba(7, 11, 10, .78) 42%, rgba(7, 11, 10, .30) 100%),
    linear-gradient(0deg, rgba(7, 11, 10, 1) 0%, rgba(7, 11, 10, .10) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 46px;
}

.eyebrow {
  color: var(--green-2);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.16;
}

h1 {
  max-width: 760px;
  margin-top: 12px;
  color: var(--green-2);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 950;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, .68);
}

h2 {
  color: var(--green);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
}

.hero-subtitle {
  max-width: 720px;
  margin-top: 18px;
  color: #d5e3d8;
  font-size: 16px;
}

.hero-actions,
.cta-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 3px solid var(--heavy);
  box-shadow: var(--shadow-small);
  font-weight: 950;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .28) 48%, transparent 52%);
  transform: translateX(-120%);
  transition: transform .45s ease;
  pointer-events: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .65);
  outline: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

.btn-primary {
  color: #06110a;
  background: var(--green);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-2);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(15, 28, 22, .82);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  max-width: 880px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-stats div {
  padding: 14px;
  background: rgba(17, 28, 23, .9);
  border: 4px solid var(--heavy);
  box-shadow: var(--shadow-small);
}

.hero-stats dt {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.hero-stats dd {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 66px 0;
  border-bottom: 4px solid rgba(0, 0, 0, .35);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 42px;
  align-items: center;
}

.two-col.reverse {
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1fr);
}

.section-copy h2,
.section-head h2,
.guide-main h2,
.cta-box h2 {
  margin-top: 10px;
  font-size: clamp(22px, 2.7vw, 32px);
  font-weight: 950;
}

.section-copy p:not(.eyebrow),
.section-head p:not(.eyebrow),
.guide-main > p,
.cta-box p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
}

.keyword-line {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-line span {
  padding: 6px 10px;
  color: #07140c;
  background: var(--green);
  border: 2px solid var(--heavy);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
  font-size: 13px;
  font-weight: 900;
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.keyword-line span:hover {
  background: var(--green-2);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .6);
}

.media-block {
  background: var(--panel);
  border: 3px solid var(--heavy);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.media-block img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .38s ease, filter .38s ease;
}

.media-block:hover,
.media-block:focus-within {
  border-color: var(--green);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .65);
  transform: translateY(-3px);
}

.media-block:hover img,
.media-block:focus-within img {
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.035);
}

.media-block figcaption {
  padding: 11px 14px;
  color: var(--muted);
  border-top: 4px solid var(--heavy);
  font-size: 14px;
}

.feature-band,
.updates {
  background:
    linear-gradient(180deg, rgba(69, 214, 111, .05), rgba(0, 0, 0, 0)),
    var(--bg-2);
}

.section-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.card-grid,
.mode-grid,
.version-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.mode-card,
.version-panel,
.aside-box,
.steps article,
.faq-list details,
.cta-box {
  background: var(--panel);
  border: 3px solid var(--heavy);
  box-shadow: var(--shadow);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 4px solid var(--heavy);
  transition: transform .38s ease, filter .38s ease;
}

.feature-card:hover,
.feature-card:focus-within,
.mode-card:hover,
.mode-card:focus-within,
.version-panel:hover,
.version-panel:focus-within,
.steps article:hover,
.steps article:focus-within,
.aside-box:hover,
.aside-box:focus-within {
  background: var(--panel-2);
  border-color: var(--green);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .68);
  transform: translateY(-4px);
}

.feature-card:hover img,
.feature-card:focus-within img {
  filter: saturate(1.15) contrast(1.06);
  transform: scale(1.045);
}

.feature-card:hover h3,
.feature-card:focus-within h3,
.mode-card:hover h3,
.mode-card:focus-within h3,
.version-panel:hover h3,
.version-panel:focus-within h3,
.steps article:hover h3,
.steps article:focus-within h3,
.aside-box:hover h3,
.aside-box:focus-within h3 {
  color: var(--green-2);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.mode-card h3,
.version-panel h3,
.steps h3,
.timeline h3,
.aside-box h3 {
  font-size: 18px;
  font-weight: 950;
}

.card-body p,
.mode-card p,
.version-panel p,
.steps p,
.timeline p,
.aside-box p,
.faq-list p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.mode-grid {
  grid-template-columns: repeat(4, 1fr);
}

.mode-card {
  padding: 20px;
}

.block-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border: 4px solid var(--heavy);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .55);
  transition: transform .28s ease, box-shadow .28s ease;
}

.mode-card:hover .block-icon,
.mode-card:focus-within .block-icon {
  transform: rotate(-4deg) scale(1.06);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .68);
}

.block-icon.grass {
  background: linear-gradient(#4bd563 0 36%, #986343 36%);
}

.block-icon.emerald {
  background: linear-gradient(135deg, #a4ff3f, #1fb85d);
}

.block-icon.stone {
  background: linear-gradient(135deg, #a0a8a1, #4e5a53);
}

.block-icon.redstone {
  background: linear-gradient(135deg, #ff7b4a, #b9162e);
}

.version-grid {
  grid-template-columns: repeat(3, 1fr);
}

.version-panel {
  padding: 21px;
}

.version-panel li {
  color: #d4e0d7;
  transition: color .28s ease;
}

.version-panel:hover li,
.version-panel:focus-within li {
  color: var(--ink);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 42px;
  align-items: start;
}

.steps {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.steps article {
  padding: 18px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  margin-bottom: 13px;
  color: #08130c;
  background: var(--green);
  border: 3px solid var(--heavy);
  font-weight: 950;
  transition: background .28s ease, transform .28s ease;
}

.steps article:hover span,
.steps article:focus-within span {
  background: var(--green-2);
  transform: translateX(2px);
}

.guide-aside {
  position: sticky;
  top: 100px;
}

.guide-aside img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 3px solid var(--heavy);
  box-shadow: var(--shadow);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, filter .28s ease;
}

.guide-aside:hover img,
.guide-aside:focus-within img {
  border-color: var(--green);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .68);
  filter: saturate(1.12) contrast(1.05);
  transform: translateY(-3px);
}

.aside-box {
  margin-top: 16px;
  padding: 18px;
}

.aside-box .btn {
  margin-top: 15px;
}

.timeline {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.timeline article {
  padding: 15px 17px;
  background: var(--panel);
  border: 3px solid var(--heavy);
  box-shadow: var(--shadow-small);
  transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.timeline article:hover,
.timeline article:focus-within {
  background: var(--panel-2);
  border-color: var(--green);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .65);
  transform: translateX(4px);
}

.timeline time {
  color: var(--green-2);
  font-size: 13px;
  font-weight: 900;
}

.gallery {
  background: #101916;
}

.gallery-grid {
  grid-template-columns: 1fr .62fr 1fr;
  align-items: stretch;
}

.gallery-grid figure {
  overflow: hidden;
  background: var(--panel);
  border: 3px solid var(--heavy);
  box-shadow: var(--shadow);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .38s ease, filter .38s ease;
}

.gallery-grid figure:nth-child(2) img {
  padding: 22px;
  object-fit: contain;
  background: #0d1512;
}

.gallery-grid figcaption {
  padding: 10px 12px;
  color: var(--muted);
  border-top: 4px solid var(--heavy);
  font-weight: 800;
  transition: color .28s ease;
}

.gallery-grid figure:hover,
.gallery-grid figure:focus-within {
  background: var(--panel-2);
  border-color: var(--green);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .68);
  transform: translateY(-4px);
}

.gallery-grid figure:hover img,
.gallery-grid figure:focus-within img {
  filter: saturate(1.14) contrast(1.06);
  transform: scale(1.045);
}

.gallery-grid figure:hover figcaption,
.gallery-grid figure:focus-within figcaption {
  color: var(--green-2);
}

.faq-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

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

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 15px 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  list-style: none;
  transition: background .28s ease, color .28s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--green);
  font-size: 22px;
  line-height: 1;
}

.faq-list details[open] summary {
  background: #1e3127;
  border-bottom: 4px solid var(--heavy);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  padding: 0 18px 17px;
}

.faq-list details:hover,
.faq-list details:focus-within {
  border-color: var(--green);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .68);
  transform: translateY(-2px);
}

.faq-list summary:hover,
.faq-list summary:focus-visible {
  color: var(--green-2);
  background: #1e3127;
  outline: none;
}

.cta-section {
  padding: 56px 0;
  background:
    linear-gradient(90deg, rgba(69, 214, 111, .14), rgba(240, 207, 87, .06)),
    #0b120f;
}

.cta-box {
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
}

.cta-box:hover,
.cta-box:focus-within {
  background: var(--panel-2);
  border-color: var(--green);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .68);
  transform: translateY(-3px);
}

.cta-box > div {
  max-width: 760px;
}

.site-footer {
  padding: 24px 0;
  background: #050807;
  color: var(--soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-inner nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--muted);
  font-weight: 800;
  position: relative;
  transition: color .28s ease;
}

.footer-inner a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--green);
  outline: none;
}

.footer-inner a:hover::after,
.footer-inner a:focus-visible::after {
  transform: scaleX(1);
}

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .feature-grid,
  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .two-col,
  .two-col.reverse,
  .guide-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 60px;
  }

  .brand span {
    max-width: 190px;
    font-size: 14px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #08100d;
    border: 4px solid var(--heavy);
    box-shadow: var(--shadow-small);
  }

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

  .site-nav a {
    padding: 10px;
  }

  .site-nav .nav-download {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: 580px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 11, 10, .62), rgba(7, 11, 10, .98) 68%),
      linear-gradient(90deg, rgba(7, 11, 10, .88), rgba(7, 11, 10, .40));
  }

  .hero-content {
    padding: 78px 0 32px;
  }

  h1 {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-actions .btn,
  .cta-box .btn {
    width: 100%;
  }

  .hero-stats,
  .steps,
  .feature-grid,
  .mode-grid,
  .version-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

.section-copy h2,
.section-head h2,
.guide-main h2,
.cta-box h2 {
    font-size: 21px;
  }

  .media-block,
  .feature-card,
  .mode-card,
  .version-panel,
  .aside-box,
  .steps article,
  .faq-list details,
  .cta-box,
  .gallery-grid figure {
    box-shadow: 7px 7px 0 rgba(0, 0, 0, .55);
  }

  .gallery-grid img {
    height: 200px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
