/* WeChat Login Modal (custom, no Bootstrap dependency) */
.wxmask{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}
.wxmask.is-open{ display: flex; }

.wxmask .wxmodal{
  /* 业内常用扫码登录弹窗：更紧凑（避免占满屏） */
  width: min(520px, 100%);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, .28);
  padding: 28px 28px 22px;
  position: relative;
}

.wxmask .wxmodal-hd{ margin: 0 0 16px; text-align: center; }
.wxmask .wxmodal-title{
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: .2px;
}
.wxmask .wxmodal-sub{
  margin: 0;
  color: rgba(15,23,42,.55);
  font-size: 13px;
  line-height: 1.55;
}

.wxmask .wxmodal-qr{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 4px;
}
.wxmask .wxmodal-qr img{
  width: 240px;
  height: 240px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  padding: 12px;
  display: block;
}

.wxmask .wxmodal-ft{
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.wxmask .wxclose{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.82);
  border-radius: 12px;
  padding: 10px 22px;
  font-weight: 700;
}
.wxmask .wxclose:focus{ outline: none; box-shadow: 0 0 0 3px rgba(47,111,236,.18); }

@media (max-width: 768px){
  .wxmask{ padding: 16px; }
  .wxmask .wxmodal{ padding: 24px 18px 18px; border-radius: 18px; }
  .wxmask .wxmodal-title{ font-size: 22px; }
  .wxmask .wxmodal-qr img{ width: 210px; height: 210px; }
}

/* prevent background scrolling */
html.no-scroll,
body.no-scroll{
  overflow: hidden;
}
body.no-scroll{
  padding-right:var(--scrollbar-compensation,0px);
}
