/* 猫咪浮动挂件 - cat-widget.css */
.cat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  animation: catFloat 3s ease-in-out infinite;
  transition: none;
}

.cat-widget.dragging {
  cursor: grabbing;
  animation: none;
}

.cat-widget img {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2));
  pointer-events: none;
}

.cat-widget:hover img {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transform: scale(1.05);
  transition: transform 0.2s ease, filter 0.2s ease;
}

@keyframes catFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 对话气泡 */
.cat-bubble {
  position: absolute;
  bottom: 110px;
  left: 0;
  background: #fff;
  border: 2px solid #333;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.cat-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 24px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #333;
}

.cat-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
