:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: var(--qh-color-text-primary);
  color-scheme: light;
  background: var(--qh-color-background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  min-width: 320px;
  margin: 0;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  font: inherit;
}
a {
  color: var(--qh-color-link);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1392px;
  height: 126px;
  padding: 0 32px;
  margin: 0 auto;
  border-bottom: 1px solid var(--qh-color-border);
}
.brand-link {
  display: flex;
  align-items: center;
  border-radius: 8px;
}
.brand-logo {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
}
.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.home-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.download-shell {
  width: min(1392px, calc(100% - 88px));
  margin: 0 auto;
}
.intro {
  padding: 86px 0 0;
  text-align: center;
}
.intro h1 {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 92px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--qh-color-home-link);
  letter-spacing: -0.045em;
}
.intro p {
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.5;
  color: var(--qh-color-text-secondary);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 74px;
}
.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 42px 34px 0;
  text-align: center;
}
.download-card + .download-card {
  border-left: 1px solid var(--qh-color-border);
}
.platform-icon {
  display: block;
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
  background-color: var(--qh-color-text-primary);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.windows-icon {
  background-color: #0078d4;
  mask-image: url("/download/windows-fill.svg");
}
.apple-icon {
  mask-image: url("/download/apple-fill.svg");
}
.intel-icon {
  background-color: var(--qh-color-text-muted);
}
.download-card h2 {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.version-line {
  margin: 18px 0 0;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  color: var(--qh-color-text-secondary);
}
.recommendation {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 6px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--qh-color-text-on-primary);
  background: var(--qh-color-primary);
  border-radius: 999px;
  transform: translateX(-50%);
}
[hidden] {
  display: none !important;
}
.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 340px);
  min-height: 64px;
  padding: 12px 16px;
  margin-top: 34px;
  font-size: clamp(17px, 1.65vw, 23px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--qh-color-link);
  text-decoration: none;
  background: transparent;
  border: 1.5px solid var(--qh-color-primary);
  border-radius: 999px;
  transition: transform 160ms ease;
}
.download-button:hover {
  background: var(--qh-color-hover);
  transform: translateY(-1px);
}
.download-button:active {
  background: var(--qh-color-active);
  transform: translateY(0);
}
.is-primary .download-button {
  color: var(--qh-color-text-on-primary);
  background: var(--qh-color-primary);
}
.is-primary .download-button:hover {
  background: var(--qh-color-primary-hover);
}
.is-primary .download-button:active {
  background: var(--qh-color-primary-active);
}
.download-button[aria-disabled="true"],
.download-button[aria-disabled="true"]:hover,
.download-button[aria-disabled="true"]:active {
  color: var(--qh-color-text-secondary);
  cursor: default;
  background: var(--qh-color-surface-subtle);
  border-color: var(--qh-color-border);
  transform: none;
}
.file-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--qh-color-text-muted);
}
.download-footer {
  padding: 24px 0 40px;
  margin-top: 80px;
  border-top: 1px solid var(--qh-color-border);
}
.install-help {
  max-width: 720px;
  margin: 0 auto;
}
.install-help summary {
  display: flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  min-height: 48px;
  padding: 8px 12px;
  margin: 0 auto;
  font-size: 19px;
  font-weight: 600;
  color: var(--qh-color-link);
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}
.install-help summary::-webkit-details-marker {
  display: none;
}
.install-help summary:hover {
  background: var(--qh-color-hover);
}
.chevron {
  width: 20px;
  height: 20px;
  background: currentcolor;
  mask: url("/download/arrow-right-s-line.svg") center / contain no-repeat;
  transition: transform 160ms ease;
}
.install-help[open] .chevron {
  transform: rotate(90deg);
}
.help-content {
  padding: 16px 24px 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--qh-color-text-secondary);
}
.help-content p {
  margin: 0 0 12px;
}
.help-content strong {
  margin-right: 16px;
  color: var(--qh-color-text-primary);
}
.help-content .install-note,
.help-content .release-date {
  font-size: 13px;
}
.notice {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  padding: 12px 20px;
  margin: 32px auto -50px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--qh-color-warning);
  border: 1px solid var(--qh-color-border-control);
  border-radius: 12px;
}
.notice button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--qh-color-link);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
}
.notice button:hover {
  background: var(--qh-color-hover);
}
.notice button:disabled {
  cursor: wait;
}
:where(a, button, summary):focus-visible {
  outline: 3px solid var(--qh-color-focus-ring);
  outline-offset: 5px;
}

@media (width >= 1500px) {
  .site-header {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (width <= 1000px) {
  .download-shell {
    width: calc(100% - 48px);
  }
  .site-header {
    height: 108px;
    padding: 0;
    margin: 0 24px;
  }
  .brand-logo {
    width: 76px;
    height: 76px;
  }
  .intro {
    padding-top: 64px;
  }
  .download-grid {
    margin-top: 64px;
  }
  .download-card {
    padding-right: 18px;
    padding-left: 18px;
  }
  .platform-icon {
    width: 64px;
    height: 64px;
  }
  .download-card h2 {
    font-size: 21px;
  }
  .version-line {
    font-size: 17px;
  }
  .download-button {
    min-height: 56px;
    font-size: 16px;
  }
  .download-footer {
    margin-top: 64px;
  }
}

@media (width <= 700px) {
  .site-header {
    height: 92px;
    margin: 0 24px;
  }
  .brand-logo {
    width: 64px;
    height: 64px;
  }
  .home-link {
    font-size: 15px;
  }
  .intro {
    padding-top: 48px;
  }
  .intro h1 {
    font-size: clamp(34px, 9vw, 48px);
  }
  .intro p {
    margin-top: 16px;
    font-size: 17px;
  }
  .download-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 42px auto 0;
  }
  .download-card {
    padding: 38px 16px 32px;
  }
  .download-card + .download-card {
    border-top: 1px solid var(--qh-color-border);
    border-left: 0;
  }
  .platform-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
  }
  .download-card h2 {
    font-size: 23px;
  }
  .version-line {
    margin-top: 10px;
    font-size: 16px;
  }
  .download-button {
    margin-top: 22px;
    font-size: 18px;
  }
  .recommendation {
    top: 14px;
    right: 4px;
    left: auto;
    padding: 5px 12px;
    font-size: 12px;
    transform: none;
  }
  .download-footer {
    padding-top: 16px;
    margin-top: 10px;
  }
  .install-help summary {
    font-size: 17px;
  }
  .help-content {
    padding-right: 0;
    padding-left: 0;
  }
  .notice {
    align-items: flex-start;
    padding: 12px;
    margin: 24px auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
