:root {
  color-scheme: dark;
  --color-page: #000000;
  --color-text: #ffffff;
  --color-text-subtle: #b4b4b4;
  --color-text-muted: #8a8a8a;
  --color-text-faint: #767676;
  --color-surface: rgba(12, 12, 12, 0.72);
  --color-surface-hover: rgba(22, 22, 22, 0.86);
  --color-line: rgba(255, 255, 255, 0.11);
  --color-line-strong: rgba(255, 255, 255, 0.24);
  --color-line-focus: rgba(255, 255, 255, 0.5);
  --color-action: #dedede;
  --color-action-hover: #f2f2f2;
  --color-action-text: #050505;
  --color-focus: #9ec1ff;
  /* 表单结果反馈（#46）：黑底上按 WCAG AA 正文对比度挑的两个值，
     不是随手取的绿/红——文字号只有 13px，对比度不够就等于没提示 */
  --color-status-success: #7fd6a4;
  --color-status-error: #ff9d8a;
  --shadow-action: 0 12px 40px rgba(255, 255, 255, 0.14);
  --font-brand: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --radius-action: 12px;
  --radius-card: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--color-page);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-brand);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* 输入框不在列：浏览器对 input 的 :focus-visible 连鼠标聚焦也触发，
   蓝色外圈只留给键盘导航的链接/按钮；输入框的焦点态走自身边框增亮 */
a:focus-visible,
button:focus-visible {
  border-radius: 5px;
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
}

.ambient__icons,
.ambient__dots,
.ambient__shade {
  position: absolute;
  inset: 0;
}

.ambient__icons {
  z-index: 1;
  overflow: hidden;
  background: #171a1f;
  contain: strict;
}

.ambient__icon {
  position: absolute;
  top: 0;
  left: 0;
  contain: strict;
  opacity: 0.62;
  background-image: var(--icon-fill);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: var(--icon-mask);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: var(--icon-mask);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  transform-origin: center;
  will-change: transform;
}

.ambient__dots {
  z-index: 3;
  background: #000;
  -webkit-mask-image: radial-gradient(circle at center, transparent 0 0.8px, #000 1.15px);
  -webkit-mask-size: 20px 20px;
  -webkit-mask-repeat: repeat;
  mask-image: radial-gradient(circle at center, transparent 0 0.8px, #000 1.15px);
  mask-size: 20px 20px;
  mask-repeat: repeat;
}

.ambient__shade {
  z-index: 2;
  background:
    radial-gradient(ellipse 62% 48% at 50% 46%, transparent 0%, rgba(0, 0, 0, 0.2) 68%, rgba(0, 0, 0, 0.58) 100%);
}

.download-page {
  position: relative;
  z-index: 4;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 0 28px;
  animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__logo {
  display: block;
  width: clamp(150px, 26vh, 208px);
  max-width: 80vw;
  height: auto;
  margin-bottom: clamp(20px, 3.4vh, 30px);
  object-fit: contain;
  /* 光学居中补偿：字标侧墨量重，实测光学重心比几何中心偏右约 2%，
     盒子居中时整体显得右坠；只在居中排布的 hero 生效，左对齐场景不需要 */
  transform: translateX(-2.1%);
}

.hero__tagline {
  max-width: 18em;
  margin: 0 0 clamp(28px, 5.5vh, 50px);
  color: var(--color-text);
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: 0.012em;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 宽度必须钉在这一层：.hero 是 align-items:center 的列 flex，本元素会收缩到内容宽，
     子元素再写 width:100% 就绕回自己的内容宽（循环），表单永远撑不开 */
  width: min(520px, 100%);
}


/* 新品牌沿用原图，反色后用混合模式消去黑底，再整体半透明。 */
.brand { display:flex; flex-direction:column; align-items:center; margin-bottom:28px; }
.brand__mark { width:96px; height:96px; object-fit:contain; filter:invert(1); mix-blend-mode:screen; opacity:.7; }
.brand__name { margin:10px 0 0; font-family:Georgia, "Times New Roman", serif; font-size:48px; font-weight:400; letter-spacing:-.035em; line-height:1.1; }
.hero__description { max-width:29em; margin:0 0 30px; color:var(--color-text-subtle); font-size:15px; line-height:1.8; text-align:center; text-wrap:balance; }
.hero__tagline { max-width:26em; margin-bottom:0; font-size:clamp(20px,2.6vw,32px); line-height:1.5; }
.site-language { position:fixed; z-index:5; top:18px; right:24px; color:var(--color-text-subtle); font-size:13px; }
.site-language a { display:inline-flex; min-height:40px; align-items:center; padding:8px 12px; border:1px solid var(--color-line); border-radius:10px; background:var(--color-surface); }
.site-language a:hover { color:var(--color-text); border-color:var(--color-line-strong); }
.action { display:inline-flex; min-height:52px; padding:12px 28px; align-items:center; justify-content:center; border:1px solid var(--color-line); border-radius:12px; background:var(--color-action); color:var(--color-action-text); font-size:15px; font-weight:600; transition:background .2s,transform .2s; }
.action:hover { background:var(--color-action-hover); transform:translateY(-2px); }
.footer { padding:24px 0; color:var(--color-text-muted); font-size:12px; text-align:center; }
.footer a { border-bottom:1px solid var(--color-line); padding-bottom:3px; }
.platforms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; width:min(660px,100%); }
.platform { padding:24px; border:1px solid var(--color-line); border-radius:20px; background:rgba(12,12,12,.8); }
.platform h2 { margin:0 0 8px; font-size:20px; font-weight:500; }
.platform p { margin:0 0 20px; color:var(--color-text-subtle); font-size:13px; line-height:1.6; }
.platform .action { width:100%; }
.action[aria-disabled="true"] { background:rgba(255,255,255,.08); color:var(--color-text-muted); cursor:default; transform:none; }
.download-status { margin:20px 0 0; color:var(--color-text-subtle); font-size:13px; line-height:1.8; text-align:center; max-width:38em; }
.download-details { overflow-wrap:anywhere; margin-top:16px!important; margin-bottom:0!important; font-size:11px!important; }
@keyframes rise { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:640px) { .download-page { padding:0 24px; } .hero { width:100%; padding:36px 0 24px; } .brand__mark { width:80px; height:80px; } .brand__name { font-size:36px; } .platforms { grid-template-columns:1fr; } .hero__tagline { font-size:24px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
