/* 思行家长 · 安装包下载页样式（deploy/download-parent）
   与教师端下载页 /download/ 同一套苹果式排版：浅灰画布 + 白色卡片 + 蓝色胶囊按钮，
   深色档换成纯黑画布与 #1d1d1f 卡面。两档共用同名令牌，下面的规则里不出现模式分支色值。
   这一页与官网 /home/ 的基座（deploy/website/assets/site.css）是两套东西：
   下载页只有一页、要随 APK 发布脚本单独上传，不引官网基座，免得一次官网改动把下载页带坏。 */

:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --card: #ffffff;
  --txt: #1d1d1f;
  /* 三档字色与那枚蓝都按最深的目标底取：浅色档画布顶到底实测从 #f3f5f8 收到
     #ebebef（390 档），最浅的三级小字压在最深那一档上仍有 4.66，正文一律 4.5 以上。
     蓝取 #0066cc（苹果正文链接用的就是这个，比 #0071e3 深一档，白卡与灰底都够） */
  --txt-dim: #55555a;
  --txt-faint: #68686d;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #0066cc;
  --btn-fill: #0071e3;
  --btn-txt: #ffffff;
  --tint: rgba(0, 102, 204, 0.09);
  /* 苹果官网的顶栏不是纯白，是带一档灰的 #fbfbfd 半透 */
  --nav-bg: rgba(251, 251, 253, 0.82);
  --nav-bg-scrolled: rgba(251, 251, 253, 0.94);
  --badge-shadow: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
  --warn: #b3261e;
  --ok: #0a7d3c;
  /* 浅色档的层次靠白与灰：光层走 normal，顶部一圈白光把首屏冲成受光舞台，
     画面底部压回一档灰收边；这一档的白舞台要静，呼吸只收到 0.92 */
  --glow-top: rgba(255, 255, 255, 0.96);
  --glow-1: rgba(255, 255, 255, 0.8);
  /* 中层外圈与底部收束都要留在中性灰上：带蓝味的外圈会把 #f5f5f7 压成灰蓝，浅色档一眼就脏了 */
  --glow-2: rgba(238, 241, 247, 0.6);
  --glow-3: rgba(231, 233, 238, 0.55);
  --glow-blend: normal;
  --glow-opacity: 1;
  --glow-dip: 0.92;
  --sheen: rgba(255, 255, 255, 0.8);
  --line-strong: rgba(0, 0, 0, 0.16);
  --card-line: rgba(0, 0, 0, 0.05);
  --tile-line: rgba(0, 0, 0, 0.07);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(16, 24, 40, 0.07);
  --ghost-hover: #f5f5f7;
  --chip: #f0f0f3;
  /* 序号圈的底色：浅色档用浅灰圈，深色档用卡面同族的浅一档 */
  --step-num: #e8e8ee;
  /* 类别行取灰：苹果商店产品页顶上那行「教育」是灰的，蓝色只留给开发者名与按钮 */
  --kicker: var(--txt-dim);
  --kicker-size: 17px;
  --kicker-weight: 500;
  --kicker-track: 0.02em;
  --lift: 0 14px 30px rgba(0, 0, 0, 0.1);
}
html.dark {
  color-scheme: dark;
  --bg: #000000;
  --card: #1d1d1f;
  --txt: #f5f5f7;
  --txt-dim: #a1a1a6;
  --txt-faint: #86868b;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #2997ff;
  --btn-fill: #0071e3;
  --btn-txt: #ffffff;
  --tint: rgba(41, 151, 255, 0.14);
  --nav-bg: rgba(0, 0, 0, 0.68);
  /* 滚动后顶栏加深一档：这里漏了会把浅色档的近白底带进深色档，白 bar 压黑页 */
  --nav-bg-scrolled: rgba(0, 0, 0, 0.94);
  --badge-shadow: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.85));
  --warn: #ff6961;
  --ok: #4fd07f;
  /* 深色档靠蓝紫氛围分层：顶部那层透明，柔光斑与底部托光走 screen 提亮，
     卡面靠描边而不是阴影（纯黑底上阴影看不出来），呼吸放得更开 */
  --glow-top: transparent;
  --glow-1: rgba(41, 151, 255, 0.26);
  --glow-2: rgba(255, 255, 255, 0.08);
  --glow-3: rgba(255, 255, 255, 0.08);
  --glow-blend: screen;
  --glow-opacity: 1;
  --glow-dip: 0.62;
  --sheen: rgba(255, 255, 255, 0.62);
  --line-strong: rgba(255, 255, 255, 0.28);
  --card-line: rgba(255, 255, 255, 0.14);
  --tile-line: transparent;
  --card-shadow: none;
  --ghost-hover: rgba(41, 151, 255, 0.14);
  --chip: #2a2a2e;
  --step-num: #303036;
  /* 深色档的类别行照旧：品牌蓝、17px、中档字重 */
  --kicker: var(--accent);
  --kicker-size: 17px;
  --kicker-weight: 500;
  --kicker-track: 0.02em;
  --lift: 0 16px 34px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
    'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* 与官网同一条选区高亮 */
