:root {
  color-scheme: light;
  --background: #f6f8f6;
  --surface: #fff;
  --surface-soft: #f4f7f5;
  --text: #2c3654;
  --text-secondary: #5a6280;
  --primary: #1f4f45;
  --primary-strong: #173f38;
  --border: #e0e7e3;
  --mint: #e3f2ec;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--background); font: 16px/1.65 "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
::selection { background: var(--primary); color: var(--surface); }
html { scrollbar-color: #c6d4cc var(--background); }
a { color: var(--primary); text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 2; padding: 12px; color: var(--surface); background: var(--primary); border-radius: 12px; }
.skip-link:focus { top: 12px; }
.download-header { width: min(1080px, 100%); margin: auto; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.download-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--primary); text-decoration: none; font-weight: 700; font-size: 20px; white-space: nowrap; }
.download-brand svg { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: var(--primary); fill: none; stroke: #ffe45c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.download-main { max-width: 900px; margin: 28px auto 56px; padding: 0 32px; }
.download-clients { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.download-clients a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 24px; border-radius: 999px; color: var(--text-secondary); text-decoration: none; font-weight: 600; }
.download-clients a[aria-current="page"] { background: var(--primary); color: var(--surface); }
.download-clients a:not([aria-current]):hover { background: var(--mint); color: var(--primary); }
h1 { margin: 28px 0 12px; color: var(--primary-strong); font-size: clamp(28px, 4vw, 38px); line-height: 1.35; letter-spacing: -.02em; }
h2 { margin: 0; color: var(--primary); font-size: 20px; line-height: 1.4; }
.download-description { margin: 0 0 28px; max-width: 65ch; color: var(--text-secondary); }
.download-platforms { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.download-section-heading { padding: 22px 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.download-section-heading > span { font-size: 13px; color: var(--text-secondary); }
.download-status { margin: 10px 28px 20px; color: var(--text-secondary); font-size: 14px; }
.download-platform { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 24px 28px; border-top: 1px solid var(--border); }
.download-platform h3 { font-size: 18px; line-height: 1.4; margin: 0 0 4px; }
.download-platform p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.download-platform .package-meta { margin-top: 8px; font-variant-numeric: tabular-nums; }
.download-unavailable { color: var(--text-secondary); background: var(--surface-soft); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.download-action, .download-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--primary); color: var(--surface); text-decoration: none; font-weight: 600; }
.download-action:hover, .download-secondary:hover { background: var(--primary-strong); }
.download-secondary { margin: 0 28px 24px; }
.package-checksum { grid-column: 1/-1; font-size: 13px; color: var(--text-secondary); }
.package-checksum summary { display: list-item; width: fit-content; min-height: 44px; align-content: center; cursor: pointer; }
.package-checksum code { display: block; padding: 12px; border-radius: 8px; background: var(--surface-soft); overflow-wrap: anywhere; font-size: 12px; }
.download-browser-note { margin: 18px 0 40px; color: var(--text-secondary); font-size: 14px; }
.download-browser-note a { display: inline-block; padding: 8px 0; margin-left: 6px; font-weight: 600; }
.download-guide dl { margin: 20px 0 0; }
.download-guide dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--border); }
.download-guide dt { font-weight: 600; }
.download-guide dd { margin: 0; color: var(--text-secondary); font-size: 14px; }
.download-registration { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  .download-header { padding: 18px 20px; align-items: flex-start; }
  .download-brand { font-size: 18px; gap: 9px; }
  .download-brand svg { width: 38px; height: 38px; }
  .download-back { max-width: 112px; text-align: right; justify-content: flex-end; }
  .download-main { margin-top: 22px; padding: 0 20px; }
  .download-clients { display: flex; }
  .download-clients a { flex: 1; padding-inline: 10px; }
  h1 { margin-top: 24px; }
  .download-section-heading { padding: 20px 20px 0; }
  .download-section-heading > span { display: none; }
  .download-status { margin-inline: 20px; }
  .download-platform { padding: 20px; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .download-unavailable { justify-self: start; }
  .download-action { justify-self: stretch; }
  .download-secondary { margin-left: 20px; }
  .download-guide dl > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
}
