/* 造一只 · 新手引导气泡（电脑端）。删除本文件与 onboarding.js 的引用即可回退。 */
.guide-bubble {
  --arrow-x: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9000;
  width: min(320px, calc(100vw - 32px));
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: var(--v2-ink, #071b25);
  color: #fff;
  box-shadow: 0 18px 46px rgba(7, 27, 37, .28);
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  opacity: 0;
  translate: 0 6px;
  transition: opacity .22s ease, translate .32s var(--v2-ease, ease);
  pointer-events: auto;
}
.guide-bubble.is-in { opacity: 1; translate: 0 0; }
.guide-bubble.is-offscreen { opacity: 0; pointer-events: none; }
.guide-bubble[hidden] { display: none; }

.guide-arrow {
  position: absolute;
  left: var(--arrow-x);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: inherit;
  border-radius: 3px;
  transform: rotate(45deg);
}
.guide-bubble[data-side="bottom"] .guide-arrow { top: -6px; }
.guide-bubble[data-side="top"] .guide-arrow { bottom: -6px; }

.guide-title { display: block; font-size: 16px; font-weight: 900; line-height: 1.4; }
.guide-text { margin: 6px 0 0; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.6; }

.guide-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.guide-count { margin-right: auto; color: rgba(255, 255, 255, .5); font-size: 12px; font-variant-numeric: tabular-nums; }
.guide-actions button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.guide-skip { padding: 0 10px; background: transparent; color: rgba(255, 255, 255, .62); }
.guide-skip:hover { color: #fff; }
.guide-skip[hidden] { display: none; }
.guide-next { padding: 0 18px; background: var(--v2-coral, #ff614b); color: #fff; }
.guide-next:hover { background: var(--v2-coral-deep, #e94e3a); }
.guide-actions button:focus-visible { outline: 2px solid var(--v2-lime, #f7f66e); outline-offset: 2px; }

/* 被指向的元素：柔和的呼吸光圈 */
.guide-target { animation: guide-pulse 1.8s ease-in-out infinite; }
.sizes h2.guide-target { width: fit-content; border-radius: 10px; }
@keyframes guide-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 97, 75, .55), 0 0 0 0 rgba(255, 97, 75, .28); }
  50% { box-shadow: 0 0 0 3px rgba(255, 97, 75, .55), 0 0 0 10px rgba(255, 97, 75, 0); }
}

/* 重看引导：左下角，避开右下角的小造客服 */
.guide-replay {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 6px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--v2-ink, #071b25);
  box-shadow: 0 8px 24px rgba(24, 51, 42, .14), inset 0 0 0 1px rgba(7, 27, 37, .06);
  font: 700 13px 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  cursor: pointer;
  transition: transform .25s var(--v2-ease, ease);
}
.guide-replay:hover { transform: translateY(-2px); }
.guide-replay span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--v2-lime, #f7f66e);
  font-size: 15px;
  font-weight: 900;
}
.guide-replay[hidden] { display: none; }

@media (max-width: 900px) {
  .guide-bubble, .guide-replay { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-bubble { transition: none; translate: none; }
  .guide-target { animation: none; box-shadow: 0 0 0 3px rgba(255, 97, 75, .55); }
}