::selection {
  background: rgba(196, 154, 65, 0.28);
}
a {
  color: var(--accent);
}

/* 细顶栏：苹果站的 44px 毛玻璃条 */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 48px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 980px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav .brand {
  display: inline-flex;
  align-items: center;
  /* 徽章与字标之间原来靠 .nav-inner 的 8px gap，包进链接后由这里补回 */
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.nav .mark {
  width: 24px;
  height: 24px;
  display: block;
  flex: none;
}
.nav .wordmark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav .spacer {
  flex: 1 1 auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 980px;
  background: var(--tint);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link svg {
  flex: none;
  display: block;
  width: 14px;
  height: 14px;
}
.nav-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 -6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 980px;
  background: none;
  color: var(--txt-dim);
  cursor: pointer;
}
.nav-toggle svg {
  display: block;
  width: 17px;
  height: 17px;
}

.shell {
  position: relative;
  /* 内容必须压在 .page-glow 之上：那层是 z-index:0 的定位元素，
     不给这行的话它会盖在正文上（混合模式只影响绘制顺序，不影响命中） */
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

/* ── 换行口径 ──
   ① 不该断的行（字段名、按钮、各级标题、单行短句）一律 nowrap；
   ② 成段文字自然排满再折行，不用 text-wrap:balance——它为行行等长把每行都提前断掉，
      移动端正文右侧大片留白（与官网 /home/ 同一条口径）。 */
.kicker,
.title,
.subtitle,
.cta-note,
.nav .wordmark,
.specs .k,
.features .name,
.grab-copy .name,
.platform .name,
.steps li .name,
.section > h2 {
  white-space: nowrap;
}
/* 字段值必须排成块级元素：inline 元素上的宽度限制一概不生效，窄屏两列下
   「Android 11 及以上」会越过自己那一格压到右边那一列的字上（320px 档实测越出 27px） */
.specs strong {
  display: block;
  overflow: hidden;
}

/* 居中大标题区 */
.hero {
  position: relative;
  padding: 64px 0 8px;
  text-align: center;
}
/* 徽章 SVG 的圆角是画在 96 视框里的（rx=22），CSS 再套 border-radius 只会比它更紧、
   把四角削平，所以这里不加圆角；投影也走 drop-shadow 才贴得住它的轮廓而不是方框 */
.badge-wrap {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
}
.badge-wrap .badge {
  width: 100%;
  height: 100%;
  display: block;
  filter: var(--badge-shadow);
}
/* 类别行：浅色档走苹果商店那种灰色小字，深色档仍是品牌蓝的一行中号字，
   色与字号都各取一值（两档共用同名令牌） */
.kicker {
  margin: 0 0 8px;
  color: var(--kicker);
  font-size: var(--kicker-size);
  font-weight: var(--kicker-weight);
  letter-spacing: var(--kicker-track);
}
.title {
  margin: 0;
  /* 与官网 hero 同档：80/600，行高与字距照 apple.com.cn 中文规则 */
  font-size: 80px;
  font-weight: 600;
  line-height: 1.0875;
  letter-spacing: 0;
}
.lede {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--txt-dim);
  /* 手写 <br> 分行的四句必须各自放得下一整行，否则最长那句会在窄屏上突然多折出半行。
     按视口取字号，四句的相对长度不变，任何宽度都不会折断；
     320px 档取到下限 15px 时最长那句仍留 40px 余量，不依赖字体度量的差别 */
  font-size: clamp(15px, 4.4vw, 21px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}
/* App Store 产品页的头部口径：产品名之下依次是副标题与开发者名 */
.subtitle {
  margin: 7px 0 0;
  color: var(--txt-dim);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0;
}
.cta-note {
  margin: 12px 0 0;
  color: var(--txt-faint);
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 32px 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 980px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--btn-fill);
  color: var(--btn-txt);
}
.btn[disabled],
.btn.is-loading {
  opacity: 0.45;
  cursor: progress;
}
.btn.is-loading {
  pointer-events: none;
}
.btn-ghost {
  background: var(--card);
  border: 1px solid var(--card-line);
  color: var(--accent);
}
.btn-ghost:hover {
  background: var(--ghost-hover);
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--txt-faint);
  font-size: 13px;
}
.status svg {
  flex: none;
  width: 14px;
  height: 14px;
}
.status.ok svg {
  color: var(--accent);
}
.status.error {
  color: var(--warn);
}
.hint {
  /* 560px 让这一句在宽屏整行走一行，窄屏自然折成两行 */
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--txt-faint);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

