/* 悬浮聊天按钮样式 */
.whatsapp-chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #FF9500 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  overflow: hidden;
}

/* 动脉冲击动画 */
.whatsapp-chat-button::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: scale(0);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* 图标样式 */
.whatsapp-chat-button svg {
  width: 45px;
  height: 45px;
  fill: white;
  z-index: 1;
}

/* 悬停效果 */
.whatsapp-chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* 气泡对话框样式 */
.chat-bubble {
  position: fixed;
  bottom: 120px;
  right: 130px;
  background: white;
  padding: 16px 20px;
  border-radius: 20px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  max-width: 250px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards, float 3s ease-in-out infinite;
  animation-delay: 1s;
}

/* 气泡尾部 */
.chat-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: white;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

/* 气泡文字 */
.chat-bubble p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* 气泡渐入动画 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 气泡浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .whatsapp-chat-button {
    width: 70px;
    height: 70px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-chat-button svg {
    width: 38px;
    height: 38px;
  }
  
  .chat-bubble {
    max-width: 200px;
    bottom: 100px;
    right: 100px;
    padding: 12px 16px;
  }
  
  .chat-bubble p {
    font-size: 14px;
  }
}