.wechat-overlay {
  position: fixed;
  inset: 0;               /* 顶部/底部/左/右全覆盖 */
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;   /* 初始不可点击 */
  transition: opacity 0.3s;
  z-index: 9999;
}

.wechat-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.wechat-qr-box {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 260px;
  text-align: center;
}

.wechat-qr-box img {
  width: 100%;
}

.wechat-close {
  position: absolute;
  top: 5px;
  right: 5px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}