/* ========================================
   悬浮角色装饰 — CSS
   ======================================== */
#float-decor {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9990;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.3s ease;
}

#float-decor img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(180, 142, 173, 0.4));
  transition: all 0.3s ease;
}

#float-decor:hover img {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 8px 20px rgba(244, 169, 192, 0.5));
}

/* 弹跳动画 */
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

#float-decor img {
  animation: floatBounce 3s ease-in-out infinite;
}

#float-decor:hover img {
  animation: none;
  transform: translateY(-5px) scale(1.1);
}

/* 点击挥手效果 */
#float-decor.clicked img {
  animation: wave 0.6s ease-in-out;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

/* 对话气泡 */
#float-bubble {
  position: absolute;
  bottom: 90px;
  left: 0;
  background: rgba(26, 16, 37, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 169, 192, 0.2);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 16px;
  color: #f0e6f6;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

/* 移动端隐藏 */
@media (max-width: 768px) {
  #float-decor {
    display: none;
  }
}
