:root {
  --ink: #20211d;
  --muted: #62645d;
  --paper: #fff9ed;
  --surface: #fffdf6;
  --line: #24251f;
  --accent: #f16a3d;
  --accent-dark: #9d3822;
  --mint: #9ddbb0;
  --gold: #f4b34d;
  --shadow: 10px 10px 0 rgba(32, 33, 29, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(90deg, rgba(32, 33, 29, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(32, 33, 29, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 8% 12%, rgba(244, 179, 77, 0.2), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(157, 219, 176, 0.28), transparent 24rem),
    var(--paper);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

a {
  color: inherit;
}

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

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

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

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--mint);
  box-shadow: 4px 4px 0 var(--line);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.navlinks a {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
}

.navlinks a:hover,
.navlinks a:focus-visible {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 40px 0 68px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(157, 219, 176, 0.35);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: "STZhongsong", "Songti SC", Georgia, serif;
  font-size: 4.3rem;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button svg {
  width: 21px;
  height: 21px;
}

.button.primary {
  background: var(--accent);
  box-shadow: 6px 6px 0 var(--line);
}

.button.secondary {
  background: var(--surface);
  box-shadow: 6px 6px 0 rgba(32, 33, 29, 0.2);
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--line);
  outline: none;
}

.button[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.hint {
  min-height: 28px;
  color: var(--muted);
  line-height: 1.65;
}

.support-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 2px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.82);
  box-shadow: 5px 5px 0 rgba(32, 33, 29, 0.14);
  line-height: 1.45;
}

.support-contact svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent-dark);
}

.support-contact strong,
.support-contact span {
  display: block;
}

.support-contact strong {
  font-weight: 850;
  overflow-wrap: anywhere;
}

.support-contact span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.95rem;
}

.support-contact a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.support-contact a:hover,
.support-contact a:focus-visible {
  color: var(--accent-dark);
  outline: none;
}

.release-panel {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.release-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(32, 33, 29, 0.24);
  pointer-events: none;
}

.panel-ribbon {
  position: absolute;
  top: 20px;
  right: -46px;
  width: 160px;
  padding: 8px 0;
  border: 2px solid var(--line);
  background: var(--gold);
  text-align: center;
  font-weight: 900;
  transform: rotate(30deg);
}

.file-object {
  display: grid;
  place-items: center;
  min-height: 260px;
}

.file-object svg {
  width: min(260px, 82%);
  color: var(--line);
  filter: drop-shadow(10px 12px 0 rgba(32, 33, 29, 0.13));
}

.file-object svg path {
  stroke-width: 3;
}

.release-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.release-stats div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(32, 33, 29, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
}

.release-stats dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.release-stats dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -20px;
}

.info-card {
  min-width: 0;
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 6px 6px 0 rgba(32, 33, 29, 0.12);
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--mint);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.info-card h2,
.steps h2 {
  margin-bottom: 10px;
  font-family: "STZhongsong", "Songti SC", Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.info-card p {
  min-height: 54px;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--ink);
  outline: none;
}

.steps {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 32px;
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(157, 219, 176, 0.3);
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(32, 33, 29, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.78);
}

.steps li span {
  display: inline-grid;
  width: 40px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--gold);
  font-weight: 900;
}

.steps li strong {
  display: block;
  margin-bottom: 8px;
}

.steps li p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(380px, calc(100% - 40px));
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  box-shadow: 6px 6px 0 rgba(32, 33, 29, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

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

@media (max-width: 920px) {
  .topbar,
  .hero,
  .steps {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

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

  h1 {
    font-size: 3.1rem;
  }

  .info-grid,
  .steps ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 14px;
  }

  .topbar {
    gap: 14px;
  }

  .navlinks {
    width: 100%;
  }

  .navlinks a {
    padding-inline: 9px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .lede {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .support-contact {
    width: 100%;
    align-items: flex-start;
  }

  .release-panel,
  .steps {
    padding: 18px;
  }

  .release-stats {
    grid-template-columns: 1fr;
  }
}
