/* 顶图官网。照 App 的「画廊」：底是荧光黄兑白的弥散（同 App 今天页），卡片纯白、细线、很淡的影子；
   标题用宋体常规体、不加粗，数字和西文用 Instrument Serif，小标签用等宽字；
   黑色给主按钮和选中的东西，荧光黄只点在要紧的地方：主按钮右头那颗圆、字后面那一道荧光笔、照片角上的心。 */

@font-face {
  font-family: "Shantu Serif";
  src: url("fonts/shantu-serif.woff2?v=20261125t") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2?v=20261125t") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* 底和弥散都是 FFFB22 兑白（色相 59°），不用米色暖色 */
  --canvas: #FAFAF3;
  --mist-a: #FFFDB4;
  --mist-b: #FFFCC2;
  --surface: #FFFFFF;
  --raised: #F0EFE4;
  /* 下面这些和 App 画廊主题的数一样 */
  --ink: #181614;
  --ink2: #766F66;
  --line: #E7E1D7;
  --hl: #FFFB22;
  --danger: #C93B2B;
  --keep: #2A7B59;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  /* 西文和数字先用 Instrument Serif，中文落到宋体 */
  --serif: "Instrument Serif", "Shantu Serif", "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --shade: 0 1px 2px rgba(24, 22, 20, .04), 0 10px 30px rgba(24, 22, 20, .05);
  --gutter: clamp(20px, 5vw, 48px);
  --wide: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 弥散底：钉在屏幕上不跟着滚。右上一团（首页那桌照片后面）、左下一团，和 App 今天页同一个位置 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52vmax 42vmax at 80% 16%, var(--mist-a) 0%, rgba(255, 253, 180, 0) 72%),
    radial-gradient(46vmax 40vmax at 16% 74%, var(--mist-b) 0%, rgba(255, 252, 194, 0) 72%),
    var(--canvas);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, p { margin: 0; }

/* ---------- 顶栏：浮着的磨砂白胶囊（同 App 底栏） ---------- */

.top {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--wide) - 2 * var(--gutter));
  margin: 14px auto 0;
  height: 56px;
  padding: 0 8px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: var(--shade);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .04em;
  white-space: nowrap;
  flex: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.top nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.6vw, 26px);
  font-size: 15px;
}

