/* ============================================================
   css/onboarding.css — 开屏引导「一封请帖」（TASK-ONBOARD-CINEMA-001）
   ------------------------------------------------------------
   物件：请帖（不是弹窗）。配方：居中 + 双线内框 + 火漆 + 缎带 + 烫金 + 纸纹。
   只动 transform / opacity；颜色只用暖色；金色走四层渐变裁字；无外部字体。
   底图三张：img/onboarding/{open,paper,arch}.jpg（已压成 ~140-190KB），
   缺图时自动退回纯 CSS 纸纹，绝不留白块。
   ============================================================ */

#onboarding-overlay.ob-root {
    position: absolute; inset: 0; z-index: 5000;
    display: block; overflow: hidden;
    /* 中文用仓库里自带的思源宋体（fonts/noto 里那套子集，全站已在 index.html 引入）：
       原来落到系统 SimSun，笔画又硬又土；思源宋体骨架细、横竖对比好，才配得上"请帖"。
       英文花字单走一条拉丁衬线（Georgia 斜体），中西分开才不互相拖累。 */
    --ob-serif: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", STSong, SimSun, serif;
    --ob-kai: "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
    --ob-display: Georgia, "Times New Roman", "Noto Serif SC", serif;
    --ob-ink: #3E3129;
    --ob-ink-2: #6B5647;
    --ob-ink-3: #9A8577;
    --ob-paper: #FBF6EF;
    --ob-paper-2: #F4EAE0;
    --ob-rose: #B5827F;
    --ob-gold-1: #A8813F;
    --ob-gold-2: #D4AF6A;
    --ob-gold-3: #F6E3B4;
    --ob-gold-4: #FFF8E7;
    --ob-line: rgba(168, 129, 63, 0.34);
    --ob-line-soft: rgba(168, 129, 63, 0.16);
    --ob-shadow: rgba(140, 90, 60, 0.16);
    --ob-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ob-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --ob-ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--ob-paper);
    font-family: var(--ob-serif);
    color: var(--ob-ink);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overscroll-behavior: contain;
    text-align: center;
}

/* ---------- 底图：三张各占一整层，交叉淡入 ---------- */
.ob-art {
    position: absolute; inset: 0;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.52s var(--ob-ease-soft);
    will-change: opacity;
    pointer-events: none;
}
.ob-art-open { background-image: url("../img/onboarding/open.jpg"); }
.ob-art-paper { background-image: url("../img/onboarding/paper.jpg"); }
.ob-art-arch { background-image: url("../img/onboarding/arch.jpg"); }
.ob-root[data-scene="open"] .ob-art-open,
.ob-root[data-scene="paper"] .ob-art-paper,
.ob-root[data-scene="arch"] .ob-art-arch { opacity: 1; }

/* 读得清的一层暖纱：中间最透（留出画面），上下略厚 */
.ob-veil {
    position: absolute; inset: 0;
    background:
        radial-gradient(128% 60% at 50% 4%, rgba(255, 251, 244, 0.50) 0%, rgba(255, 248, 240, 0.66) 42%, rgba(250, 240, 228, 0.84) 100%),
        linear-gradient(180deg, rgba(255, 250, 243, 0.18) 0%, rgba(250, 241, 231, 0.30) 46%, rgba(246, 234, 220, 0.78) 100%);
    transition: opacity 0.5s var(--ob-ease-soft);
    pointer-events: none;
}
.ob-root[data-scene="open"] .ob-veil { opacity: 0.72; }
.ob-root[data-scene="arch"] .ob-veil { opacity: 0.93; }

