/* WOW 聊天悬浮球 —— 全局可拖动组件
   浅色品牌主题 · 无框架原生 JS · position: fixed 悬浮 */

.wow-chat-bubble-wrapper {
  position: fixed;
  z-index: 100;
  right: 24px;
  left: auto;
  bottom: 24px;
  width: 64px;
  height: 64px;
  pointer-events: auto;
  user-select: none;
}

/* 安全区考虑（移动端 safe-area-inset） */
@supports (padding: max(0px)) {
  .wow-chat-bubble-wrapper {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* 移动端抬高到底部导航上方 */
@media (max-width: 760px) {
  .wow-chat-bubble-wrapper {
    right: 16px;
    bottom: 96px;
  }
}

/* 球体本体 */
.wow-chat-bubble {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  background: linear-gradient(135deg, #12bd8e, #258fe5);
  box-shadow: 0 8px 24px rgba(25, 161, 165, 0.32);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 200ms ease,
              opacity 200ms ease;
  font-size: 0;
  line-height: 1;
}

/* 呼吸动画 */
@keyframes wow-bubble-breath {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(25, 161, 165, 0.32);
  }
  50% {
    box-shadow: 0 12px 32px rgba(25, 161, 165, 0.48);
  }
}

.wow-chat-bubble {
  animation: wow-bubble-breath 3s ease-in-out infinite;
}

/* 悬停时的光晕增强 */
.wow-chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(25, 161, 165, 0.48);
}

/* 拖动中禁用动画 */
.wow-chat-bubble.is-dragging {
  animation: none;
  box-shadow: 0 12px 36px rgba(25, 161, 165, 0.56);
  transition: none;
}

/* 内部图标 */
.wow-chat-bubble-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 32px;
  line-height: 1;
  background: inherit;
  border-radius: inherit;
}

.wow-chat-bubble-icon svg {
  width: 60%;
  height: 60%;
  color: #fff;
  pointer-events: none;
}

.wow-chat-bubble-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* 隐藏状态 */
.wow-chat-bubble-wrapper.is-hidden {
  display: none !important;
  pointer-events: none;
}

/* 自定义滚动轨道（备用） */
.wow-chat-bubble-wrapper::-webkit-scrollbar {
  display: none;
}

/* 焦点态（无障碍键盘导航） */
.wow-chat-bubble:focus-visible {
  outline: 2px solid rgba(18, 189, 142, 0.5);
  outline-offset: 4px;
}

/* 打印隐藏 */
@media print {
  .wow-chat-bubble-wrapper {
    display: none !important;
  }
}
