.nq-rb-panel {
  margin: 0 0 18px;
  padding: 16px 14px 14px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, #fafbfc 0%, #f3f5f7 100%);
}
.nq-rb-panel__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2329;
}
.nq-rb-panel__qr {
  --nq-rb-corner: #165DFF;
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}
/* 圆角 L 形蓝色四角框（叠在二维码上） */
.nq-rb-panel__qr::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  /* 圆弧转角 + 平直端头（butt） */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' fill='none'%3E%3Cpath d='M3 24V10A7 7 0 0 1 10 3H24' stroke='%23165DFF' stroke-width='3' stroke-linecap='butt' stroke-linejoin='round'/%3E%3Cpath d='M176 3H190A7 7 0 0 1 197 10V24' stroke='%23165DFF' stroke-width='3' stroke-linecap='butt' stroke-linejoin='round'/%3E%3Cpath d='M197 176V190A7 7 0 0 1 190 197H176' stroke='%23165DFF' stroke-width='3' stroke-linecap='butt' stroke-linejoin='round'/%3E%3Cpath d='M24 197H10A7 7 0 0 1 3 190V176' stroke='%23165DFF' stroke-width='3' stroke-linecap='butt' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.nq-rb-panel__qr img {
  /* 外框仍 200×200，二维码略内缩 */
  width: 184px;
  height: 184px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #fff;
  display: block;
  transition: filter 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.nq-rb-panel__qr.is-done img,
.nq-rb-panel__qr.is-scanned img {
  filter: blur(4px) brightness(0.92);
  transform: scale(1.04);
}
.nq-rb-panel__qr-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.28);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 4;
}
.nq-rb-panel__qr.is-done .nq-rb-panel__qr-overlay,
.nq-rb-panel__qr.is-scanned .nq-rb-panel__qr-overlay {
  display: flex;
}
.nq-rb-panel__qr-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #07c160;
  box-shadow: 0 3px 10px rgba(7, 193, 96, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: nq-rb-check-in 0.35s cubic-bezier(0.22, 0.8, 0.22, 1) both;
}
.nq-rb-panel__qr-check svg {
  width: 16px;
  height: 16px;
  display: block;
}
.nq-rb-panel__qr-msg {
  margin: 0;
  max-width: 160px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  text-align: center;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 8px rgba(0, 0, 0, 0.35);
}
.nq-rb-panel__qr.is-done .nq-rb-panel__qr-msg,
.nq-rb-panel__qr.is-scanned .nq-rb-panel__qr-msg {
  color: #fff;
}
@keyframes nq-rb-check-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.nq-rb-panel__hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #86909c;
  line-height: 1.5;
}
.nq-rb-panel__hint.is-ok { color: #00b42a; }
.nq-rb-panel__hint.is-err { color: #f53f3f; }
.nq-rb-panel__hint.is-hidden { visibility: hidden; height: 0; margin: 0; overflow: hidden; }

/* 懒加载：模糊占位 + 刷新按钮 */
.nq-rb-panel__lazy {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: auto;
}
.nq-rb-panel__qr.is-lazy {
  background: #fff;
}
.nq-rb-panel__qr.is-lazy img {
  filter: blur(7px);
  transform: scale(1.06);
}
/* 边缘向白色羽化过渡 */
.nq-rb-panel__qr.is-lazy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0.35) 58%,
    rgba(255, 255, 255, 0.78) 76%,
    #fff 92%
  );
}
.nq-rb-panel__qr.is-lazy .nq-rb-panel__lazy {
  display: flex;
}
.nq-rb-panel__lazy-btn {
  appearance: none;
  border: 0;
  background: #165DFF;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.35);
}
.nq-rb-panel__lazy-btn:hover {
  background: #0E52E6;
}
.nq-rb-panel__lazy-tip {
  margin: 0;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.nq-auth-pair--right-only .nq-auth-side {
  display: none !important;
}
.nq-auth-pair--right-only > .nq-auth-form {
  width: 360px;
}
.nq-auth-oauth-host:empty {
  display: none;
}
.nq-auth-pair--right-only .nq-auth-oauth--form {
  position: static;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}
.nq-rb-panel--tab {
  margin: 8px 0 0;
  border: 0;
  background: transparent;
  padding: 8px 0 0;
}

/* 二维码上方微信提示条 */
.nq-rb-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 8px 14px 8px 10px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  white-space: normal;
  text-align: left;
  box-sizing: border-box;
  max-width: 220px;
}
.nq-rb-tip::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.08));
}
.nq-rb-tip__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  line-height: 0;
}
.nq-rb-tip__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.nq-rb-tip__text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #1f2329;
}
.nq-rb-tip__text em {
  font-style: normal;
  color: #1f2329;
}
.nq-rb-tip__text > span {
  color: #07c160;
}

/* 登录页左侧窗：垂直居中，去掉内嵌卡片边框 */
.nq-auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}
.nq-rb-mount {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nq-auth-side .nq-rb-panel--side {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 给底部绝对定位的第三方登录留视觉空间 */
  transform: translateY(-28px);
}
@media (max-width: 800px) {
  .nq-auth-side .nq-rb-panel--side {
    transform: none;
  }
}
