/* ============================================================
 *  悬浮 WhatsApp 按钮 · 询盘展示站通用
 *  - 默认仅显示绿色圆形图标
 *  - 鼠标悬停 / 首次进入 1.8s 自动展开 → 显示文案
 *  - 点击 → 新窗口跳 wa.me/<号码>?text=<预填>
 *  - 表单/抽屉打开时自动下移隐藏，避免遮挡输入
 * ============================================================ */

.wa-float-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  pointer-events: none; /* 外层透传，仅按钮接收事件 */
}

.wa-float {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  background: #25D366;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, .08);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  height: 54px;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s;
  position: relative;
  isolation: isolate;
}

.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, .12);
}

/* 微弱呼吸外圈（不影响点击） */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25D366;
  opacity: 0;
  z-index: -1;
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.35; }
  100% { transform: scale(1.55); opacity: 0;    }
}

/* 圆形图标（54x54），SVG 不缩放 */
.wa-float .wa-ico {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 文字标签默认收起 */
.wa-float .wa-label {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 0;
  padding: 0;
  overflow: hidden;
  transition: max-width .32s cubic-bezier(.4, 0, .2, 1), padding .32s;
}
.wa-float .wa-label .wa-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: .92;
  margin-top: 1px;
  letter-spacing: .02em;
}

.wa-float:hover .wa-label,
.wa-float.is-shown .wa-label {
  max-width: 190px;
  padding-right: 18px;
}

/* 焦点环（可访问性） */
.wa-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* 表单聚焦时整体下移隐藏，避免遮挡输入 */
.wa-float-wrap.is-hidden .wa-float {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

/* 移动端微调 */
@media (max-width: 720px) {
  .wa-float-wrap { right: 14px; bottom: 14px; }
  .wa-float { height: 50px; }
  .wa-float .wa-ico { width: 50px; height: 50px; }
  .wa-float .wa-label { font-size: 13px; }
  .wa-float:hover .wa-label,
  .wa-float.is-shown .wa-label {
    max-width: 160px;
    padding-right: 14px;
  }
}
