/* 迷你副屏官网 —— 视觉对齐 apple.com：白底、系统字体、大标题、单一主题蓝
 *
 * 兼容性约定（核心用户在 iOS 12 Safari 上打开本站）：
 *  - flex 布局不用 gap（Safari 14.1 以前不支持），一律用 margin 留间距；
 *  - grid 布局同时写 grid-gap 与 gap；
 *  - 每个 clamp() 前先写一个固定值兜底（Safari 13.1 以前不支持 clamp）；
 *  - sticky / backdrop-filter 带 -webkit- 前缀。
 */
:root {
  --blue: #1a62e6;          /* 与图标底部蓝一致 */
  --blue-hover: #1557cc;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --bg-2: #f5f5f7;
  --ok: #157a39;            /* ≥4.98:1 on #fff / #f5f5f7 / #f4f7fe (WCAG AA) */
  --no: #c93b3b;            /* ≥4.62:1 on the same backgrounds */
  --soon: #8a4b00;          /* 「即将推出」文字色，6.2:1 on --soon-bg */
  --soon-bg: #fff4e0;
  --radius: 18px;
  --max: 980px;
  --nav-h: 56px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--text); background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro SC", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
/* 正文段落里的链接加下划线：蓝色与灰色正文对比度不足，不能只靠颜色区分（WCAG 1.4.1）。 */
main p a:not(.btn), main li a:not(.btn), .faq .a a { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
h1 { font-size: 48px; font-size: clamp(36px, 6vw, 64px); font-weight: 700; }
h2 { font-size: 36px; font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--text-2); }

/* 键盘焦点：只给键盘焦点加明显描边；不支持 :focus-visible 的旧 Safari 保留浏览器默认焦点样式 */
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; border-radius: 980px; }

/* 无障碍工具类 */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: #fff; font-size: 15px; font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* 按钮 */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 980px; font-size: 17px; font-weight: 500; line-height: 1.3;
  background: var(--blue); color: #fff; border: 1px solid var(--blue); text-align: center;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: rgba(26, 98, 230, .06); }
/* 未开放的操作（如「即将开放下载」）：用 <span class="btn disabled" aria-disabled="true">，不可点、不跳转 */
.btn.disabled, .btn[aria-disabled="true"],
.btn.disabled:hover, .btn[aria-disabled="true"]:hover {
  background: #e8e8ed; border-color: #e8e8ed; color: #515154; /* 6.5:1 */
  cursor: default; pointer-events: none; text-decoration: none;
}

