/* ===== 伴星成长 —— 通用工具样式 ===== */
/* Toast 提示 */
.bx-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: #2D2A26;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  pointer-events: none;
  white-space: nowrap;
}
.bx-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.bx-toast.success { background: #4CAF7A; }
.bx-toast.warning { background: #F39C12; }
.bx-toast.error   { background: #E74C3C; }
.bx-toast.info    { background: #3A9B8F; }

/* 撒花动画 */
@keyframes bxConfettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* 粒子效果 */
.particle {
  position: fixed;
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 9999;
  animation: particleFall 2s ease-in forwards;
}
@keyframes particleFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(120px) rotate(180deg); opacity: 0; }
}

/* 返回顶部按钮 */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #E8E2DA;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  background: #FDF3EC;
  border-color: #D97A4A;
  transform: translateY(-2px);
}
