/* 绑定网站 · 清楚系：白底、藏青、雾蓝。配色和看板娘的衣服是一套。 */
:root {
  --bg: #fbfcfe; --card: #ffffff; --ink: #1b2a4a; --mute: #56637d; --line: #b9c2d3; --hair: #d8deea;
  --mist: #e6effa; --blue: #8fb2d9; --blue-deep: #5f86b5; --on-ink: #ffffff; --on-ink-mute: #c9d2e3;
  --mai: #2878eb; --chu: #f0b429; --geki: #ec5096; --sdvx: #8a46dc;
  --ok: #24705a; --ok-soft: #e7f4ef; --bad: #b0353f; --bad-soft: #fbecee;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", STSong, SimSun, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1626; --card: #162036; --ink: #eef2f9; --mute: #9aa6bd; --line: #3d4a66; --hair: #27324b;
    --mist: #1a2640; --blue-deep: #a9c6e6; --on-ink: #0f1626; --on-ink-mute: #46546f;
    --ok: #7fd1b3; --ok-soft: #15302a; --bad: #f09aa2; --bad-soft: #371c21;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
}
a { color: var(--ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--mist);
  padding: 1px 5px; border-radius: 3px; word-break: break-all;
}

/* ---------- 共用：品牌行、双线 ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mute); }
.brand { letter-spacing: .08em; }
.rule { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; transform-origin: left center; }
.rule i { display: block; height: 1.5px; background: var(--ink); }

/* ---------- 开场 ---------- */
.intro { position: fixed; inset: 0; z-index: 5; overflow-y: auto; }
.intro-in {
  max-width: 440px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column;
  padding: max(28px, env(safe-area-inset-top)) 28px max(24px, env(safe-area-inset-bottom));
}
.stage { position: relative; height: clamp(214px, calc(100vh - 480px), 396px); height: clamp(214px, calc(100svh - 480px), 396px); margin: 0 -28px; overflow: hidden; flex: none; }
.arch {
  position: absolute; right: 22px; bottom: 0; width: 228px; height: 88%; border-radius: 114px 114px 0 0;
  background-color: var(--mist);
  /* 千鸟格：和裙子同一个纹样，很淡 */
  background-image:
    linear-gradient(-45deg, var(--mist) 25%, transparent 25%, transparent 75%, rgba(143, 178, 217, .30) 75%),
    linear-gradient(-45deg, rgba(143, 178, 217, .30) 25%, transparent 25%, transparent 75%, var(--mist) 75%),
    linear-gradient(45deg, rgba(143, 178, 217, .30) 17%, transparent 17%, transparent 25%, rgba(143, 178, 217, .30) 25%,
      rgba(143, 178, 217, .30) 36%, transparent 36%, transparent 64%, rgba(143, 178, 217, .30) 64%,
      rgba(143, 178, 217, .30) 75%, transparent 75%, transparent 83%, rgba(143, 178, 217, .30) 83%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px, 8px 8px;
}
.girl { position: absolute; right: -58px; top: 16px; width: 360px; }
.hello {
  position: absolute; left: 28px; top: 34px; margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: 42px; line-height: 1.25; letter-spacing: .04em;
  text-shadow: 0 0 12px var(--bg), 0 0 12px var(--bg), 0 0 4px var(--bg);
}
.hello-sub {
  position: absolute; left: 28px; top: 152px; margin: 0; font-size: 14px; line-height: 1.8; color: var(--mute);
  text-shadow: 0 0 8px var(--bg), 0 0 8px var(--bg);
}
.pass {
  position: relative; flex: none; background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px;
  padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 16px;
}
.bow { position: absolute; left: 20px; top: -16px; }
.bow-wing { fill: var(--ink); }
.bow-gem { fill: var(--blue); stroke: var(--card); stroke-width: 1.2; }
.pass-title { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: .3em; }
.pass-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pass-grid > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.k { font-size: 12px; color: var(--mute); }
.v { font-size: 17px; font-weight: 500; }
.pass-cut { border-top: 1px dashed var(--line); }
.pass-time { display: flex; align-items: baseline; justify-content: space-between; }
.big { font-family: var(--serif); font-weight: 300; font-size: 54px; line-height: 1; letter-spacing: .02em; }
.intro-go { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.auto { margin: 0; text-align: center; font-size: 13px; color: var(--mute); min-height: 21px; }

.go {
  position: relative; overflow: hidden; width: 100%; min-height: 54px; border: 0; border-radius: 6px;
  background: var(--ink); color: var(--on-ink); font-size: 17px; font-weight: 500; letter-spacing: .16em;
  transition: opacity .15s;
}
.go:disabled { opacity: .55; cursor: default; }
.go:active:not(:disabled) { opacity: .85; }
/* 开场按钮底下的 3 秒进度线 */
#enter.count::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue);
  transform-origin: left center; animation: fill 3s linear both;
}
.go.busy::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid var(--on-ink-mute); border-top-color: var(--on-ink); border-radius: 50%; animation: spin .8s linear infinite;
}

