/* 规规 · 泡泡向导（漂浮 + 说话） */
.guigui-scene {
  --guide: #c4b5fd;
  --guide-soft: #ede9fe;
  --face: #5b4578;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.guigui-scene.size-sm { width: 56px; height: 62px; padding-bottom: 4px; }
.guigui-scene.size-md { width: 120px; height: 130px; padding-bottom: 18px; }
.guigui-scene.size-lg { width: 140px; height: 152px; padding-bottom: 22px; }

.guigui-shadow {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 40px;
  height: 7px;
  margin-left: -20px;
  background: radial-gradient(ellipse, rgba(196, 181, 253, 0.35) 0%, transparent 72%);
  pointer-events: none;
}

.guigui-scene.size-sm .guigui-shadow { width: 28px; margin-left: -14px; bottom: 2px; }

.guigui-wrap {
  position: relative;
  z-index: 1;
  transform-origin: center bottom;
}

.guigui-wrap.pose-idle { animation: guigui-float 3.2s ease-in-out infinite; }
.guigui-scene:has(.pose-idle) .guigui-shadow { animation: guigui-shadow-float 3.2s ease-in-out infinite; }

.guigui-wrap.pose-talk { animation: guigui-float-talk 2s ease-in-out infinite; }
.guigui-scene:has(.pose-talk) .guigui-shadow { animation: guigui-shadow-talk 2s ease-in-out infinite; }
.guigui-wrap.pose-talk .guigui-mouth.open { animation: guigui-mouth-talk 0.42s ease-in-out infinite; }
.guigui-wrap.pose-talk .guigui-hand.left { animation: guigui-hand-l 1.1s ease-in-out infinite; }
.guigui-wrap.pose-talk .guigui-hand.right { animation: guigui-hand-r 1.1s ease-in-out infinite; }

@keyframes guigui-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes guigui-shadow-float {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(0.85); opacity: 0.45; }
}
@keyframes guigui-float-talk {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes guigui-shadow-talk {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.55; }
}
@keyframes guigui-mouth-talk {
  0%, 100% {
    width: 7px; height: 2px; border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(91, 69, 120, 0.35);
  }
  45%, 55% {
    width: 9px; height: 8px; border-radius: 50%;
    background: rgba(91, 69, 120, 0.22);
    border: 1.5px solid rgba(91, 69, 120, 0.42);
  }
}
@keyframes guigui-hand-l {
  0%, 100% { transform: rotate(28deg); }
  50% { transform: rotate(-22deg); }
}
@keyframes guigui-hand-r {
  0%, 100% { transform: rotate(-28deg); }
  50% { transform: rotate(22deg); }
}

.guigui-body {
  position: relative;
  width: 56px;
  height: 62px;
}

.guigui-scene.size-sm .guigui-body { transform: scale(0.88); transform-origin: center bottom; }

.guigui-limb {
  position: absolute;
  background: radial-gradient(ellipse at 40% 35%, var(--guide-soft) 0%, var(--guide) 55%, #9f7aea 100%);
  box-shadow: 0 0 10px rgba(196, 181, 253, 0.2);
}

.guigui-hand {
  width: 14px;
  height: 10px;
  border-radius: 50%;
  top: 26px;
  transform-origin: center center;
}

.guigui-hand.left { left: -5px; transform-origin: 100% 50%; }
.guigui-hand.right { right: -5px; transform-origin: 0% 50%; }

.guigui-foot {
  width: 12px;
  height: 8px;
  border-radius: 50%;
  bottom: 0;
}

.guigui-foot.left { left: 12px; }
.guigui-foot.right { right: 12px; }

.guigui-orb {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f5f0ff 0%, #e9d5ff 18%, #d8b4fe 50%, #c084fc 88%);
  box-shadow: 0 0 0 1px rgba(237, 233, 254, 0.35), 0 6px 18px rgba(192, 132, 252, 0.22);
}

.guigui-orb::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 13px;
  width: 16px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.guigui-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  gap: 5px;
}

.guigui-eyes { display: flex; gap: 10px; }

.guigui-eye {
  position: relative;
  width: 11px;
  height: 11px;
}

.guigui-pupil {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 3.5px;
  height: 3.5px;
  margin: -1.75px 0 0 -1.75px;
  border-radius: 50%;
  background: var(--face);
  opacity: 0.65;
}

.guigui-mouth {
  width: 9px;
  height: 4px;
  border-bottom: 1.5px solid rgba(91, 69, 120, 0.4);
  border-radius: 0 0 9px 9px;
}

.guigui-mouth.open {
  width: 7px;
  height: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(91, 69, 120, 0.38);
  background: transparent;
  box-sizing: border-box;
}

.guigui-speech {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fafafa;
  border: 1px solid #e4e4e7;
  color: #52525b;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
}

.guigui-speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: #fafafa;
  border-right: 1px solid #e4e4e7;
  border-bottom: 1px solid #e4e4e7;
  transform: rotate(45deg);
}

.guigui-meet-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0 0.5rem;
}

.guigui-meet-bubble {
  max-width: 22rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text, #f5f3ff);
  background: rgba(109, 40, 217, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
}
