
/* ===== 全局悬浮工具栏（右侧垂直排列） ===== */
.floating-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.floating-sidebar .fs-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--fs-xs);
  line-height: 1.2;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.floating-sidebar .fs-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
.floating-sidebar .fs-btn:active {
  transform: scale(0.95);
}
.floating-sidebar .fs-btn .fs-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 1px;
}

/* 在线客服 */
  .floating-sidebar .fs-btn-chat {
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
  }

  /* 投放按钮 */
  .floating-sidebar .fs-btn-entrust {
    background: linear-gradient(135deg, var(--brand-primary), #2b8fc2);
  }

  /* 租金计算器按钮（圆角方形，与移动端一致） */
  .floating-sidebar .fs-btn-calc {
    width: 65px;
    height: 68px;
    border-radius: 14px;
    background: #fff;
    color: #2d2d2d;
    border: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    flex-direction: column;
    gap: 2px;
  }
  .floating-sidebar .fs-btn-calc .fs-icon {
    margin-bottom: 0;
  }
  .floating-sidebar .fs-btn-calc span:last-child {
    font-size: 11px;
    font-weight: 600;
    color: #2d2d2d;
  }

  /* 隐藏旧版独立按钮（由本工具栏统一替代） */
  .chat-float-btn { display: none !important; }
  .floating-entrust-btn { display: none !important; }
  .chat-fab { display: none !important; }

/* 返回顶部按钮 */
.floating-sidebar .fs-btn-top {
  background: var(--text-placeholder);
  display: none;
}
.floating-sidebar.show-top .fs-btn-top {
  display: flex;
}

/* ===== 移动端不显示该悬浮栏，由移动底部导航负责在线聊天 ===== */
@media (max-width: 768px) {
  .floating-sidebar {
    display: none !important;
  }
}
