/* WhatsApp 询价入口 · 2026-11-29
   设计口径：白底 / 黑边 / 海军蓝，只用蓝红黄；不使用 WhatsApp 品牌绿 */

.cta-wa {
  background: var(--primary-blue, #1E40AF);
  border: 2px solid #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.cta-wa:hover {
  background: #173a9e;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.28);
}

.cta-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.cta-ico svg {
  display: block;
}

.cta-mail {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cta-mail:hover {
  color: var(--primary-blue, #1E40AF);
}

/* 全站悬浮按钮 */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-blue, #1E40AF);
  color: #fff;
  border: 2px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.30);
  z-index: 9999;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  line-height: 0;
}

.wa-fab svg {
  width: 30px;
  height: 30px;
  display: block;
}

.wa-fab:hover {
  background: #173a9e;
  transform: scale(1.07);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.36);
}

.wa-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(30, 64, 175, 0.35);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { transform: scale(0.9); opacity: 0.85; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab::after { animation: none; }
}

@media (max-width: 640px) {
  .wa-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .wa-fab svg {
    width: 26px;
    height: 26px;
  }
}
