/* 返回顶部 / 联系客服 浮窗 */
.site-float {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 128px;
  pointer-events: none;
}
.site-float-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 14px 36px -14px rgba(28, 48, 104, .45);
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1), filter .2s ease, visibility .28s;
}
.site-float-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.site-float-btn span { white-space: nowrap; }
.site-float-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.site-float-btn:active { transform: translateY(0); }

.site-float-top {
  color: #2a3f58;
  background: linear-gradient(145deg, rgba(255,255,255,.7), rgba(236,244,255,.5));
  border: 1px solid rgba(255,255,255,.8);
  box-shadow:
    inset 0 1px 0 #fff,
    0 16px 40px -18px rgba(28, 48, 104, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}
.site-float-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.site-float-top:hover { filter: none; background: linear-gradient(135deg, #fff, rgba(232,242,255,.95)); }

.site-float-service {
  background: linear-gradient(135deg, #07c160, #06ad56);
  border: 1px solid rgba(255,255,255,.28);
}
.site-float-service:hover { filter: brightness(1.06); }

.service-modal[hidden] { display: none; }
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 36, .62);
}
.service-modal-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 28px 24px 24px;
  border: 1px solid rgba(220, 230, 245, .95);
  border-radius: 28px;
  background: linear-gradient(160deg, #ffffff 0%, #f5fcf8 55%, #f3faf6 100%);
  box-shadow: inset 0 1px 0 #fff, 0 28px 70px -20px rgba(16, 28, 52, .55);
  text-align: center;
  animation: serviceModalIn .3s cubic-bezier(.22,1,.36,1);
}
.service-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #53667d;
  font-size: 24px;
  line-height: 1;
}
.service-modal-close:hover { background: rgba(80,110,145,.1); }
.service-modal-eyebrow {
  margin: 0 0 6px;
  color: #07a854;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.service-modal-panel h2 {
  margin: 0;
  color: #172535;
  font-size: 22px;
  font-weight: 650;
}
.service-modal-panel > p {
  margin: 8px 0 0;
  color: #6c7a8c;
  font-size: 13px;
  line-height: 1.7;
}
.service-qr-wrap {
  width: 196px;
  height: 196px;
  margin: 20px auto 0;
  padding: 10px;
  border: 1px solid rgba(7,193,96,.18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px -22px rgba(7, 120, 70, .35);
}
.service-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.service-phone-id {
  margin-top: 10px;
  font-size: 14px;
  color: #475569;
  font-weight: 600;
}
.service-phone-id a {
  color: #2563eb;
  text-decoration: none;
  margin-left: 4px;
}
.service-phone-id a:hover { text-decoration: underline; }
.service-wechat-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #1f3a2c;
  background: rgba(7,193,96,.1);
  font-size: 13px;
  font-weight: 600;
}
.service-wechat-id code {
  font-family: inherit;
  color: #07a854;
  font-weight: 700;
}
.service-modal-tip {
  margin: 14px 0 0;
  color: #8895a4;
  font-size: 11px;
  line-height: 1.65;
}

@keyframes serviceModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .site-float { right: 14px; bottom: 20px; width: 48px; }
  .site-float-btn span { display: none; }
  .site-float-btn { width: 48px; height: 48px; padding: 0; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-float-btn,
  .service-modal-panel { transition: none; animation: none; }
}
