/* ===== 登录动画 + 演示动画（工单 Lane D；只由这一段改；颜色、圆角用 theme.css 里已有的变量） ===== */

/* —— 一、登录页：演示账号“打字进入”（约 1.5 秒，可跳过）。两个框是只读的普通文本框，密码框也只显示 8 个圆点 —— */
.home-card .switch-demo { width: min(100%, 360px); margin-top: 24px; text-align: left; }
.switch-fields { display: grid; gap: 12px; }
.switch-field { display: grid; gap: 4px; }
.switch-field > span { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.switch-field input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: rgba(255, 255, 255, .78); color: var(--ink); font: 500 16px/1.4 var(--font); caret-color: transparent; cursor: default; transition: border-color .15s ease, box-shadow .15s ease; }
.switch-field input:focus { outline: 0; }
.switch-field.is-active input { border-color: var(--carbon); box-shadow: 0 0 0 3px rgba(26, 93, 176, .14); }
.switch-field input[data-switch-pass] { letter-spacing: 4px; }
.home-card .switch-demo .switch-banner { justify-content: flex-start; margin: 16px 0 0; }
.home-card .switch-demo .switch-banner > div:nth-child(2) { flex: 1; min-width: 0; }
.home-card .switch-demo .switch-banner strong { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .switch-field input { transition: none; } }

