:root {
  color-scheme: dark;
  --orange: #ff640d;
  --paper: #f6f3ed;
  --muted: #aab0ad;
  --line: #ffffff21;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--paper);
  background: #171a1b;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1 { margin: 0; }
[hidden] { display: none !important; }
:is(a, button, summary):focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
::selection { color: #171a1b; background: #ff9150; }

.download-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 34px clamp(26px, 4.4vw, 96px); }
.brand img { width: 180px; height: auto; }
.website-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 13px; color: #c5c9c6; }
.website-link span { color: var(--orange); font-size: 19px; }
.website-link:hover { color: var(--paper); }

.download-main { display: grid; grid-template-columns: minmax(0, 360px) 220px; align-items: center; gap: 84px; width: min(100% - 64px, 720px); margin: auto; padding-block: 45px 70px; }
.app-icon { width: 82px; height: 82px; margin-bottom: 30px; border-radius: 18px; }
.eyebrow { margin-bottom: 11px; color: var(--orange); font-size: 12px; letter-spacing: .16em; }
h1 { font-size: clamp(36px, 4.3vw, 48px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.intro { margin-top: 16px; color: #c2c7c3; font-size: 15px; line-height: 1.7; }
.release { min-height: 20px; margin-top: 32px; color: var(--muted); font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.download-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 13px; padding: 15px 18px; border: 1px solid transparent; border-radius: 4px; background: var(--orange); color: #171a1b; font-size: 16px; font-weight: 650; transition: background 160ms, transform 160ms; }
.download-button svg { flex: 0 0 19px; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.download-button:hover:enabled { background: #ff7b31; }
.download-button:active:enabled { transform: translateY(1px); }
.download-button:disabled { border-color: var(--line); background: #292e2e; color: #bec4c0; cursor: default; }
.download-status { min-height: 20px; margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.retry-button { min-height: 44px; padding: 0; border: 0; color: var(--orange); background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.installation { margin-top: 21px; border-top: 1px solid var(--line); }
.installation summary { display: flex; align-items: center; justify-content: space-between; min-height: 49px; color: #c2c7c3; font-size: 12px; cursor: pointer; list-style: none; }
.installation summary::-webkit-details-marker { display: none; }
.installation summary span { font-size: 19px; line-height: 1; font-weight: 300; }
.installation[open] summary span { transform: rotate(45deg); }
.installation ol { margin: 0; padding: 0 0 16px 19px; color: var(--muted); font-size: 12px; line-height: 2.1; }
.platform-note { color: #a2aaa5; font-size: 11px; line-height: 1.8; }

.download-qr { padding: 8px 0 8px 48px; border-left: 1px solid var(--line); text-align: center; }
.download-qr img { width: 160px; height: auto; margin: 0 auto 21px; }
.download-qr p { color: #d0d5d0; font-size: 13px; line-height: 1.7; }
.download-qr > span { display: block; margin-top: 6px; color: var(--muted); font: 11px/1.8 ui-monospace, SFMono-Regular, monospace; }

.download-footer { width: calc(100% - clamp(52px, 8.8vw, 192px)); margin: 0 auto; padding-block: 23px; border-top: 1px solid var(--line); color: #929c95; font-size: 10px; line-height: 1.8; }
.footer-top { display: flex; justify-content: space-between; gap: 15px; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 22px; }
.filing { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 9px; }
.filing a { display: inline-flex; align-items: center; gap: 5px; }
.download-footer a:hover { color: var(--paper); }

@media (max-width: 680px) {
  .download-header { padding: 21px 24px; gap: 16px; }
  .brand img { width: 143px; }
  .website-link { gap: 8px; font-size: 12px; }
  .download-main { display: block; width: min(100% - 48px, 340px); padding-block: 37px 47px; }
  .download-content { text-align: center; }
  .app-icon { width: 76px; height: 76px; margin: 0 auto 26px; }
  h1 { font-size: 37px; }
  .intro { margin-top: 14px; font-size: 14px; }
  .release { margin-top: 31px; }
  .installation { text-align: left; }
  .download-qr { display: none; }
  .download-footer { width: calc(100% - 48px); padding-block: 19px; font-size: 9px; }
  .filing { gap: 6px 14px; }
}
@media (max-width: 360px) {
  .download-header { padding-inline: 22px; }
  .brand img { width: 124px; }
  .download-main { padding-block: 22px 36px; }
  h1 { font-size: 33px; }
  .intro { font-size: 13px; }
  .app-icon { width: 66px; height: 66px; margin-bottom: 23px; }
  .platform-note { font-size: 10px; }
  .footer-top nav { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .download-button { transition: none; }
}
