.home-wechat-service-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: clamp(88px, 10vh, 132px);
  z-index: 1900;
  width: 56px;
  height: 56px;
}

.home-wechat-service-float__trigger {
  display: grid;
  width: 56px;
  height: 56px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(235, 184, 87, 0.72);
  border-radius: 50%;
  color: #ffffff;
  background: #101722;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-wechat-service-float:hover .home-wechat-service-float__trigger,
.home-wechat-service-float:focus-within .home-wechat-service-float__trigger,
.home-wechat-service-float__trigger:focus-visible {
  border-color: #f0c36b;
  background: #1a2431;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5);
  transform: translate3d(-218px, 0, 0);
}

.home-wechat-service-float__trigger:focus-visible {
  outline: 3px solid rgba(240, 195, 107, 0.48);
  outline-offset: 4px;
}

.home-wechat-service-float__icon {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
}

.home-wechat-service-float__icon img {
  display: block;
  width: auto;
  max-width: none;
  height: 36px;
  clip-path: inset(0 calc(100% - 38px) 0 0);
  justify-self: start;
  pointer-events: none;
  user-select: none;
}

.home-wechat-service-float__menu {
  position: absolute;
  top: 50%;
  right: 0;
  bottom: auto;
  z-index: 1;
  display: grid;
  width: 206px;
  padding: 6px;
  border: 1px solid rgba(235, 184, 87, 0.32);
  border-radius: 14px;
  background: #0c1728;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(8px, -50%, 0) scale(0.98);
  transform-origin: right center;
  visibility: hidden;
  transition: opacity 160ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 180ms;
}

.home-wechat-service-float__menu::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 12px;
  content: "";
}

.home-wechat-service-float:hover .home-wechat-service-float__menu,
.home-wechat-service-float:focus-within .home-wechat-service-float__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0) scale(1);
  visibility: visible;
  transition-delay: 0s;
}

.home-wechat-service-float__option {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  color: #f4f8ff;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.home-wechat-service-float__option {
  cursor: pointer;
}

.home-wechat-service-float__option:hover,
.home-wechat-service-float__option:focus-visible {
  color: #ffffff;
  background: #152945;
}

.home-wechat-service-float__option:focus-visible {
  outline: 2px solid #78adff;
  outline-offset: -2px;
}

.home-wechat-service-float__option > span:last-child {
  display: grid;
  gap: 3px;
  line-height: 1.15;
}

.home-wechat-service-float__option strong {
  font-size: 14px;
  font-weight: 700;
}

.home-wechat-service-float__option small {
  color: #a9bad0;
  font-size: 11px;
}

.home-wechat-service-float__option-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  color: #111722;
  background: #e0ad4f;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .home-wechat-service-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(78px, calc(env(safe-area-inset-bottom) + 18px));
    width: 52px;
    height: 52px;
  }

  .home-wechat-service-float__trigger {
    width: 52px;
    height: 52px;
  }

  .home-wechat-service-float__menu {
    width: 196px;
  }

  .home-wechat-service-float:hover .home-wechat-service-float__trigger,
  .home-wechat-service-float:focus-within .home-wechat-service-float__trigger,
  .home-wechat-service-float__trigger:focus-visible {
    transform: translate3d(-208px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-wechat-service-float__trigger,
  .home-wechat-service-float__menu {
    transition: none;
  }

  .home-wechat-service-float:hover .home-wechat-service-float__trigger,
  .home-wechat-service-float:focus-within .home-wechat-service-float__trigger,
  .home-wechat-service-float__trigger:focus-visible {
    transform: none;
  }
}
