/* fab.css —— FAB 合并版
   原始定义 + 2026-10-29 毛玻璃覆盖已合并，无权重
   合并日期：2026-10-30 */

/* ---------- 浮动按钮 ---------- */
.floating-action-buttons {
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: var(--z-drawer);
}

.floating-action-buttons .fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.floating-action-buttons .fab svg {
  color: inherit;
}

.floating-action-buttons .fab:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
  border-color: var(--primary-color);
}

.fab-tooltip {
  position: absolute;
  right: 65px;
  background: rgba(30, 34, 41, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.3s;
  pointer-events: none;
}

.fab:hover .fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

body.dark-theme .floating-action-buttons .fab {
  background: rgba(30, 34, 41, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .floating-action-buttons .fab:hover {
  background: rgba(30, 34, 41, 0.95);
  border-color: var(--primary-color);
}

/* 返回顶部按钮初始隐藏 */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.8);
  transition: all 0.4s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
