/* public/ui/hero-downloads.css(放在 /ui/ 下:yaah.ai 的 nginx 只转发点名的路径,/ui/ 整目录在名单里,根目录的新文件线上是 404 · 卡 8evk)—— 官网首页首屏四颗一样大的平台下载按钮(样稿 A,老板 11-18 选定)。
   深色玻璃底 + 亮一点的描边;访客自己那颗(.mine,ui/hero-downloads.js 加)用页面主按钮那条青色渐变、深色字。
   桌面一排四颗,≤900 宽 2×2。按钮大小只由这里定,脚本不改尺寸 ⇒ 脚本晚到首屏也不跳。
   图标用 CSS 遮罩画(颜色跟字走,亮起来自动变深):苹果 = Simple Icons「Apple」标准图形(CC0),iPhone 和 Mac 两颗共用。 */
.lhero { padding-top: clamp(56px, 11vh, 96px); padding-bottom: 40px; }
/* 首屏这一节就是 #downloads(整页唯一一处下载):scroll-margin 比它离页顶还远 ⇒ 页脚「下载」/ 带 #downloads 进来都停在页顶,导航和四颗一起在 */
#downloads { scroll-margin-top: 100vh; }
/* 注册回跳 ?welcome=1 那一句,贴在四颗上方(底色 / 描边由页面脚本给) */
.lhero #welcomeBar { margin: 24px auto 0; max-width: 560px; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; text-align: center; }

.lhero .dlrow { display: grid; grid-template-columns: repeat(4, minmax(0, 196px)); gap: 12px; justify-content: center; margin: 36px auto 0; }
.lhero .dlb {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 18px; min-width: 0;
  border-radius: 16px; border: 1px solid var(--line2); color: var(--fg); text-decoration: none;
  background: linear-gradient(145deg, rgba(22, 50, 86, .78), rgba(5, 14, 32, .78));
  backdrop-filter: blur(18px) saturate(128%); -webkit-backdrop-filter: blur(18px) saturate(128%);
  box-shadow: inset 0 1px 0 rgba(230, 251, 255, .10), 0 12px 32px rgba(0, 0, 0, .34);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.lhero .dli { width: 26px; height: 26px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.lhero .dli.apple { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701'/></svg>"); }
.lhero .dli.win { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 3h8.5v8.5H3zM12.5 3H21v8.5h-8.5zM3 12.5h8.5V21H3zM12.5 12.5H21V21h-8.5z'/></svg>"); }
.lhero .dli.and { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill-rule='evenodd'><path d='M7.9 6.3 6.4 3.7a.5.5 0 1 1 .87-.5l1.53 2.65A9.5 9.5 0 0 1 12 5.3c1.15 0 2.24.2 3.2.55l1.53-2.65a.5.5 0 1 1 .87.5L16.1 6.3c2.33 1.32 3.92 3.68 4.1 6.45H3.8c.18-2.77 1.77-5.13 4.1-6.45zM8.6 10.1a.95.95 0 1 0 0-1.9.95.95 0 0 0 0 1.9zm6.8 0a.95.95 0 1 0 0-1.9.95.95 0 0 0 0 1.9zM3.8 14h16.4v4.2a2.3 2.3 0 0 1-2.3 2.3H6.1a2.3 2.3 0 0 1-2.3-2.3z'/></svg>"); }
.lhero .dlb .t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.lhero .dlb small { display: block; min-height: 1.15em; font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: .02em; white-space: nowrap; }
.lhero .dlb b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.lhero .dlb:hover { border-color: rgba(147, 235, 255, .7); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(230, 251, 255, .12), 0 18px 40px rgba(0, 0, 0, .4), 0 0 24px rgba(78, 203, 255, .14); }
.lhero .dlb:focus-visible { outline: 2px solid #8debf6; outline-offset: 3px; }
.lhero .dlb.mine {
  background: linear-gradient(110deg, #83edf4, #9ecaff); color: #041426; border-color: rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 40px rgba(76, 204, 240, .34), 0 0 0 4px rgba(120, 229, 239, .10);
}
.lhero .dlb.mine small { color: rgba(4, 20, 38, .7); }
.lhero .dlb.mine:hover { background: linear-gradient(110deg, #c2fbff, #c2d7ff); }

/* 四颗正下方一行小字,人人看得到:Intel 芯片 Mac 版(链接)| 安卓 8 及以上 · APK 直装;窄屏折成两行、去掉竖线 */
.lhero .dlnote { margin: 14px 0 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.lhero .dlnote a { color: var(--dim); text-decoration: underline; text-decoration-color: rgba(179, 198, 223, .35); text-underline-offset: 3px; }
.lhero .dlnote a:hover { color: var(--fg); text-decoration-color: currentColor; }
.lhero .dlnote a:focus-visible { outline: 2px solid #8debf6; outline-offset: 2px; border-radius: 4px; }
.lhero .dlnote .sep { width: 1px; height: 12px; background: var(--line2); }
/* 再下面:「查看定价 ›」 */
.lhero .dlfoot { margin: 8px 0 0; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 15px; }
.lhero .dlfoot a { color: var(--dim); text-decoration: none; }
.lhero .dlfoot a:hover { color: #fff; }
.lhero .pricelink { font-weight: 600; color: var(--fg) !important; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 8em; justify-content: center; padding: 0 6px; }
.lhero .pricelink .arr { display: inline-block; color: var(--cta); font-size: 18px; transition: transform .14s ease; }
.lhero .pricelink:hover .arr { transform: translateX(3px); }
[dir="rtl"] .lhero .pricelink .arr { transform: scaleX(-1); }
[dir="rtl"] .lhero .pricelink:hover .arr { transform: scaleX(-1) translateX(3px); }

@media (max-width: 900px) { .lhero .dlrow { grid-template-columns: repeat(2, minmax(0, 220px)); } }
@media (max-width: 440px) { .lhero .dlnote { flex-direction: column; gap: 0; } .lhero .dlnote .sep { display: none; } }
@media (max-width: 560px) {
  .lhero .dlrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  .lhero .dlb { min-height: 60px; padding: 10px 14px; gap: 10px; }
  .lhero .dli { width: 24px; height: 24px; }
  .lhero .dlb b { font-size: 17px; }
}
@media (max-width: 340px) { .lhero .dlb { padding: 10px; gap: 8px; } .lhero .dlb b { font-size: 16px; } .lhero .dli { width: 20px; height: 20px; } }
@media (prefers-reduced-motion: reduce) { .lhero .dlb, .lhero .pricelink .arr { transition: none; } .lhero .dlb:hover { transform: none; } }

/* 常见问题最后一条「iPhone 版在哪下载」答句较长:两行时别把最后一两个字甩到第二行 */
#faq .a { text-wrap: pretty; }
