/* 企微悬浮客服：跟电话/回顶同一列，避免挡住 */
.md-wecom {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 2;
  font-family: "Sora", "Noto Sans SC", sans-serif;
}
.md-wecom__fab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 3rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #07c160;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(7, 193, 96, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.md-wecom__fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(7, 193, 96, .42); }
.md-wecom__fab i { font-size: 1.15rem; }
.md-wecom__fab.is-open { background: #06ad56; }

.md-wecom__panel {
  position: absolute;
  right: 0;
  bottom: 3.6rem;
  width: min(92vw, 300px);
  max-height: calc(100vh - 6.5rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .06);
  animation: md-wecom-in .25s ease;
}
@keyframes md-wecom-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.md-wecom__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1rem;
  background: linear-gradient(120deg, #0b1524, #0081cc);
  color: #fff;
}
.md-wecom__head strong { font-size: .95rem; }
.md-wecom__close {
  border: 0; background: transparent; color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .85;
}
.md-wecom__body { padding: 1rem 1.05rem 1.15rem; color: #334155; overflow-y: auto; }
.md-wecom__body p { margin: 0 0 .85rem; font-size: .9rem; line-height: 1.6; }
.md-wecom__qr {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 .85rem;
  border-radius: 10px;
  background: #fff;
}
.md-wecom__go {
  display: block;
  text-align: center;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: #07c160;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}
.md-wecom__go:hover { background: #06ad56; }
.md-wecom__sub { margin-top: .75rem !important; font-size: .8rem !important; color: #94a3b8 !important; }
.md-wecom__warn { color: #b45309; background: #fffbeb; padding: .75rem; border-radius: 8px; font-size: .85rem; }
.md-wecom__warn code { font-size: .78rem; }

@media (max-width: 520px) {
  .md-wecom__fab span { display: none; }
  .md-wecom__fab { width: 3rem; padding: 0; justify-content: center; border-radius: 50%; }
}
