/* 独立下载页，不引用或修改公司首页及产品页样式。
   单个 800px 下载面板，所有安装包均由接口返回；品牌色仅用于主操作。 */
:root {
  color-scheme: light;
  --ground: #f7f7fb;
  --surface: #fff;
  --text: #252632;
  --muted: #626574;
  --border: #e5e5ed;
  --raised: #f1f1f6;
  --accent: #6153e5;
  --accent-hover: #4e41c7;
  --focus: #6153e5;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; font-family: var(--font); font-size: 15px; line-height: 1.7; color: var(--text); background: var(--ground); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .55; }
[hidden] { display: none !important; }
img { display: block; }
svg { display: block; flex-shrink: 0; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: max(20px, calc((100% - 1120px) / 2)); padding: 8px 14px; background: var(--text); color: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.download-header { width: min(1120px, calc(100% - 64px)); min-height: 76px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.download-brand { display: inline-flex; gap: 10px; align-items: center; font-size: 17px; font-weight: 650; }
.download-header nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.download-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.download-header nav a:hover { color: var(--text); }
.download-main { width: min(800px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 44px; flex: 1; }
.download-intro { text-align: center; padding-bottom: 32px; }
.download-app-icon { margin: 0 auto 16px; }
.download-intro h1 { font-size: 32px; line-height: 1.35; letter-spacing: -.035em; font-weight: 650; }
.download-intro p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.download-sheet { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.download-picker { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 0; border-bottom: 1px solid var(--border); }
.download-platforms { display: flex; gap: 24px; }
.download-platform { position: relative; display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 52px; padding: 0 8px 14px; border: 0; color: var(--muted); background: transparent; font-size: 15px; line-height: 1.2; font-weight: 500; }
.download-platform svg { width: 19px; height: 19px; }
.download-platform::after { position: absolute; content: ""; height: 2px; bottom: -1px; left: 0; right: 0; background: transparent; }
.download-platform[aria-pressed="true"] { color: var(--text); font-weight: 650; }
.download-platform[aria-pressed="true"]::after { background: var(--text); }
.download-platform:hover { color: var(--text); }
.download-refresh { display: grid; place-items: center; width: 44px; height: 44px; margin-top: -10px; padding: 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.download-refresh svg { width: 19px; height: 19px; }
.download-refresh:hover { background: var(--raised); color: var(--text); }
.download-content { padding: 24px 30px; }
.download-message { padding: 8px 0 6px; text-align: center; }
.download-message h2 { font-size: 18px; font-weight: 600; line-height: 1.5; }
#download-status { margin-top: 8px; color: var(--muted); font-size: 14px; }
.download-retry { margin-top: 18px; min-height: 40px; padding: 7px 20px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: var(--surface); font-size: 14px; }
.download-retry:hover { background: var(--raised); }
.download-sheet[data-state="ready"] .download-message { text-align: left; padding: 0 0 18px; }
.download-sheet[data-state="ready"] .download-message h2 { display: none; }
.download-sheet[data-state="ready"] #download-status { margin: 0; font-size: 13px; }
.studio-download-card + .studio-download-card { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; }
.studio-download-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.studio-download-card-heading h2 { font-size: 20px; line-height: 1.4; font-weight: 600; }
.studio-download-target-note { color: var(--muted); margin-top: 5px; font-size: 14px; }
.studio-download-meta { color: var(--muted); margin-top: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.download-button { min-height: 44px; min-width: 144px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; flex-shrink: 0; border: 0; border-radius: 6px; font-size: 14px; font-weight: 550; background: var(--accent); color: var(--surface); transition: background-color 160ms, transform 160ms; }
.download-button:hover { background: var(--accent-hover); }
.download-button:active, .download-retry:active { transform: translateY(1px); }
.studio-download-card + .studio-download-card .download-button { color: var(--text); background: var(--raised); }
.studio-download-card + .studio-download-card .download-button:hover { background: var(--border); }
.studio-download-detail { margin-top: 18px; color: var(--muted); font-size: 13px; }
.studio-download-detail summary { cursor: pointer; min-height: 28px; width: fit-content; }
.studio-download-detail summary:hover { color: var(--text); }
.studio-download-detail[open] { padding-bottom: 4px; }
.studio-download-filename { overflow-wrap: anywhere; margin-top: 12px; }
.studio-download-notes { white-space: pre-wrap; color: var(--text); margin: 12px 0; line-height: 1.8; }
.studio-download-checksum-label { margin-top: 12px; }
.studio-download-checksum { display: block; overflow-wrap: anywhere; padding-top: 4px; font-size: 12px; line-height: 1.8; }
.download-release-note { margin: 0; padding: 13px 24px; font-size: 12px; color: var(--muted); background: #fafafd; border-top: 1px solid var(--border); }
.download-help { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; padding-inline: 4px; }
.download-help h2 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.download-help p { color: var(--muted); font-size: 14px; }
.download-help a, .download-noscript a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border); }
.download-help a:hover { text-decoration-color: var(--text); }
.download-architecture-help { margin: 22px 4px 0; font-size: 13px; color: var(--muted); }
.download-architecture-help summary { cursor: pointer; width: fit-content; min-height: 32px; }
.download-architecture-help p { padding: 8px 0; font-size: 14px; line-height: 1.9; }
.download-noscript { font-size: 14px; text-align: center; }
.download-footer { width: min(1120px, calc(100% - 64px)); margin-inline: auto; padding: 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.download-footer > div { text-align: right; }
.download-footer span { display: block; margin-top: 3px; font-size: 11px; }
@media (max-width: 760px) {
  .download-header { width: calc(100% - 40px); min-height: 68px; gap: 16px; }
  .download-header nav { gap: 18px; font-size: 13px; }
  .download-main { width: calc(100% - 40px); padding-top: 24px; padding-bottom: 30px; }
  .download-intro { padding-bottom: 26px; }
  .download-app-icon { width: 56px; height: 56px; margin-bottom: 14px; }
  .download-intro h1 { font-size: 28px; }
  .download-intro p { font-size: 15px; }
  .download-picker { padding: 8px 16px 0; gap: 8px; }
  .download-platforms { gap: 14px; }
  .download-platform { gap: 6px; padding: 0 3px 8px; min-height: 50px; font-size: 14px; }
  .download-platform svg { width: 16px; height: 16px; }
  .download-refresh { margin-top: -6px; width: 36px; height: 44px; padding: 8px; }
  .download-content { padding: 24px; }
  .studio-download-card-heading { flex-wrap: wrap; gap: 18px; }
  .studio-download-card-heading h2 { font-size: 19px; }
  .download-button { width: 100%; }
  .studio-download-detail { margin-top: 14px; }
  .download-release-note { padding: 12px 20px; }
  .download-help { gap: 24px; margin-top: 24px; }
  .download-help p { font-size: 13px; }
  .download-help h2 { font-size: 14px; }
  .download-footer { width: calc(100% - 40px); display: block; padding: 20px 0; }
  .download-footer > div { text-align: left; margin-top: 8px; }
}
@media (max-width: 360px) {
  .download-header nav { gap: 12px; }
  .download-main { width: calc(100% - 32px); }
  .download-picker { padding-inline: 12px; }
  .download-platforms { gap: 8px; }
  .download-platform { gap: 4px; font-size: 13px; }
  .download-platform svg { width: 14px; height: 14px; }
  .download-content { padding-inline: 20px; }
  .download-help { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
