/* WeChat QR auto-popup (zh-CN pages only, js/wechat-qr-popup.js) */
.wechat-qr-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 18, 28, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.wechat-qr-popup.wechat-qr-popup--visible {
  opacity: 1;
  visibility: visible;
}

.wechat-qr-popup__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(23, 39, 85, 0.18), 0 0 0 1px rgba(0, 69, 217, 0.08);
  color: #172755;
}

.wechat-qr-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #55648a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.wechat-qr-popup__close:hover {
  background: rgba(0, 69, 217, 0.08);
  color: #0045d9;
}

.wechat-qr-popup__title {
  margin: 0 36px 10px 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: #172755;
}

.wechat-qr-popup__lede {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #55648a;
}

.wechat-qr-popup__qrs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 18px;
}

.wechat-qr-popup__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 160px;
}

.wechat-qr-popup__qr img {
  width: 140px;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #e2e9f7;
  background: #fff;
}

.wechat-qr-popup__caption {
  font-size: 12px;
  line-height: 1.4;
  color: #55648a;
  text-align: center;
}

.wechat-qr-popup__nag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: #55648a;
  cursor: pointer;
  user-select: none;
}

.wechat-qr-popup__checkbox {
  width: 16px;
  height: 16px;
  accent-color: #0045d9;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .wechat-qr-popup {
    transition: none;
  }
}
