:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #151b24;
  --muted: #5f6b7a;
  --subtle: #8692a1;
  --line: #d5deea;
  --line-strong: #b9c6d6;
  --primary: #1f5fbf;
  --primary-dark: #174986;
  --primary-soft: #edf4ff;
  --accent: #0a7f73;
  --accent-soft: #e7f5f2;
  --warning: #8a5b00;
  --warning-soft: #fff5dc;
  --shadow: 0 28px 90px rgba(26, 40, 62, 0.12);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 46%, #fff 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(22px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(220, 227, 236, 0.72);
  background: rgba(247, 248, 250, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand img {
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

main {
  width: min(var(--content), calc(100vw - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: 86px;
  min-height: min(760px, calc(100vh - 66px));
  padding: 76px 0 58px;
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  max-width: 460px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 4.3vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 span {
  display: block;
  margin-top: 6px;
  font-size: 0.6em;
  line-height: 1.18;
}

.lead {
  max-width: 440px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.trust-line {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 720;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.disabled,
.button[aria-disabled="true"],
.text-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.56;
  pointer-events: none;
}

.download-dock {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(26, 40, 62, 0.08);
}

.download-dock * {
  min-width: 0;
}

.dock-main,
.download-row,
.download-foot,
.download-detail,
.checksum-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock-main {
  justify-content: space-between;
}

.dock-label {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.download-dock h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.download-dock h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.version-pill {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}

.download-row {
  align-items: stretch;
}

.download-picker {
  position: relative;
  flex: 1;
  min-width: 0;
}

.platform-trigger {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.platform-trigger:hover,
.platform-trigger[aria-expanded="true"] {
  border-color: rgba(31, 95, 191, 0.42);
  background: #fbfdff;
}

.platform-trigger strong,
.platform-trigger small {
  display: block;
}

.platform-trigger small {
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trigger-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
}

.download-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(25, 38, 58, 0.16);
}

.download-menu[hidden] {
  display: none;
}

.download-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.download-option:hover,
.download-option[aria-selected="true"] {
  border-color: rgba(31, 95, 191, 0.18);
  background: var(--primary-soft);
}

.download-option strong,
.download-option small {
  display: block;
}

.download-option small {
  color: var(--muted);
  font-size: 12px;
}

.option-status {
  align-self: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12px;
  font-weight: 720;
}

.option-status.available {
  background: var(--accent-soft);
  color: var(--accent);
}

.download-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.download-more {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.download-more summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.download-more summary:hover {
  color: var(--text);
}

.download-foot,
.checksum-line {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.download-detail {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.download-foot strong,
.download-detail span {
  color: var(--text);
  font-weight: 720;
}

.checksum-line {
  margin-top: 10px;
}

.checksum-line code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
}

.copy-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 720;
}

.copy-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.text-link {
  width: fit-content;
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 720;
}

.document-visual {
  display: grid;
  width: min(500px, 42vw);
  min-height: 430px;
  place-items: center;
  justify-self: end;
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 95, 191, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
}

.visual-page {
  width: min(330px, 78%);
  min-height: 390px;
  padding: 68px 48px;
  border: 1px solid #d9e1ec;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 24px 62px rgba(26, 40, 62, 0.14);
}

.page-title,
.page-subtitle {
  margin-bottom: 20px;
  color: #07111f;
  font-weight: 800;
  line-height: 1.2;
}

.page-title {
  font-size: 22px;
}

.page-subtitle {
  margin-top: 30px;
  font-size: 18px;
}

.line,
.divider {
  display: block;
}

.line {
  height: 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #d4dde8;
}

.line.wide {
  width: 100%;
}

.line.mid {
  width: 78%;
}

.line.short {
  width: 56%;
}

.divider {
  height: 1px;
  margin: 22px 0;
  background: #bcc8d8;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(520px, 1fr);
  gap: 66px;
  align-items: start;
  padding: 76px 0 84px;
  border-top: 1px solid var(--line);
}

.features,
.changelog,
.support {
  padding: 72px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.2;
}

.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 64px minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list span {
  color: var(--subtle);
  font-weight: 760;
}

.feature-list h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.feature-list p,
.timeline p,
.support p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.timeline h3 {
  margin-bottom: 8px;
}

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.support p {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--content), calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
  }

  .document-visual {
    width: 100%;
    justify-self: stretch;
  }

  .download-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  main,
  .site-footer {
    width: calc(100vw - 28px);
  }

  .hero {
    gap: 34px;
    padding: 42px 0 46px;
  }

  h1 {
    font-size: 40px;
  }

  h1 span {
    font-size: 0.72em;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-line {
    font-size: 13px;
  }

  .document-visual {
    display: none;
  }

  .download-dock {
    max-width: none;
    padding: 14px;
  }

  .dock-main,
  .download-row,
  .support,
  .site-footer {
    display: block;
  }

  .version-pill,
  .download-row .button,
  .support .button {
    margin-top: 12px;
  }

  .download-row .button {
    width: 100%;
    max-width: 100%;
  }

  .download-section,
  .features,
  .changelog,
  .support {
    padding: 48px 0;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .feature-list article,
  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
