/* WeChat QR modal — used across all /zh/* pages.
   The WeChat button (.hero-cta-wa with [data-open-wechat]) opens this
   modal. Direct add-friend URLs do not work in browsers (WeChat returns
   ServerError to non-WeChat user-agents), so we show the QR with mobile
   + desktop instructions. */
.wechat-qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  animation: wechatFadeIn 0.18s ease-out;
}
.wechat-qr-overlay[hidden] {
  display: none;
}
.wechat-qr-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px 24px 20px;
  max-width: 360px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: wechatPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.wechat-qr-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #555;
  cursor: pointer;
}
.wechat-qr-close:hover {
  background: #f4f4f4;
}
.wechat-qr-title {
  margin: 4px 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
.wechat-qr-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.wechat-qr-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}
.wechat-qr-steps {
  margin: 14px 0 0;
  font-size: 13px;
  color: #444;
  text-align: left;
  padding: 12px 14px;
  background: #f7f7f9;
  border-radius: 8px;
  line-height: 1.6;
}
.wechat-qr-steps strong {
  color: #07c160;
}
.wechat-qr-foot {
  margin: 12px 0 0;
  font-size: 12px;
  color: #999;
}
@keyframes wechatFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes wechatPopIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
