/* ============================================================
   云岫茶事 · 新手导览（体验版）
   灰幕遮罩 + 虚线高亮框 + 分步气泡。
   壳层规则与 toast/sheet/lightbox 一致：容器 pointer-events:none，
   仅拦截层与气泡自身 auto（否则会复现「全站点击失效」事故）。
   层级：sheet 350 / lightbox 380 / toast 400 < tour 500
   ============================================================ */
.tour-root { position: fixed; inset: 0; z-index: 500; pointer-events: none; }
/* overlay 平时透明（拦截点击用）；居中卡（无高亮目标）时由它承担灰幕，
   有目标时灰幕则由 spot 的 box-shadow 提供，两者淡入淡出无缝衔接 */
.tour-overlay {
  position: absolute; inset: 0; pointer-events: auto;
  background: transparent;
  transition: background-color .22s var(--ease-out);
}
.tour-root.is-dim .tour-overlay { background: rgba(26, 44, 34, .62); }

/* 高亮框即灰幕：本身无背景，由超大 box-shadow 铺灰；虚线框标出目标。
   box-shadow 先声明者在上层——金色光晕放前面才能浮在灰幕上。 */
.tour-spot {
  position: fixed; pointer-events: none;
  border: 2px dashed rgba(235, 206, 118, .95);
  border-radius: 12px;
  box-shadow: 0 0 26px rgba(235, 206, 118, .45), 0 0 0 100vmax rgba(26, 44, 34, .62);
  transition: top .28s var(--ease-out), left .28s var(--ease-out),
              width .28s var(--ease-out), height .28s var(--ease-out), opacity .22s var(--ease-out);
}
.tour-spot.is-hidden { opacity: 0; }
.tour-spot.no-anim { transition: none; }

/* ---------- 分步气泡 ---------- */
.tour-pop {
  position: fixed;
  width: min(360px, calc(100vw - 32px));
  padding: 18px 20px 14px;
  background: var(--paper-bright);
  border: 1px solid rgba(201, 162, 39, .45);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  pointer-events: auto;
  transition: top .28s var(--ease-out), left .28s var(--ease-out), opacity .22s var(--ease-out);
}
.tour-pop.no-anim { transition: none; }

.tour-pop-step { font-size: 11px; letter-spacing: .16em; color: var(--clay); }
.tour-pop-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--tea-deep); margin: 3px 0 7px; }
.tour-pop-text { font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); }

.tour-pop-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tour-skip { flex: 0 0 auto; padding: 7px 8px; font-size: 12.5px; color: var(--clay); border-radius: var(--r-sm); transition: color var(--dur-fast) var(--ease-out); }
.tour-skip:hover { color: var(--clay-red); }
.tour-nav { display: flex; align-items: center; gap: 6px; }
.tour-prev { padding: 8px 12px; font-size: 13px; color: var(--tea-deep); border-radius: var(--r-sm); transition: background-color var(--dur-fast) var(--ease-out); }
.tour-prev:hover { background: rgba(62, 122, 82, .07); }
.tour-prev[hidden] { display: none; }
.tour-next { min-height: 38px; padding: 8px 20px; font-size: 14px; }

/* 指向目标的箭头（仅桌面悬浮态显示） */
.tour-arrow { display: none; position: absolute; width: 12px; height: 12px; background: var(--paper-bright); border: 1px solid rgba(201, 162, 39, .45); transform: rotate(45deg); }
.tour-pop.is-bottom .tour-arrow { display: block; top: -7px; left: var(--tour-arrow-x, 50%); margin-left: -6px; border-right: none; border-bottom: none; }
.tour-pop.is-top .tour-arrow { display: block; bottom: -7px; left: var(--tour-arrow-x, 50%); margin-left: -6px; border-left: none; border-top: none; }

/* 移动端：气泡贴底（目标贴着底部时改贴顶），无箭头 */
.tour-pop.is-sheet { left: 12px; right: 12px; width: auto; top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); }
.tour-pop.is-sheet.is-sheet-top { top: 14px; bottom: auto; }
