/* 自動導覽（展示模式）：遮罩、聚光區塊、說明框 */
.tour-overlay { position: fixed; inset: 0; z-index: 1060; background: transparent; cursor: default; }
.tour-highlight { position: relative !important; z-index: 1061 !important; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.9), 0 0 0 9999px rgba(15, 23, 42, 0.5) !important; border-radius: 12px; transition: box-shadow 0.25s ease; }
.tour-popover { position: fixed; z-index: 1062; width: 360px; max-width: calc(100vw - 2rem); background: #fff; color: #333; border-radius: 14px; box-shadow: 0 20px 44px rgba(15, 23, 42, 0.25); padding: 1rem 1.1rem 0.85rem; font-size: 0.95rem; line-height: 1.55; }
.tour-popover .tour-step { font-size: 0.75rem; color: #6366f1; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 0.15rem; }
.tour-popover .tour-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.tour-popover .tour-text { margin-bottom: 0.75rem; white-space: pre-line; }
.tour-popover .tour-timer { height: 4px; background: #eef2ff; border-radius: 2px; overflow: hidden; margin-bottom: 0.6rem; }
.tour-popover .tour-timer-bar { height: 100%; width: 0; background: linear-gradient(90deg, #6366f1, #0ea5e9); }
.tour-popover .tour-timer-bar.tour-timer-run { width: 100%; transition-property: width; transition-timing-function: linear; }
.tour-popover .tour-actions { display: flex; align-items: center; gap: 0.4rem; }
.tour-popover .tour-actions .tour-skip { margin-right: auto; }
.tour-popover .tour-arrow { position: absolute; width: 0; height: 0; border: 10px solid transparent; }
.tour-popover.tour-below .tour-arrow { top: -20px; left: 28px; border-bottom-color: #fff; }
.tour-popover.tour-above .tour-arrow { bottom: -20px; left: 28px; border-top-color: #fff; }
.tour-popover.tour-center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tour-popover.tour-center .tour-arrow { display: none; }
.tour-popover.tour-intro .tour-title { font-size: 1.3rem; }
/* 浮動 AI 問答按鈕本身是 fixed，聚光時維持 fixed */
.ai-fab.tour-highlight { position: fixed !important; }
body.tour-active { overflow-x: hidden; }
@media (max-width: 575px) { .tour-popover { width: calc(100vw - 2rem); left: 1rem !important; } }
