/* ===========================================================================
 * 微信扫码登录弹层（2026-09-18）
 * ---------------------------------------------------------------------------
 * 🔴 独立文件，**不改 style.css / vip.css**（本项目并发铁律：改别人的样式另起文件）。
 * 🔴 用法：`.wxqr-layer` 自己 fixed 铺满，内部 `.wxqr-card` 居中；显示/隐藏由 app.js 控制。
 * ⚠️ 弹层挂在 `#authScreen` 里（登录全屏层之上），所以 z-index 要比它更高才压得住。
 * =========================================================================== */
.wxqr-layer {
  position: fixed;
  inset: 0;
  z-index: 400;                 /* #authScreen 是 300 量级，这里必须更高 */
  background: rgba(20, 12, 6, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wxqr-card {
  position: relative;           /* 🔴 内含 absolute 的关闭钮 → 容器必须 relative */
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 26px 20px 20px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(60, 30, 10, .18);
}
.wxqr-x {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  line-height: 1;
  color: #b9a99b;
  cursor: pointer;
  padding: 4px;
}
.wxqr-title {
  font-size: 17px;
  font-weight: 600;
  color: #3a2a1e;
  margin-bottom: 6px;
}
.wxqr-sub {
  font-size: 12.5px;
  color: #a08c7c;
  line-height: 1.6;
  margin-bottom: 14px;
}
.wxqr-sub b { color: #f95901; font-weight: 600; }
.wxqr-img-wrap {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border: 1px solid #f0e6dd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fdfbf9;
}
.wxqr-img {
  width: 180px;
  height: 180px;
  display: block;
  object-fit: contain;
}
.wxqr-img[hidden] { display: none !important; }
.wxqr-msg {
  margin-top: 12px;
  font-size: 12.5px;
  color: #8b7a6b;
  min-height: 18px;
  line-height: 1.5;
}
.wxqr-msg.err { color: #c0392b; }
.wxqr-msg.ok { color: #1d9e75; }
.wxqr-retry {
  margin-top: 10px;
  border: 1px solid #f0d8c6;
  background: #fff6f0;
  color: #d2691e;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
}
.wxqr-retry[hidden] { display: none !important; }
