:root {
  color-scheme: light;
  --ink: #0b2e46;
  --muted: #668296;
  --line: #cee4ef;
  --paper: #f4fbfe;
  --white: #fff;
  --blue: #0a9fe6;
  --blue-deep: #0877c9;
  --cyan: #35cbe8;
  --green: #1c9b76;
  --shadow: 0 24px 70px rgba(21, 86, 118, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(53, 203, 232, .16), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(10, 159, 230, .12), transparent 34rem),
    linear-gradient(180deg, #edf9fd 0, #f8fcfe 43rem, #fff 100%);
  font-family: "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.download-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(174, 211, 228, .7);
  background: rgba(247, 252, 254, .86);
  backdrop-filter: blur(18px);
}

.download-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.download-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.download-brand img { width: 42px; height: 42px; object-fit: contain; }
.download-brand span { display: grid; }
.download-brand strong { font-size: 17px; }
.download-brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.download-nav-links { display: flex; align-items: center; gap: 22px; color: #42657a; font-size: 14px; font-weight: 700; }
.download-nav-links a:hover { color: var(--blue-deep); }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.language-switch a { min-width: 35px; padding: 7px 9px; border-radius: 8px; color: var(--muted); text-align: center; font-size: 12px; font-weight: 800; }
.language-switch a.active { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }

.download-hero { position: relative; padding: 82px 0 58px; overflow: hidden; }
.download-hero::before {
  content: "";
  position: absolute;
  width: 46rem;
  height: 46rem;
  top: -27rem;
  left: calc(50% - 23rem);
  border: 1px solid rgba(10, 159, 230, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(10, 159, 230, .025), 0 0 0 10rem rgba(53, 203, 232, .018);
  pointer-events: none;
}

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 66px; align-items: center; }
.eyebrow { margin: 0 0 20px; color: var(--blue-deep); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 5.4vw, 76px); line-height: 1.05; letter-spacing: -.05em; }
.hero-copy h1 span { display: block; color: var(--blue-deep); }
.hero-copy > p:not(.eyebrow) { max-width: 700px; margin: 25px 0 0; color: #496c80; font-size: 18px; line-height: 1.9; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-points li { padding: 9px 13px; border: 1px solid rgba(10, 159, 230, .18); border-radius: 999px; color: #315d74; background: rgba(255,255,255,.65); font-size: 13px; font-weight: 700; }
.hero-points li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--cyan); vertical-align: 2px; }

.hero-device {
  position: relative;
  min-height: 340px;
  border: 1px solid rgba(10, 159, 230, .19);
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(226,246,252,.88));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-device::before { content: ""; position: absolute; width: 260px; height: 260px; top: -86px; right: -62px; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #57dbef, #139ee5 48%, #0c71c3 100%); box-shadow: 0 0 0 34px rgba(10,159,230,.06); }
.hero-device::after { content: ""; position: absolute; width: 280px; height: 1px; right: -38px; top: 135px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); transform: rotate(-21deg); }
.device-window { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 28px; padding: 22px; border: 1px solid rgba(10, 159, 230, .2); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 18px 35px rgba(20, 88, 121, .14); }
.device-window-top { display: flex; gap: 6px; margin-bottom: 20px; }
.device-window-top i { width: 8px; height: 8px; border-radius: 50%; background: #bbdbe8; }
.device-window-top i:first-child { background: var(--cyan); }
.device-lines { display: grid; gap: 12px; }
.device-lines span { height: 11px; border-radius: 9px; background: #ddecf3; }
.device-lines span:first-child { width: 76%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.device-lines span:nth-child(2) { width: 92%; }
.device-lines span:nth-child(3) { width: 58%; }
.device-status { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.device-status b { color: var(--green); }

.download-main { padding: 20px 0 100px; }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading span { color: var(--blue-deep); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.section-heading h2 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.8; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.platform-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.92); box-shadow: 0 18px 46px rgba(22, 90, 124, .08); overflow: hidden; }
.platform-card.recommended { border-color: rgba(10, 159, 230, .4); box-shadow: 0 24px 56px rgba(10, 132, 193, .14); }
.platform-card.recommended::before { content: attr(data-recommended-label); position: absolute; top: 0; right: 24px; padding: 7px 12px; border-radius: 0 0 10px 10px; color: #fff; background: var(--blue-deep); font-size: 11px; font-weight: 800; }
.platform-head { display: flex; align-items: center; gap: 16px; }
.platform-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--blue-deep); background: #e8f7fc; }
.platform-icon svg { width: 30px; height: 30px; fill: currentColor; }
.platform-head h3 { margin: 0; font-size: 24px; }
.platform-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.version-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 26px 0 20px; }
.version-meta div { min-width: 0; padding: 12px; border-radius: 13px; background: var(--paper); }
.version-meta small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.version-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.release-notes { min-height: 72px; margin: 0 0 22px; color: #486c80; line-height: 1.7; white-space: pre-line; }
.download-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: 0 14px 28px rgba(8, 119, 201, .2); font-weight: 900; transition: transform .15s ease, box-shadow .15s ease; }
.download-button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(8, 119, 201, .26); }
.download-button[aria-disabled="true"] { pointer-events: none; color: #7690a0; background: #e7f0f4; box-shadow: none; }
.checksum { margin: 13px 0 0; color: #8097a5; font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; overflow-wrap: anywhere; }

.install-section { margin-top: 74px; }
.install-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.install-step { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); }
.install-step b { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 11px; color: #fff; background: var(--blue-deep); }
.install-step h3 { margin: 0 0 9px; font-size: 18px; }
.install-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.safety-note { margin-top: 22px; padding: 20px 24px; border: 1px solid #bee7db; border-radius: 16px; color: #2d6b59; background: #effaf6; line-height: 1.7; }

.download-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-row nav { display: flex; gap: 18px; }
.footer-row a:hover { color: var(--blue-deep); }

@media (max-width: 920px) {
  .download-nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-device { min-height: 290px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 1180px); }
  .download-nav { min-height: 64px; }
  .download-brand small { display: none; }
  .download-hero { padding: 58px 0 42px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .platform-grid, .install-grid { grid-template-columns: 1fr; }
  .platform-card { padding: 24px; border-radius: 22px; }
  .version-meta { grid-template-columns: repeat(2, 1fr); }
  .version-meta div:last-child { grid-column: 1 / -1; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}
