:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #18201d;
  background: #f2f4f1;
  font-synthesis: none;
  --ink: #18201d;
  --muted: #5f6d67;
  --line: #d7dfd9;
  --surface: #ffffff;
  --soft: #eaf0ec;
  --accent: #356b57;
  --accent-dark: #285242;
  --accent-soft: #dfece5;
}

* { box-sizing: border-box; }
html { background: #f2f4f1; }
body { margin: 0; min-height: 100vh; background: #f2f4f1; }
a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand strong { display: block; font-size: 16px; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e8f1ec;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark span { position: absolute; height: 3px; border-radius: 3px; background: var(--accent); transform-origin: right center; }
.brand-mark span:nth-child(1) { width: 23px; transform: translate(-1px, -7px) rotate(24deg); }
.brand-mark span:nth-child(2) { width: 27px; transform: translate(-3px, 0) rotate(-8deg); }
.brand-mark span:nth-child(3) { width: 18px; transform: translate(3px, 7px) rotate(-34deg); }
.official-label { padding: 7px 10px; border-radius: 5px; color: #325b4b; background: var(--accent-soft); font-size: 12px; font-weight: 650; }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.release-hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 72px;
  border-top: 1px solid var(--line);
}
.product-type { margin: 0 0 14px; color: var(--accent); font-size: 14px; font-weight: 700; }
h1 { max-width: 720px; margin: 0; font-size: 52px; line-height: 1.15; letter-spacing: 0; text-wrap: balance; }
.summary { max-width: 660px; margin: 24px 0 0; color: #4c5b54; font-size: 18px; line-height: 1.8; text-wrap: pretty; }
.assurances { margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; }
.assurances li { position: relative; padding-left: 18px; color: #52615a; font-size: 13px; }
.assurances li::before { content: ""; position: absolute; width: 7px; height: 7px; left: 0; top: 6px; border-radius: 50%; background: var(--accent); }

.download-panel { padding: 30px; border: 1px solid #cfd9d2; border-radius: 10px; background: var(--surface); }
.version-line { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.version-line span { color: var(--muted); font-size: 13px; }
.version-line strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.published-at { margin: 8px 0 26px; color: var(--muted); font-size: 13px; text-align: right; }
.download-button {
  min-height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease-out, transform 180ms ease-out;
}
.download-button:hover { background: var(--accent-dark); }
.download-button:active { transform: translateY(1px); }
.download-button:focus-visible, footer a:focus-visible, details summary:focus-visible { outline: 3px solid rgba(53, 107, 87, .25); outline-offset: 3px; }
.download-button.disabled { color: #77827d; background: #e5e9e6; cursor: not-allowed; }
.download-note, .empty-release { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty-release { margin-bottom: 24px; }

.release-details { padding: 32px 0 42px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading span { color: var(--muted); font-size: 13px; }
.release-notes { max-width: 76ch; margin: 18px 0 0; color: #44524c; font-size: 15px; line-height: 1.8; white-space: pre-line; }
.release-notes.muted { color: var(--muted); }
.checksum { max-width: 760px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.checksum summary { width: fit-content; cursor: pointer; }
.checksum code { margin-top: 12px; padding: 11px 12px; display: block; overflow-wrap: anywhere; border-radius: 6px; color: #34433c; background: var(--soft); font-family: Consolas, monospace; line-height: 1.6; }

footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 820px) {
  .site-header, main, footer { width: min(100% - 32px, 640px); }
  .site-header { height: 72px; }
  .release-hero { min-height: 0; padding: 56px 0 48px; grid-template-columns: 1fr; gap: 40px; }
  h1 { font-size: 38px; }
  .summary { margin-top: 18px; font-size: 16px; }
  .assurances { margin-top: 24px; display: grid; gap: 10px; }
  .download-panel { padding: 24px; }
  .release-details { padding-top: 28px; }
}

@media (max-width: 440px) {
  h1 { font-size: 32px; }
  .official-label { display: none; }
  .download-panel { padding: 20px; }
  footer { align-items: flex-start; padding: 24px 0; }
}

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