/* ===== 微信二维码弹窗 ===== */
.wechat-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.wechat-qr-modal[hidden] {
  display: none !important;
}

.wechat-qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.wechat-qr-modal-panel {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  animation: wechatQrModalIn 0.25s ease;
}

@keyframes wechatQrModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wechat-qr-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  color: #6b7280;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.wechat-qr-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.wechat-qr-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.wechat-qr-modal-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: #6b7280;
}

.wechat-qr-modal-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.wechat-qr-modal-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wechat-qr-modal-tip {
  margin: 0;
  font-size: 0.875rem;
  color: #10b981;
  font-weight: 500;
}

body.wechat-qr-open {
  overflow: hidden;
}
