footer.xy-footer-wechat-enabled {
  overflow: visible !important;
  position: relative;
  z-index: 30;
}
footer.xy-footer-wechat-enabled .container,
footer.xy-footer-wechat-enabled .grid,
footer.xy-footer-wechat-enabled .xy-contact-service-list {
  overflow: visible !important;
}
.xy-contact-service-list { position: relative; z-index: 70; }
.xy-wechat-contact { position: relative; display: block; z-index: 70; }
.xy-wechat-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  cursor: default;
  text-align: left;
  color: inherit;
  font: inherit;
}
.xy-wechat-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.xy-wechat-icon svg { width: 1.25rem; height: 1.25rem; display: block; }
.xy-wechat-qr-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.75rem);
  z-index: 9999;
  width: 11rem;
  max-width: min(11rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(0.35rem) scale(0.98);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.dark .xy-wechat-qr-panel {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}
.xy-wechat-contact:hover .xy-wechat-qr-panel,
.xy-wechat-contact:focus-within .xy-wechat-qr-panel,
.xy-wechat-contact.xy-wechat-open .xy-wechat-qr-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.xy-wechat-qr-panel::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: -0.45rem;
  width: 0.8rem;
  height: 0.8rem;
  background: inherit;
  border-right: 1px solid rgba(148, 163, 184, 0.28);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  transform: rotate(45deg);
}
.xy-wechat-qr-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.625rem;
  background: #fff;
}
.xy-wechat-qr-caption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(100, 116, 139);
}
.dark .xy-wechat-qr-caption { color: rgb(203, 213, 225); }
@media (max-width: 640px) {
  .xy-wechat-qr-panel { width: 10rem; }
}