/* ---------- 双线内框（请帖的边） ---------- */
.ob-frame {
    position: absolute;
    left: 11px; right: 11px;
    top: calc(11px + env(safe-area-inset-top, 0px));
    bottom: calc(11px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
    border: 1px solid var(--ob-line);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s var(--ob-ease-soft) 0.1s;
}
.ob-frame::before {
    content: ""; position: absolute; inset: 4px;
    border: 1px solid rgba(168, 129, 63, 0.14);
}
.ob-frame i {
    position: absolute; width: 7px; height: 7px;
    background: var(--ob-gold-2);
    transform: rotate(45deg);
    opacity: 0.85;
    box-shadow: 0 0 6px rgba(212, 175, 106, 0.5);
}
.ob-frame i:nth-child(1) { top: -4px; left: -4px; }
.ob-frame i:nth-child(2) { top: -4px; right: -4px; }
.ob-frame i:nth-child(3) { bottom: -4px; left: -4px; }
.ob-frame i:nth-child(4) { bottom: -4px; right: -4px; }
.ob-root.is-live .ob-frame { opacity: 1; }

/* ---------- 声音开关 ---------- */
.ob-mute {
    position: absolute; z-index: 6;
    top: calc(19px + env(safe-area-inset-top, 0px)); right: 20px;
    width: 34px; height: 34px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(168, 129, 63, 0.28);
    border-radius: 50%;
    background: rgba(255, 251, 245, 0.62);
    color: var(--ob-gold-1);
    cursor: pointer;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s var(--ob-ease-soft), transform 0.18s var(--ob-ease-soft);
    -webkit-backdrop-filter: none;
}
.ob-root.is-live .ob-mute { opacity: 1; pointer-events: auto; }
.ob-mute:active { transform: scale(0.92); }
.ob-mute svg { width: 17px; height: 17px; display: block; }
.ob-mute .ob-on { display: block; }
.ob-mute .ob-off { display: none; }
.ob-mute.is-muted .ob-on { display: none; }
.ob-mute.is-muted .ob-off { display: block; }

/* ---------- 舞台 / 五屏 ---------- */
.ob-stage { position: absolute; inset: 0; }
.ob-pane {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: stretch; justify-content: flex-start;
    padding: calc(58px + env(safe-area-inset-top, 0px)) 30px calc(58px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    /* visibility 用延迟过渡收尾：不依赖 transitionend，绝不会两屏叠着 */
    transition: opacity 0.30s var(--ob-ease-soft), transform 0.46s var(--ob-ease-out), visibility 0s linear 0.34s;
}
/* ★ 内容不满一屏时居中，内容超高时从顶部开始且顶部绝不被裁掉。
   不能直接写 justify-content:center —— 那样内容一超高，顶部会被推到可视区外且滚不回来（2026-11 实锤：第四屏的英文小字被切掉半行）。 */
.ob-pane > :first-child { margin-top: auto; }
.ob-pane > :last-child { margin-bottom: auto; }
/* ★ 弹性列里的子项默认允许压缩：内容一超高，按钮会被压扁（2026-11-13 实测：50px 的主按钮被压到 20px、
   缎带 48→19px，肉眼是一条细片，手指更难点）。这里一律不许压，超高就让这一屏自己滚。 */
.ob-pane > * { flex: 0 0 auto; }
/* 清单那两屏内容最长（7 条 + 开始 + 待会儿 + 缎带），上下留白收紧一点，
   这样 844 高的小屏也能「缎带不用滚就看得见」（2026-11 实测差 27px） */
.ob-pane[data-p="4"], .ob-pane[data-p="5"] {
    padding-top: calc(38px + env(safe-area-inset-top, 0px));
    /* 底部留一点余量（安全区之外再多 24px）：短屏上内容滚到底时不贴住信框 */
    padding-bottom: calc(24px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
}
.ob-pane.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.34s var(--ob-ease-soft) 0.06s, transform 0.52s var(--ob-ease-out) 0.06s, visibility 0s;
}
.ob-pane::after { content: ""; display: block; height: 6px; flex: 0 0 auto; }

/* ---------- 文字 ---------- */
.ob-en {
    font-family: var(--ob-display);
    font-style: italic;
    font-size: 11.5px; letter-spacing: 0.30em; text-transform: uppercase;
    color: rgba(168, 129, 63, 0.78);
    margin: 0 0 14px;
}
.ob-en-lines { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 15px; }
.ob-en-lines::before, .ob-en-lines::after {
    content: ""; width: 26px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 129, 63, 0.5));
}
.ob-en-lines::after { background: linear-gradient(90deg, rgba(168, 129, 63, 0.5), transparent); }
.ob-en-lines .ob-en { margin: 0; }