/* 提醒条：账号要由学校开通这一句单独一档，卡面比正文重一点 */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 620px;
  margin: 30px auto 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--tint);
  color: var(--txt-dim);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}
.notice svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--accent);
}
.notice b {
  color: var(--txt);
}

/* 卡片：浅色档靠一层极淡的双层阴影浮起，描边退到几乎只是收边；
   深色档的阴影在纯黑底上不起作用，令牌给 none，分层由 --card-line 的白描边负责 */
.card {
  padding: 28px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}
.section {
  margin: 56px 0 0;
}
.section > h2 {
  margin: 0 0 20px;
  /* 与官网段标题逐档同口径（.head h2）：48px 只是 ≥1440 的顶，
     内容列宽封顶 940px，写死 48 会让本页在 1440 以下一直比官网大一档，
     手机上 305px 行宽只放得下 6 字，「新功能 + 版本戳」必然硬折 */
  font-size: clamp(32px, 3.34vw, 48px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.section > p.lead {
  margin: -8px 0 24px;
  color: var(--txt-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}

/* 信息区：App Store 的字段表，键在上、值在下，手机端两列、宽屏四列 */
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.specs .k {
  display: block;
  margin-bottom: 3px;
  color: var(--txt-faint);
  font-size: 12px;
}
.specs strong {
  font-size: 15px;
  font-weight: 600;
}
.specs .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 500;
  /* 校验码是一长串十六进制：这一格允许断开，否则窄屏整行溢出 */
  overflow-wrap: anywhere;
}
@keyframes hashfade {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}
.specs .mono.new {
  animation: hashfade 0.6s ease-out both;
}
@media (min-width: 735px) {
  .specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 26px 24px 28px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}
.features svg {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.features .name {
  margin: 20px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.features .desc {
  margin: 8px 0 0;
  color: var(--txt-dim);
  font-size: 14px;
  line-height: 1.65;
}

/* 扫码区：与主卡并排在宽屏，窄屏落到按钮下方居中 */
.grab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 28px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}
.grab-copy .name {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
}
.grab-copy .desc {
  margin: 8px 0 0;
  color: var(--txt-dim);
  font-size: 15px;
  line-height: 1.6;
}
.grab-copy .url {
  display: block;
  max-width: 100%;
  margin-top: 10px;
  overflow: hidden;
  color: var(--txt-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 二维码本体固定白底：深色档把码反色成黑底浅块，多数扫码器读不出来；
   白块再套一层卡面，免得纯黑页上悬着一整块生硬的白 */
.qr-frame {
  padding: 16px;
  border: 1px solid var(--card-line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  justify-self: center;
}
/* 浅色档是白卡压白块，靠一枚极淡描边分开两白；深色档那层对比本就够，给 transparent */
.qr-tile {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--tile-line);
  background: #ffffff;
}
.qr-tile img {
  display: block;
  width: 152px;
  height: 152px;
}

/* 本次更新：一行一条，与 App 内「版本更新」页读同一份 manifest.releaseNotes，两处口径必然一致；
   清单里没有这一段时整块不出现。苹果式的细线分行列表 */
.changes ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: note;
}
.changes li {
  position: relative;
  padding: 14px 2px 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--txt-dim);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  counter-increment: note;
}
/* 序号占正文左侧 22px：条目换行后与首字对齐。不能把 li 排成 grid/flex 两列，
   那样每条的 .seg 会变成独立单元格，一条被摊成好几行 */
.changes li::before {
  content: counter(note) ".";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  text-align: right;
  color: var(--txt-faint);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
}
/* 首条上方与末条下方各收一道线：只留上下空白时，列表读起来像被切掉了头尾 */
.changes li:last-child {
  border-bottom: 1px solid var(--line);
}
.changes .card {
  padding-top: 16px;
  padding-bottom: 16px;
}
/* 窄屏上偶尔还有比一行更长的短句，keep-all 让这类溢出只发生在词边界 */
.changes li .seg {
  word-break: keep-all;
}
.changes .stamp {
  color: var(--txt-faint);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* 安装步骤：序号圈 + 一句说明，窄屏整列排开 */
.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--step-num);
  color: var(--txt);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps .name {
  margin: 5px 0 0;
  font-size: 16px;
  font-weight: 600;
}
.steps .desc {
  margin: 3px 0 0;
  color: var(--txt-dim);
  font-size: 14px;
  line-height: 1.65;
}

/* 权限表：一栏一项，名字与「要 / 不要」的签并排，说明在下一行 */
.perms {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.perms li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: baseline;
  padding: 15px 2px;
  border-top: 1px solid var(--line);
}
.perms li:last-child {
  border-bottom: 1px solid var(--line);
}
.perms .name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.perms .chip {
  padding: 3px 10px;
  border-radius: 980px;
  background: var(--chip);
  color: var(--txt-dim);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.perms .chip.no {
  color: var(--ok);
}
.perms .desc {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--txt-dim);
  font-size: 14px;
  line-height: 1.65;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.platform {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
}
.platform svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--txt-dim);
}
.platform .name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.platform .note {
  margin-top: 2px;
  color: var(--txt-faint);
  font-size: 13px;
}
.platform.is-soon {
  border-style: dashed;
}
.platform.is-soon .name,
.platform.is-soon .note {
  color: var(--txt-faint);
}

/* 另一端的入口：教师端下载页 */
.other {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 20px 0 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}
.other p {
  margin: 0;
  color: var(--txt-dim);
  font-size: 14px;
  line-height: 1.6;
}
.other a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.other a:hover {
  text-decoration: underline;
}

.foot {
  margin: 64px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--txt-faint);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.foot a {
  color: var(--txt-faint);
}
.foot a:hover {
  color: var(--txt);
  text-decoration: underline;
}
.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  margin-bottom: 8px;
}

/* ── 动效层 ──
   苹果商店的动效口径是只做位移与透明度、短促错开不弹跳；三条硬约束沿用下载页实测：
   ① 柔光层不许挂 filter:blur（超大模糊层实测把 390 档帧率从 60 拖到 34，径向渐变本身就够平滑）；
   ② 视差写独立的 translate 属性，写进 transform 会被入场动画的关键帧整条吃掉；
   ③ 描边动画元素不许挂 drop-shadow（实测 60fps 掉到 40）。 */
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sweep {
  0%,
  58% {
    translate: -150% 0;
  }
  92%,
  100% {
    translate: 250% 0;
  }
}
@keyframes breathe {
  50% {
    opacity: var(--glow-dip);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* 首屏逐级入场，--d 是各级延迟（标在元素上，不在 CSS 里堆选择器） */
.js .hero > * {
  position: relative;
  z-index: 1;
  animation: rise 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}
/* 滚动进场：进视口才补 .in；观察器不可用时脚本直接全给，不留隐形内容 */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s),
    transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* 整页背景三层：顶部受光舞台 + 跟随鼠标的柔光斑 + 画面底部一道收束光，
   三色与混合模式全走令牌，两档各取所需（见 :root 与 html.dark）。
   背景层挂在 body 上而不是 .hero 里：.shell 有 980px 封顶与 20px 内边距，
   光斑缩在它内部就会在左右两侧和下方露出没有背景的边 */
.page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(72vmax 44vmax at 50% -10%, var(--glow-top), transparent 66%),
    radial-gradient(54vmax 38vmax at var(--mx, 50%) var(--my, 20%), var(--glow-1), var(--glow-2) 42%, transparent 70%),
    radial-gradient(96vmax 48vmax at 50% 104%, var(--glow-3), transparent 74%);
  mix-blend-mode: var(--glow-blend);
  opacity: var(--glow-opacity);
  animation: breathe 9s ease-in-out infinite;
}

/* 徽章镜面高光：遮罩取徽章自身轮廓，所以高光不会溢出到圆角外 */
.badge-gleam {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: url(./logo.svg);
  mask-image: url(./logo.svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.badge-gleam i {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -30%;
  right: -30%;
  translate: -150% 0;
  background: linear-gradient(100deg, transparent 42%, var(--sheen) 50%, transparent 58%);
  animation: sweep 6.5s cubic-bezier(0.4, 0, 0.2, 1) 1.4s infinite;
}

/* 主按钮：悬停抬一档 + 周期性斜光扫过；overflow 收住光带边缘 */
.btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease;
}
.btn-primary {
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.3);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 12px 26px rgba(0, 113, 227, 0.38);
}
.btn-primary:active {
  filter: brightness(0.92);
  transform: translate3d(0, 0, 0) scale(0.99);
}
.btn-sheen {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 40%;
  translate: -150% 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: sweep 7s cubic-bezier(0.4, 0, 0.2, 1) 2.2s infinite;
}
.btn-ghost:hover {
  transform: translate3d(0, -1px, 0);
  border-color: var(--line-strong);
}

/* 卡片悬停轻抬 */
.features li,
.platform,
.steps li {
  transition:
    transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}
.features li:hover,
.platform:hover,
.steps li:hover {
  transform: translate3d(0, -3px, 0);
  border-color: var(--line-strong);
  box-shadow: var(--lift);
}

/* 顶栏滚动后底色与分隔线各加深一档 */
.nav {
  transition:
    background-color 0.3s ease,
    border-bottom-color 0.3s ease;
}
.nav.scrolled {
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--line-strong);
}

