@media (hover: hover) {
  .web-contact-button:hover {
    filter: brightness(1.12);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .web-contact-button {
    animation: web-contact-lift 800ms ease-in-out 1s;
  }

  .web-contact-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 4px #428fe85c, 0 0 18px 7px #428fe84d;
    pointer-events: none;
    opacity: 0;
    animation: web-contact-glow 8s ease-in-out 1s infinite;
  }
}

@keyframes web-contact-lift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes web-contact-glow {
  0%, 16%, 100% { opacity: 0; }
  7% { opacity: 1; }
}

/* 两种客服入口统一固定在右侧，避开底部推广栏。 */
.web-contact-tools {
  position: fixed;
  right: 20px;
  bottom: calc(var(--web-promo-height, 0px) + 24px + env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body .web-contact-tools .web-contact-button,
body:has(main.design-douyin) .web-contact-tools .web-contact-button {
  position: relative;
  inset: auto;
  display: flex;
  flex-shrink: 0;
}
.web-contact-tools .web-business-chat { order: -1; }
@media (max-width: 850px) {
  .web-contact-tools {
    right: 12px;
    bottom: calc(var(--web-promo-height, 0px) + 14px + env(safe-area-inset-bottom));
    gap: 10px;
  }
}