/* 临清佑一机械 零依赖轻量化悬浮选型咨询条 v20261126 */
.yy-float {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 42;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yy-float__item { position: relative; }
.yy-float__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #171717;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  transition: background .2s, border-color .2s;
}
.yy-float__btn--red { background: #d91820; border-color: #d91820; }
.yy-float__btn:hover, .yy-float__btn:focus { background: #d91820; border-color: #d91820; color: #fff; }
.yy-float__panel {
  position: absolute;
  right: 64px;
  bottom: 0;
  width: 236px;
  padding: 16px;
  background: #fff;
  color: #222;
  border: 1px solid #e5e5e5;
  border-top: 3px solid #d91820;
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: .2s;
  pointer-events: none;
}
.yy-float__item:hover .yy-float__panel,
.yy-float__item:focus-within .yy-float__panel,
.yy-float__item.is-open .yy-float__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.yy-float__panel strong { display: block; font-size: 14px; color: #171717; margin-bottom: 8px; }
.yy-float__tel {
  display: block;
  padding: 7px 10px;
  margin-bottom: 6px;
  background: #fff5f5;
  border: 1px solid #f5d3d0;
  border-radius: 4px;
  color: #c8141c;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}
.yy-float__tel:hover { background: #d91820; color: #fff; border-color: #d91820; }
.yy-float__note { margin: 6px 0 0; font-size: 12px; color: #666; line-height: 1.5; text-align: center; }
.yy-float__qr { width: 148px; height: 148px; margin: 8px auto 6px; display: block; border: 1px solid #eee; padding: 4px; }
@media (max-width: 768px) { .yy-float { display: none !important; } }
