/* 微信扫码登录 UI（仅登录页注入，全部前缀 qwx- 避免与页面样式冲突） */
.qwx-block { margin-top: 22px; }
.qwx-sep { display: flex; align-items: center; gap: 10px; color: #98a2b3; font-size: 12px; margin: 4px 0 16px; }
.qwx-sep i { flex: 1; height: 1px; background: #e8edf5; }
.qwx-sep span { white-space: nowrap; letter-spacing: .5px; }

.qwx-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qwx-role {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 6px 11px; border: 1.5px solid #e3e9f2; border-radius: 12px;
  background: #fafcff; color: #5a6b81; cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
  font-family: inherit;
}
.qwx-role svg { width: 18px; height: 18px; margin-bottom: 2px; color: #8fa3bb; }
.qwx-role b { font-size: 14.5px; font-weight: 800; color: #12233a; letter-spacing: .2px; }
.qwx-role em { font-style: normal; font-size: 11.5px; color: #9aa6b8; }
.qwx-role.on { border-color: #2f7bff; background: #eef5ff; box-shadow: 0 4px 14px rgba(47, 123, 255, .16); }
.qwx-role.on svg { color: #2f7bff; }
.qwx-role.on b { color: #1b5ce0; }
.qwx-role.on em { color: #5d86c8; }

.qwx-btn {
  width: 100%; height: 46px; margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 11px; cursor: pointer;
  background: linear-gradient(135deg, #09bb07, #07920a);
  color: #fff; font-size: 15.5px; font-weight: 700; letter-spacing: .4px;
  box-shadow: 0 6px 18px rgba(9, 187, 7, .24);
  font-family: inherit;
}
.qwx-btn:active { transform: translateY(1px); }
.qwx-btn:disabled { opacity: .65; cursor: default; }
.qwx-hint { margin-top: 10px; text-align: center; font-size: 11.5px; color: #a3adbd; line-height: 1.6; }

/* ── 扫码弹窗 ── */
.qwx-mask {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(6, 18, 32, .58);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.qwx-modal {
  position: relative; width: 100%; max-width: 330px;
  background: #fff; border-radius: 18px; padding: 24px 20px 20px;
  text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.qwx-close {
  position: absolute; top: 8px; right: 14px; font-size: 22px; line-height: 1;
  color: #b6c2d2; cursor: pointer; padding: 4px;
}
.qwx-mtitle { font-size: 18px; font-weight: 800; color: #12233a; }
.qwx-msub { font-size: 12.5px; color: #8a95a8; margin: 5px 0 16px; }
.qwx-msub b { color: #2f7bff; }
.qwx-qr {
  width: 220px; height: 220px; margin: 0 auto; padding: 8px;
  border: 1px solid #eef2f8; border-radius: 12px; background: #fff;
}
.qwx-qr svg { width: 204px; height: 204px; display: block; }
.qwx-status { margin-top: 14px; font-size: 13px; color: #5a6b81; }
.qwx-status.ok { color: #12b76a; font-weight: 700; }
.qwx-status.warn { color: #e0821a; font-weight: 700; }
.qwx-refresh {
  margin-top: 12px; border: 1px solid #dbe3ee; background: #fff; color: #2f7bff;
  border-radius: 10px; padding: 9px 18px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.qwx-toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(20, 30, 45, .92); color: #fff; padding: 11px 18px;
  border-radius: 10px; font-size: 13.5px; z-index: 9999; max-width: 86vw;
}

@media (max-width: 480px) {
  .qwx-qr { width: 200px; height: 200px; }
  .qwx-qr svg { width: 184px; height: 184px; }
  .qwx-modal { max-width: 320px; }
}