/* 状态行的勾：读到清单才画出来（圆环先走，勾慢半拍） */
.status.ok svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.62s ease-out forwards;
}
.status.ok svg path + path {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  animation-delay: 0.4s;
}

/* 微信与 QQ 内置浏览器会静默拦掉 .apk 下载，点了没有任何反馈。
   这两类里点下载按钮改为摊出一层引导：箭头指右上角菜单，卡片说清下一步。 */
.wxtip {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.wxtip[hidden] {
  display: none;
}
.wxtip-arrow {
  position: absolute;
  top: 14px;
  right: 10px;
  width: 132px;
  height: 132px;
  color: var(--accent);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
  animation: wxtip-nudge 1.5s ease-in-out infinite;
}
@keyframes wxtip-nudge {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(11px, -11px, 0);
  }
}
.wxtip-card {
  width: min(330px, 100%);
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid var(--card-line);
  background: var(--card);
  color: var(--txt);
  box-shadow: var(--lift);
  text-align: center;
}
.wxtip-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.wxtip-main {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
}
.wxtip-main b {
  font-weight: 700;
}
.wxtip-sub {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--txt-dim);
}
.wxtip-close {
  margin-top: 18px;
  min-width: 112px;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-fill);
  color: var(--btn-txt);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}
/* 摊开引导时锁住背景滚动，否则拖动遮罩会把底下的页面一起推走 */
html.wxtip-open,
html.wxtip-open body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .hero > *,
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .badge-gleam,
  .btn-sheen {
    display: none;
  }
}