/* 开场只演一次：双线画出来 → 拱窗和人 → 通行证 */
.intro .rule { animation: draw .7s var(--ease) both; }
.intro .arch { animation: rise .7s var(--ease) .1s both; }
.intro .girl { animation: rise .8s var(--ease) .2s both; }
.intro .hello, .intro .hello-sub { animation: fade .6s ease-out .25s both; }
.intro .pass { animation: rise .5s var(--ease) .4s both; }
.intro.leave { animation: leave .36s ease-in both; pointer-events: none; }
.wrap.enter { animation: fade .4s ease-out both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes leave { to { opacity: 0; transform: translateY(-12px); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- 绑定页 ---------- */
.wrap {
  position: relative; z-index: 1; max-width: 520px; margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 28px max(32px, env(safe-area-inset-bottom));
}
.top { margin-bottom: 30px; }
h1 { margin: 30px 0 0; font-family: var(--serif); font-weight: 300; font-size: 38px; line-height: 1.2; letter-spacing: .06em; }
.who { margin: 10px 0 0; color: var(--mute); font-size: 14px; }
.who b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.notice { text-align: left; }
.notice-girl { width: 220px; margin: 0 0 6px -22px; animation: rise .6s var(--ease) both; }
.notice h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .06em;
  padding-top: 18px; border-top: 1.5px solid var(--ink); }
.notice p { margin: 6px 0; color: var(--mute); }

.bound { margin-bottom: 30px; }
.bound h2 { margin: 0 0 10px; font-size: 13px; font-weight: 400; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 5px 10px; border: 1px solid var(--ink); border-radius: 4px; }
.chip::before { content: ""; width: 7px; height: 7px; background: var(--ink); flex: none; }
.chip.mai::before { background: var(--mai); }
.chip.chu::before { background: var(--chu); }
.chip.geki::before { background: var(--geki); }
.chip.priv::before { background: var(--blue); }
.chip.rest { border: 1px dashed var(--line); color: var(--mute); }
.chip.rest::before { display: none; }

/* 四步：左边一根双线串起来，末尾打个结 */
.steps { position: relative; padding-left: 30px; display: flex; flex-direction: column; gap: 34px; padding-bottom: 6px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 6px; bottom: 9px; width: 1.5px; background: var(--ink); }
.steps::before { left: 0; }
.steps::after { left: 5.5px; }
.knot { position: absolute; left: -9px; bottom: 0; }
.knot-wing { fill: var(--blue); }
.knot-mid { fill: var(--blue-deep); }
.step { min-width: 0; animation: rise .35s var(--ease) both; }
.step h2 {
  margin: 0 0 14px; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.4; letter-spacing: .1em;
  display: flex; gap: .9em;
}
.n { flex: none; }

.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.game {
  min-height: 68px; padding: 12px 14px; text-align: left; border: 1px solid var(--line); border-radius: 4px;
  background: var(--card); display: flex; flex-direction: column; gap: 2px;
  transition: background .15s, color .15s, border-color .15s;
}
.game b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.game b::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--mute); }
.game.mai b::before { background: var(--mai); }
.game.chu b::before { background: var(--chu); }
.game.geki b::before { background: var(--geki); }
.game.sdvx b::before { background: var(--sdvx); }
.game small { color: var(--mute); font-size: 12px; }
.game[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.game[aria-checked="true"] small { color: var(--on-ink-mute); }

.seg { display: flex; border-bottom: 1px solid var(--line); }
.seg button {
  flex: 1; min-height: 46px; padding: 0 4px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  background: transparent; color: var(--mute); font-size: 15px; transition: color .15s, border-color .15s;
}
.seg button[aria-checked="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }

.methods { display: flex; flex-direction: column; }
.method {
  position: relative; padding: 14px 0 14px 28px; text-align: left; border: 0; border-bottom: 1px solid var(--hair);
  background: transparent; display: flex; flex-direction: column; gap: 3px;
}
.method:last-child { border-bottom: 0; }
.method::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; transition: border-color .15s, box-shadow .15s;
}
.method[aria-checked="true"]::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 2.5px var(--bg); }
.method b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; font-weight: 400; }
.method[aria-checked="true"] b { font-weight: 500; }
.method small { color: var(--mute); font-size: 13px; line-height: 1.6; }
.tag { font-size: 11px; font-weight: 400; padding: 1px 6px; border: 1px solid var(--blue); color: var(--blue-deep); border-radius: 3px; }

.field { display: none; }
.field.show { display: block; }
label { display: block; font-size: 14px; font-weight: 500; margin: 4px 0 6px; }
.opt { font-weight: 400; color: var(--mute); font-size: 12px; }
input[type="text"], input:not([type]), input[type="password"] {
  width: 100%; font: inherit; font-size: 16px; /* 16px：iOS 不会自动放大 */
  padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  outline: none; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--line); }