.top nav a { text-decoration: none; color: var(--ink2); white-space: nowrap; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* 很窄的手机：顶栏只留「支持」和下载，隐私政策在页脚里有 */
@media (max-width: 379px) {
  .top nav a[href$="privacy/"] { display: none; }
}

/* ---------- 按钮：黑胶囊，右头一颗荧光黄的圆（同 App 主按钮） ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 62px 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--hl) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M12.5 6.2 18.3 12l-5.8 5.8' fill='none' stroke='%23181614' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% 50% / 15px no-repeat;
  transition: background-position .2s ease;
}

.btn:hover::after { background-position: calc(50% + 2.5px) 50%; }
.btn:focus-visible { border-radius: 999px; }

/* 安卓上点不了：白胶囊、灰字，没有那颗黄圆 */
.btn.is-off {
  padding: 0 26px;
  background: var(--surface);
  color: var(--ink2);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: default;
}

.btn.is-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.is-off::after, .btn.is-small::after, .btn.is-quiet::after { display: none; }
.top nav a.btn { color: #fff; }
.top nav a.btn.is-off { color: var(--ink2); }

.btn.is-quiet {
  padding: 0 26px;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* 小字：等宽、拉开一点（同 App 的小标签） */
.fine {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--ink2);
}

/* 荧光笔划的那一道：压在字的下半截后面（同 App 浅色下的大字） */
.hl { position: relative; isolation: isolate; white-space: nowrap; }
.hl::after {
  content: "";
  position: absolute;
  left: -.04em;
  right: -.04em;
  bottom: .08em;
  height: .32em;
  background: var(--hl);
  border-radius: .06em;
  transform: rotate(-.8deg);
  transform-origin: left center;
  z-index: -1;
}

@media (prefers-reduced-motion: no-preference) {
  .hl.is-drawn::after { animation: mark .7s .35s cubic-bezier(.2, .7, .2, 1) both; }
}

@keyframes mark {
  from { transform: rotate(-.8deg) scaleX(0); }
  to { transform: rotate(-.8deg) scaleX(1); }
}

/* ---------- 首页：左边一栏字，右边一桌照片 ---------- */

.story {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero { padding: 36px 0 20px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 12vw, 56px);
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
}

.hero .lede {
  margin-top: 22px;
  max-width: 23em;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink2);
}

/* 窄屏只在逗号处换行 */
.hero .lede span { display: inline-block; }

.hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* 手机上照片钉在上半屏，字从它下面滚过去：垫一层磨砂，滚过去的字看不清 */
.stage-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 52vh;
  height: 52svh;
  margin: 0 calc(var(--gutter) * -1);
  background: rgba(250, 250, 243, .8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.beat {
  min-height: 48vh;
  min-height: 48svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}

.beat h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.28;
  letter-spacing: -.005em;
  text-wrap: balance;
}

/* 标题里不能拆开的一截 */
.beat h2 .nw { white-space: nowrap; }

.beat p {
  margin-top: 14px;
  max-width: 23em;
  font-size: clamp(16px, 1.35vw, 18px);
  color: var(--ink2);
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .story {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 32px;
  }

  .hero {
    grid-column: 1;
    grid-row: 1;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 70px;
  }

  .hero h1 { font-size: clamp(48px, 4.6vw, 68px); }

  .stage-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    height: 100vh;
    margin: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: visible;
  }

  /* 底下多留一截：最后一段字停在正中时，右边的照片还钉着不动 */
  .beats { grid-column: 1; grid-row: 2; padding-bottom: 14vh; }
  .beat { min-height: 92vh; padding: 0; }
}

/* ---------- 那一桌照片 ---------- */

.stage {
  position: relative;
  width: calc(var(--u, 4px) * 100);
  height: calc(var(--u, 4px) * 100);
  flex: none;
}

.node {
  position: absolute;
  left: 50%;
  top: 50%;
  will-change: transform, opacity;
}

/* 照片按两倍大小画（见 stage.js），所以这里的尺寸都是两倍的。不带白框，圆角照 App（边长的 8.5%） */
.pr {
  border-radius: calc(var(--u) * 3.3);
  box-shadow: 0 0 0 1px rgba(24, 22, 20, .05),
    0 calc(var(--u) * .4) calc(var(--u) * 1) rgba(24, 22, 20, .07),
    0 calc(var(--u) * 2.8) calc(var(--u) * 7.2) rgba(24, 22, 20, .11);
  background: var(--raised);
}

.pr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  -webkit-user-drag: none;
  user-select: none;
}

.badge {
  position: absolute;
  opacity: var(--e, 0);
  transform: scale(calc(.5 + .5 * var(--e, 0)));
}

/* 留最清楚的那张：黑圆、荧光黄的勾（同 App 选中） */
.badge.tick {
  right: -8%;
  top: -6%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 calc(var(--u) * 1) #fff;
  display: grid;
  place-items: center;
}

.badge.tick svg { width: 62%; height: 62%; }

/* 删／留：放在照片靠下，红绿更鲜明 */
.badge.chip {
  left: 50%;
  top: 77%;
  margin: calc(var(--u) * -6.4) 0 0 calc(var(--u) * -10);
  width: calc(var(--u) * 20);
  height: calc(var(--u) * 12.8);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 500;
  font-size: calc(var(--u) * 6.4);
  line-height: 1;
  box-shadow: 0 calc(var(--u) * .6) calc(var(--u) * 2) rgba(0, 0, 0, .22);
}