@media (max-width: 734px) {
  .hero {
    padding: 40px 0 4px;
  }
  .badge-wrap {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
  }
  .title {
    /* 移动端 40px 档，与官网移动 hero 一致 */
    font-size: 40px;
  }
  .features,
  .platforms,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .grab {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    justify-items: center;
    text-align: center;
    padding: 24px 20px;
  }
  .grab-copy .url {
    text-align: center;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions .btn {
    width: 100%;
  }
  .card,
  .notice {
    padding: 22px 18px;
  }
  .notice {
    margin-left: 0;
    margin-right: 0;
  }
  .section {
    margin: 44px 0 0;
  }
  /* 这一行标题带着版本戳（v1.0.3 · 2026-10-27），戳的字宽随服务端 manifest 变；
     320 屏上整串会顶开行宽，公共规则里的 nowrap 会把它顶成横向溢出，还顺着把
     section 与 main 一起撑宽。窄屏放开折行：串里可断处只有空格，浏览器按词边界断，
     不会切出「v1.0/3」这种半截版本号 */
  .section > h2 {
    white-space: normal;
  }
  /* 手机端把「新功能」摊成一句一行：一条挤两三行时行尾全靠浏览器硬断，
     会出现把词切开的折法。宽屏仍连排成段 */
  .changes li .seg {
    display: block;
  }
  .changes li .seg + .seg {
    margin-top: 4px;
  }
  /* 320 手机上最长的短句在 15px 下几乎排满正文行，序号那 22px 一挤就要溢出，
     故手机端整块收一档；序号行盒跟着正文的行高走，才不至于浮到基线上方 */
  .changes li {
    font-size: 14px;
  }
  .changes li::before {
    line-height: 22.4px;
  }
  .perms li {
    grid-template-columns: minmax(0, 1fr);
  }
  .perms .chip {
    justify-self: start;
  }
}
