:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --surface: #fbfaf7;
  --ink: #1a1c1b;
  --muted: #6d736f;
  --line: #d9dcd7;
  --accent: #2d8c78;
  --accent-soft: #e5f0ec;
  --dark: #191b1e;
  --dark-soft: #22252a;
  --radius: 10px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(26, 28, 27, 0.09);
  background: rgba(245, 244, 240, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.91rem;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.header-download {
  justify-self: end;
  min-width: 74px;
  padding: 8px 16px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
}

.hero,
.section,
footer {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding-block: 96px;
  background-image:
    linear-gradient(rgba(26, 28, 27, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 28, 27, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.eyebrow,
.route-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

h1,
h2 {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-weight: 800;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 6.8vw, 6.8rem);
  line-height: 1.06;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 48ch;
  margin-bottom: 34px;
  color: var(--muted);
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.requirements {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, 0.92);
  box-shadow: 0 24px 70px rgba(36, 44, 40, 0.09);
}

.requirements-title {
  margin-bottom: 20px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 1.45rem;
  font-weight: 800;
}

.requirements dl {
  margin: 0;
}

.requirements dl div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.requirements dt {
  color: var(--muted);
}

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

.requirements-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding-block: clamp(88px, 10vw, 140px);
}

.section-heading {
  max-width: 730px;
  margin-bottom: 54px;
}

.section-heading h2,
.download-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.6vw, 4.4rem);
  line-height: 1.16;
}

.section-heading > p:not(.eyebrow),
.download-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
}

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

.route {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.route-recommended {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: inset 0 4px 0 var(--accent);
}

.route-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.route-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
}

.route-kicker {
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

.route h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.3;
}

.route > p {
  color: var(--muted);
}

.route ol {
  margin: 12px 0 34px;
  padding-left: 1.5em;
}

.route li {
  padding: 8px 0 8px 6px;
}

.route .button {
  align-self: flex-start;
  margin-top: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

.after-install {
  border-top: 1px solid var(--line);
}

.compact-heading {
  max-width: 820px;
}

.after-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.large-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}

.large-steps li {
  counter-increment: install-step;
  display: grid;
  grid-template-columns: 50px 1fr;
  column-gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.large-steps li::before {
  content: counter(install-step, decimal-leading-zero);
  grid-row: 1 / span 2;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.large-steps strong {
  font-size: 1.15rem;
}

.large-steps span {
  color: var(--muted);
}

.tip-box {
  padding: 28px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.tip-title {
  margin-bottom: 8px;
  font-weight: 800;
}

.tip-box p:last-child {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--ink) 76%, var(--muted));
}

.troubleshooting {
  border-top: 1px solid var(--line);
}

.problem-list {
  max-width: 900px;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 24px 44px 24px 0;
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 750;
}

details p {
  max-width: 68ch;
  padding: 0 0 24px;
  margin-bottom: 0;
  color: var(--muted);
}

.downloads {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 72px;
  padding: clamp(72px, 9vw, 120px) max(24px, calc((100vw - var(--content)) / 2));
  background: var(--dark);
  color: #f3f3ef;
}

.download-copy {
  max-width: 680px;
}

.download-copy > p:not(.eyebrow) {
  color: #aeb4b1;
}

.download-actions {
  align-self: center;
  justify-content: flex-end;
}

.button-light {
  background: #f4f4ef;
  color: var(--dark);
}

.button-outline-light {
  border-color: #565b5f;
  color: #f4f4ef;
}

.checksum {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #373b40;
  border-radius: var(--radius);
  background: var(--dark-soft);
  color: #aeb4b1;
  font-size: 0.82rem;
}

.checksum code {
  color: #e5e6e2;
}

.checksum a {
  color: #bcdcd3;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 44px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.footer-brand strong {
  color: var(--ink);
}

.footer-brand span {
  font-size: 0.74rem;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding-inline: 16px;
  }

  nav {
    display: none;
  }

  .hero,
  .section,
  footer {
    width: min(calc(100% - 32px), var(--content));
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
    padding-block: 72px;
    background-size: 44px 44px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .route-grid,
  .after-grid {
    grid-template-columns: 1fr;
  }

  .route {
    min-height: 0;
  }

  .downloads {
    width: 100%;
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .download-actions {
    justify-content: flex-start;
  }

  .checksum {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

@media (max-width: 480px) {
  .brand span {
    font-size: 0.9rem;
  }

  .header-download {
    min-width: 62px;
    padding-inline: 12px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-actions,
  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .requirements dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .route-heading {
    flex-direction: column;
  }
}

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

  .button {
    transition: none;
  }
}