input[type="text"]:focus, input:not([type]):focus, input[type="password"]:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
#clal, #lxKey { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; }
.pw { display: flex; gap: 8px; }
.pw input { flex: 1; min-width: 0; }
.ghost { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 4px; padding: 0 14px; color: var(--mute); }
.field label + input + label, .field .pw + label { display: block; margin-top: 12px; }
.tip { font-size: 14px; line-height: 1.75; color: var(--mute); margin: 8px 0 0; }
.field > .tip:first-child { margin-top: 0; }
.how { margin-top: 10px; font-size: 14px; color: var(--mute); }
.how summary { cursor: pointer; color: var(--ink); padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.how ol { padding-left: 20px; margin: 6px 0; }
.how li { margin: 4px 0; }

/* ---------- clal：两种拿法 ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ways {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin: 0 0 18px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--mist);
}
.ways button {
  min-height: 42px; border: 0; border-radius: 4px; background: transparent; color: var(--mute); font-size: 14.5px;
  transition: background .18s, color .18s, box-shadow .18s;
}
.ways button[aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.way { animation: fade .28s ease-out both; }
.way .how { margin-top: 8px; font-size: 13.5px; }
.way .how li { margin: 6px 0; line-height: 1.7; }
.clal-label { margin-top: 4px; }
.lead { margin: 0 0 14px; font-size: 14px; line-height: 1.75; color: var(--mute); }
.lead b { color: var(--ink); font-weight: 500; }

.netname { font-weight: 500; white-space: nowrap; }

/* 自己复制：编号步骤 */
.guide { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.guide > li { position: relative; display: flex; gap: 12px; padding: 0 0 18px; font-size: 14.5px; line-height: 1.75; }
.guide > li:not(:last-child)::before {
  content: ""; position: absolute; left: 11.5px; top: 28px; bottom: 4px; width: 1px; background: var(--hair);
}
.guide > li > i {
  flex: none; display: grid; place-items: center; font-style: normal; font-variant-numeric: tabular-nums;
  font-family: var(--serif); font-weight: 600; border-radius: 50%;
}
.guide > li > i { width: 24px; height: 24px; margin-top: 1px; font-size: 13px; background: var(--ink); color: var(--on-ink); }
.guide > li > div { flex: 1; min-width: 0; }
.guide b { font-weight: 500; }
kbd {
  display: inline-block; min-width: 26px; padding: 0 6px; font: 600 12px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: center; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
}
.out {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 2px; min-height: 46px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 4px; color: var(--ink); font-weight: 500; text-decoration: none;
  transition: background .15s, color .15s, transform .12s;
}
.out::after { content: "↗"; font-size: 15px; line-height: 1; }
.out:hover { background: var(--ink); color: var(--on-ink); }
.out:active { transform: scale(.98); }

/* 开发者工具的样子（缩略示意，永远是深色，跟真的一样） */
.devtools {
  margin: 12px 0 2px; border-radius: 6px; overflow: hidden; background: #202124; color: #bdc1c6;
  font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; box-shadow: 0 0 0 1px #3c4043;
}
.dt-bar { display: flex; white-space: nowrap; align-items: center; gap: 10px; padding: 6px 10px; background: #292a2d; border-bottom: 1px solid #3c4043; }
.dt-tabsbar { display: flex; gap: 14px; padding: 5px 10px 0; background: #292a2d; white-space: nowrap; overflow: hidden; }
.dt-tabsbar span { padding-bottom: 4px; }
.dt-tabsbar .cur { color: #e8eaed; border-bottom: 2px solid #8ab4f8; }
.dt-filter { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; border-radius: 3px; background: #202124; box-shadow: inset 0 0 0 1px #5f6368; color: #e8eaed; }
.dt-filter::before { content: "⌕ "; color: #9aa0a6; }
.dt-check { margin-left: auto; color: #e8eaed; white-space: nowrap; }
.dt-check::before { content: "✓"; display: inline-grid; place-items: center; width: 11px; height: 11px; margin-right: 5px; border-radius: 2px; background: #8ab4f8; color: #202124; font-size: 9px; }
.dt-body { display: grid; grid-template-columns: minmax(78px, 30%) 1fr; min-height: 104px; }
.dt-list { display: flex; flex-direction: column; border-right: 1px solid #3c4043; }
.dt-list span { padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-list span:first-child { background: #394457; color: #e8eaed; }
.devtools .dim { color: #80868b; }
.dt-detail { min-width: 0; }
.dt-tabs { display: flex; gap: 12px; padding: 3px 10px; border-bottom: 1px solid #3c4043; }
.dt-tabs .on { color: #e8eaed; border-bottom: 2px solid #8ab4f8; }
.dt-h { padding: 6px 10px 2px; color: #9aa0a6; }
.dt-row { display: flex; gap: 10px; padding: 3px 10px; margin: 0 6px; border-radius: 3px; background: rgba(138, 180, 248, .14); }
.dt-row > span:first-child { color: #f28b82; }
.dt-val { color: #e8eaed; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 -1px 0 #fdd663 inset; }
.copy-code {
  display: inline-flex; align-items: stretch; vertical-align: middle; margin: 2px 0; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 4px; background: var(--card); max-width: 100%;
}
.copy-code code { background: transparent; padding: 2px 8px; border-radius: 0; white-space: nowrap; color: var(--ink); }
.copy-code span { display: grid; place-items: center; padding: 0 9px; font-size: 12px; color: var(--on-ink); background: var(--ink); transition: background .2s; }
.copy-code.wide { display: flex; width: 100%; margin: 10px 0 2px; min-height: 42px; }
.copy-code.wide code { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; align-self: center; }
.copy-code.done span { background: var(--ok); }
.copy-code:active { transform: scale(.97); }
#clal { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .way { animation: none; } }

.consent { margin-top: 16px; display: none; }
.consent.show { display: block; }
.consent pre {
  white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 1.7; color: var(--mute); background: var(--mist);
  border-radius: 4px; padding: 12px 14px; margin: 0 0 10px; max-height: 220px; overflow: auto;
}
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; min-height: 44px; margin: 0; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }
.step .go { margin-top: 16px; z-index: 1; }

.result { margin-top: 14px; padding: 12px 14px; border-radius: 4px; white-space: pre-wrap; font-size: 14px; line-height: 1.7; border-left: 3px solid; position: relative; animation: rise .3s var(--ease) both; }
.result p { margin: 4px 0; }
.result.ok { background: var(--ok-soft); color: var(--ok); }
.result.bad { background: var(--bad-soft); color: var(--bad); }

.foot { margin-top: 30px; font-size: 12px; line-height: 1.7; color: var(--mute); }
.foot p { margin: 4px 0; }
.foot code { white-space: nowrap; }

/* 按下去有反馈 */
.go, .game, .seg button, .method, .ghost { transition: transform .12s, background .15s, color .15s, border-color .15s, opacity .15s; }
.go:active:not(:disabled), .game:active, .ghost:active { transform: scale(.97); }
.game[aria-checked="true"] b::before { animation: pop .3s var(--ease) both; }
.method[aria-checked="true"]::before { animation: pop .25s var(--ease) both; }
.chip { animation: rise .35s var(--ease) both; }
.chip:nth-child(2) { animation-delay: .05s; } .chip:nth-child(3) { animation-delay: .1s; } .chip:nth-child(n+4) { animation-delay: .15s; }
.field.show, .consent.show { animation: fade .3s ease-out both; }
.knot { animation: pop .5s var(--ease) .2s both; transform-origin: center; }

@media (min-width: 560px) {
  .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-height: 720px) {
  .hello { font-size: 36px; top: 26px; }
  .hello-sub { display: none; }
  .big { font-size: 44px; }
  .pass { padding: 20px 20px 16px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 500px) {
  .stage { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%); }
}

/* ---- v2.4.1：群里发的链接，先在 QQ 回确认码 ---- */
.confirm-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 14px 0 6px;
  padding: 14px 16px; border: 1px solid var(--ink); border-radius: 4px; background: var(--card); color: var(--ink);
  font: inherit; cursor: pointer; text-align: left; box-shadow: 4px 4px 0 var(--mist); transition: transform .12s, box-shadow .12s; }
.confirm-copy:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--mist); }
.confirm-cmd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; }
.confirm-cmd b { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: .14em; margin-left: 6px; vertical-align: -3px; }
.confirm-tip { flex: none; font-size: 12px; color: var(--blue-deep); letter-spacing: .08em; }
.confirm-copy.done .confirm-tip { color: var(--ink); }
.confirm-wait { display: flex; align-items: center; gap: 8px; }
.confirm-wait::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: confirm-blink 1.2s ease-in-out infinite; }
@keyframes confirm-blink { 50% { opacity: .25; } }
.confirm-small { font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .confirm-wait::before { animation: none; } }
.sr-copy { position: fixed; left: 0; top: 0; opacity: 0; pointer-events: none; }

/* ================= v3.0.0：和主页一套的看板娘、剪影、判定字 ================= */
a.brand { color: inherit; text-decoration: none; }
.hello-sub { white-space: pre-line; }

/* 通行证：链接核对好了，右上角一笔画出光环、盖上「核对好了」 */
.seal { position: absolute; right: 12px; top: -22px; overflow: visible; transform: rotate(-7deg); opacity: 0; }
.seal-ring { fill: var(--card); stroke: #e3c16a; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.seal-star { fill: #e3c16a; transform-origin: 90px 14px; }
.seal-t { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .12em; fill: var(--ink); opacity: 0; }
.pass.issued .seal { opacity: 1; }
.pass.issued .seal-ring { animation: seal-draw .5s cubic-bezier(.7, 0, .2, 1) .1s both; }
.pass.issued .seal-star { animation: seal-star .35s cubic-bezier(.3, 1.5, .5, 1) .55s both; }
.pass.issued .seal-t { animation: fade .3s ease-out .45s both; }
@keyframes seal-draw { to { stroke-dashoffset: 0; } }
@keyframes seal-star { from { transform: scale(0) rotate(-180deg); } }

/* 失效 / 等确认码：半身像 + 一枚章 */
.notice { position: relative; }
.stamp {
  position: absolute; left: 150px; top: 46px; padding: 2px 12px; border: 2.5px solid var(--bad); border-radius: 4px; color: var(--bad);
  font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: .3em; text-indent: .3em; transform: rotate(-12deg);
  animation: stamp .38s cubic-bezier(.3, 1.5, .5, 1) .45s both;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } }
#confirmCode { display: inline-block; white-space: nowrap; }
.digit { display: inline-block; animation: digit .45s var(--ease) calc(.15s + var(--i) * .09s) both; }
@keyframes digit { from { opacity: 0; transform: translateY(-.5em) rotateX(90deg); } }
.confirm.done .confirm-wait::before { animation: none; background: var(--ok); }
.confirm.done .confirm-copy { border-color: var(--ok); box-shadow: 4px 4px 0 var(--ok-soft); }

/* 四个游戏：按钮右边各有自己的音符剪影，选中的那个亮起来 */
.game { position: relative; overflow: hidden; }
.game .game-note { position: absolute; right: 10px; top: 50%; width: 34px; height: 34px; margin-top: -17px; color: var(--hair); transition: color .2s; }
.game.mai[aria-checked="true"] .game-note { color: var(--mai); animation: note-spin .6s var(--ease) both; }
.game.chu[aria-checked="true"] .game-note { color: var(--chu); animation: note-up .5s var(--ease) both; }
.game.geki[aria-checked="true"] .game-note { color: var(--geki); animation: note-ring .6s var(--ease) both; }
.game.sdvx[aria-checked="true"] .game-note { color: var(--sdvx); animation: note-hit .45s var(--ease) both; }
@keyframes note-spin { from { transform: rotate(-144deg) scale(.6); } }
@keyframes note-up { from { transform: translateY(12px); opacity: .3; } }
@keyframes note-ring { 0% { transform: rotate(0); } 25% { transform: rotate(16deg); } 55% { transform: rotate(-11deg); } 80% { transform: rotate(5deg); } }
@keyframes note-hit { from { transform: scaleX(1.6); opacity: .4; } }
/* 每一步出现时，从左边那根双线上伸出一小截接到标题 */
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -24.5px; top: 12px; width: 15px; height: 4px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); box-sizing: content-box; transform-origin: left center; animation: draw .45s var(--ease) .1s both; }
.chips.lit .chip:not(.rest) { animation: chip-lit .7s var(--ease) both; }
.chips.lit .chip:nth-child(2) { animation-delay: .08s; } .chips.lit .chip:nth-child(3) { animation-delay: .16s; } .chips.lit .chip:nth-child(n+4) { animation-delay: .24s; }
@keyframes chip-lit { 0% { opacity: 0; transform: translateY(8px); } 45% { opacity: 1; transform: none; background: #e3c16a55; box-shadow: 0 0 0 3px #e3c16a55; } 100% { background: transparent; box-shadow: 0 0 0 0 transparent; } }

/* 角落里的看板娘：只露到胸口，不挡手指（点不到她） */
.mate { position: fixed; right: 0; bottom: 0; width: 86px; z-index: 4; animation: mate-up .7s var(--ease) both; }
@keyframes mate-up { from { transform: translateY(100%); } }
#app { padding-bottom: 56px; }
@media (min-width: 800px) { .mate { right: calc(50% - 400px); width: 132px; } }
@media (max-height: 430px) { .mate { display: none; } }

/* 绑好了：整屏让给她跳一下 */
.fete { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; overflow: hidden;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); animation: fade .25s ease-out both; }
.fete.bye { animation: fete-bye .34s ease-in both; pointer-events: none; }
@keyframes fete-bye { to { opacity: 0; } }
.fete-arch {
  position: absolute; left: 50%; bottom: 0; width: min(74vw, 330px); height: min(58vh, 520px); margin-left: calc(min(74vw, 330px) / -2);
  border-radius: 999px 999px 0 0; background-color: var(--mist);
  background-image:
    linear-gradient(-45deg, var(--mist) 25%, transparent 25%, transparent 75%, rgba(143, 178, 217, .30) 75%),
    linear-gradient(-45deg, rgba(143, 178, 217, .30) 25%, transparent 25%, transparent 75%, var(--mist) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
  animation: rise .5s var(--ease) both;
}
.fete-girl { position: relative; width: calc(min(60vh, 540px) * .45286); margin-bottom: max(34px, env(safe-area-inset-bottom)); animation: rise .5s var(--ease) .05s both; }
.fete-tip { position: absolute; left: 0; right: 0; bottom: max(8px, env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--mute); animation: fade .4s ease-out 1.6s both; }

/* ---------- clal 电脑方法：演示动画（JS 只切 data-step 和 gN，位置全在这里） ---------- */
.demo { margin: 0 0 20px; container-type: inline-size; }
.d-win {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 8px;
  background: #f4f6fa; box-shadow: 0 0 0 1px var(--line), 0 10px 28px -18px rgba(27, 42, 74, .55);
  font: 500 clamp(8px, 2.5cqw, 13px)/1.2 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #3c4043;
}
.d-chrome { position: absolute; left: 0; right: 0; top: 0; height: 9%; display: flex; align-items: center; gap: 1.2%; padding: 0 2.4%; background: #dee3ea; }
.d-chrome > i { width: 1.6%; aspect-ratio: 1; border-radius: 50%; background: #b9c2d3; }
.d-url {
  position: absolute; left: 12%; right: 8%; top: 18%; bottom: 18%; display: flex; align-items: center; padding: 0 2.5%;
  border-radius: 999px; background: #fff; color: #56637d; white-space: nowrap; overflow: hidden; transition: box-shadow .2s;
}
.pc .d-url .u-login { display: none; color: #1b2a4a; }
.d-page { position: absolute; left: 0; right: 0; top: 9%; height: 36%; padding: 3% 6%; display: flex; flex-direction: column; gap: 6%; background: #fff; }
.d-page b { height: 18%; width: 34%; border-radius: 4px; background: var(--blue); opacity: .55; }
.d-page span { height: 9%; border-radius: 3px; background: #e6effa; }
.d-page span.short { width: 60%; }
.d-flash { position: absolute; left: 0; right: 0; top: 9%; height: 36%; background: #fff; opacity: 0; pointer-events: none; }

.d-tools {
  position: absolute; left: 0; right: 0; top: 45%; bottom: 0; background: #202124; color: #bdc1c6;
  transform: translateY(101%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.d-tabs { position: absolute; left: 0; right: 0; top: 0; height: 13%; background: #292a2d; border-bottom: 1px solid #3c4043; }
.d-tabs span { position: absolute; top: 0; bottom: 0; width: 12%; display: grid; place-items: center; color: #9aa0a6; border-bottom: 2px solid transparent; }
.d-tabs span:nth-child(1) { left: 2%; } .d-tabs span:nth-child(2) { left: 14%; }
.d-tabs span:nth-child(3) { left: 26%; } .d-tabs span:nth-child(4) { left: 38%; width: 14%; }
.d-bar { position: absolute; left: 0; right: 0; top: 13%; height: 13%; border-bottom: 1px solid #3c4043; visibility: hidden; }
.d-check { position: absolute; left: 2%; top: 0; bottom: 0; display: flex; align-items: center; gap: .5em; color: #e8eaed; }
.d-check i { width: 1.05em; height: 1.05em; border-radius: 2px; box-shadow: inset 0 0 0 1.5px #9aa0a6; display: grid; place-items: center; font-style: normal; font-size: .8em; color: #202124; }
.d-filter { position: absolute; left: 22%; width: 46%; top: 18%; bottom: 18%; display: flex; align-items: center; padding: 0 1.5%; border-radius: 3px; box-shadow: inset 0 0 0 1px #5f6368; overflow: hidden; }
.d-filter::before { content: "筛选"; color: #80868b; margin-right: .6em; }
.d-typed { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; color: #e8eaed; font-family: ui-monospace, Menlo, Consolas, monospace; }
.d-con { position: absolute; left: 0; right: 0; top: 13%; bottom: 0; padding: 2% 2.5%; color: #8ab4f8; font-family: ui-monospace, Menlo, Consolas, monospace; }
.d-caret { display: inline-block; width: .55em; height: 1em; vertical-align: -.15em; background: #8ab4f8; animation: dcaret 1s steps(1) infinite; }
@keyframes dcaret { 50% { opacity: 0; } }
.d-body { position: absolute; left: 0; right: 0; top: 26%; bottom: 0; display: none; }
.d-list { position: absolute; left: 0; top: 0; bottom: 0; width: 34%; border-right: 1px solid #3c4043; }
.d-row { height: 16%; padding: 0 6%; line-height: 1; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row.r-hit { display: none; color: #e8eaed; }
.d-empty { display: none; position: absolute; left: 6%; bottom: 6%; color: #80868b; }
.d-detail { position: absolute; left: 34%; right: 0; top: 0; bottom: 0; opacity: 0; transition: opacity .25s; }
.d-dtabs { height: 16%; display: flex; align-items: center; gap: 8%; padding: 0 4%; border-bottom: 1px solid #3c4043; }
.d-dtabs span { color: #9aa0a6; border-bottom: 2px solid transparent; padding: .3em 0; }
.d-h { padding: 4% 4% 2%; color: #9aa0a6; }
.d-cookie { display: flex; gap: 5%; margin: 0 3%; padding: 2.4% 3%; border-radius: 3px; white-space: nowrap; }
.d-cookie > span:first-child { color: #f28b82; }
.d-v { color: #e8eaed; font-family: ui-monospace, Menlo, Consolas, monospace; transition: background .2s, color .2s; }
.d-copied { position: absolute; right: 5%; bottom: 10%; padding: .4em .8em; border-radius: 3px; background: var(--ok, #3e8e6e); color: #fff; opacity: 0; transform: translateY(30%); transition: opacity .25s, transform .25s; }

/* 光标：每一步挪到要点的地方，到了闪一下 */
.d-cursor {
  position: absolute; left: 70%; top: 30%; width: 3.6%; aspect-ratio: 3 / 4; z-index: 3;
  background: #fff; clip-path: polygon(0 0, 0 100%, 30% 74%, 50% 100%, 64% 93%, 45% 68%, 82% 68%);
  filter: drop-shadow(0 0 .6px #1b2a4a) drop-shadow(0 0 .6px #1b2a4a) drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
  transition: left .7s cubic-bezier(.45, .05, .25, 1), top .7s cubic-bezier(.45, .05, .25, 1);
}
.d-win::after {
  content: ""; position: absolute; z-index: 2; width: 6%; aspect-ratio: 1; margin: -3% 0 0 -3%; border-radius: 50%;
  border: 2px solid var(--blue-deep); opacity: 0; left: var(--cx, 50%); top: var(--cy, 50%);
}
.demo.click .d-win::after { animation: dclick .5s ease-out; }
@keyframes dclick { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }

.demo.pc[data-step="1"] .d-cursor { left: 60%; top: 32%; }
.demo.pc[data-step="2"] .d-cursor, .demo.pc[data-step="2"] .d-win { --cx: 32%; --cy: 48.6%; }
.demo.pc[data-step="2"] .d-cursor { left: 32%; top: 48.6%; }
.demo.pc[data-step="3"] .d-win { --cx: 4.6%; --cy: 55.8%; }
.demo.pc[data-step="3"] .d-cursor { left: 4.6%; top: 55.8%; }
.demo.pc[data-step="4"] .d-win { --cx: 40%; --cy: 55.8%; }
.demo.pc[data-step="4"] .d-cursor { left: 40%; top: 55.8%; }
.demo.pc[data-step="5"] .d-win { --cx: 45%; --cy: 4.5%; }
.demo.pc[data-step="5"] .d-cursor { left: 45%; top: 4.5%; }
.demo.pc[data-step="6"] .d-cursor { left: 45%; top: 30%; }
.demo.pc[data-step="7"] .d-win { --cx: 14%; --cy: 61.5%; }
.demo.pc[data-step="7"] .d-cursor { left: 14%; top: 61.5%; }
.demo.pc[data-step="8"] .d-win { --cx: 68%; --cy: 77%; }
.demo.pc[data-step="8"] .d-cursor { left: 68%; top: 77%; }

/* 累积状态：gN = 已经走到第 N 步 */
.demo.pc.g1 .d-tools { transform: none; }
.demo.pc.g1 .t-con { color: #e8eaed; border-bottom-color: #8ab4f8; }
.demo.pc.g2 .t-con { color: #9aa0a6; border-bottom-color: transparent; }
.demo.pc.g2 .t-net { color: #e8eaed; border-bottom-color: #8ab4f8; }
.demo.pc.g2 .d-con { display: none; }
.demo.pc.g2 .d-bar { visibility: visible; }
.demo.pc.g2 .d-body { display: block; }
.demo.pc.g3 .d-check i { background: #8ab4f8; box-shadow: none; }
.demo.pc.g3 .d-check i::before { content: "✓"; }
.demo.pc.g4 .d-typed { max-width: 16ch; transition: max-width 1.1s steps(16); }
.demo.pc.g4 .d-row.r-all { display: none; }
.demo.pc.g4 .d-empty { display: block; }
.demo.pc[data-step="5"] .u-net { display: none; }
.demo.pc[data-step="5"] .u-login { display: inline; }
.demo.pc[data-step="5"] .d-url { box-shadow: 0 0 0 2px var(--blue-deep); }
.demo.pc[data-step="5"] .d-flash { animation: dflash .7s 1.3s ease-in-out; }
@keyframes dflash { 40% { opacity: 1; } }
.demo.pc.g6 .d-empty { display: none; }
.demo.pc.g6 .d-row.r-hit { display: flex; }
.demo.pc.g7 .d-row.r-hit { background: #394457; }
.demo.pc.g7 .d-detail { opacity: 1; }
.demo.pc.g7 .d-ck { color: #e8eaed; border-bottom-color: #8ab4f8; }
.demo.pc.g8 .d-v { background: #8ab4f8; color: #202124; transition-delay: .7s; }
.demo.pc.g8 .d-copied { opacity: 1; transform: none; transition-delay: 1s; }

.demo figcaption { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 30px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.d-num {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink); font: 600 12px/1 var(--serif); font-variant-numeric: tabular-nums;
}
.d-cap { flex: 1; min-width: 0; }
.d-play { flex: none; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--mute); font-size: 12.5px; }
.guide > li > i { transition: box-shadow .3s; }
.guide > li.now > i { box-shadow: 0 0 0 4px var(--mist), 0 0 0 5px var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .d-cursor, .d-tools, .d-detail, .d-v, .d-copied, .demo.pc.g4 .d-typed { transition: none !important; }
  .demo.click .d-win::after, .demo.pc[data-step="5"] .d-flash, .d-caret { animation: none; }
}

.way-note { margin: 0 0 12px; font-size: 13.5px; color: var(--mute); }
.bm-pc { margin: 10px 0 0; font-size: 14px; line-height: 1.9; }
.bm-drag {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 2px 12px; border-radius: 999px; vertical-align: middle;
  background: var(--mist); color: var(--ink); border: 1px dashed var(--blue-deep); font-weight: 500; text-decoration: none; cursor: grab;
}
.bm-drag::before { content: "☆"; color: var(--blue-deep); }
@media (pointer: coarse) { .bm-pc { display: none; } }

/* ---------- 方法一 书签：演示动画 ---------- */
.bm .d-url .u { display: none; }
.b-bar { position: absolute; left: 0; right: 0; top: 9%; height: 7%; display: flex; align-items: center; padding: 0 2.4%; background: #eef1f6; border-bottom: 1px solid #dde3ec; }
.b-chip {
  display: inline-flex; align-items: center; gap: .35em; padding: .2em .8em; border-radius: 999px; color: #1b2a4a; font-weight: 600;
  background: #fff; box-shadow: 0 0 0 1px #c9d3e3; opacity: 0; transform: scale(.6); transition: opacity .35s, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.b-chip::before { content: "☆"; color: #5f86b5; }
.sc { position: absolute; left: 0; right: 0; top: 16%; bottom: 0; display: none; background: #fff; }
.s-bind { background: #fbfcfe; }
.s-h { position: absolute; left: 8%; top: 8%; font: 600 1.25em/1 var(--serif); color: #1b2a4a; }
.s-code { position: absolute; left: 8%; right: 8%; top: 22%; height: 13%; display: flex; border: 1px solid #b9c2d3; border-radius: 4px; overflow: hidden; background: #fff; }
.s-code code { flex: 1; display: flex; align-items: center; padding: 0 3%; color: #1b2a4a; font-size: .9em; background: transparent; }
.s-code em { display: grid; place-items: center; width: 20%; font-style: normal; color: #fff; background: #1b2a4a; transition: background .2s; }
.s-btn { position: absolute; left: 8%; right: 8%; top: 44%; height: 13%; display: grid; place-items: center; border: 1.5px solid #1b2a4a; border-radius: 4px; color: #1b2a4a; font-weight: 600; }
.s-input { position: absolute; left: 8%; right: 8%; top: 66%; height: 12%; display: flex; align-items: center; padding: 0 3%; border: 1px solid #b9c2d3; border-radius: 4px; background: #fff; }
.s-fill { color: #1b2a4a; font-family: ui-monospace, Menlo, Consolas, monospace; opacity: 0; }
.s-ok { position: absolute; left: 8%; right: 8%; top: 82%; padding: 1.6% 3%; border-left: 3px solid #3e8e6e; background: #e9f4ee; color: #2c6a51; opacity: 0; }
.s-login { background: #f6f7f9; }
.s-agree { position: absolute; left: 10%; top: 12%; display: flex; align-items: center; gap: .5em; color: #333; }
.s-agree i { width: 1.1em; height: 1.1em; border-radius: 2px; box-shadow: inset 0 0 0 1.5px #888; display: grid; place-items: center; font-style: normal; font-size: .8em; color: #fff; }
.s-sns { position: absolute; left: 10%; right: 10%; height: 13%; display: grid; place-items: center; border-radius: 999px; color: #fff; font-weight: 600; background: #3b5998; }
.s-sns.s-x { top: 30%; background: #111; } .s-sns:nth-of-type(3) { top: 49%; } .s-sns:nth-of-type(4) { top: 68%; background: #06c755; }
.s-net { padding: 3% 6%; flex-direction: column; gap: 6%; }
.s-net b { height: 14%; width: 34%; border-radius: 4px; background: var(--blue); opacity: .55; }
.s-net span { height: 7%; border-radius: 3px; background: #e6effa; }
.s-net span.short { width: 60%; }
.s-over { background: #fbfcfe; padding: 6% 7%; }
.o-t { display: block; color: #1b2a4a; }
.o-v { display: flex; align-items: center; height: 22%; margin-top: 4%; padding: 0 3%; border: 1px solid #b9c2d3; border-radius: 4px; background: #fff; color: #1b2a4a; font-family: ui-monospace, Menlo, Consolas, monospace; }
.o-btn { display: grid; place-items: center; height: 16%; margin-top: 5%; border-radius: 4px; background: #1b2a4a; color: #fff; font-weight: 600; }

/* 哪一步显示哪一屏、地址栏写什么 */
.bm[data-step="0"] .s-bind, .bm[data-step="1"] .s-bind, .bm[data-step="7"] .s-bind { display: block; }
.bm[data-step="2"] .s-bind { display: block; }
.bm[data-step="3"] .s-login { display: block; }
.bm[data-step="4"] .s-net { display: flex; }
.bm[data-step="5"] .s-net { display: flex; }
.bm[data-step="6"] .s-over { display: block; }
.bm[data-step="0"] .u-bind, .bm[data-step="1"] .u-bind, .bm[data-step="2"] .u-bind, .bm[data-step="7"] .u-bind { display: inline; }
.bm[data-step="3"] .u-login, .bm[data-step="5"] .u-aime, .bm[data-step="6"] .u-aime { display: inline; }
.bm[data-step="4"] .u-net { display: inline; }
.bm[data-step="5"] .d-flash { animation: dflash .6s 1.1s ease-in-out; top: 16%; height: 84%; }
.bm[data-step="5"] .s-net { animation: dgone 0s 1.4s forwards; }
@keyframes dgone { to { opacity: 0; } }
.bm.g1 .b-chip { opacity: 1; transform: none; }
.bm.g3 .s-agree i { background: #1b6ef3; box-shadow: none; }
.bm.g3 .s-agree i::before { content: "✓"; }
.bm[data-step="0"] .s-code em { background: #3e8e6e; transition-delay: .8s; }
.bm.g7 .s-fill { opacity: 1; }
.bm.g7 .s-ok { opacity: 1; transition: opacity .3s .5s; }

.bm[data-step="0"] .d-win { --cx: 82%; --cy: 40%; }
.bm[data-step="0"] .d-cursor { left: 82%; top: 40%; }
.bm[data-step="1"] .d-cursor { left: 16%; top: 16%; }
.bm[data-step="2"] .d-win { --cx: 50%; --cy: 58%; }
.bm[data-step="2"] .d-cursor { left: 50%; top: 58%; }
.bm[data-step="3"] .d-win { --cx: 50%; --cy: 46%; }
.bm[data-step="3"] .d-cursor { left: 50%; top: 46%; }
.bm[data-step="4"] .d-win, .bm[data-step="5"] .d-win { --cx: 9%; --cy: 12.5%; }
.bm[data-step="4"] .d-cursor, .bm[data-step="5"] .d-cursor { left: 9%; top: 12.5%; }
.bm[data-step="6"] .d-win { --cx: 50%; --cy: 64%; }
.bm[data-step="6"] .d-cursor { left: 50%; top: 64%; }
.bm[data-step="7"] .d-cursor { left: 70%; top: 92%; }
@media (prefers-reduced-motion: reduce) { .bm[data-step="5"] .d-flash, .bm[data-step="5"] .s-net { animation: none; } .b-chip { transition: none; } }
.bm .d-cursor { background: #1b2a4a; filter: drop-shadow(0 0 .7px #fff) drop-shadow(0 0 .7px #fff) drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }

/* ---------- 存书签：电脑 / iPhone / 安卓 三段演示 ---------- */
.plats { display: inline-flex; gap: 4px; margin: 12px 0 10px; padding: 3px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
.plats button { padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font-size: 13.5px; }
.plats button[aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.sv { margin: 0 0 6px; }
.sv .d-url .u { display: none; }
.sv .d-cursor { background: #1b2a4a; filter: drop-shadow(0 0 .7px #fff) drop-shadow(0 0 .7px #fff) drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.sv .sc { display: none; }
.sv .n2 { display: none; }
.sv em { font-style: normal; }

/* 电脑：书签栏 + 拖按钮 */
.desk .d-win { aspect-ratio: 16 / 8; }
.desk .s-pg { display: block; top: 16%; background: #fbfcfe; padding: 0; }
.desk .s-pg b { position: absolute; left: 8%; top: 56%; width: 40%; height: 8%; border-radius: 3px; background: #e6effa; }
.desk .s-pg span:not(.k-chip):not(.k-keys) { position: absolute; left: 8%; top: 72%; width: 70%; height: 7%; border-radius: 3px; background: #e6effa; }
.desk .s-pg span.short { top: 84%; width: 46%; }
.desk .b-bar { transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.k-keys { position: absolute; left: 8%; top: 26%; display: flex; gap: .4em; opacity: 0; transition: opacity .3s; }
.k-keys kbd { font-size: 1.1em; }
.k-chip, .k-ghost {
  position: absolute; display: inline-flex; align-items: center; gap: .3em; padding: .25em .9em; border-radius: 999px;
  background: #e6effa; color: #1b2a4a; font-weight: 600; border: 1px dashed #5f86b5; white-space: nowrap;
}
.k-chip { left: 62%; top: 30%; }
.k-chip::before, .k-ghost::before { content: "☆"; color: #5f86b5; }
.k-ghost { z-index: 2; left: 63%; top: 32%; opacity: 0; transition: left .9s cubic-bezier(.45, .05, .25, 1), top .9s cubic-bezier(.45, .05, .25, 1), opacity .2s; }
.desk[data-step="0"] .u-bind, .desk[data-step="1"] .u-bind, .desk[data-step="2"] .u-net { display: inline; }
.desk[data-step="0"] .k-keys { opacity: 1; transition-delay: .4s; }
.desk.g1 .b-bar, .desk[data-step="0"] .b-bar { transform: none; transition-delay: 1.1s; }
.desk.g1 .b-bar { transition-delay: 0s; }
.desk .b-chip { transition-delay: 0s; }
.desk[data-step="1"] .k-ghost { opacity: .9; left: 3%; top: 10%; transition-delay: .5s, .5s, .3s; }
.desk[data-step="1"] .b-chip { opacity: 1; transform: none; transition-delay: 1.45s; }
.desk.g2 .b-chip { opacity: 1; transform: none; }
.desk.g2 .k-chip, .desk.g2 .k-keys { display: none; }
.desk[data-step="0"] .d-cursor { left: 50%; top: 88%; }
.desk[data-step="1"] .d-cursor { left: 4%; top: 12%; transition-delay: .5s; transition-duration: .9s; }
.desk[data-step="1"] .d-cursor { animation: none; }
.desk[data-step="2"] .d-win { --cx: 8%; --cy: 12.5%; }
.desk[data-step="2"] .d-cursor { left: 8%; top: 12.5%; }
.desk[data-step="0"] .d-cursor, .desk:not([data-step]) .d-cursor { transition-duration: .5s; }

/* 手机外框 */
.ph .d-win { aspect-ratio: 10 / 14; max-width: 300px; margin: 0 auto; border-radius: 22px; background: #fff; box-shadow: 0 0 0 6px #1b2a4a, 0 14px 30px -18px rgba(27, 42, 74, .6); }
.ph .sc { top: 0; bottom: 0; background: #fff; }
.ph .s-pg { display: flex; flex-direction: column; gap: 4%; padding: 14% 8% 0; }
.ph .s-pg b { height: 7%; width: 44%; border-radius: 4px; background: var(--blue); opacity: .55; }
.ph .s-pg span { height: 3.5%; border-radius: 3px; background: #e6effa; }
.ph .s-pg span.short { width: 60%; }
.ph .r { display: flex; align-items: center; height: 8.5%; padding: 0 7%; border-bottom: 1px solid #eef0f3; color: #1b2a4a; white-space: nowrap; overflow: hidden; }
.ph .t { display: block; padding: 9% 7% 4%; font-weight: 700; font-size: 1.15em; color: #111; }
.ph .f { display: flex; flex-direction: column; justify-content: center; gap: .2em; margin: 3% 6% 0; height: 9%; padding: 0 4%; border-radius: 8px; background: #f2f3f6; color: #1b2a4a; overflow: hidden; white-space: nowrap; }
.ph .f small { color: #80868b; font-size: .78em; }
.ph .hit { transition: background .2s; }

/* iPhone：底部地址栏 + 工具栏 */
.i-url { position: absolute; left: 6%; right: 6%; bottom: 11%; height: 6.5%; display: grid; place-items: center; border-radius: 12px; background: #eef0f3; color: #3c4043; font-size: .9em; z-index: 1; }
.i-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 10%; display: grid; grid-template-columns: repeat(5, 1fr); place-items: center; background: #f7f7f8; border-top: 1px solid #e3e5e8; color: #1b6ef3; font-size: 1.4em; z-index: 1; }
.i-share, .i-book, .i-tabs { width: 1em; height: 1em; position: relative; }
.i-share { border: 2px solid #1b6ef3; border-top: 0; border-radius: 0 0 3px 3px; height: .7em; margin-top: .3em; }
.i-share::before { content: "↑"; position: absolute; left: 50%; top: -.75em; transform: translateX(-50%); font-size: .8em; font-weight: 700; }
.i-book::before { content: ""; position: absolute; inset: .12em 0; border: 2px solid #1b6ef3; border-radius: 2px; }
.i-book::after { content: ""; position: absolute; left: 50%; top: .12em; bottom: .12em; border-left: 2px solid #1b6ef3; }
.i-tabs::before { content: ""; position: absolute; inset: .1em; border: 2px solid #1b6ef3; border-radius: 3px; }
.ios .s-sheet { top: 40%; border-radius: 16px 16px 0 0; background: #f2f3f6; box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .3); padding-top: 4%; z-index: 2; }
.ios .s-sheet .r { background: #fff; margin: 0 5%; border-radius: 0; height: 11%; }
.ios .s-list .ed, .ios .s-edit .done { position: absolute; color: #1b6ef3; font-weight: 600; }
.ios .s-list .ed { right: 7%; bottom: 3%; }
.ios .s-edit .done { right: 7%; top: 9%; }
.ios .s-list, .ios .s-edit { z-index: 2; }
.ios[data-step="0"] .s-pg, .ios[data-step="2"] .s-pg { display: flex; }
.ios[data-step="1"] .s-pg, .ios[data-step="1"] .s-sheet { display: flex; }
.ios[data-step="1"] .s-sheet { flex-direction: column; }
.ios[data-step="3"] .s-list, .ios[data-step="6"] .s-list { display: block; }
.ios[data-step="4"] .s-edit, .ios[data-step="5"] .s-edit { display: block; }
.ios.g4 .n1 { display: none; } .ios.g4 .n2 { display: inline; }
.ios[data-step="1"] .hit, .ios[data-step="3"] .hit, .ios[data-step="6"] .hit { background: #e6effa; transition-delay: .7s; }
.ios[data-step="0"] .d-win { --cx: 50%; --cy: 95%; } .ios[data-step="0"] .d-cursor { left: 50%; top: 95%; }
.ios[data-step="1"] .d-win { --cx: 50%; --cy: 66.5%; } .ios[data-step="1"] .d-cursor { left: 50%; top: 66.5%; }
.ios[data-step="2"] .d-win { --cx: 70%; --cy: 95%; } .ios[data-step="2"] .d-cursor { left: 70%; top: 95%; }
.ios[data-step="3"] .d-win { --cx: 40%; --cy: 30%; } .ios[data-step="3"] .d-cursor { left: 40%; top: 30%; }
.ios[data-step="4"] .d-win { --cx: 50%; --cy: 40%; } .ios[data-step="4"] .d-cursor { left: 50%; top: 40%; }
.ios[data-step="5"] .d-win { --cx: 86%; --cy: 11%; } .ios[data-step="5"] .d-cursor { left: 86%; top: 11%; }
.ios[data-step="6"] .d-win { --cx: 40%; --cy: 30%; } .ios[data-step="6"] .d-cursor { left: 40%; top: 30%; }

/* 安卓：顶上地址栏 + ⋮ */
.a-top { position: absolute; left: 0; right: 0; top: 0; height: 9%; display: flex; align-items: center; gap: 3%; padding: 0 4%; background: #f1f3f4; z-index: 3; border-radius: 22px 22px 0 0; }
.a-url { flex: 1; height: 62%; display: flex; align-items: center; padding: 0 5%; border-radius: 999px; background: #fff; color: #3c4043; font-size: .9em; }
.a-u2 { display: none; color: #111; }
.a-dots { font-size: 1.4em; color: #3c4043; }
.and .s-pg { padding-top: 16%; }
.and .s-menu { left: 40%; right: 3%; top: 8%; bottom: auto; height: 50%; border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); z-index: 4; }
.m-icons { display: flex; justify-content: space-around; height: 16%; align-items: center; border-bottom: 1px solid #eef0f3; }
.m-icons i { font-style: normal; color: #3c4043; }
.and .s-menu .r { height: 17%; }
.and .s-list, .and .s-edit, .and .s-omni { top: 9%; }
.ctx { position: absolute; left: 30%; right: 10%; top: 34%; display: none; flex-direction: column; border-radius: 6px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.ctx span { padding: 7% 10%; color: #1b2a4a; }
.ctx span:first-child { background: #e6effa; }
.and .s-omni .r { height: 11%; }
.and .s-omni small { margin-left: .6em; color: #80868b; overflow: hidden; text-overflow: ellipsis; }
.and[data-step="0"] .s-pg, .and[data-step="1"] .s-pg, .and[data-step="2"] .s-pg { display: flex; }
.and[data-step="1"] .s-menu, .and[data-step="2"] .s-menu { display: block; }
.and[data-step="3"] .s-list { display: block; }
.and[data-step="3"] .ctx { display: flex; animation: dfade .2s 1.2s both; }
@keyframes dfade { from { opacity: 0; } }
.and[data-step="4"] .s-edit { display: block; }
.and[data-step="5"] .s-pg { display: flex; }
.and[data-step="6"] .s-omni { display: block; }
.and.g4 .n1 { display: none; } .and.g4 .n2 { display: inline; }
.and.g5 .a-u1 { display: none; } .and.g5 .a-u2 { display: inline; }
.and[data-step="1"] .m-star { color: #1b6ef3; transition: color .2s .7s; }
.and[data-step="2"] .s-menu .hit, .and[data-step="6"] .s-omni .hit { background: #e6effa; transition-delay: .7s; }
.and[data-step="0"] .d-win { --cx: 93%; --cy: 4.5%; } .and[data-step="0"] .d-cursor { left: 93%; top: 4.5%; }
.and[data-step="1"] .d-win { --cx: 64%; --cy: 12%; } .and[data-step="1"] .d-cursor { left: 64%; top: 12%; }
.and[data-step="2"] .d-win { --cx: 70%; --cy: 34%; } .and[data-step="2"] .d-cursor { left: 70%; top: 34%; }
.and[data-step="3"] .d-win { --cx: 40%; --cy: 30%; } .and[data-step="3"] .d-cursor { left: 40%; top: 30%; }
.and[data-step="4"] .d-win { --cx: 50%; --cy: 37%; } .and[data-step="4"] .d-cursor { left: 50%; top: 37%; }
.and[data-step="5"] .d-win { --cx: 40%; --cy: 4.5%; } .and[data-step="5"] .d-cursor { left: 40%; top: 4.5%; }
.and[data-step="6"] .d-win { --cx: 40%; --cy: 14.5%; } .and[data-step="6"] .d-cursor { left: 40%; top: 14.5%; }
.ph .d-cursor { width: 5.5%; }