/* 「即将推出 / Coming soon」：行内徽标 .soon，提示块 .notice */
.soon {
  display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0;
  padding: 2px 9px; border-radius: 999px; background: var(--soon-bg); color: var(--soon); white-space: nowrap;
}
.notice {
  background: var(--soon-bg); color: #4d3200; border-radius: 12px; padding: 14px 18px; font-size: 15px; line-height: 1.6; margin: 18px 0;
}
.notice a { color: #8a4b00; text-decoration: underline; }
.notice.info { background: var(--bg-2); color: var(--text-2); }
.notice.info a { color: var(--blue); }

/* 导航
 * ≥821px：品牌 | 链接（单行，放不下时横向滚动，绝不折行）| 语言
 * ≤820px（含 iPad mini/Air 竖屏 768px 与手机）：链接移到第二行，放不下时横向滑动（无 JS） */
.nav {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(0,0,0,.08);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav { background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); }
.nav .brand { display: flex; align-items: center; flex-shrink: 0; color: var(--text); font-weight: 600; font-size: 17px; white-space: nowrap; }
.nav .brand img { width: 30px; height: 30px; margin-right: 10px; flex-shrink: 0; }
.nav ul {
  display: flex; list-style: none; padding: 6px 4px; margin: 0 16px; font-size: 14px;
  min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav li { flex-shrink: 0; white-space: nowrap; }
.nav li + li { margin-left: 26px; }
.nav ul a { color: var(--text); opacity: .85; }
.nav ul a:hover, .nav ul a[aria-current] { opacity: 1; text-decoration: none; }
.nav .lang { flex-shrink: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; }
@media (max-width: 1000px) { .nav li + li { margin-left: 18px; } .nav ul { font-size: 13px; } }
@media (max-width: 820px) {
  html { scroll-padding-top: 100px; }
  .nav .wrap { flex-wrap: wrap; padding-top: 8px; }
  .nav ul {
    /* 第二行，左右出血到屏幕边缘，可横向滑动 */
    order: 3; flex: 0 0 auto; width: calc(100% + 44px);
    margin: 4px -22px 0; padding: 6px 22px 10px;
  }
  .nav li + li { margin-left: 20px; }
}

/* Hero */
.hero { text-align: center; padding: 88px 0 56px; }
.hero .icon { width: 108px; height: 108px; margin-bottom: 22px; filter: drop-shadow(0 10px 24px rgba(26,98,230,.25)); }
.hero p.lead { font-size: 21px; font-size: clamp(19px, 2.4vw, 26px); color: var(--text-2); margin: 18px auto 0; max-width: 720px; }
.hero .cta { display: flex; justify-content: center; flex-wrap: wrap; margin: 25px -7px 0; }
.hero .cta > * { margin: 7px; }
.hero .fine { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.hero .fine b { color: var(--text); font-weight: 600; }

/* 画面示意：Mac + iPad */
.scene { margin: 48px auto 0; max-width: 820px; }
.scene svg { width: 100%; height: auto; display: block; }

/* 区块 */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { margin-top: 12px; font-size: 19px; color: var(--text-2); }
/* 区块下方的居中小字说明（替代 style="text-align:center;margin-top:18px;font-size:14px"） */
.section-note { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-2); }

/* 兼容性检查器 */
.checker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 720px; margin: 0 auto; }
.checker label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.checker select {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 40px 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.result { margin-top: 22px; display: none; }
.result.show { display: block; }
.result .row { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 14px; gap: 14px; }
.result .cell { border-radius: 14px; padding: 16px 18px; background: var(--bg-2); white-space: normal; }
.result .cell .k { font-size: 13px; color: var(--text-2); }
.result .cell .v { font-size: 19px; font-weight: 600; margin-top: 4px; }
.result .cell.ok .v { color: var(--ok); }
.result .cell.no .v { color: var(--no); }
.result .cell.soon .v { color: var(--soon); }
.result .note { margin-top: 14px; font-size: 15px; color: var(--text-2); }
@media (max-width: 560px) { .result .row { grid-template-columns: 1fr; } }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 22px; gap: 22px; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; margin-bottom: 16px; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* 卖点 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 22px; gap: 22px; }
.feature { padding: 8px 4px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(26,98,230,.1); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; font-size: 22px; font-weight: 600; }
.feature .ic svg { width: 24px; height: 24px; display: block; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }

/* 对比表 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
table.cmp th, table.cmp td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { font-weight: 600; color: var(--text-2); font-size: 13px; }
table.cmp td:first-child { font-weight: 600; }
/* 行标题：<tbody><tr><th scope="row">…</th> 与原来首列 td 外观一致 */
table.cmp tbody th, table.cmp th[scope="row"] { color: var(--text); font-size: 15px; }
table.cmp th.us { color: var(--blue); }
table.cmp td.us { background: rgba(26,98,230,.05); }
.yes { color: var(--ok); font-weight: 600; }
.no { color: var(--no); }

/* 定价 */
.price { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; text-align: center; }
.price .amount { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 2px; }
.price .amount small { font-size: 20px; font-weight: 500; color: var(--text-2); }
/* 价格未定时用文字代替数字：<div class="amount tba">价格开售时公布</div> */
.price .amount.tba { font-size: 26px; letter-spacing: -0.01em; line-height: 1.25; margin: 18px 0 8px; }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; }
.price li { padding: 8px 0; border-top: 1px solid var(--bg-2); font-size: 15px; }
.price li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 10px; }
.price li.later::before { content: "…"; color: var(--soon); }
.price .fine { margin-top: 12px; font-size: 13px; color: var(--text-2); }

/* 信任 */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 22px; gap: 22px; text-align: center; }
.trust p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
@media (max-width: 720px) { .trust { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-2); font-weight: 400; margin-left: 16px; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .a { margin-top: 10px; color: var(--text-2); font-size: 16px; }

/* 页脚 */
footer { padding: 40px 0 60px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-gap: 22px; gap: 22px; }
footer ul { list-style: none; padding: 0; margin: 8px 0 0; }
footer li { margin: 6px 0; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }
footer .tagline { margin-top: 10px; }
footer p + p { margin-top: 8px; }
footer .legal { margin-top: 28px; }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; } }

