/* ============ Auth Modal (global) ============ */
.auth-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.auth-modal.is-open { display: block; }
/* ✅ upgrade 区按钮样式（强制命中） */
.auth-upgrade-actions{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.auth-upgrade-actions .btn-primary,
.auth-upgrade-actions .btn-secondary{
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 44px;
}
.auth-upgrade-actions .btn-secondary{
  background: #fff;
  border: 1px solid #d9e3ef;
}

.auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(6px);
}

.auth-dialog {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  padding: 18px 18px 14px;
}

.auth-close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  border: 0; border-radius: 10px;
  background: #f2f5fb;
  cursor: pointer;
}

.auth-header { padding: 4px 4px 10px; }
.auth-header h2 { margin: 0; font-size: 20px; }
.auth-sub { margin: 6px 0 0; font-size: 13px; color: #667085; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 10px;
}
.auth-tab {
  border: 1px solid #e6eaf2;
  background: #f7f9fe;
  border-radius: 12px;
  padding: 10px 10px;
  cursor: pointer;
  font-weight: 600;
}
.auth-tab.is-active { background: #0b57d0; color: #fff; border-color: #0b57d0; }

.auth-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.auth-method {
  border: 1px solid #e6eaf2;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
.auth-method.is-active { border-color: #0b57d0; color: #0b57d0; }

.auth-body { padding: 2px 4px 8px; }

.auth-pane { display: none; }
.auth-pane.is-active { display: block; }

.auth-form { display: none; }
.auth-form.is-active { display: block; }

.auth-label { display: block; margin: 10px 0 6px; font-size: 13px; color: #344054; font-weight: 600; }

.auth-row { display: flex; gap: 10px; align-items: center; }
.auth-input {
  flex: 1;
  height: 42px;
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
}
.auth-input:focus { border-color: #0b57d0; box-shadow: 0 0 0 4px rgba(11,87,208,0.12); }

.auth-code-btn {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e6eaf2;
  background: #f7f9fe;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.auth-primary {
  width: 100%;
  margin-top: 14px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: #0b57d0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.auth-hint { margin: 10px 0 0; font-size: 12px; color: #667085; }
.auth-wechat-box {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  padding: 12px;
  background: #f7f9fe;
}
.auth-wechat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f5ee;
  font-size: 20px;
}
.auth-wechat-title { font-weight: 800; }
.auth-wechat-desc { font-size: 12px; color: #667085; margin-top: 2px; }

.auth-footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #eef2f8;
}

.auth-link {
  border: 0;
  background: transparent;
  color: #0b57d0;
  cursor: pointer;
  font-weight: 700;
} /* ✅ 这里你原来漏了 } */

.auth-dot { color: #98a2b3; }

/* 微信二维码区域：更紧凑 & 不裁切 */
#wechatQrBox {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
  line-height: 0;         /* ✅ 避免行高影响布局 */
  overflow: visible;      /* ✅ 防止被裁切 */
}

/* WxLogin 会在容器里插入 iframe */
#wechatQrBox iframe {
  width: 240px !important;
  height: 240px !important;  /* ✅ 关键：别用 220，会裁底部 */
  border: 0 !important;
  display: block;
}

/* 可选：减少微信页整体内边距 */
.auth-pane[data-auth-pane="wechat"] .auth-form {
  padding-top: 8px;
}
/* ✅ 微信二维码：彻底不裁切版本 */
.auth-pane[data-auth-pane="wechat"],
.auth-pane[data-auth-pane="wechat"] .auth-form,
.auth-pane[data-auth-pane="wechat"] .auth-card,
.auth-pane[data-auth-pane="wechat"] .auth-body {
  overflow: visible !important;
}

.auth-pane[data-auth-pane="wechat"] .auth-form {
  min-height: 420px;          /* ✅ 给足空间，避免父容器高度太小 */
  padding-bottom: 16px;
}

/* 二维码容器本身 */
#wechatQrBox {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
  overflow: visible !important;
}

/* WxLogin 插入 iframe：尺寸给大一点最稳 */
#wechatQrBox iframe {
  width: 300px !important;
  height: 320px !important;   /* ✅ 320 通常能覆盖底部所有内容 */
  border: 0 !important;
  display: block !important;
}

