/* 右侧浮动咨询条 */
.float-bar {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.1));
}

.float-bar a,
.float-bar .fb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 62px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: none;
  text-decoration: none;
  color: #666;
  font-size: 0.68rem;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}

.float-bar > :first-child {
  border-top: 1px solid #e8e8e8;
}

/* 顶部第一个圆角 */
.float-bar > :first-child {
  border-radius: 26px 26px 0 0;
}

/* 底部最后一个按钮圆角 */
.float-bar .fb-last-btn {
  border-radius: 0 0 26px 26px;
  border-bottom: 1px solid #e8e8e8;
}

/* 头像单独圆 */
.float-bar .fb-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  transition: background 0.25s ease;
}

.float-bar .fb-avatar:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.float-bar .fb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-bar .fb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-bar a:hover,
.float-bar a:hover .fb-icon,
.float-bar .fb-item:hover,
.float-bar .fb-item:hover .fb-icon {
  background: #fff;
  color: #1e40af !important;
}

.float-bar .fb-icon {
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 2px;
}

.float-bar .fb-popup {
  display: none;
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 1000;
  white-space: nowrap;
  text-align: center;
}

.fb-item:hover .fb-popup { display: block; }

.fb-popup img { width: 270px; height: auto; display: block; border-radius: 6px; }
.fb-popup p { margin: 6px 0 0; color: #333; font-size: 0.8rem; }
.fb-popup .fb-phone { font-size: 1.05rem; font-weight: 700; color: #1e40af; }

@media (max-width: 768px) {
  .float-bar { right: 4px; }
  .float-bar a, .float-bar .fb-item { width: 42px; height: 52px; font-size: 0.6rem; }
  .float-bar > :first-child { border-radius: 21px 21px 0 0; }
  .float-bar .fb-last-btn { border-radius: 0 0 21px 21px; }
  .float-bar .fb-avatar { width: 42px; height: 42px; margin-top: 8px; }
  .fb-popup img { width: 200px; }
}