.badge.chip.del { background: #F0392B; }
.badge.chip.keep { background: #0FA453; }

/* 宝宝特刊的名字：宋体写在照片下面，荧光笔划一道 */
.badge.cap {
  left: -20%;
  right: -20%;
  top: calc(100% + var(--u) * 2.2);
  text-align: center;
  font-family: var(--serif);
  font-size: calc(var(--u) * 6.4);
  line-height: 1.4;
  color: var(--ink);
}

.badge.cap span {
  padding: 0 .25em;
  background: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 90%, transparent 90%);
}

/* 桌上的小标签：等宽字（同 App 的小标签） */
.lab {
  font-family: var(--mono);
  font-size: clamp(10px, calc(var(--u) * 2.5), 13px);
  letter-spacing: .08em;
  line-height: 1.2;
  color: var(--ink2);
  white-space: nowrap;
}

/* 锁屏：真实一点的 iPhone——黑边、钛色外框、侧键、灵动岛，壁纸铺满 */
.phone {
  width: calc(var(--u) * 45);
  height: calc(var(--u) * 93);
  padding: calc(var(--u) * 1.3);
  border-radius: calc(var(--u) * 7.6);
  background: #0B0B0C;
  box-shadow: 0 0 0 calc(var(--u) * .35) #9C9890, 0 0 0 calc(var(--u) * .6) #55524D,
    0 calc(var(--u) * 3) calc(var(--u) * 9) rgba(24, 22, 20, .24);
}

/* 左边静音键和音量键、右边电源键 */
.phone::before, .phone::after {
  content: "";
  position: absolute;
  width: calc(var(--u) * .7);
  border-radius: calc(var(--u) * .4);
  background: #6F6C66;
}
.phone::before {
  left: calc(var(--u) * -1.1);
  top: calc(var(--u) * 17);
  height: calc(var(--u) * 5);
  box-shadow: 0 calc(var(--u) * 8) 0 0 #6F6C66, 0 calc(var(--u) * 16) 0 0 #6F6C66;
}
.phone::after { right: calc(var(--u) * -1.1); top: calc(var(--u) * 24); height: calc(var(--u) * 13); }

.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--u) * 6.3);
  background: #D9D6CF;
  color: #2B2622;
}
.phone .wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.phone .island {
  position: absolute;
  left: 50%;
  top: calc(var(--u) * 1.3);
  width: calc(var(--u) * 12.6);
  height: calc(var(--u) * 3.7);
  margin-left: calc(var(--u) * -6.3);
  border-radius: 999px;
  background: #000;
}

/* 状态栏：信号、Wi-Fi、电量 */
.phone .sb {
  position: absolute;
  right: calc(var(--u) * 3.4);
  top: calc(var(--u) * 2.35);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * .7);
  height: calc(var(--u) * 1.6);
}
.phone .sb svg { height: 100%; width: auto; fill: currentColor; }
.phone .bat {
  position: relative;
  width: calc(var(--u) * 3.3);
  height: calc(var(--u) * 1.55);
  border-radius: calc(var(--u) * .45);
  box-shadow: inset 0 0 0 calc(var(--u) * .16) currentColor;
  opacity: .9;
}
.phone .bat i {
  position: absolute;
  inset: calc(var(--u) * .3) calc(var(--u) * .9) calc(var(--u) * .3) calc(var(--u) * .3);
  border-radius: calc(var(--u) * .2);
  background: currentColor;
}

.phone .lock-date, .phone .lock-time {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  white-space: nowrap;
  font-family: -apple-system, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
}
.phone .lock-date { top: calc(var(--u) * 9.4); font-size: calc(var(--u) * 2.35); font-weight: 600; letter-spacing: .02em; opacity: .82; }
.phone .lock-time { top: calc(var(--u) * 11.4); font-size: calc(var(--u) * 15.5); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }

/* 底下的手电筒、相机 */
.phone .lk {
  position: absolute;
  bottom: calc(var(--u) * 4.6);
  width: calc(var(--u) * 7.2);
  height: calc(var(--u) * 7.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(30, 28, 26, .34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.phone .lk.l { left: calc(var(--u) * 4.4); }
.phone .lk.r { right: calc(var(--u) * 4.4); }
.phone .lk svg { width: 46%; height: 46%; }

.phone .home {
  position: absolute;
  left: 50%;
  bottom: calc(var(--u) * 1.2);
  width: calc(var(--u) * 13.5);
  height: calc(var(--u) * .7);
  margin-left: calc(var(--u) * -6.75);
  border-radius: 999px;
  background: rgba(30, 28, 26, .85);
}

/* ---------- 结尾和页脚 ---------- */

.closing {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) var(--gutter);
  text-align: center;
}

/* 图标和一句话放一行，整块居中 */
.closing .closing-id { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.8vw, 22px); }
.closing .app-icon { width: clamp(44px, 6vw, 72px); height: clamp(44px, 6vw, 72px); flex: none; }

.closing h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5.6vw, 68px);
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.closing .cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; }

/* App 图标：iOS 那样的圆角 */
.app-icon {
  border-radius: 22.5%;
  box-shadow: var(--shade);
}

.foot {
  border-top: 1px solid var(--line);
}

.foot > div {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
  font-size: 14px;
  color: var(--ink2);
}

.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot p { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }

/* ---------- 下载落地页 ---------- */

.get {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter) 28px;
  display: flex;
  flex-direction: column;
}

/* 顶上一根绳子，夹子夹着照片（assets/line.js 摆位置）；绳子横贯全屏 */
body:has(> .get) { overflow-x: clip; }

.get .line {
  position: relative;
  flex: none;
  width: 100vw;
  height: 300px;
  margin: 8px calc(50% - 50vw) 6px;
  overflow-x: clip;
  overflow-y: visible;
  touch-action: pan-y;
}

.line .strings {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  fill: none;
  stroke: #3A3631;
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: .7;
}

/* 一张：原点在绳子上，照片挂在夹子下面，整张绕着夹子晃 */
.line .pin {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  transform: translate(var(--x, 0px), var(--y, 0px)) rotate(calc(var(--r, 0deg) + var(--a, 0deg)));
  transition: opacity .6s ease;
}
.line.is-ready .pin { opacity: 1; }
.line .sw { position: absolute; width: 0; height: 0; animation: sway var(--t, 3.4s) ease-in-out var(--d, 0s) infinite alternate; }

.line .ph {
  position: absolute;
  left: calc(var(--pw) / -2);
  top: calc(var(--pw) * .06);
  width: var(--pw);
  height: calc(var(--pw) * 4 / 3);
  overflow: hidden;
  border-radius: calc(var(--pw) * .07);
  background: var(--raised);
  box-shadow: 0 1px 3px rgba(24, 22, 20, .1), 0 calc(var(--pw) * .12) calc(var(--pw) * .28) rgba(24, 22, 20, .15);
}
.line .ph img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }

/* 夹子：原木的晾衣夹——窄木条、顺着长的木纹，一圈铁弹簧 */
.line .peg {
  position: absolute;
  left: calc(var(--pw) * -.042);
  top: calc(var(--pw) * -.14);
  width: calc(var(--pw) * .084);
  height: calc(var(--pw) * .33);
  border-radius: calc(var(--pw) * .016) calc(var(--pw) * .016) calc(var(--pw) * .024) calc(var(--pw) * .024);
  background:
    repeating-linear-gradient(90deg, transparent 0 1.1px, rgba(110, 72, 36, .12) 1.1px 1.6px, transparent 1.6px 2.6px),
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 30%, transparent 70%, rgba(80, 50, 20, .16)),
    linear-gradient(90deg, #B07D4A, #D8B183 20%, #E4C49A 48%, #D3A876 76%, #A9794A);
  box-shadow: 0 1px 2px rgba(24, 22, 20, .38), 0 2px 5px rgba(24, 22, 20, .14);
}
.line .peg::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 33%;
  height: 12%;
  border-radius: 3px;
  background: linear-gradient(180deg, #55575A, #E9EAEC 42%, #A3A5A8 68%, #4A4C4F);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .3);
}