.ob-title {
    font-family: var(--ob-serif);
    font-size: clamp(24px, 6.9vw, 30px);
    line-height: 1.58;
    letter-spacing: 0.03em;
    font-weight: 400;
    font-synthesis: none;
    color: var(--ob-ink);
    margin: 0 0 14px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.ob-title-lg { font-size: clamp(28px, 8.4vw, 36px); line-height: 1.66; letter-spacing: 0.09em; }
.ob-title-gold {
    /* 甲方 2026-11-13：封面这行字不要渐变（金属渐变字看着像贴纸），改成一整块暖金色 */
    color: #9A7433;
    padding: 4px 0;
    text-shadow: none;
    filter: drop-shadow(0 1px 0 rgba(255, 252, 244, 0.7));
}
.ob-verse {
    font-family: var(--ob-serif);
    font-size: 14px;
    line-height: 2.1;
    letter-spacing: 0.045em;
    color: var(--ob-ink-2);
    margin: 0 auto;
    max-width: 20em;
}
.ob-hint {
    font-size: 12px; line-height: 1.7; letter-spacing: 0.08em;
    color: var(--ob-ink-3); margin: 12px 0 0;
}
.ob-warn { font-size: 12.5px; line-height: 1.7; color: #A85E52; margin: 10px 0 0; min-height: 1px; }
.ob-warn:empty { display: none; }

/* ---------- 火漆印（拆封那颗） ---------- */
.ob-seal-btn {
    position: relative;
    width: 104px; height: 104px; margin: 22px auto 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; background: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ob-seal-btn::after {           /* 外圈呼吸（全页唯一常驻循环） */
    content: ""; position: absolute; inset: 2px;
    border-radius: 50%;
    border: 1px solid rgba(168, 129, 63, 0.45);
    animation: obSealPulse 3.8s var(--ob-ease-soft) infinite;
    pointer-events: none;
}
.ob-seal {
    position: relative;
    width: 70px; height: 70px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    /* 甲方 2026-11-13：封蜡也不要渐变，一整块实色蜡，靠一圈内描边和投影立住 */
    background: #B07A63;
    box-shadow:
        inset 0 0 0 1px rgba(255, 240, 226, 0.26),
        0 8px 20px rgba(140, 90, 60, 0.28);
    transition: transform 0.24s var(--ob-ease-back), box-shadow 0.24s var(--ob-ease-soft);
}
.ob-seal::before {
    content: ""; position: absolute; width: 50px; height: 50px;
    border-radius: 50%; border: 1px solid rgba(255, 240, 226, 0.42);
}
.ob-seal::after {               /* 印面：一枚小菱形，不放任何文字 */
    content: ""; position: absolute;
    width: 14px; height: 14px;
    border: 1.4px solid rgba(255, 243, 230, 0.70);
    border-radius: 2px;
    transform: rotate(45deg);
}
.ob-seal-btn:active .ob-seal { transform: scale(0.96); box-shadow: inset 0 0 0 1px rgba(255, 240, 226, 0.4), 0 3px 10px rgba(140, 90, 60, 0.22); }
.ob-seal-btn.is-pressed .ob-seal { animation: obSealBreak 0.52s var(--ob-ease-out) forwards; }
.ob-seal-btn.is-pressed::after { animation: none; opacity: 0; transition: opacity 0.2s; }

/* ---------- 输入：信纸上的一条线 ---------- */
.ob-field { position: relative; margin: 26px auto 0; max-width: 288px; }
.ob-field i {
    position: absolute; bottom: 0; width: 4px; height: 4px;
    border-radius: 50%; background: var(--ob-gold-2);
    opacity: 0; transform: translateY(1px);
    transition: opacity 0.28s var(--ob-ease-soft);
}
.ob-field i:first-of-type { left: -1px; }
.ob-field i:last-of-type { right: -1px; }
.ob-field.is-focus i { opacity: 1; }
.ob-input {
    display: block; width: 100%; box-sizing: border-box;
    padding: 9px 2px 10px;
    border: 0; border-bottom: 1px solid var(--ob-line);
    background: transparent;
    font-family: var(--ob-serif);
    font-size: 20px; line-height: 1.4;
    letter-spacing: 0.06em;
    color: var(--ob-ink);
    text-align: center;
    border-radius: 0;
    -webkit-appearance: none; appearance: none;
    transition: border-color 0.28s var(--ob-ease-soft);
}
.ob-input:focus { outline: none; border-bottom-color: var(--ob-gold-2); }
.ob-input::placeholder { font-size: 15px; letter-spacing: 0.1em; color: rgba(154, 133, 119, 0.52); }
.ob-input::-webkit-input-placeholder { font-size: 15px; letter-spacing: 0.1em; color: rgba(154, 133, 119, 0.52); }
.ob-field-sm .ob-input { font-size: 16px; }

/* ---------- 头像（可跳过的那一屏） ---------- */
.ob-avatar-wrap { display: flex; flex-direction: column; align-items: center; margin: 6px 0 0; }
.ob-avatar {
    position: relative;
    width: 116px; height: 116px; border-radius: 50%;
    padding: 0; border: 0; cursor: pointer;
    background: linear-gradient(160deg, #FFFDF9 0%, #F6EDE3 100%);
    box-shadow:
        0 0 0 1px rgba(168, 129, 63, 0.44),
        0 0 0 8px rgba(255, 253, 248, 0.72),
        0 0 0 9px rgba(168, 129, 63, 0.16),
        0 10px 26px rgba(140, 90, 60, 0.14);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.24s var(--ob-ease-back);
}
.ob-avatar:active { transform: scale(0.97); }
.ob-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ob-avatar-plus { position: relative; width: 26px; height: 26px; display: block; }
.ob-avatar-plus::before, .ob-avatar-plus::after {
    content: ""; position: absolute; background: rgba(168, 129, 63, 0.55); border-radius: 1px;
}
.ob-avatar-plus::before { left: 50%; top: 0; width: 1px; height: 26px; margin-left: -0.5px; }
.ob-avatar-plus::after { top: 50%; left: 0; height: 1px; width: 26px; margin-top: -0.5px; }
.ob-avatar-tip { margin-top: 16px; font-size: 12px; letter-spacing: 0.14em; color: var(--ob-ink-3); }
.ob-avatar-wrap.is-filled .ob-avatar-tip { color: rgba(168, 129, 63, 0.9); }

/* ---------- 按钮 ---------- */
.ob-next {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 288px; height: 52px;
    margin: 28px auto 0; padding: 0 18px;
    border: 0;
    border-radius: 2px;
    /* 一张象牙卡纸：不用渐变（渐变一铺就"塑料按钮"，甲方 2026-11-13：「渐变按钮很粗糙」），
       高级感全靠两道金线和一线高光，宽度用 letter-spacing 撑开留白 */
    background: #FFFCF6;
    color: #5A4227;
    font-family: var(--ob-serif);
    font-size: 14px; letter-spacing: 0.34em; text-indent: 0.34em;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(168, 129, 63, 0.55),
        0 0 0 4px rgba(255, 253, 248, 0.5),
        0 0 0 5px rgba(168, 129, 63, 0.20),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 -1px 0 rgba(168, 129, 63, 0.10) inset,
        0 8px 18px rgba(140, 90, 60, 0.09);
    transition: transform 0.18s var(--ob-ease-soft), box-shadow 0.24s var(--ob-ease-soft), opacity 0.24s, background 0.24s;
}
/* 内侧第二道细线（离边 4px），像请帖上压出来的一圈暗纹 */
.ob-next::before {
    content: ""; position: absolute; inset: 4px;
    border: 1px solid rgba(168, 129, 63, 0.16);
    pointer-events: none;
}
.ob-next:active {
    transform: scale(0.985);
    background: #FDF7EC;
    box-shadow:
        0 0 0 1px rgba(168, 129, 63, 0.62),
        0 0 0 4px rgba(255, 253, 248, 0.5),
        0 0 0 5px rgba(168, 129, 63, 0.24),
        0 3px 10px rgba(140, 90, 60, 0.12);
}
.ob-next[disabled] { opacity: 0.5; pointer-events: none; }
.ob-next::after {
    content: ""; width: 6px; height: 6px; margin-left: 10px;
    border-top: 1px solid rgba(106, 79, 51, 0.6);
    border-right: 1px solid rgba(106, 79, 51, 0.6);
    transform: rotate(45deg);
    display: none;
}
.ob-next.ob-next-arrow::after { display: block; }
.ob-skip {
    display: block; margin: 20px auto 0; padding: 12px 14px;
    border: 0; background: none;
    font-family: var(--ob-serif);
    font-size: 13px; letter-spacing: 0.16em;
    color: var(--ob-ink-3);
    text-decoration: underline; text-decoration-color: rgba(154, 133, 119, 0.42);
    text-underline-offset: 5px;
    cursor: pointer;
}
.ob-skip:active { color: var(--ob-ink-2); }

/* 缎带（「我有自己的站」—— 只在最下面，有邀请感） */
.ob-ribbon {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; max-width: 300px; height: 48px;
    margin: 22px auto 0; padding: 0 30px;
    border: 0; cursor: pointer;
    /* 绸带不是金箔：浅金三色硬切＝塑料贴纸。改成深一档的丝绒金 + 象牙字，
       上下各一线明暗压出织物厚度；停靠点密一点，过渡才不是硬台阶 */
    background: linear-gradient(177deg, #BC9455 0%, #B48B4B 22%, #A97F3F 52%, #9E7538 78%, #966E33 100%);
    box-shadow:
        0 1px 0 rgba(255, 249, 235, 0.5) inset,
        0 -1px 0 rgba(88, 58, 28, 0.28) inset;
    clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 50%, 100% 100%, 0 100%, 15px 50%);
    color: #FFF8EA;
    font-family: var(--ob-serif);
    font-size: 13px; letter-spacing: 0.3em; text-indent: 0.3em;
    filter: drop-shadow(0 6px 14px rgba(140, 90, 60, 0.22));
    transition: transform 0.18s var(--ob-ease-soft), filter 0.24s, background 0.24s;
}
.ob-ribbon:active { transform: scale(0.985); background: linear-gradient(177deg, #B0894C 0%, #A87F41 30%, #9C7336 70%, #90692F 100%); filter: drop-shadow(0 3px 8px rgba(140, 90, 60, 0.24)); }
.ob-ribbon .ob-rib-dot {
    width: 4px; height: 4px; transform: rotate(45deg);
    background: rgba(255, 246, 230, 0.6);
}

/* ---------- 性情 / 线路清单 ---------- */
.ob-list { margin: 14px 0 0; text-align: left; }
/* 清单两屏（4/5）行距收紧：7 行 + 开始 + 待会儿 + 缎带要在一屏里站得住，
   同时又不能靠压扁按钮来凑（.ob-pane > * 已禁压缩）。
   第 4 屏最挤：底下还有四颗进度菱（绝对定位在底部 20px），缎带必须整条落在它上面，
   所以第 4 屏再收一档（行高仍 ≥58px，手指点得准）。 */
.ob-pane[data-p="4"] .ob-list, .ob-pane[data-p="5"] .ob-list { margin-top: 8px; }
.ob-pane[data-p="4"] .ob-fam, .ob-pane[data-p="5"] .ob-fam { padding: 9px 4px; }
.ob-pane[data-p="4"] .ob-next, .ob-pane[data-p="5"] .ob-next { margin-top: 18px; }
.ob-pane[data-p="4"] .ob-skip, .ob-pane[data-p="5"] .ob-skip { margin-top: 12px; }
.ob-pane[data-p="4"] .ob-ribbon { margin-top: 14px; }
.ob-pane[data-p="4"] .ob-list { margin-top: 6px; }
.ob-pane[data-p="4"] .ob-fam { padding: 7px 4px; }
.ob-pane[data-p="4"] .ob-next { margin-top: 14px; }
.ob-pane[data-p="4"] .ob-skip { margin-top: 10px; }
.ob-fam {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 12px 4px;
    border: 0; border-bottom: 1px solid var(--ob-line-soft);
    background: none; cursor: pointer;
    text-align: left;
    position: relative;
    transition: background 0.2s var(--ob-ease-soft);
    -webkit-tap-highlight-color: transparent;
}
.ob-fam:first-child { border-top: 1px solid var(--ob-line-soft); }
.ob-fam:active { background: rgba(216, 178, 120, 0.10); }
.ob-fam.is-on {
    background: linear-gradient(90deg, rgba(216, 178, 120, 0.16), rgba(216, 178, 120, 0.02) 72%);
    box-shadow: inset 2px 0 0 var(--ob-gold-2);
}
.ob-fam-body { min-width: 0; flex: 1 1 auto; }
.ob-fam-name {
    display: block;
    font-family: var(--ob-serif);
    font-size: 16.5px; line-height: 1.35; letter-spacing: 0.04em;
    color: var(--ob-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ob-fam-desc {
    display: block; margin-top: 4px;
    font-size: 12px; line-height: 1.6; letter-spacing: 0.02em;
    color: var(--ob-ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ob-fam-tail {
    flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
    font-size: 11px; letter-spacing: 0.1em; color: rgba(168, 129, 63, 0.92);
}
.ob-fam-tail .ob-mark {
    width: 6px; height: 6px; transform: rotate(45deg);
    background: transparent;
    border: 1px solid rgba(168, 129, 63, 0.5);
    transition: background 0.2s var(--ob-ease-soft);
}
.ob-fam.is-on .ob-mark { background: var(--ob-gold-2); border-color: var(--ob-gold-2); }
.ob-fam.is-busy .ob-fam-name { color: rgba(62, 49, 41, 0.55); }
.ob-fam.is-busy .ob-fam-tail { color: rgba(168, 94, 82, 0.85); }
.ob-load { padding: 18px 2px; font-size: 13px; letter-spacing: 0.1em; color: var(--ob-ink-3); }

/* ---------- 底部四颗菱（进度） ---------- */
.ob-dots {
    position: absolute; z-index: 5;
    left: 0; right: 0; bottom: calc(20px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
    display: flex; align-items: center; justify-content: center; gap: 10px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s var(--ob-ease-soft);
}
.ob-root.show-dots .ob-dots { opacity: 1; }
.ob-dots i {
    width: 5px; height: 5px; transform: rotate(45deg);
    background: transparent;
    border: 1px solid rgba(168, 129, 63, 0.42);
    transition: background 0.3s var(--ob-ease-soft), border-color 0.3s, transform 0.3s var(--ob-ease-back);
}
.ob-dots i.on { background: var(--ob-gold-2); border-color: var(--ob-gold-2); transform: rotate(45deg) scale(1.25); }

/* ---------- 入场（一次性：类挂上 → animationend 由 JS 摘掉） ---------- */
.ob-rise { animation: obRise 0.62s var(--ob-ease-out) both; }
.ob-rise-2 { animation-delay: 0.08s; }
.ob-rise-3 { animation-delay: 0.16s; }
.ob-rise-4 { animation-delay: 0.24s; }

/* ---------- 暗色（暖墨，不用冷灰） ---------- */
[data-theme-mode="dark"] #onboarding-overlay.ob-root {
    --ob-ink: #F0E6D9;
    --ob-ink-2: #CDBEAE;
    --ob-ink-3: #9C8B7C;
    --ob-paper: #241C18;
    --ob-paper-2: #2E241F;
    --ob-line: rgba(212, 175, 106, 0.34);
    --ob-line-soft: rgba(212, 175, 106, 0.16);
    background: var(--ob-paper);
}
[data-theme-mode="dark"] #onboarding-overlay .ob-veil {
    background:
        radial-gradient(128% 60% at 50% 4%, rgba(38, 30, 25, 0.72) 0%, rgba(34, 27, 23, 0.82) 44%, rgba(30, 24, 20, 0.93) 100%),
        linear-gradient(180deg, rgba(34, 27, 23, 0.72) 0%, rgba(30, 24, 20, 0.86) 100%);
}
[data-theme-mode="dark"] #onboarding-overlay .ob-art { opacity: 0; filter: brightness(0.42) saturate(0.85); }
[data-theme-mode="dark"] #onboarding-overlay[data-scene="open"] .ob-art-open,
[data-theme-mode="dark"] #onboarding-overlay[data-scene="paper"] .ob-art-paper,
[data-theme-mode="dark"] #onboarding-overlay[data-scene="arch"] .ob-art-arch { opacity: 0.5; }
[data-theme-mode="dark"] #onboarding-overlay .ob-title { text-shadow: none; }
[data-theme-mode="dark"] #onboarding-overlay .ob-input { color: var(--ob-ink); }
[data-theme-mode="dark"] #onboarding-overlay .ob-next {
    /* 暗色下同一套语言：暗纸 + 金细线，不铺渐变 */
    background: #33271F;
    color: #EBD6AE;
    box-shadow:
        0 0 0 1px rgba(212, 175, 106, 0.5),
        0 0 0 4px rgba(30, 24, 20, 0.55),
        0 0 0 5px rgba(212, 175, 106, 0.18),
        0 1px 0 rgba(255, 246, 228, 0.10) inset,
        0 8px 18px rgba(0, 0, 0, 0.3);
}
[data-theme-mode="dark"] #onboarding-overlay .ob-next::before { border-color: rgba(212, 175, 106, 0.18); }
[data-theme-mode="dark"] #onboarding-overlay .ob-next:active { background: #3B2D24; }
[data-theme-mode="dark"] #onboarding-overlay .ob-ribbon {
    /* 暗底上不能再用亮金条（像贴纸）：压成深丝绒金，字换象牙 */
    background: linear-gradient(177deg, #8E6C39 0%, #866432 24%, #7B5B2C 54%, #715328 80%, #684C24 100%);
    color: #FFF6E6;
    box-shadow:
        0 1px 0 rgba(255, 249, 235, 0.24) inset,
        0 -1px 0 rgba(40, 26, 12, 0.4) inset;
}
[data-theme-mode="dark"] #onboarding-overlay .ob-ribbon:active { background: linear-gradient(177deg, #826334 0%, #7A5A2D 30%, #6E5127 70%, #634822 100%); }
[data-theme-mode="dark"] #onboarding-overlay .ob-ribbon .ob-rib-dot { background: rgba(255, 246, 230, 0.45); }
[data-theme-mode="dark"] #onboarding-overlay .ob-mute {
    background: rgba(46, 36, 30, 0.72);
    border-color: rgba(212, 175, 106, 0.34);
    color: var(--ob-gold-2);
}
[data-theme-mode="dark"] #onboarding-overlay .ob-avatar {
    background: linear-gradient(160deg, #3A2E27 0%, #2C221D 100%);
    box-shadow: 0 0 0 1px rgba(212, 175, 106, 0.42), 0 0 0 8px rgba(30, 24, 20, 0.8), 0 0 0 9px rgba(212, 175, 106, 0.16), 0 10px 26px rgba(0, 0, 0, 0.35);
}
[data-theme-mode="dark"] #onboarding-overlay .ob-seal { filter: brightness(0.92); }
[data-theme-mode="dark"] #onboarding-overlay .ob-title-gold { color: #D9B871; filter: none; }

/* ---------- 窄屏（<370）与矮屏 ---------- */
@media (max-height: 680px) {
    .ob-pane { padding-top: calc(40px + env(safe-area-inset-top, 0px)); padding-bottom: calc(44px + var(--safe-bottom, env(safe-area-inset-bottom, 0px))); }
    .ob-title { font-size: clamp(21px, 6.2vw, 25px); margin-bottom: 10px; }
    .ob-title-lg { font-size: clamp(24px, 7.4vw, 30px); }
    .ob-verse { font-size: 13.5px; line-height: 1.9; }
    .ob-avatar { width: 96px; height: 96px; }
    .ob-avatar-wrap { margin-top: 2px; }
    .ob-field { margin-top: 20px; }
    .ob-next { margin-top: 22px; height: 46px; }
    .ob-seal-btn { margin-top: 14px; width: 92px; height: 92px; }
    .ob-seal { width: 62px; height: 62px; }
    .ob-fam { padding: 11px 4px; }
}
@media (max-width: 369px) {
    .ob-pane { padding-left: 22px; padding-right: 22px; }
    .ob-verse { font-size: 13.5px; }
    .ob-avatar { width: 104px; height: 104px; }
    .ob-fam-name { font-size: 15.5px; }
}

/* ---------- 关键帧 ---------- */
@keyframes obRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
@keyframes obSealPulse {
    0% { transform: scale(0.92); opacity: 0.0; }
    22% { opacity: 0.85; }
    100% { transform: scale(1.16); opacity: 0; }
}
@keyframes obSealBreak {
    0% { transform: scale(1); }
    28% { transform: scale(0.9); }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes obShake {
    0%, 100% { transform: translateX(0); }
    16% { transform: translateX(-5px); }
    34% { transform: translateX(4px); }
    52% { transform: translateX(-3px); }
    72% { transform: translateX(2px); }
    88% { transform: translateX(-1px); }
}

/* ---------- 尊重系统「减弱动态效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
    .ob-pane, .ob-pane.is-on { transition: opacity 0.12s linear, visibility 0s; transform: none; }
    .ob-art, .ob-veil, .ob-frame, .ob-mute, .ob-dots i { transition-duration: 0.12s; }
    .ob-rise, .ob-rise-2, .ob-rise-3, .ob-rise-4 { animation: none; }
    .ob-seal-btn::after { animation: none; opacity: 0; }
}
