:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #20231e;
  --muted: #667064;
  --line: #d7d0c2;
  --grass: #3e7c45;
  --leaf: #68944e;
  --redstone: #c33a2b;
  --copper: #b76f3c;
  --gold: #dfaa3f;
  --sky: #95b8c9;
  --deep: #2e3440;
  --stone: #787c78;
  --shadow: 0 18px 50px rgba(45, 50, 43, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(32, 35, 30, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(32, 35, 30, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(32, 35, 30, 0.1);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border: 2px solid var(--deep);
  border-radius: 6px;
  background: var(--paper);
  object-fit: cover;
  box-shadow: 3px 3px 0 var(--deep);
}

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

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(62, 124, 69, 0.12);
  color: var(--ink);
}

.hero,
.section,
.page-hero {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 54px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--redstone);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.hero-text {
  max-width: 680px;
  color: #444d42;
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.primary {
  background: var(--grass);
  color: white;
}

.button.secondary {
  background: var(--paper);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.server-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.server-snapshot div,
.info-card,
.tutorial-card,
.feature-row,
.link-card,
.join-panel,
.download-box,
.qr-frame,
.qr-placeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 10px 30px rgba(45, 50, 43, 0.08);
}

.server-snapshot div {
  padding: 14px;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border: 4px solid var(--deep);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow), 9px 9px 0 var(--deep);
}

.photo-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 9px;
  border: 2px solid var(--deep);
  border-radius: 5px;
  background: rgba(255, 253, 248, 0.9);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.block-sky {
  position: absolute;
  inset: 0 0 38%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 58px, transparent 58px 116px),
    var(--sky);
}

.block-world {
  position: absolute;
  inset: 28% 0 0;
  background:
    linear-gradient(180deg, var(--leaf) 0 17%, var(--grass) 17% 32%, #5d5548 32% 60%, #3b3f42 60%),
    repeating-linear-gradient(90deg, transparent 0 41px, rgba(0, 0, 0, 0.14) 41px 43px);
}

.block,
.machine,
.rail {
  position: absolute;
  display: block;
}

.block {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 -12px rgba(0, 0, 0, 0.16), inset 10px 10px rgba(255, 255, 255, 0.16);
}

.grass { background: var(--grass); }
.stone { background: var(--stone); }
.copper { background: var(--copper); }
.redstone { background: var(--redstone); }
.lamp { background: var(--gold); }

.b1 { left: 8%; top: 18%; }
.b2 { left: 25%; top: 41%; }
.b3 { right: 13%; top: 26%; }
.r1 { left: 43%; top: 53%; }
.r2 { right: 29%; top: 54%; }
.l1 { left: 17%; top: 62%; }
.l2 { right: 8%; top: 66%; }

.machine {
  width: 82px;
  height: 82px;
  border: 4px solid #1f2429;
  background:
    linear-gradient(90deg, transparent 38%, var(--redstone) 38% 48%, transparent 48%),
    linear-gradient(180deg, #9aa1a2 0 48%, #555b5f 48%);
  box-shadow: inset 0 -14px rgba(0, 0, 0, 0.22);
}

.m1 { left: 50%; top: 20%; }
.m2 { right: 21%; top: 44%; }
.m3 { left: 31%; top: 69%; }

.rail {
  height: 8px;
  background: var(--redstone);
  box-shadow: 0 0 18px rgba(195, 58, 43, 0.55);
}

.line-a {
  left: 19%;
  right: 18%;
  top: 48%;
  transform: rotate(14deg);
}

.line-b {
  left: 25%;
  right: 9%;
  top: 77%;
  transform: rotate(-8deg);
}

.section {
  padding: 72px 0;
}

.page-hero {
  padding: 72px 0 34px;
}

.page-hero p {
  max-width: 760px;
  color: #4b5449;
  font-size: clamp(16px, 2vw, 19px);
}

.compact-section {
  padding-top: 34px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
}

.split.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
}

.section p {
  color: #4b5449;
}

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

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

.info-card,
.tutorial-card {
  min-height: 160px;
  padding: 22px;
}

.tutorial-card {
  color: inherit;
  text-decoration: none;
}

.tutorial-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 8px 22px rgba(45, 50, 43, 0.1);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid figure {
  position: relative;
  min-height: 220px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 10px 30px rgba(45, 50, 43, 0.08);
}

.gallery-grid .gallery-main {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 454px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(32, 35, 30, 0.78);
  color: white;
  font-size: 13px;
}

.rule-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.rule-item span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--deep);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--deep);
  font-weight: 900;
}