@keyframes sway {
  from { transform: rotate(-1.6deg); }
  to { transform: rotate(1.6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .line .sw { animation: none; }
}

/* 图标＋名字＋一句话，像 App Store 里那一行 */
.get .app-id { display: flex; align-items: center; gap: 16px; width: fit-content; color: inherit; text-decoration: none; }
.get .app-id .app-icon { width: 72px; height: 72px; flex: none; }

.get h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 10vw, 52px);
  line-height: 1.1;
  letter-spacing: .02em;
  width: fit-content;
}

.get .sub { margin-top: 4px; font-family: var(--serif); font-size: 18px; line-height: 1.5; }
.get .why { margin-top: 14px; color: var(--ink2); }

/* 五条：一张白卡片（同 App 的卡片：纯白、细线、很淡的影子） */
.get ul {
  margin: 20px 0 0;
  padding: 2px 20px;
  list-style: none;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shade);
}

.get li { padding: 12px 0; line-height: 1.5; font-size: 16px; }
.get li + li { border-top: 1px solid var(--line); }

.get .act { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }
.get .act .btn { width: 100%; }
.get .act .fine { text-align: center; }
.get .more { margin-top: 6px; text-align: center; font-size: 15px; }

[hidden] { display: none !important; }

/* ---------- 文字页：隐私政策、儿童规则、支持 ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) var(--gutter) 80px;
}

.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 48px);
  line-height: 1.25;
  letter-spacing: -.005em;
}

.doc .stamp { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink2); }

/* 顶图 App 里打开的协议页（?app=1）：App 自己有标题栏和返回，网站的顶栏、页脚都不要 */
.in-app .top, .in-app .foot { display: none; }
.in-app .doc { padding-top: 20px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

.doc h2 {
  margin-top: 48px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.45;
}

.doc p, .doc ul, .doc ol { margin: 14px 0 0; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-top: 6px; }
.doc li > ul, .doc li > ol { margin-top: 6px; }
.doc strong { font-weight: 600; }
.doc code { font: inherit; background: var(--raised); padding: 1px 6px; border-radius: 5px; }
.doc a { text-underline-offset: 3px; }

.doc .tbl { margin-top: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.doc table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  line-height: 1.6;
}

.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; }
.doc th { font-weight: 600; white-space: nowrap; }
.doc tr + tr td, .doc thead + tbody td { border-top: 1px solid var(--line); }

/* 手机上表格太挤：一行变成一块，每格前面带上它的列名 */
@media (max-width: 640px) {
  .doc table { min-width: 0; background: none; box-shadow: none; }
  .doc thead { display: none; }
  .doc tbody, .doc tr, .doc td { display: block; }
  .doc tr { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px 0; }
  .doc tr + tr { margin-top: 10px; }
  .doc tr + tr td, .doc thead + tbody td { border-top: 0; }
  .doc td { padding: 8px 16px; }
  .doc td:first-child { font-weight: 600; }
  .doc td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    color: var(--ink2);
  }
}

/* 还没填、还没确认的地方 */
.todo { background: var(--hl); color: var(--ink); padding: 0 2px; border-radius: 3px; }

/* 常见问题：一张白卡片，一问一行 */
/* 常见问题：整组是一张白卡片（不描边），条目之间一道细线 */
.doc .faq {
  margin-top: 20px;
  padding: 0 20px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shade);
}

.doc details + details { border-top: 1px solid var(--line); }

.doc summary {
  padding: 17px 28px 17px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.doc summary::-webkit-details-marker { display: none; }

.doc summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: rotate(45deg);
}

.doc details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.doc details p { margin: 0; padding-bottom: 18px; color: var(--ink2); max-width: 34em; }

.contact {
  margin-top: 22px;
  padding: 22px 24px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shade);
}

.contact p { margin: 0; }
.contact p + p { margin-top: 6px; color: var(--ink2); }
.contact a { font-weight: 500; }
