/* ============================================================
   新手引导系统样式 — onboarding-guide.css
   ============================================================ */

/* --- 遮罩层 --- */
.onboarding-backdrop {
  animation: onboarding-fadein 0.25s ease forwards;
}

@keyframes onboarding-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- 高亮切口 --- */
.onboarding-highlight {
  border: 2px solid rgba(14, 165, 233, 0.6);
  background: transparent;
  border-radius: 12px;
  animation: onboarding-pulse 2s ease-in-out infinite;
}

@keyframes onboarding-pulse {
  0%, 100% { box-shadow: 0 0 0 4000px rgba(0,0,0,0.55), 0 0 0 0 rgba(14,165,233,0.3); }
  50%      { box-shadow: 0 0 0 4000px rgba(0,0,0,0.55), 0 0 0 6px rgba(14,165,233,0.15); }
}

/* --- 提示气泡 --- */
.onboarding-tooltip {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #1e293b;
  line-height: 1.6;
}

/* 头部 */
.onboarding-tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
}

.onboarding-tip-step-badge {
  font-size: 12px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 999px;
}

.onboarding-tip-skip {
  width: 28px;
  height: 28px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.onboarding-tip-skip:hover {
  background: #e2e8f0;
  color: #334155;
}

/* 内容体 */
.onboarding-tip-body {
  padding: 12px 18px 6px;
}

.onboarding-tip-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.onboarding-tip-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.onboarding-tip-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.7;
}

.onboarding-tip-desc b,
.onboarding-tip-desc strong {
  color: #0f172a;
  font-weight: 600;
}

/* 底部 */
.onboarding-tip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 14px;
  gap: 12px;
}

/* 步骤圆点 */
.onboarding-tip-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.onboarding-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.2s, transform 0.2s;
}

.onboarding-dot.active {
  background: #0ea5e9;
  transform: scale(1.3);
}

/* 按钮组 */
.onboarding-tip-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.onboarding-btn-prev,
.onboarding-btn-next {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
  white-space: nowrap;
}

.onboarding-btn-prev {
  background: #f1f5f9;
  color: #475569;
}

.onboarding-btn-prev:hover {
  background: #e2e8f0;
}

.onboarding-btn-next {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.onboarding-btn-next:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

/* --- 首页引导入口按钮 --- */
.onboarding-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-trigger-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.onboarding-trigger-btn .onboarding-trigger-label {
  display: none;
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #e5e7eb;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.onboarding-trigger-btn:hover .onboarding-trigger-label {
  display: block;
}

/* --- 响应式 --- */
@media (max-width: 640px) {
  .onboarding-tooltip {
    max-width: calc(100vw - 24px) !important;
    min-width: 260px !important;
  }

  .onboarding-tip-title {
    font-size: 15px;
  }

  .onboarding-tip-desc {
    font-size: 13px;
  }

  .onboarding-trigger-btn {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}
