/* 统一的气泡弹窗样式系统 */
.bubble-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 350px;
  min-width: 280px;
  border-left: 4px solid;
}

.bubble-message.show {
  transform: translateX(0);
  opacity: 1;
}

/* 气泡弹窗类型样式 */
.bubble-success {
  border-left-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.bubble-warning {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.bubble-error {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.bubble-info {
  border-left-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

/* 气泡弹窗图标 */
.bubble-icon {
  font-size: 18px;
  font-weight: bold;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.bubble-success .bubble-icon {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.bubble-warning .bubble-icon {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.bubble-error .bubble-icon {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.bubble-info .bubble-icon {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

/* 气泡弹窗文本 */
.bubble-text {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .bubble-message {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
    transform: translateY(-100%);
  }
  
  .bubble-message.show {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .bubble-message {
    padding: 10px 14px;
    gap: 10px;
  }
  
  .bubble-icon {
    font-size: 16px;
    width: 20px;
    height: 20px;
  }
  
  .bubble-text {
    font-size: 13px;
  }
}

/* 气泡弹窗动画 */
@keyframes bubbleSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bubbleSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* 移动端气泡弹窗动画 */
@media (max-width: 768px) {
  @keyframes bubbleSlideIn {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes bubbleSlideOut {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(-100%);
      opacity: 0;
    }
  }
}