/* —— 二、演示动画：覆盖在页面最上面（不动页面本身），左边“模拟微信”，右边订单工作台，下面一条控制条 —— */
#toast-root { z-index: 2100; }
.tour, .tour * { box-sizing: border-box; }
.tour [hidden] { display: none !important; }
.tour { position: fixed; inset: 0; z-index: 2000; color: var(--ink); font-family: var(--font); outline: 0; -webkit-text-size-adjust: 100%; }
.tour-shield { position: absolute; inset: 0; z-index: 0; background: rgba(24, 28, 34, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tour[data-mode="spot"] .tour-shield { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tour-surface { position: absolute; inset: 0 0 68px 0; z-index: 1; display: flex; flex-direction: column; min-height: 0; }

/* 顶条：演示动画 / 哪一格 / 第几步 */
.tour-top { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 52px; padding: 8px 16px; color: #fff; }
.tour-badge { flex: none; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.tour-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tour-title strong { min-width: 0; overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tour-no { flex: none; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 700; }
.tour-of { flex: none; color: rgba(255, 255, 255, .7); font-size: 12px; }
.tour-stepinfo { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
.tour-step-text { min-width: 0; overflow: hidden; color: rgba(255, 255, 255, .92); text-overflow: ellipsis; white-space: nowrap; }
.tour-dots { flex: none; display: inline-flex; gap: 4px; }
.tour-dots i { width: 18px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .28); transition: background .3s ease; }
.tour-dots i.done { background: #fff; }
.tour-dots i.now { background: #7db8ff; }
.tour[data-mode="spot"] .tour-top { align-self: center; flex-wrap: nowrap; min-height: 0; max-width: calc(100% - 24px); margin-top: 10px; padding: 7px 16px; border-radius: 999px; background: var(--ink); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.tour[data-mode="spot"] .tour-step-text { display: none; }
.tour[data-mode="spot"] .tour-stepinfo { margin-left: 4px; flex-basis: auto; }

/* 舞台：左边微信，右边订单工作台 */
.tour-stage { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: clamp(300px, 28vw, 380px) minmax(0, 1fr); gap: 16px; padding: 0 16px 8px; }
.tour-win { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 22px 60px -16px rgba(11, 24, 38, .6); }
.win-head { flex: none; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.tour-app { container-type: inline-size; container-name: tourapp; }
.app-head { background: #fff; font-size: 14px; }
/* 标识用现行的 BSL 小鸟标（web/img/brand-mark.svg，由 app.js 的 BRAND_MARK_SVG 导出，宽高比 1.96），和侧栏同一个 */
.tour-mark { flex: none; display: block; width: auto; height: 24px; aspect-ratio: 402.4 / 205.4; }
.app-body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--ground, #edf1f5); }

/* 模拟微信 */
.wx-head { justify-content: space-between; border-bottom-color: #dcdcdc; background: #f7f7f7; }
.wx-title { min-width: 0; display: grid; line-height: 1.25; }
.wx-title strong { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wx-title small { overflow: hidden; color: #8a8a8a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wx-tag { flex: none; padding: 3px 9px; border-radius: 999px; background: #07c160; color: #fff; font-size: 12px; font-weight: 700; }
.wx-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px 12px; overflow-y: auto; background: #ededed; overscroll-behavior: contain; }
.wx-input { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid #d9d9d9; background: #f7f7f7; }
.wx-field { flex: 1 1 auto; min-width: 0; min-height: 36px; display: flex; align-items: center; padding: 6px 10px; overflow: hidden; border-radius: 6px; background: #fff; color: #9a9a9a; font-size: 14px; white-space: nowrap; }
.wx-field i { font-style: normal; }
.wx-field .pasted { min-width: 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; }
.wx-send { flex: none; padding: 7px 14px; border-radius: 6px; background: #07c160; color: #fff; font-size: 14px; font-weight: 600; transition: transform .15s ease; }
.wx-msg { display: flex; align-items: flex-start; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .28s ease, transform .28s ease; }
.wx-msg.on { opacity: 1; transform: none; }
.wx-msg.out { justify-content: flex-end; }
.wx-av { flex: none; }
.wx-av .cav { width: 36px; height: 36px; border-radius: 6px; font-size: 15px; }
.cav.me { background: var(--carbon); color: #fff; }
.wx-col { min-width: 0; max-width: calc(100% - 50px); display: grid; gap: 3px; }
.wx-msg.out .wx-col { justify-items: end; }
.wx-name { color: #8a8a8a; font-size: 12px; }
.wx-msg time { color: #a3a3a3; font-size: 11px; }
.wx-bub { position: relative; padding: 9px 12px; border-radius: 8px; background: #fff; color: #111; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; transition: box-shadow .2s ease, background .2s ease; }
.wx-bub::before { content: ""; position: absolute; top: 12px; left: -5px; border: 5px solid transparent; border-left-width: 0; border-right-color: #fff; }
.wx-msg.out .wx-bub { background: #95ec69; }
.wx-msg.out .wx-bub::before { left: auto; right: -5px; border-right-width: 0; border-left-width: 5px; border-right-color: transparent; border-left-color: #95ec69; }
.wx-bub.sel, .wx-file.sel { background: #cfe3ff; box-shadow: 0 0 0 2px #2b78d4; }
.wx-bub.sel::before { border-right-color: #cfe3ff; }
.wx-typing .wx-bub { display: flex; align-items: center; gap: 4px; padding: 13px 14px; }
.wx-typing .wx-bub i { width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; animation: tour-dot 1s ease-in-out infinite; }
.wx-typing .wx-bub i:nth-child(2) { animation-delay: .15s; }
.wx-typing .wx-bub i:nth-child(3) { animation-delay: .3s; }
.wx-file { width: min(260px, 100%); display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #fff; transition: box-shadow .2s ease, background .2s ease; }
.wx-msg.out .wx-file { background: #95ec69; }
.wx-file-ic { flex: none; width: 38px; height: 46px; display: grid; place-items: center; border-radius: 6px; background: #4a86d9; color: #fff; font-size: 16px; font-weight: 700; }
.wx-file-main { min-width: 0; display: grid; gap: 2px; font-size: 13px; line-height: 1.4; }
.wx-file-main b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.wx-file-main span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wx-file-main small { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #7f7f7f; font-size: 12px; }
.wx-read { display: flex; align-items: center; gap: 4px; color: #8a8a8a; font-size: 11px; }
.wx-read .tick { color: #07c160; font-weight: 700; }

/* 「新消息」框：画得和真的一样（客户发来新消息 → 客户消息 → 开始处理） */
.tour-modalwrap { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; overflow: auto; background: rgba(28, 32, 38, .32); transition: opacity .3s ease; }
.tour-modalwrap.out { opacity: 0; pointer-events: none; }
.tour-modal { width: min(560px, 100%); max-height: 100%; }
.tour-modal .modal-body { padding: 18px 20px; }
.tour-modal .form-row { margin-bottom: 10px; }
.tour-fake { position: relative; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; color: var(--ink); font-size: 14px; line-height: 1.5; }
.tour-fake.select { padding-right: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-fake.select::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.tour-fake.area { min-height: 118px; white-space: pre-wrap; overflow-wrap: anywhere; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.tour-fake .drop-ph { color: var(--ink-3); }
.tour-fake.filled .drop-ph { display: none; }
.tour-fake .drop-text { display: block; color: var(--ink); }
.tour-fake .drop-hint { position: absolute; inset: 0; display: none; place-items: center; color: var(--carbon); font-weight: 700; }
.tour-fake.area.hover { border: 1px dashed var(--carbon); background: var(--carbon-wash); box-shadow: 0 0 0 3px rgba(26, 93, 176, .18); }
.tour-fake.area.hover .drop-ph, .tour-fake.area.hover .drop-text { opacity: .2; }
.tour-fake.area.hover .drop-hint { display: grid; }
.tour-attach { margin-top: 2px; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.tour-modal .source-tools { justify-content: flex-start; margin: 4px 0 0; }
.tour-modal .source-tools .btn.primary { margin-left: auto; }
.tour-press { transform: scale(.95); }
.tour-modal .btn, .tour-page .btn { transition: transform .15s ease; }

/* 工作台页：直接用真页面的样式（外面套 main.content.view-workbench），这里只管尺寸和“出场” */
.tour-page.content { flex: 1 1 auto; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 12px 14px 24px; overflow-y: auto; overflow-x: hidden; opacity: 0; transition: opacity .3s ease; }
.tour-page.on { opacity: 1; }
.tour-app .tour-page .wb-grid { grid-template-columns: minmax(0, 1fr); }
.tour-app .tour-page .wb-side { order: -1; }
.tour-app .tour-page .options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tour-app .tour-page .wb-main .action-card { padding: 14px; }
.tour-in { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.tour-in.on { opacity: 1; transform: none; }
.tour-kv { display: grid; gap: 8px; margin: 2px 0 0; font-size: 13px; }
.tour-kv .kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.tour-kv .kv dt { min-width: 0; }
.tour-kv .kv dd .anchor { margin-left: 4px; }
.tour-page .fields-card .review-list { margin-top: 10px; }
.tour-page .frow { transition: opacity .35s ease, transform .35s ease, box-shadow .25s ease; }
.tour-page .frow.target, .tour-page .inferred-field-detail.target { box-shadow: 0 0 0 2px var(--carbon); border-radius: 10px; animation: tour-pulse 1.1s ease-in-out infinite; }
.tour-page .inferred-field-detail { padding: 8px 10px; }
.tour-page .inferred-field-detail .inferred-field-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tour-page .inferred-field-detail .inferred-field-value { flex: 1 1 110px; min-width: 0; }
.tour-page .inferred-field-detail + .inferred-field-detail { margin-top: 6px; border-top: 1px solid #dfe9f4; padding-top: 10px; }
.tour-basis { margin-top: 4px; color: #4f5c6d; font-size: 12px; line-height: 1.5; }
.tour-basis b { color: var(--carbon); font-weight: 700; }
.tour-page .frow-actions { margin-top: 8px; display: flex; gap: 8px; }
.tour-page .frow-actions .btn[disabled] { opacity: .7; }
.tour-page .cell.editing { border-color: var(--carbon); box-shadow: 0 0 0 3px rgba(26, 93, 176, .18); background: #fff; }
.tour-page .state.ok { color: #1f7a45; background: #e4f4ea; }
.tour-page .source-line { padding: 3px 5px; border-radius: 6px; font-size: 13px; line-height: 1.5; transition: background .25s ease, box-shadow .25s ease; }
.tour-page .source-line.flash { background: #fff3d1; box-shadow: inset 3px 0 0 #e8890c; }
.tour-page .stage-card.leave { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
.tour-page .stage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tour-page .stage-list { display: grid; gap: 9px; margin-top: 10px; }
.tour-page .source-first { max-height: none; overflow: visible; }
.tour-page .tag.green { background: #e4f4ea; color: #1f7a45; }
.tour-preview { max-height: 156px; margin-top: 10px; padding: 10px 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
.tour-page .tour-mini .task-text, .tour-page .task-card .task-text { margin-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.tour-page .basis-group { padding: 12px 14px; }
.tour-page .basis-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tour-page .basis-row { padding: 5px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.tour-page .btn.copied { color: #1f7a45; border-color: #9dd5b3; background: #e4f4ea; }
/* 作业里还有拦着的项：演“保存草稿 → 交老板/工程师确认”，卡片里落这一条（不是“已发送”） */
.tour-page .tour-hold { display: grid; gap: 2px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #fff3d1; color: #6b4300; font-size: 13px; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.tour-page .tour-hold b { font-size: 14px; }
.tour-page .tour-hold.on { opacity: 1; transform: none; }

/* 光标、拖动的“影子”、等待提示 */
.tour-cursor { position: fixed; left: 0; top: 0; z-index: 6; width: 26px; height: 26px; margin: -3px 0 0 -4px; pointer-events: none; will-change: transform; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.tour-cursor svg { display: block; transform-origin: 4px 3px; }
.tour-cursor .ripple { position: absolute; left: 4px; top: 3px; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(56, 132, 255, .38); opacity: 0; transform: scale(0); }
.tour-cursor.is-click .ripple { animation: tour-ripple .5s ease-out; }
.tour-cursor.is-click svg { animation: tour-tap .26s ease; }
.tour-ghost { position: fixed; left: 0; top: 0; z-index: 5; width: max-content; max-width: 250px; padding: 8px 12px; overflow: hidden; border: 1px solid var(--carbon); border-radius: 8px; background: #fff; box-shadow: 0 12px 26px -8px rgba(11, 24, 38, .5); color: var(--ink); font-size: 13px; line-height: 1.45; pointer-events: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; will-change: transform; }
.tour-wait { position: fixed; left: 50%; top: 50%; z-index: 7; display: flex; align-items: center; gap: 10px; padding: 12px 18px; transform: translate(-50%, -50%); border-radius: 12px; background: #fff; box-shadow: 0 18px 50px -12px rgba(11, 24, 38, .5); font-size: 14px; }
.mini-spinner { width: 16px; height: 16px; border: 2px solid #c9d9ec; border-top-color: var(--carbon); border-radius: 50%; animation: spin .8s linear infinite; }

/* 开场卡 / 收尾卡 */
.tour-intro { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; background: rgba(28, 32, 38, .3); opacity: 0; transition: opacity .3s ease; }
.tour-intro.on { opacity: 1; }
.tour[data-mode="spot"] .tour-intro { background: rgba(20, 24, 30, .66); }
.tour-end { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px 16px 76px; background: rgba(20, 24, 30, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: tour-fade .3s ease; }
.intro-card, .end-card { width: min(480px, 100%); padding: 26px 28px 22px; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(11, 24, 38, .45); text-align: center; }
.end-no { display: inline-grid; place-items: center; min-width: 44px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--carbon-wash); color: var(--carbon); font: 700 14px/1 var(--font); }
.intro-card h2, .end-card h2 { margin: 12px 0 8px; font-size: 26px; font-weight: 600; line-height: 1.3; }
.intro-card p, .end-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.end-card .end-honest { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--carbon-wash); color: var(--carbon); font-size: 14px; }
.end-card .end-sim { margin-top: 8px; }
.end-next { margin-top: 12px; color: var(--ink-3); font-size: 13px; }
.end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* 页面类格子的“圈出来”：圈外暗掉、圈内是真页面；说明卡跟着圈走 */
.tour-spot { position: fixed; z-index: 2; border-radius: 12px; pointer-events: none; opacity: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 9999px rgba(20, 24, 30, .64); }
.tour-spot.on { opacity: 1; transition: left .4s ease, top .4s ease, width .4s ease, height .4s ease, opacity .3s ease; }
.tour-note { position: fixed; z-index: 3; padding: 12px 16px; border-left: 4px solid var(--carbon); border-radius: 12px; background: #fff; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.55; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.tour-note.on { opacity: 1; }

/* 控制条 */
.tour-bar { position: fixed; left: 50%; bottom: 12px; z-index: 8; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: calc(100% - 16px); padding: 8px 10px; transform: translateX(-50%); border-radius: 26px; background: #fff; box-shadow: 0 12px 34px -8px rgba(0, 0, 0, .55); }
.tour-ctl { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.tour-lines { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 12px; font-size: 12px; line-height: 1.4; text-align: center; }
.tour-who { padding: 1px 10px; border-radius: 999px; background: #fff3d1; color: #6b4300; font-weight: 700; }
.tour-replay { color: var(--ink-2); }
.tour.has-lines .tour-surface { bottom: 98px; }
.tour.has-lines .tour-end { padding-bottom: 106px; }
.tour-bar .btn { min-width: 62px; justify-content: center; white-space: nowrap; }
.tour-bar .btn.danger { color: #b3261e; border-color: #efc2be; }
.tour-keys { padding: 0 8px; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.tour-paused { position: fixed; left: 50%; top: 64px; z-index: 9; padding: 5px 14px; transform: translateX(-50%); border-radius: 999px; background: #f2b33d; color: #3a2a00; font-size: 13px; font-weight: 700; pointer-events: none; }
.tour.paused *, .tour.paused *::before, .tour.paused *::after { animation-play-state: paused !important; }

/* 首页「看演示动画」的小窗 */
.tour-chooser-wrap { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; background: rgba(28, 32, 38, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tour-chooser { width: min(440px, 100%); }
.tour-chooser p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.tour-loop { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; cursor: pointer; }
.tour-loop input { width: 18px; height: 18px; }

@keyframes tour-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes tour-ripple { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes tour-tap { 0%, 100% { transform: scale(1); } 45% { transform: scale(.84); } }
@keyframes tour-pulse { 0%, 100% { box-shadow: 0 0 0 2px var(--carbon); } 50% { box-shadow: 0 0 0 5px rgba(26, 93, 176, .28); } }
@keyframes tour-fade { from { opacity: 0; } to { opacity: 1; } }

/* 宽屏：右边订单工作台够宽时，工作台页分两栏（和真页面一样） */
@container tourapp (min-width: 900px) {
  .tour-app .tour-page .wb-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .82fr); }
  .tour-app .tour-page .wb-side { order: 0; }
}
@container tourapp (max-width: 559px) {
  .tour-app .app-head { display: none; }
  .tour-app .tour-page .options-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-modal .pre { display: none; }
  .tour-modal .modal-body { padding: 12px 14px; }
  .tour-modal .modal-head { padding: 10px 14px; }
  .tour-fake.area { min-height: 92px; }
  .tour-page.content { padding: 10px 10px 20px; }
}

/* 窄屏（手机、小窗口）：上下叠放，一次只放大一边 */
@media (max-width: 1000px) {
  .tour-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr 0fr; gap: 0; padding: 0 10px 8px; transition: grid-template-rows .3s ease, gap .3s ease; }
  .tour[data-focus="both"] .tour-stage { grid-template-rows: .8fr 1.2fr; gap: 10px; }
  .tour[data-focus="app"] .tour-stage { grid-template-rows: 0fr 1fr; }
  .tour-win { transition: opacity .25s ease; }
  .tour[data-focus="chat"] .tour-app, .tour[data-focus="app"] .tour-wx { opacity: 0; pointer-events: none; }
  .tour-stepinfo { flex-basis: 100%; margin-left: 0; }
  .tour-top { padding: 8px 12px 6px; min-height: 0; }
}
@media (max-width: 720px) {
  .tour-keys { display: none; }
  .tour-bar { padding: 7px 8px; }
  .tour-ctl { gap: 6px; }
  .tour.has-lines .tour-surface { bottom: 118px; }
  .tour.has-lines .tour-end { padding-bottom: 126px; }
  .tour-bar .btn { min-width: 0; padding-left: 11px; padding-right: 11px; }
  .intro-card, .end-card { padding: 22px 18px 18px; }
  .intro-card h2, .end-card h2 { font-size: 22px; }
  .tour-title strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .tour *, .tour *::before, .tour *::after { animation: none !important; transition: none !important; }
}

.tour-short-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0 2px; border-top: 1px solid var(--line); }
.tour-short-sku { font-size: 14px; font-weight: 600; }
.tour-short-tags { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.tour-page .tour-kv .cell.ro { display: inline; width: auto; min-height: 0; padding: 0; }
.tour-page .tour-kv dd { line-height: 1.5; }

/* 图片作业（第 03 格：客户发来手写询价单的照片）：微信里一张缩略图（不用点开），拖进「新消息」的也是这张图 */
.wx-bub.wx-pic { padding: 3px; line-height: 0; }
.wx-photo { display: block; width: auto; height: auto; max-width: min(230px, 56vw); max-height: 190px; border-radius: 6px; background: #e4e4e4; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.tour-ghost.is-img { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; }
.tour-ghost.is-img img { flex: none; width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }
.tour-ghost.is-img span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-fake .drop-img { display: none; align-items: center; gap: 12px; }
.tour-fake.filled .drop-img { display: flex; }
.tour-fake .drop-img img { flex: none; width: 112px; height: 84px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.tour-fake .drop-img span { min-width: 0; display: grid; gap: 2px; }
.tour-fake .drop-img b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.tour-fake .drop-img small { color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.tour-fake.area.hover .drop-img { opacity: .2; }
@container tourapp (max-width: 559px) {
  .tour-fake .drop-img img { width: 84px; height: 63px; }
}

/* —— 路演一键连播（7 个本事）：蓓蓓当讲解员 + 开场卡 + 大字标题 + 现场提问那一格的提示 —— */
.tour-bb { flex: none; display: inline-flex; align-items: center; }
.tour-bb .bb-avatar { width: 28px; height: 28px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.tour-bb-name { margin-right: 2px; font-weight: 700; }
.tour-note { display: flex; align-items: flex-start; gap: 10px; }
.tour-note-bb { flex: none; display: inline-flex; }
.tour-note-bb .bb-avatar { width: 30px; height: 30px; }
.tour-note-text { min-width: 0; }
.tour-title .tour-rs-title { overflow: visible; font-size: 22px; font-weight: 700; letter-spacing: .01em; white-space: normal; text-overflow: clip; }
.tour-live { padding: 1px 10px; border-radius: 999px; background: #e1efff; color: #0b4a8f; font-weight: 700; }
.tour-rs-open { width: min(460px, 100%); }
.tour-rs-face { display: inline-flex; }
.tour-rs-face .bb-avatar { width: 72px; height: 72px; box-shadow: 0 6px 18px -6px rgba(11, 24, 38, .45); }
.tour-rs-list { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; text-align: left; }
.tour-rs-list li { display: flex; align-items: center; gap: 12px; padding: 7px 14px; border-radius: 10px; background: var(--carbon-wash); color: var(--ink); font-size: 16px; font-weight: 500; }
.tour-rs-list li b { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--carbon); color: #fff; font-size: 13px; }
.tour[data-mode="spot"] .tour-title .tour-rs-title { font-size: 20px; }
@media (max-width: 720px) {
  .tour-title .tour-rs-title { font-size: 18px; }
  .tour[data-mode="spot"] .tour-title .tour-rs-title { font-size: 17px; }
  .tour-rs-list li { font-size: 15px; }
}
.tour-rs-prep { margin: 12px 0 0; color: var(--ink-3); font-size: 13px; text-align: center; }
/* 路演真页面格子：微信做成悬浮小窗，压在页面左下角（控制条上方），圈页面别处时它照样看得见 */
.tour-pip { position: fixed; left: 16px; bottom: 92px; z-index: 2; width: min(340px, calc(100vw - 32px)); top: 72px; opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }
.tour-pip.on { opacity: 1; transform: none; }
.tour-pip .wx-photo { max-width: 100%; max-height: 220px; }
.tour-pipmodal { position: fixed; inset: 0 0 68px 0; z-index: 1; }
.tour-pipmodal .tour-modalwrap { padding-left: 372px; background: rgba(28, 32, 38, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 900px) { .tour-pipmodal .tour-modalwrap { padding-left: 16px; } }
.tour[data-mode="spot"] .tour-top { transition: opacity .25s ease, transform .25s ease; }
.tour[data-peek] .tour-top { opacity: 0; transform: translateY(-140%); pointer-events: none; }
