/* 新手引导 ONBOARDING TOUR：聚光遮罩、高亮环、引导卡、欢迎/完成弹窗、demo 徽章 */
/* ===== ONBOARDING TOUR ===== */
/* Spotlight overlay — 4 mask panels surrounding the highlight hole */
#ob-overlay { display: none; position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
#ob-overlay.active { display: block; pointer-events: none; }
.ob-mask { position: fixed; background: rgba(0,0,0,0.58); transition: top 0.28s ease, left 0.28s ease, right 0.28s ease, bottom 0.28s ease, width 0.28s ease, height 0.28s ease; }

/* Highlight ring around the spotted element */
#ob-spotlight-ring {
  display: none; position: fixed; z-index: 9001;
  border: 2px solid rgba(99,102,241,0.8);
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.2), 0 0 20px rgba(99,102,241,0.3);
  pointer-events: none;
  transition: all 0.28s ease;
}
#ob-spotlight-ring.active { display: block; }

/* Guide card — always fixed bottom-right, never moves off screen */
#ob-guide-card {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 340px;
  z-index: 9100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  pointer-events: all;
  animation: ob-slide-up 0.22s ease;
}
#ob-guide-card.active { display: block; }
@keyframes ob-slide-up {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.ob-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ob-card-step   { font-size: 11px; color: var(--text2); font-weight: 600; letter-spacing: 0.5px; background: var(--surface2); padding: 2px 8px; border-radius: 10px; }
.ob-card-skip   { font-size: 12px; color: var(--text2); background: none; border: none; cursor: pointer; padding: 2px 6px; }
.ob-card-skip:hover { color: var(--text); }

/* progress dots */
.ob-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.ob-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background 0.2s; }
.ob-dot.done { background: var(--primary); }
.ob-dot.current { background: var(--primary); width: 18px; border-radius: 3px; }

.ob-card-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.ob-card-desc  { font-size: 13px; color: var(--text2); line-height: 1.65; margin-bottom: 14px; }

/* action button (interactive step) */
.ob-action-btn {
  display: block; width: 100%;
  padding: 9px 14px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(99,102,241,0.05) 100%);
  border: 1px dashed rgba(99,102,241,0.5);
  border-radius: 8px; color: var(--primary);
  font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
  transition: background 0.18s, border-color 0.18s;
}
.ob-action-btn:hover { background: rgba(99,102,241,0.2); border-color: var(--primary); }
.ob-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ob-action-btn.done { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.5); color: #10b981; cursor: default; }

.ob-card-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.ob-btn-next { padding: 8px 20px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ob-btn-next:hover { opacity: 0.88; }
.ob-btn-next:disabled { opacity: 0.45; cursor: not-allowed; }

/* welcome modal */
#ob-welcome-modal { display: none; position: fixed; inset: 0; z-index: 9200; background: rgba(0,0,0,0.65); align-items: center; justify-content: center; }
#ob-welcome-modal.active { display: flex; }
.ob-welcome-box {
  background: var(--surface); border-radius: 16px; padding: 36px 40px;
  max-width: 500px; width: 92%; text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  animation: ob-pop-in 0.25s ease;
}
@keyframes ob-pop-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.ob-welcome-icon { font-size: 52px; margin-bottom: 16px; }
.ob-welcome-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.ob-welcome-box p  { font-size: 14px; color: var(--text2); line-height: 1.75; margin-bottom: 6px; }
.ob-welcome-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 18px 0 24px; text-align: left;
}
.ob-feat-item { display: flex; align-items: flex-start; gap: 8px; background: var(--surface2); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.ob-feat-item .icon { font-size: 18px; flex-shrink: 0; }
.ob-feat-item .text { color: var(--text2); line-height: 1.5; }
.ob-feat-item .text b { color: var(--text); display: block; font-size: 13px; margin-bottom: 2px; }
.ob-welcome-team-preview { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.ob-mock-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface2); border-radius: 20px; padding: 6px 14px; font-size: 13px;
}
.ob-mock-chip .av { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.ob-mock-chip .lbl { color: var(--text2); font-size: 11px; }
.ob-welcome-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ob-start-btn { padding: 11px 30px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ob-start-btn:hover { opacity: 0.88; }
.ob-skip-all-btn { padding: 11px 20px; background: var(--surface2); color: var(--text2); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; cursor: pointer; }

/* finish modal */
#ob-finish-modal { display: none; position: fixed; inset: 0; z-index: 9200; background: rgba(0,0,0,0.65); align-items: center; justify-content: center; }
#ob-finish-modal.active { display: flex; }
.ob-finish-box {
  background: var(--surface); border-radius: 16px; padding: 40px;
  max-width: 460px; width: 92%; text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45); animation: ob-pop-in 0.25s ease;
}
.ob-finish-box h2 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.ob-finish-box p  { font-size: 13px; color: var(--text2); line-height: 1.75; margin-bottom: 8px; }
.ob-finish-warn   { font-size: 12px; color: var(--yellow); margin-bottom: 26px; }
.ob-finish-btns   { display: flex; gap: 10px; justify-content: center; }
.ob-confirm-btn { padding: 11px 30px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ob-confirm-btn:hover { opacity: 0.88; }

/* demo badge */
.demo-badge { display: inline-block; font-size: 10px; font-weight: 600; background: rgba(99,102,241,0.15); color: var(--primary); border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
/* ===== END ONBOARDING ===== */