.join-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: 28px;
  padding: 36px;
  border: 4px solid var(--deep);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(62, 124, 69, 0.15), rgba(195, 58, 43, 0.12)),
    var(--paper);
  box-shadow: 7px 7px 0 var(--deep);
}

.join-panel {
  padding: 22px;
}

.join-panel ul {
  padding-left: 20px;
  color: #4b5449;
}

.download-box {
  margin-top: 22px;
  padding: 20px;
}

.download-box .button {
  margin-top: 8px;
}

.download-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.download-row strong,
.download-row small {
  display: block;
}

.download-row small {
  margin-top: 4px;
  color: #68705f;
}

.download-row em {
  min-width: 56px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--gold);
  color: var(--deep);
  font-style: normal;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}

.download-row:hover em {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.download-note {
  margin-bottom: 0;
  color: #4b5449;
}

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

.guide-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 30px rgba(45, 50, 43, 0.08);
}

.guide-toc a {
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.guide-toc a:hover {
  background: rgba(62, 124, 69, 0.12);
  color: var(--ink);
}

.guide-content {
  display: grid;
  gap: 18px;
}

.guide-panel,
.staff-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 30px rgba(45, 50, 43, 0.08);
}

.step-mark {
  display: inline-grid;
  min-width: 44px;
  height: 34px;
  place-items: center;
  margin-bottom: 12px;
  border: 2px solid var(--deep);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--deep);
  font-weight: 900;
}

.clean-list {
  margin: 0;
  padding-left: 22px;
  color: #4b5449;
}

.clean-list li + li {
  margin-top: 8px;
}

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

.setting-grid article {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 245, 239, 0.7);
}

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

.faq-list details {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(247, 245, 239, 0.7);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 10px 0 0;
}

.staff-card.lead {
  border: 4px solid var(--deep);
  box-shadow: 7px 7px 0 var(--deep);
}

.avatar-block {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 14px;
  border: 3px solid var(--deep);
  border-radius: 6px;
  background: var(--grass);
  color: white;
  box-shadow: 4px 4px 0 var(--deep);
  font-size: 24px;
  font-weight: 900;
}

.muted-avatar {
  background: var(--stone);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag-row span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f0ece2;
  color: #4b5449;
  font-size: 13px;
  font-weight: 800;
}

.card-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f0ece2;
  font-family: Consolas, "Courier New", monospace;
}

.feature-stack,
.link-list {
  display: grid;
  gap: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.mini-block {
  width: 40px;
  height: 40px;
  border: 2px solid var(--deep);
  box-shadow: inset 0 -8px rgba(0, 0, 0, 0.16);
}

.mini-block.red { background: var(--redstone); }
.mini-block.blue { background: #3d78a8; }
.mini-block.gold { background: var(--gold); }
.mini-block.green { background: var(--grass); }

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

.link-card {
  display: block;
  padding: 20px;
  text-decoration: none;
}

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

.link-card span {
  color: var(--muted);
  font-size: 13px;
}

.link-card strong {
  margin-top: 4px;
  font-size: 22px;
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 30px;
  align-items: center;
}

.qr-frame {
  overflow: hidden;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.qr-frame img[hidden] {
  display: none;
}

.qr-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  padding: 18px;
  text-align: center;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.qr-placeholder span {
  display: block;
  width: 96px;
  height: 96px;
  background:
    linear-gradient(90deg, var(--deep) 12px, transparent 12px 24px, var(--deep) 24px 36px, transparent 36px),
    linear-gradient(var(--deep) 12px, transparent 12px 24px, var(--deep) 24px 36px, transparent 36px);
  background-size: 36px 36px;
  opacity: 0.26;
}

.qr-placeholder small {
  color: var(--muted);
}

.qr-frame.has-image .qr-placeholder {
  display: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

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

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .split.reverse,
  .join-band,
  .support,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 380px;
  }

  .server-snapshot,
  .info-grid,
  .tutorial-grid,
  .gallery-grid,
  .setting-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .gallery-main {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .join-band {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .page-hero {
    width: min(100% - 24px, 1160px);
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 310px;
    box-shadow: 5px 5px 0 var(--deep);
  }

  .rule-item {
    grid-template-columns: 1fr;
  }

  .download-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .download-row em {
    width: 100%;
  }

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