/* 定价双栏 */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 22px; gap: 22px; max-width: 860px; margin: 0 auto; }
.plans .price { max-width: none; margin: 0; }
.plans .price.pro { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.plans .price .amount { font-size: 44px; }
.plans .price .amount.tba { font-size: 24px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* 内页（安装指引 / 隐私 / 条款 / 404） */
/* 只设上下内边距：左右沿用 .wrap 的 22px（手机上文字不贴边）；max-width = 正文 720 + 两侧 22 */
.article { max-width: 764px; margin: 0 auto; padding-top: 56px; padding-bottom: 80px; }
.article h1 { font-size: 36px; font-size: clamp(30px, 4.6vw, 44px); margin-bottom: 10px; }
.article .lead { font-size: 18px; color: var(--text-2); margin-bottom: 36px; }
.article h2 { font-size: 24px; margin: 40px 0 12px; }
.article h3 { font-size: 18px; margin: 28px 0 8px; }
.article p, .article li { font-size: 16px; line-height: 1.65; }
.article p + p { margin-top: 12px; }
.article ol, .article ul { padding-left: 22px; }
.article li { margin: 8px 0; }
.article .note { background: var(--bg-2); border-radius: 12px; padding: 16px 18px; font-size: 15px; color: var(--text-2); margin: 18px 0; }
.article code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.article .actions { margin-top: 40px; }
.article .actions > * { margin: 0 10px 10px 0; }
/* 「最后更新 / 生效日期」行（替代 style="font-size:14px;margin-top:30px"） */
.article .updated, .updated { font-size: 14px; margin-top: 30px; color: var(--text-2); }

/* 404 */
.notfound { text-align: center; padding: 96px 0 88px; }
.notfound .icon { width: 84px; height: 84px; margin-bottom: 20px; }
.notfound .code { font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: .08em; }
.notfound h1 { margin-top: 8px; }
.notfound p { margin: 14px auto 0; max-width: 520px; color: var(--text-2); font-size: 17px; }
.notfound .en { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.notfound .en h2 { font-size: 28px; }
.notfound .cta { display: flex; justify-content: center; flex-wrap: wrap; margin: 22px -7px 0; }
.notfound .cta > * { margin: 7px; }

/* 机型分组（参考图样式：左侧缩略图方块 + 右侧版本 / 机型 / 说明） */
.groups { max-width: 860px; margin: 0 auto; }
.group { display: grid; grid-template-columns: 168px minmax(0, 1fr); grid-gap: 28px; gap: 28px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.group:first-child { border-top: none; }
.group .thumbs { width: 168px; height: 168px; border-radius: 22px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.group .thumbs img { width: 150px; height: 150px; }
.group .os { font-size: 22px; font-weight: 700; }
.group .models { font-size: 18px; margin-top: 6px; }
.group .codes { font-size: 13px; color: var(--text-2); margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.group .what { font-size: 16px; color: var(--text-2); margin-top: 10px; }
.group .tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-top: 12px; }
.group .tag + .tag { margin-left: 8px; }
.tag.self { background: #e8f0fe; color: #0b57d0; }
.tag.store { background: #e3f5e9; color: #1d7a3e; }
.tag.web { background: #f2f2f4; color: #6e6e73; }
.tag.soon { background: var(--soon-bg); color: var(--soon); }
.howto { display: grid; grid-template-columns: 168px minmax(0, 1fr); grid-gap: 28px; gap: 28px; align-items: center; max-width: 860px; margin: 36px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; }
.howto img { width: 150px; height: 150px; }
.howto p { color: var(--text-2); margin-top: 8px; }
@media (max-width: 640px) {
  .group, .howto { grid-template-columns: 1fr; grid-gap: 14px; gap: 14px; }
  .group .thumbs { width: 120px; height: 120px; } .group .thumbs img { width: 108px; height: 108px; }
  .howto img { width: 108px; height: 108px; }
}

/* 授权管理（/license）：表单、授权状态、已绑定的 Mac 列表。flex 不用 gap，间距用 margin */
.license-form { display: flex; flex-wrap: wrap; margin: 14px -5px 0; }
.license-form input {
  -webkit-box-flex: 1; flex: 1 1 260px; min-width: 0; margin: 0 5px 10px; padding: 11px 14px;
  font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.license-form input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(26, 98, 230, .18); }
.license-form .btn { margin: 0 5px 10px; padding: 10px 22px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: default; }
.form-msg { font-size: 15px; color: var(--text-2); margin-top: 2px; }
.form-msg.bad { color: var(--no); }
.license-result { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.license-status { padding-left: 14px; border-left: 4px solid var(--ok); }
.license-status.banned, .license-status.revoked { border-left-color: var(--no); }
.license-badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #e6f4ea; color: var(--ok); }
.license-status.banned .license-badge, .license-status.revoked .license-badge { background: #fdecec; color: var(--no); }
.license-status p { margin-top: 8px; font-size: 15px; }
.license-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); grid-gap: 6px 18px; gap: 6px 18px; margin: 18px 0 6px; font-size: 15px; }
.license-facts dt { color: var(--text-2); }
.license-facts dd { margin: 0; overflow-wrap: anywhere; }
.article .mac-list { list-style: none; padding: 0; margin: 14px 0 0; }
.article .mac-list .mac { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.mac-text { min-width: 0; margin-right: 12px; overflow-wrap: anywhere; }
.mac-name { font-weight: 600; font-size: 16px; }
.mac-meta { font-size: 13px; color: var(--text-2); }
.mac.is-banned .mac-meta { color: var(--no); }
.mac-actions { display: flex; flex-shrink: 0; }
.mac-actions .btn { margin-left: 8px; }
.btn.small { padding: 6px 14px; font-size: 14px; }
.btn.ghost.danger { color: var(--no); border-color: var(--no); }
.btn.ghost.danger:hover { background: rgba(201, 59, 59, .06); }
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .article .mac-list .mac { display: block; }
  .mac-actions { margin-top: 8px; }
  .mac-actions .btn { margin: 0 8px 0 0; }
}
