:root {
  color-scheme: light;
  --ink: #15233d;
  --muted: #4e5e76;
  --line: #dbe4f1;
  --surface: #fff;
  --accent: #3e41be;
  --accent-dark: #2e309e;
  --accent-pale: #eef0ff;
  --shell-width: 1180px;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background: #f8faff;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid #575be0; outline-offset: 5px; }
section[id] { scroll-margin-top: 24px; }

.shell { width: min(var(--shell-width), calc(100% - 80px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); background: #ffffffeb; }
.header-inner, .site-nav, .brand, .footer-inner { display: flex; align-items: center; }
.header-inner { justify-content: space-between; min-height: 77px; gap: 20px; }
.brand { gap: 10px; font-size: 18px; font-weight: 750; white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.site-nav { gap: clamp(14px, 3.3vw, 38px); color: var(--muted); font-size: 14px; font-weight: 650; }
.site-nav a:hover, .footer-inner a:hover { color: var(--accent); }
.repo-link span, .text-link span { margin-left: 2px; }

.hero {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
  padding-block: 79px 88px;
}

body {
  background: radial-gradient(ellipse at 85% 21%, #e4eaff 0, #f8faff00 39%), #f8faff;
}

.version {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #46536e;
  font-size: 14px;
  font-weight: 680;
}
.version span { border-radius: 7px; background: #e8eaff; color: #37399b; padding: 4px 8px; font-variant-numeric: tabular-nums; }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(47px, 5.9vw, 82px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.065em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.intro { max-width: 29em; margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.button span { font-size: 19px; line-height: 1; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); }

.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.status-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #167255; box-shadow: 0 0 0 4px #dbf1e7; }
.hero-preview { min-width: 0; }
.preview-frame {
  overflow: hidden;
  background: #0d1018;
  border: 6px solid #f8faff;
  border-radius: 18px;
  outline: 1px solid #cad6ee;
  box-shadow: 0 22px 50px #27325b34, 0 3px 13px #29356325;
}
.preview-frame img { width: 100%; height: auto; }
.hero-preview figcaption { margin-top: 13px; color: var(--muted); font-size: 12px; text-align: right; }

.band { border-block: 1px solid var(--line); background: #f0f4fc; padding-block: 49px 51px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 13px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(27px, 3.1vw, 38px); line-height: 1.25; font-weight: 800; letter-spacing: -0.035em; }
.text-link { color: var(--accent-dark); font-size: 14px; font-weight: 680; text-underline-offset: 3px; }
.text-link:hover { text-decoration: underline; }

.edition-grid, .install-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edition { padding: 23px; border: 1px solid #d7e1f0; border-radius: 15px; background: var(--surface); }
.edition h3 { font-size: 24px; font-weight: 780; }
.download-options { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.download-row { display: flex; align-items: center; gap: 11px; min-height: 61px; padding: 8px 10px; border: 1px solid #e5ebf5; border-radius: 10px; background: #f8faff; }
.download-row:hover { border-color: #c6cef2; background: var(--accent-pale); }
.download-row-copy { display: grid; flex: 1 1 auto; gap: 3px; }
.download-row-copy strong { font-size: 15px; }
.download-row-copy small { color: var(--muted); font-size: 12px; }
.download-arrow { padding: 0 8px; color: var(--accent-dark); font-size: 20px; font-weight: 750; }
.file-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-pale);
  color: #3537a7;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 800;
}
.file-mark-portable { background: #e7f0f8; color: #285878; }

.checksum-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: baseline; margin-top: 20px; font-size: 14px; line-height: 1.65; }
.checksum-bar strong { margin-right: 8px; }
.checksum-bar p span { color: var(--muted); }

.install { padding-block: 59px 68px; }
.install-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.steps { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.steps details + details { border-top: 1px solid var(--line); }
.steps summary { padding: 17px 21px; color: var(--ink); font-weight: 740; cursor: pointer; }
.steps summary:hover { color: var(--accent); }
.steps ol { margin: 0; padding: 0 24px 20px 45px; }
.steps li, .requirements li { color: var(--muted); font-size: 14px; line-height: 1.85; }
.steps li + li, .requirements li + li { margin-top: 7px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
code { padding: 0.15em 0.42em; background: #eef2fa; border-radius: 4px; color: #25416a; font-family: Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }

.requirements { padding: 22px; background: #f0f4fc; border: 1px solid var(--line); border-radius: 15px; }
.requirements h3 { font-size: 19px; }
.requirements ul { margin: 11px 0 0; padding-inline-start: 18px; }
.requirements .notice { margin-top: 16px; padding-top: 14px; border-top: 1px solid #d2def1; color: var(--muted); font-size: 13px; line-height: 1.7; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { justify-content: space-between; gap: 16px; min-height: 64px; color: var(--muted); font-size: 13px; }

@media (max-width: 920px) {
  .shell { width: min(var(--shell-width), calc(100% - 52px)); }
  .hero { gap: 30px; padding-block: 57px 62px; }
  .hero h1 { font-size: clamp(41px, 7vw, 62px); }
  .intro { font-size: 15px; }
  .hero-actions { margin-top: 24px; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 61px; gap: 9px; }
  .brand { font-size: 15px; gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .site-nav { gap: 12px; font-size: 12px; }
  .hero, .edition-grid, .install-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 25px; padding-block: 42px 43px; }
  .hero h1 { margin-top: 16px; font-size: clamp(42px, 10.5vw, 63px); }
  .hero-preview { margin-top: 1px; }
  .preview-frame { border-width: 4px; border-radius: 12px; }
  .band, .install { padding-block: 36px 42px; }
  .edition { padding: 19px; }
}

@media (max-width: 350px) {
  .site-nav { gap: 8px; }
  .site-nav .repo-link span { display: none; }
  .hero-actions .button { width: 100%; }
}

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