/* ============ 程序演示 ============ */
html.mobile .prog-demo { margin-bottom: calc(28px + env(safe-area-inset-bottom)); }
.prog-stage > * { position: absolute; inset: 0; }
.prog-demo button { cursor: pointer; }
.prog-demo button:disabled { cursor: default; }

/* 演示里的手机外框 */
.dphone-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dphone-label { font-size: 12px; font-weight: 700; opacity: .55; letter-spacing: .04em; }
.dphone {
  --ph: min(600px, calc(100cqh - 78px));
  position: relative; height: var(--ph); width: calc(var(--ph) * .49);
  padding: 8px; border-radius: 42px; background: #121212;
  box-shadow: 0 30px 60px -22px rgba(40, 25, 10, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 0 1px rgba(0, 0, 0, .2);
  display: flex;
}
.dphone-status {
  position: absolute; top: 8px; left: 8px; right: 8px; z-index: 3; height: 34px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  font-size: 11px; font-weight: 700; color: #2a2520; pointer-events: none;
}
.dphone-island { width: 74px; height: 22px; border-radius: 12px; background: #121212; }
.dphone-screen { flex: 1; min-width: 0; border-radius: 34px; overflow: hidden; position: relative; display: flex; }

/* ---------- 余白 ---------- */
.dm-margin {
  container-type: size;
  display: flex; flex-direction: column; align-items: center; padding: 12px 16px 12px;
  color: #2a2520;
  background: radial-gradient(70% 60% at 20% 0%, #fbf6ef, transparent 70%), radial-gradient(60% 60% at 100% 100%, #efe2d6, transparent 70%), #f2ebe2;
}
.dm-switch { display: none; padding: 3px; border-radius: 999px; background: rgba(42, 37, 32, .08); margin-bottom: 8px; }
.dm-switch button { height: 28px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #6f655b; }
.dm-switch button.on { background: #fff; color: #2a2520; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.dm-phones { flex: 1; min-height: 0; display: flex; gap: clamp(20px, 5cqw, 60px); justify-content: center; align-items: center; }
.dm-cap { margin: 6px 0 0; font-size: 12.5px; color: #8a7f73; text-align: center; }
@container (max-width: 640px) {
  .dm-switch { display: inline-flex; }
  .dm-phones .dphone-wrap:not(.on) { display: none; }
  .dm-margin .dphone-label { display: none; }
  .dm-margin .dphone { --ph: min(600px, calc(100cqh - 96px)); }
}

.ym {
  flex: 1; min-width: 0; overflow-y: auto; scrollbar-width: none;
  padding: 44px 12px 16px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(#fcf9f5, #f4eee8); position: relative;
  font-size: 13px;
}
.ym::-webkit-scrollbar { display: none; }
.ym.ym-flash { animation: ym-flash 1s ease; }
@keyframes ym-flash { 0% { box-shadow: inset 0 0 0 0 rgba(184, 71, 59, .0); } 30% { box-shadow: inset 0 0 0 3px rgba(184, 71, 59, .35); } 100% { box-shadow: inset 0 0 0 0 rgba(184, 71, 59, 0); } }
.ym-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.ym-head b { font: 600 19px/1 "Songti SC", "STSong", "Noto Serif SC", serif; letter-spacing: .12em; }
.ym-head span { font-size: 11px; color: #8a9a7f; display: flex; align-items: center; gap: 4px; }
.ym-head span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ym-head span.busy { color: #c58b2e; }
.ym-head span.busy::before { animation: pulse-dot .8s ease-in-out infinite alternate; }
@keyframes pulse-dot { to { opacity: .2; } }
.ym-hero { text-align: center; padding: 10px 0 4px; }
.ym-pair { display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.ym-av {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 600 16px "Songti SC", serif; color: #fff; background: #2a2520; box-shadow: 0 4px 10px rgba(42, 37, 32, .2);
}
.ym-av.b { background: #b8473b; }
.ym-thread { flex: 1; height: 24px; }
.ym-thread path { fill: none; stroke: #b8473b; stroke-width: 1.4; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; animation: thread 3s linear infinite; }
@keyframes thread { to { stroke-dashoffset: -24; } }
.ym-days { margin-top: 8px; font: 14px "Songti SC", serif; color: #6f655b; }
.ym-days b { font-size: 24px; color: #2a2520; margin: 0 2px; }
.ym-card { background: rgba(255, 255, 255, .78); border-radius: 18px; padding: 12px; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 6px 18px -10px rgba(80, 50, 20, .25); display: flex; flex-direction: column; gap: 8px; }
.ym-title { font-weight: 700; font-size: 12.5px; color: #6f655b; display: flex; align-items: center; gap: 6px; }
.ym-badge { font-style: normal; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #b8473b; color: #fff; font-size: 10.5px; display: grid; place-items: center; }
.ym-their { font-size: 12.5px; }
.ym-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ym-moods button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 4px; border-radius: 11px; font-size: 18px; background: #f6efe6; transition: background .15s, transform .25s var(--ease-spring); }
.ym-moods button small { font-size: 10px; color: #8a7f73; }
.ym-moods button:active { transform: scale(.92); }
.ym-moods button.on { background: #2a2520; }
.ym-moods button.on small { color: #f2ebe2; }
.ym-note { width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: #6f655b; background: #f7efe4; border: 1px dashed #d9c9b4; }
.ym-note span { display: block; }
.ym-note.open { background: #fffaf2; border-style: solid; border-color: #eadfce; color: #2a2520; font: 14px/1.6 "Songti SC", serif; animation: unfold .4s var(--ease-out); }
@keyframes unfold { from { transform: scaleY(.6); opacity: 0; } }
.ym-sent { font-size: 11.5px; color: #8a7f73; display: flex; justify-content: space-between; gap: 6px; }
.ym-sent small { flex: none; color: #8a9a7f; font-weight: 600; }
.ym-compose { display: flex; gap: 6px; }
.ym-compose input { flex: 1; min-width: 0; height: 32px; border: 1px solid #e2d8cb; border-radius: 999px; padding: 0 12px; font-size: 12.5px; background: #fff; color: #2a2520; }
.ym-compose input:focus { outline: none; border-color: #b8473b; }
.ym-compose button { height: 32px; padding: 0 12px; border-radius: 999px; background: #2a2520; color: #fff; font-size: 12px; font-weight: 600; }
.ym-dinner { text-align: center; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.ym-dinner b { font: 600 24px "Songti SC", serif; }
.ym-dinner b.rolling { color: #b8473b; }
.ym-dinner small { font-size: 11px; color: #8a7f73; }
.ym-roll { height: 32px; border-radius: 999px; border: 1px solid #2a2520; font-size: 12.5px; font-weight: 600; color: #2a2520; }
.ym-roll:disabled { opacity: .4; }
.ym-toast {
  position: absolute; left: 50%; top: 46px; z-index: 4; transform: translate(-50%, -8px);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap; font-size: 12px; font-weight: 600;
  background: rgba(42, 37, 32, .9); color: #fff; opacity: 0; pointer-events: none; transition: all .3s var(--ease-spring);
}
.ym-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 未来 ---------- */
.dm-weilai {
  container-type: inline-size;
  display: flex; flex-direction: column; padding: 12px 18px 16px;
  background: radial-gradient(60% 50% at 80% 0%, rgba(232, 85, 61, .12), transparent 70%), #161311;
  color: #F3EBDD;
}
.wf-tabs, .pw-tabs { align-self: center; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); flex: none; }
.wf-tabs button, .pw-tabs button { height: 30px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #A89F90; }
.wf-tabs button.on { background: #E8553D; color: #2B0F08; }
.wf-stage { flex: 1; min-height: 0; overflow: auto; padding-top: 14px; }
.wf-card { background: #1F1B18; border: 1px solid #2E2924; border-radius: 22px; padding: 18px; }
.wf-lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; min-height: 100%; }
.wf-qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.wf-game-name { font-size: 26px; font-weight: 900; letter-spacing: .04em; display: flex; flex-direction: column; }
.wf-game-name small { font-size: 12px; font-weight: 500; color: #A89F90; letter-spacing: 0; }
.wf-qr { width: 160px; padding: 10px; border-radius: 16px; background: #F3EBDD; color: #161311; }
.wf-qr-card p { margin: 0; font-size: 13px; color: #A89F90; }
.wf-qr-card code { font: 12px var(--mono); color: #E8553D; background: none; }
.wf-seats { display: flex; flex-direction: column; gap: 12px; }
.wf-seats-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wf-seats-title b { color: #E8553D; font-size: 20px; }
.wf-wait { font-size: 12px; font-weight: 500; color: #A89F90; animation: pulse-dot 1s ease-in-out infinite alternate; }
.wf-seat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.wf-seat { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: #2A2521; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.wf-seat.fresh { animation: pop-in .5s var(--ease-spring); }
.wf-seat b { font-size: 13.5px; }
.wf-seat small { margin-left: auto; font-size: 10.5px; color: #E8553D; font-weight: 700; }
.wf-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #161311; font-weight: 900; flex: none; }
.wf-rule { margin: auto 0 0; font-size: 12.5px; line-height: 1.7; color: #A89F90; }
.wf-btn { height: 44px; padding: 0 22px; border-radius: 999px; background: #E8553D; color: #2B0F08; font-size: 15px; font-weight: 800; transition: transform .25s var(--ease-spring), background .2s; }
.wf-btn:active:not(:disabled) { transform: scale(.96); }
.wf-btn:disabled { background: #2A2521; color: #786E62; }
.wf-btn.ghost { background: none; color: #F3EBDD; box-shadow: inset 0 0 0 1.5px #3a332d; }
@container (max-width: 620px) { .wf-lobby { grid-template-columns: 1fr; } .wf-qr { width: 130px; } }

.wf-game { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding-bottom: 10px; }
.wf-range { display: flex; align-items: baseline; gap: 14px; font-size: clamp(48px, 11cqw, 84px); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.wf-range i { font-style: normal; color: #786E62; font-size: .6em; }
.wf-hint { color: #A89F90; font-size: 13px; margin-top: -6px; }
.wf-turns { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wf-turns span { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 50%, transparent); color: #A89F90; transition: all .25s var(--ease-spring); }
.wf-turns span.on { background: var(--c); color: #161311; transform: scale(1.1); box-shadow: none; }
.wf-action { min-height: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wf-action small { color: #E8553D; font-weight: 700; }
.wf-guess { display: flex; gap: 8px; }
.wf-guess input {
  width: 140px; height: 46px; border-radius: 14px; border: 2px solid #3a332d; background: #2A2521; color: #F3EBDD;
  font-size: 22px; font-weight: 800; text-align: center;
}
.wf-guess input:focus { outline: none; border-color: #E8553D; }
.wf-guess input.shake { animation: shake .35s; border-color: #E5484D; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wf-thinking { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #A89F90; height: 46px; }
.wf-thinking i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); animation: pulse-dot .5s ease-in-out infinite alternate; }
.wf-log { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: #A89F90; display: flex; flex-direction: column; gap: 3px; min-height: 80px; }
.wf-boom { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; background: radial-gradient(circle, rgba(232, 85, 61, .3), transparent 60%); animation: boom-bg 1s ease-out; border-radius: 24px; }
.wf-boom-icon { font-size: 86px; line-height: 1; animation: boom .7s var(--ease-spring); }
.wf-boom h2 { margin: 8px 0 0; font-size: 22px; }
.wf-boom p { margin: 0 0 16px; color: #A89F90; }
.wf-boom-btns { display: flex; gap: 10px; }
@keyframes boom { 0% { transform: scale(.2) rotate(-20deg); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: none; } }
@keyframes boom-bg { 0% { background-color: rgba(232, 85, 61, .5); } 100% { background-color: transparent; } }

.wf-chat { height: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.wf-msgs { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.wf-msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.6; background: #1F1B18; border: 1px solid #2E2924; align-self: flex-start; white-space: pre-wrap; }
.wf-msg.me { align-self: flex-end; background: #E8553D; color: #2B0F08; border: 0; font-weight: 600; }
.wf-msg.code { max-width: 100%; width: 100%; padding: 0; overflow: hidden; }
.wf-msg.code pre { margin: 0; padding: 12px 14px; max-height: 300px; overflow: auto; font: 11.5px/1.6 var(--mono); color: #e9dcc7; background: #0f0d0c; }
.wf-msg.card { padding: 0; border: 0; background: none; max-width: 100%; width: 100%; }
.wf-gamecard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: #2A2521; border: 1px solid #3a332d; }
.wf-gamecard > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wf-gamecard small { color: #A89F90; font-size: 12px; }
.wf-gamecard .wf-btn { height: 38px; font-size: 13.5px; padding: 0 16px; }
.wf-gc-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: #E8553D; flex: none; }
.wf-typing { display: inline-flex; gap: 4px; }
.wf-typing i { width: 6px; height: 6px; border-radius: 50%; background: #A89F90; animation: pulse-dot .5s ease-in-out infinite alternate; }
.wf-typing i:nth-child(2) { animation-delay: .15s; }
.wf-typing i:nth-child(3) { animation-delay: .3s; }
.wf-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-suggest button { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: #F3EBDD; box-shadow: inset 0 0 0 1px #3a332d; }
.wf-suggest button:hover { box-shadow: inset 0 0 0 1px #E8553D; }
.wf-input { display: flex; gap: 8px; }
.wf-input input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #3a332d; background: #1F1B18; color: #F3EBDD; font-size: 14px; }
.wf-input input:focus { outline: none; border-color: #E8553D; }
.wf-input button { height: 44px; padding: 0 20px; border-radius: 999px; background: #E8553D; color: #2B0F08; font-weight: 800; }

/* ---------- 陪玩系统 ---------- */
.dm-peiwan {
  container-type: inline-size;
  display: flex; flex-direction: column; padding: 12px 18px 16px;
  background: radial-gradient(60% 50% at 0% 0%, rgba(139, 125, 255, .14), transparent 70%), #0e0f13;
  color: #e7e8ee;
}
.pw-tabs button.on { background: #8b7dff; color: #fff; }
.pw-pane { flex: 1; min-height: 0; overflow: auto; padding-top: 14px; }
.pw-assemble { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
@container (max-width: 720px) {
  .pw-assemble { grid-template-columns: 1fr; }
  .pw-right { order: -1; position: static; }
  .pw-phone { height: 320px; max-width: 300px; align-self: center; width: 100%; }
  .pw-term-out { min-height: 40px; }
}
.pw-presets, .pw-deploy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.pw-presets > span, .pw-deploy > span { font-size: 12px; color: #8a8fa3; margin-right: 4px; }
.pw-presets button { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: #cfd2de; box-shadow: inset 0 0 0 1px #2a2e3a; }
.pw-presets button:hover { box-shadow: inset 0 0 0 1px #8b7dff; color: #fff; }
.pw-seg { display: inline-flex; padding: 2px; border-radius: 10px; background: #171a21; }
.pw-seg button { height: 26px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; color: #8a8fa3; }
.pw-seg button.on { background: #2a2e3a; color: #fff; }
.pw-groups { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.pw-group h4 { margin: 0 0 6px; font-size: 12px; color: #8a8fa3; display: flex; align-items: center; gap: 6px; }
.pw-group h4 small { font-weight: 500; font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: #1c1f28; }
.pw-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-mod {
  height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12.5px;
  color: #a2a7b8; background: #15171d; box-shadow: inset 0 0 0 1px #262a34;
  transition: all .15s;
}
.pw-mod:hover:not(:disabled) { color: #fff; }
.pw-mod.on { color: #fff; background: rgba(139, 125, 255, .18); box-shadow: inset 0 0 0 1px #8b7dff; }
.pw-mod.on::before { content: "✓ "; color: #b3a9ff; }
.pw-mod:disabled.on { opacity: .75; }
.pw-right { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; }
.pw-notice { font-size: 12px; color: #e9c46a; background: rgba(233, 196, 106, .1); border-radius: 10px; padding: 0 10px; max-height: 0; overflow: hidden; transition: all .3s; }
.pw-notice.show { max-height: 60px; padding: 8px 10px; }
.pw-phone { height: 380px; padding: 7px; border-radius: 32px; background: #000; box-shadow: inset 0 0 0 1.5px #2a2e3a; }
.pw-mp { position: relative; height: 100%; padding-bottom: 40px; border-radius: 26px; overflow: hidden; background: #f4f5fa; color: #1d2030; display: flex; flex-direction: column; font-size: 12px; }
.pw-mp-banner { padding: 26px 14px 14px; color: #fff; background: linear-gradient(135deg, #8b7dff, #4b3fc4); display: flex; flex-direction: column; }
.pw-mp-banner b { font-size: 16px; }
.pw-mp-banner small { opacity: .8; font-size: 11px; }
.pw-mp.web .pw-mp-banner { background: linear-gradient(135deg, #2bb3a3, #1f6f8b); }
.pw-mp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.pw-mp-tiles span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; background: #fff; font-size: 11px; animation: pop-in .35s var(--ease-spring); }
.pw-mp-tiles i { font-style: normal; font-size: 17px; }
.pw-mp-title { padding: 2px 12px 6px; font-weight: 700; }
.pw-mp-card { display: flex; align-items: center; gap: 8px; margin: 0 10px 6px; padding: 8px; border-radius: 12px; background: #fff; }
.pw-mp-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pw-mp-card small { color: #8a8fa3; font-size: 10.5px; }
.pw-mp-card em { font-style: normal; color: #e0557a; font-weight: 700; }
.pw-mp-card button { height: 24px; padding: 0 8px; border-radius: 999px; background: #8b7dff; color: #fff; font-size: 10.5px; }
.pw-mp-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e9e6ff; color: #4b3fc4; font-weight: 800; }
.pw-mp-tab { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 9px 4px 12px; background: #fff; border-top: 1px solid #e8e9f0; font-size: 11px; color: #8a8fa3; }
.pw-mp-tab span.on { color: #4b3fc4; font-weight: 700; }
.pw-web-money { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 10px 0; }
.pw-web-money span { display: flex; flex-direction: column; padding: 10px; border-radius: 12px; background: #fff; }
.pw-web-money small { color: #8a8fa3; font-size: 10.5px; }
.pw-web-money b { font-size: 15px; }
.pw-web-note { margin: auto 12px 14px; font-size: 11px; color: #8a8fa3; line-height: 1.6; }
.pw-mp.web, .pw-mp.empty { padding-bottom: 0; }
.pw-mp.empty { display: grid; place-items: center; text-align: center; color: #8a8fa3; }
.pw-term { background: #07080b; border: 1px solid #1d2029; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.pw-term-out { min-height: 110px; max-height: 210px; overflow: auto; font: 11.5px/1.65 var(--mono); color: #cfd2de; }
.pw-line { animation: fade-in .2s; }
.pw-line b { color: #4ade80; }
.pw-line.skip, .pw-line.skip b { color: #6b7080; }
.pw-dim { color: #6b7080; }
.pw-btn { height: 36px; padding: 0 18px; border-radius: 10px; background: #8b7dff; color: #fff; font-size: 13.5px; font-weight: 700; transition: transform .2s var(--ease-spring), opacity .2s; }
.pw-btn:active:not(:disabled) { transform: scale(.97); }
.pw-btn:disabled { opacity: .5; }

.pw-flow { display: flex; flex-direction: column; gap: 14px; }
.pw-steps { list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pw-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: #6b7080; }
.pw-steps li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: #22252f; z-index: 0; }
.pw-steps li:first-child::before { display: none; }
.pw-steps li.done::before, .pw-steps li.now::before { background: #8b7dff; }
.pw-steps i { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: #15171d; box-shadow: inset 0 0 0 1.5px #2a2e3a; transition: all .3s var(--ease-spring); }
.pw-steps li.done { color: #cfd2de; }
.pw-steps li.done i { background: #8b7dff; color: #fff; box-shadow: none; }
.pw-steps li.now { color: #fff; font-weight: 700; }
.pw-steps li.now i { background: #e9c46a; color: #1a1406; box-shadow: 0 0 0 6px rgba(233, 196, 106, .18); transform: scale(1.12); }
@container (max-width: 620px) {
  .pw-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .pw-steps li::before { display: none; }
}
.pw-detail { margin: 0; min-height: 46px; padding: 12px 16px; border-radius: 14px; background: #15171d; font-size: 13.5px; line-height: 1.6; color: #cfd2de; }
.pw-flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@container (max-width: 720px) { .pw-flow-grid { grid-template-columns: 1fr; } }
.pw-card { background: #15171d; border: 1px solid #1f222c; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pw-card h4 { margin: 0 0 2px; font-size: 12px; color: #8a8fa3; }
.pw-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #cfd2de; }
.pw-row.total { padding-top: 8px; border-top: 1px solid #22252f; color: #fff; font-weight: 700; }
.pw-row.total b { color: #e9c46a; }
.pw-bal { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: #8a8fa3; transition: all .3s; }
.pw-bal b { font-variant-numeric: tabular-nums; }
.pw-bal.hot { background: rgba(139, 125, 255, .16); color: #fff; }
.pw-bal.hot b { color: #e9c46a; }
.pw-range { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #cfd2de; }
.pw-range b { color: #e9c46a; }
.pw-range input { accent-color: #8b7dff; }
.pw-card .pw-btn { margin-top: 4px; }

/* ---------- 一步 ---------- */
.dm-yibu {
  container-type: size;
  display: flex; align-items: center; justify-content: center; gap: 28px; padding: 12px 20px;
  background: radial-gradient(60% 60% at 20% 10%, #ccfbf1, transparent 70%), #f3f5f7; color: #0f172a;
}
.yb-stage { height: 100%; display: grid; place-items: center; }
.yb-phone .dphone-screen { background: #f3f5f7; }
.yb-screen { position: absolute; inset: 0; overflow: hidden; font-size: 14px; }
.yb-overlay { position: absolute; inset: 0; pointer-events: none; }
.yb-overlay > * { pointer-events: auto; }
.yb-ring, .yb-hand { pointer-events: none !important; }

/* 一步自己的界面 */
.yb-start { height: 100%; padding: 56px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.yb-brand { display: flex; flex-direction: column; margin-bottom: 8px; }
.yb-brand b { font-size: 30px; font-weight: 800; }
.yb-brand small { font-size: 14px; color: #475569; }
.yb-mic { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px; border-radius: 22px; background: #0f766e; color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 10px 24px rgba(15, 118, 110, .3); }
.yb-mic span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, .18); }
.yb-faq-title { margin-top: 8px; font-size: 15px; font-weight: 800; }
.yb-faq { display: flex; align-items: center; height: 52px; padding: 0 14px; border-radius: 14px; background: #fff; font-size: 16px; font-weight: 600; text-align: left; box-shadow: inset 0 0 0 1px #e2e8f0; }
.yb-faq em { margin-left: auto; font-style: normal; color: #94a3b8; font-size: 20px; }

/* 虚构的其它 App */
.yb-home { height: 100%; padding: 60px 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; gap: 18px 8px; background: linear-gradient(160deg, #a5b4fc, #5eead4); }
.yb-app { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.yb-app span { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; text-shadow: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.yb-page { position: relative; height: 100%; padding-top: 40px; display: flex; flex-direction: column; background: #f3f5f7; }
.yb-bar { flex: none; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.yb-bar b { font-size: 16px; }
.yb-bar > span, .yb-bar > button { width: 32px; font-size: 22px; color: #0f766e; text-align: center; }
.yb-banner { margin: 12px; padding: 18px 16px; border-radius: 16px; color: #fff; font-weight: 800; font-size: 16px; background: linear-gradient(120deg, #0f766e, #2dd4bf); }
.yb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 12px; }
.yb-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; border-radius: 14px; background: #fff; font-size: 12.5px; font-weight: 600; }
.yb-tile i { font-style: normal; font-size: 22px; }
.yb-list { margin: 12px; border-radius: 14px; background: #fff; overflow: hidden; }
.yb-row { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; font-size: 15px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.yb-row i { font-style: normal; }
.yb-row em { margin-left: auto; font-style: normal; color: #94a3b8; }
.yb-row.danger-soft { color: #dc2626; }
.yb-switch { position: relative; margin-left: auto; width: 42px; height: 25px; border-radius: 999px; background: #d1d5db; transition: background .2s; }
.yb-switch i { position: absolute; left: 2px; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease-spring); }
.yb-switch.on { background: #34c759; }
.yb-switch.on i { transform: translateX(17px); }
.yb-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.yb-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #475569; }
.yb-field { height: 46px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; background: #fff; font-size: 16px; font-weight: 600; color: #0f172a; box-shadow: inset 0 0 0 1px #e2e8f0; }
.yb-field.empty { color: #94a3b8; font-weight: 400; }
.yb-primary { height: 48px; border-radius: 14px; background: #0f766e; color: #fff; font-size: 16px; font-weight: 800; }
.yb-primary:disabled { opacity: .4; }
.yb-amount { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; border-radius: 16px; background: #fff; }
.yb-amount b { font-size: 32px; }
.yb-amount small { font-size: 12px; color: #475569; }
.yb-chat { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.yb-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; background: #fff; font-size: 13.5px; line-height: 1.55; }
.yb-lure { align-self: flex-start; height: 42px; padding: 0 16px; border-radius: 12px; background: #ef4444; color: #fff; font-weight: 800; }
.yb-danger { margin: 0 12px; height: 48px; border-radius: 14px; background: #fff; color: #dc2626; font-size: 15px; font-weight: 800; }
.yb-dialog { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .4); }
.yb-dialog > div { width: 78%; padding: 18px 16px 12px; border-radius: 18px; background: #fff; text-align: center; }
.yb-dialog p { margin: 6px 0 14px; font-size: 13px; color: #475569; }
.yb-dialog > div > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yb-dialog button { height: 42px; border-radius: 12px; background: #f1f5f9; font-weight: 700; }
.yb-dialog button[data-t] { color: #dc2626; }
.yb-done-page { align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 40px 20px 180px; font-size: 17px; }
.yb-done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #15803d; color: #fff; font-size: 32px; font-weight: 800; }

/* 一步的悬浮指引 */
.yb-pill { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 12px 18px; border-radius: 24px; background: #0f172a; color: #fff; font-size: 15px; font-weight: 700; animation: pop-in .4s var(--ease-spring); }
.yb-pill i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(45, 212, 191, .3); border-top-color: #2dd4bf; animation: yb-spin .8s linear infinite; }
@keyframes yb-spin { to { transform: rotate(360deg); } }
.yb-card {
  position: absolute; left: 10px; right: 10px; bottom: 12px;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border-radius: 24px;
  background: #0f172a; color: #fff; box-shadow: 0 16px 40px rgba(15, 23, 42, .35);
  animation: yb-card-in .45s var(--ease-spring);
}
@keyframes yb-card-in { from { transform: translateY(30px); opacity: 0; } }
.yb-card.at-top { bottom: auto; top: 44px; animation-name: yb-card-in-top; }
@keyframes yb-card-in-top { from { transform: translateY(-30px); opacity: 0; } }
.yb-card-head { font-size: 13.5px; font-weight: 700; color: #99f6e4; }
.yb-card p { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 800; }
.yb-card.yb-caution .yb-card-head { color: #fcd34d; }
.yb-card.yb-stop { background: #450a0a; box-shadow: 0 0 0 2px #dc2626, 0 16px 40px rgba(127, 29, 29, .45); }
.yb-card.yb-stop .yb-card-head { color: #fecaca; }
.yb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.yb-tags span { padding: 2px 9px; border-radius: 999px; font-size: 12px; background: rgba(254, 202, 202, .14); color: #fecaca; }
.yb-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.yb-actions button { height: 52px; border-radius: 14px; background: #1e293b; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 17px; line-height: 1.1; }
.yb-actions button span { font-size: 12.5px; margin-top: 2px; }
.yb-actions button.quit { color: #fecaca; }
.yb-fill { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 14px; border-radius: 16px; background: #0f766e; color: #fff; text-align: left; }
.yb-fill small { color: #ccfbf1; font-size: 13px; }
.yb-fill b { font-size: 24px; letter-spacing: .04em; }
.yb-end, .yb-choices button { height: 48px; border-radius: 14px; background: #2dd4bf; color: #0f172a; font-size: 16px; font-weight: 800; }
.yb-choices { display: flex; flex-direction: column; gap: 8px; }
.yb-ring {
  position: absolute; border-radius: 16px; border: 3px solid #f97316;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, .22); animation: yb-pulse 1.4s ease-in-out infinite;
  transition: left .3s, top .3s, width .3s, height .3s;
}
.yb-ring.big { box-shadow: 0 0 0 14px rgba(249, 115, 22, .3); border-width: 4px; }
@keyframes yb-pulse { 50% { box-shadow: 0 0 0 11px rgba(249, 115, 22, .12); } }
.yb-hand { position: absolute; font-size: 30px; transform: translateX(-20%); animation: yb-tap 1.4s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
@keyframes yb-tap { 0%, 100% { transform: translate(-20%, 8px); } 45% { transform: translate(-20%, -4px) scale(.92); } }

/* 协助日志 */
.yb-log { width: 290px; height: min(560px, calc(100cqh - 30px)); display: flex; flex-direction: column; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .08), inset 0 0 0 1px #e2e8f0; }
.yb-log h4 { margin: 0 0 10px; font-size: 15px; display: flex; flex-direction: column; }
.yb-log h4 small { font-size: 12px; font-weight: 400; color: #475569; }
.yb-log ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.yb-log li { padding: 8px 10px; border-radius: 12px; background: #f8fafc; border-left: 3px solid #0f766e; animation: fade-in .3s; }
.yb-log li span { display: flex; justify-content: space-between; font-size: 12px; }
.yb-log li small { color: #94a3b8; }
.yb-log li p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: #334155; }
.yb-log li .yb-tags { margin-top: 6px; }
.yb-log li .yb-tags span { background: #fee2e2; color: #b91c1c; }
.yb-log-n b { color: #0f766e; }
.yb-log-c { border-left-color: #f59e0b !important; } .yb-log-c b { color: #b45309; }
.yb-log-s { border-left-color: #dc2626 !important; } .yb-log-s b { color: #dc2626; }
.yb-log-a { border-left-color: #2563eb !important; } .yb-log-a b { color: #2563eb; }
@container (max-width: 720px) { .yb-log { display: none; } }
