/* tb-authmodal — 注册/登录/找回密码弹窗（独立命名空间） */

.tb-authmodal-root {
  --am-accent: #ff5745;
  --am-accent-hover: #ff6a5a;
  --am-teal: #0f766e;
  --am-teal-soft: #14b8a6;
  --am-ink: #15202b;
  --am-muted: #667085;
  --am-line: rgba(21, 32, 43, 0.1);
  --am-surface: #ffffff;
  --am-surface-2: #f3f6f8;
  --am-radius: 22px;
  --am-ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
}

.tb-authmodal-root.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nice-dark-mode .tb-authmodal-root {
  --am-ink: #f2f4f7;
  --am-muted: #a8b0bd;
  --am-line: rgba(255, 255, 255, 0.1);
  --am-surface: #23272e;
  --am-surface-2: #2c313a;
}

.tb-authmodal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 48, 0.55);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  opacity: 0;
  transition: opacity 0.3s var(--am-ease);
}

.tb-authmodal-root.is-open .tb-authmodal-overlay {
  opacity: 1;
}

.tb-authmodal-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.34s var(--am-ease), transform 0.34s var(--am-ease);
}

.tb-authmodal-root.is-open .tb-authmodal-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tb-authmodal-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--am-surface);
  border-radius: var(--am-radius);
  /* 去掉实体边框，避免左侧出现细白缝 */
  border: none;
  box-shadow:
    0 4px 6px rgba(21, 32, 43, 0.04),
    0 28px 64px rgba(11, 42, 48, 0.22);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 860px) {
  .tb-authmodal-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    height: 600px;
    max-height: min(92vh, 600px);
  }
}

.nice-dark-mode .tb-authmodal-card {
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.2),
    0 32px 64px rgba(0, 0, 0, 0.5);
}

/* —— 左侧壁纸轮播 —— */
.tb-authmodal-aside {
  position: relative;
  display: none;
  overflow: hidden;
  background: #0b2a30;
}

@media (min-width: 860px) {
  .tb-authmodal-aside {
    display: block;
    /* 覆盖与右侧接缝，消除细白线 */
    margin-right: -1px;
  }
}

.tb-authmodal-carousel {
  position: absolute;
  inset: -2px; /* 略放大，避免圆角/缩放下露出底色边 */
  z-index: 0;
}

.tb-authmodal-slide {
  position: absolute;
  inset: 0;
  background-color: #0b2a30;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.85s var(--am-ease), transform 8s var(--am-ease);
  will-change: opacity, transform;
}

.tb-authmodal-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.tb-authmodal-aside-mask {
  position: absolute;
  inset: -1px;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 42, 48, 0.18) 0%, rgba(11, 42, 48, 0.38) 48%, rgba(11, 42, 48, 0.86) 100%),
    radial-gradient(circle at 78% 18%, rgba(255, 87, 69, 0.22), transparent 40%),
    radial-gradient(circle at 18% 80%, rgba(45, 212, 191, 0.2), transparent 42%);
  pointer-events: none;
}

.tb-authmodal-aside-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 26px 48px;
  color: #fff;
  pointer-events: none;
}

.tb-authmodal-aside-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
}

.tb-authmodal-aside-brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--am-teal-soft), var(--am-accent));
  font-size: 0.625rem;
  font-weight: 800;
}

.tb-authmodal-aside-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: opacity 0.35s ease;
}

.tb-authmodal-aside-desc {
  margin: 8px 0 0;
  max-width: 22rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  transition: opacity 0.35s ease;
}

.tb-authmodal-aside-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-authmodal-aside-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.88);
}

.tb-authmodal-dots {
  position: absolute;
  left: 26px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 7px;
  pointer-events: auto;
}

.tb-authmodal-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.25s var(--am-ease), background 0.25s ease;
}

.tb-authmodal-dot.is-active {
  width: 22px;
  background: #fff;
}

.tb-authmodal-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

/* —— 右侧表单区 —— */
.tb-authmodal-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: var(--am-surface);
  overflow: hidden;
}

.tb-authmodal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--am-surface-2);
  color: var(--am-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--am-ease);
}

.tb-authmodal-close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.tb-authmodal-close:hover {
  background: rgba(255, 87, 69, 0.12);
  color: var(--am-accent);
  transform: rotate(90deg);
}

.tb-authmodal-header {
  flex-shrink: 0;
  padding: 22px 24px 0;
  padding-right: 48px;
}

.tb-authmodal-heading {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--am-ink);
  line-height: 1.25;
}

.tb-authmodal-subheading {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: var(--am-muted);
  line-height: 1.45;
}

.tb-authmodal-back {
  display: none;
  margin-bottom: 8px;
  border: none;
  background: none;
  padding: 0;
  color: var(--am-teal);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.tb-authmodal-root.is-mode-findpass .tb-authmodal-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tb-authmodal-back:hover {
  color: var(--am-accent);
}

.tb-authmodal-tabs-wrap {
  flex-shrink: 0;
  padding: 14px 24px 0;
}

.tb-authmodal-root.is-mode-findpass .tb-authmodal-tabs-wrap {
  display: none;
}

.tb-authmodal-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--am-surface-2);
  border-radius: 999px;
  border: 1px solid var(--am-line);
}

.tb-authmodal-tab {
  flex: 1;
  padding: 8px 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--am-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.25s var(--am-ease), box-shadow 0.25s var(--am-ease);
  white-space: nowrap;
}

.tb-authmodal-tab:hover:not(.is-active) {
  color: var(--am-ink);
}

.tb-authmodal-tab.is-active {
  color: var(--am-ink);
  background: var(--am-surface);
  box-shadow: 0 2px 8px rgba(21, 32, 43, 0.08);
}

.nice-dark-mode .tb-authmodal-tab.is-active {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.tb-authmodal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 14px 24px 8px;
  -webkit-overflow-scrolling: touch;
}

.tb-authmodal-root.is-mode-register .tb-authmodal-body,
.tb-authmodal-root.is-mode-findpass .tb-authmodal-body {
  overflow-y: auto;
}

.tb-authmodal-panel {
  display: none;
  animation: tbAuthFadeIn 0.28s var(--am-ease) both;
}

.tb-authmodal-panel.is-active {
  display: block;
}

@keyframes tbAuthFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tb-authmodal-form {
  display: grid;
  gap: 11px;
}

.tb-authmodal-field {
  display: grid;
  gap: 5px;
}

.tb-authmodal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tb-authmodal-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--am-ink);
}

.tb-authmodal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tb-authmodal-input-wrap .tb-authmodal-input {
  padding-left: 40px;
}

.tb-authmodal-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: 0;
  transform: translateY(-50%);
  color: var(--am-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  z-index: 1;
}

.tb-authmodal-input-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.tb-authmodal-input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border-radius: 11px;
  border: 1px solid var(--am-line);
  padding: 0 12px;
  background: var(--am-surface-2);
  color: var(--am-ink);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tb-authmodal-input::placeholder {
  color: rgba(102, 112, 133, 0.65);
}

.tb-authmodal-input:hover {
  border-color: rgba(15, 118, 110, 0.25);
}

.tb-authmodal-input:focus {
  outline: none;
  border-color: var(--am-teal-soft);
  background: var(--am-surface);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.tb-authmodal-captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.tb-authmodal-captcha-box {
  position: relative;
  width: 112px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--am-line);
  background: var(--am-surface-2);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s var(--am-ease);
}

.tb-authmodal-captcha-box:hover {
  border-color: var(--am-teal-soft);
  transform: scale(1.02);
}

.tb-authmodal-captcha-img {
  display: block;
  width: 100%;
  height: 42px;
  object-fit: cover;
}

.tb-authmodal-captcha-refresh {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 42, 48, 0.35);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tb-authmodal-captcha-box:hover .tb-authmodal-captcha-refresh {
  opacity: 1;
}

.tb-authmodal-actions {
  margin-top: -6px;
}

.tb-authmodal-remember {
  margin: 0;
}

.tb-authmodal-remember-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--am-surface-2);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s var(--am-ease), box-shadow 0.2s ease;
}

.tb-authmodal-remember-label:hover {
  box-shadow: inset 0 0 0 1px var(--am-line);
}

.tb-authmodal-remember-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tb-authmodal-remember-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--am-ink);
  line-height: 1.2;
}

.tb-authmodal-remember-hint {
  font-size: 0.7rem;
  color: var(--am-muted);
  line-height: 1.3;
}

.tb-authmodal-remember-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tb-authmodal-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(21, 32, 43, 0.18);
  transition: background 0.22s var(--am-ease);
}

.nice-dark-mode .tb-authmodal-switch {
  background: rgba(255, 255, 255, 0.18);
}

.tb-authmodal-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(21, 32, 43, 0.22), 0 4px 10px rgba(21, 32, 43, 0.08);
  transition: transform 0.22s var(--am-ease);
}

.tb-authmodal-remember-input:checked + .tb-authmodal-switch {
  background: linear-gradient(135deg, var(--am-teal) 0%, var(--am-teal-soft) 100%);
}

.tb-authmodal-remember-input:checked + .tb-authmodal-switch .tb-authmodal-switch-thumb {
  transform: translateX(18px);
}

.tb-authmodal-remember-input:focus-visible + .tb-authmodal-switch {
  outline: 2px solid rgba(15, 118, 110, 0.45);
  outline-offset: 2px;
}

.tb-authmodal-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--am-teal) 0%, #14808a 55%, var(--am-accent) 140%);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.26);
  transition: transform 0.2s var(--am-ease), box-shadow 0.2s ease, opacity 0.2s ease;
}

.tb-authmodal-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.32);
}

.tb-authmodal-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.tb-authmodal-secondary {
  margin-top: 2px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--am-muted);
}

.tb-authmodal-linkbtn {
  border: none;
  background: none;
  padding: 0;
  color: var(--am-teal);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tb-authmodal-linkbtn:hover {
  color: var(--am-accent);
  text-decoration: underline;
}

.tb-authmodal-social {
  margin-top: 6px;
  padding-top: 0;
}

.tb-authmodal-social-label {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--am-muted);
}

.tb-authmodal-social-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.tb-authmodal-social-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--am-line);
  border-radius: 50%;
  background: var(--am-surface-2);
  color: var(--am-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--am-ease), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tb-authmodal-social-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(21, 32, 43, 0.12);
}

.tb-authmodal-social-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.tb-authmodal-social-btn i {
  font-size: 1.15rem;
  line-height: 1;
}

.tb-authmodal-social-svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.tb-authmodal-social-btn.is-qq:hover { background: #12b7f5; color: #fff; }
.tb-authmodal-social-btn.is-weibo:hover { background: #e6162d; color: #fff; }
.tb-authmodal-social-btn.is-wechat:hover { background: #07c160; color: #fff; }
.tb-authmodal-social-btn.is-ms:hover { background: #00a4ef; color: #fff; }

.tb-authmodal-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tb-authmodal-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--am-muted);
}

.tb-authmodal-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--am-surface-2);
  border: 1px solid var(--am-line);
  color: var(--am-muted);
}

.tb-authmodal-step.is-active .tb-authmodal-step-num {
  background: var(--am-teal);
  border-color: var(--am-teal);
  color: #fff;
}

.tb-authmodal-step.is-active {
  color: var(--am-ink);
  font-weight: 600;
}

.tb-authmodal-step-line {
  width: 22px;
  height: 1px;
  background: var(--am-line);
}

.tb-authmodal-foot {
  flex-shrink: 0;
  padding: 10px 24px 14px;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--am-muted);
  border-top: 1px solid var(--am-line);
  background: var(--am-surface-2);
}

.tb-authmodal-foot a {
  color: var(--am-teal);
  text-decoration: none;
  font-weight: 600;
}

.tb-authmodal-foot a:hover {
  color: var(--am-accent);
  text-decoration: underline;
}

.tb-authmodal-wxqr {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.nice-dark-mode .tb-authmodal-wxqr {
  background: rgba(35, 39, 46, 0.98);
}

.tb-authmodal-wxqr.is-open {
  display: flex;
}

.tb-authmodal-wxqr-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--am-ink);
}

.tb-authmodal-wxqr-desc {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: var(--am-muted);
}

.tb-authmodal-wxqr img,
.tb-authmodal-wxqr #tb-authmodal-wx-login {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 1px solid var(--am-line);
  background: #fff;
}

.tb-authmodal-social-wait {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
}

.nice-dark-mode .tb-authmodal-social-wait {
  background: rgba(35, 39, 46, 0.98);
}

.tb-authmodal-social-wait.is-open {
  display: flex;
}

.tb-authmodal-social-wait-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--am-surface-2);
  border: 1px solid var(--am-line);
  color: var(--am-ink);
  font-size: 1.35rem;
  position: relative;
}

.tb-authmodal-social-wait-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--am-accent, #2f6fed);
  animation: tb-authmodal-spin 0.9s linear infinite;
}

.tb-authmodal-social-wait.is-cancelled .tb-authmodal-social-wait-icon::after,
.tb-authmodal-social-wait.is-success .tb-authmodal-social-wait-icon::after {
  display: none;
}

@keyframes tb-authmodal-spin {
  to { transform: rotate(360deg); }
}

.tb-authmodal-social-wait-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--am-ink);
}

.tb-authmodal-social-wait-desc {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--am-ink);
}

.tb-authmodal-social-wait-hint {
  margin: 0 0 18px;
  font-size: 0.78rem;
  color: var(--am-muted);
}

.tb-authmodal-social-wait-cancel {
  font-size: 0.8125rem;
}

.tb-authmodal-social-wait.is-cancelled .tb-authmodal-social-wait-desc {
  color: #c2410c;
}

.tb-authmodal-wx-mobile {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.99) 40%);
  padding: 20px 18px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nice-dark-mode .tb-authmodal-wx-mobile {
  background: linear-gradient(180deg, rgba(35, 39, 46, 0.99) 0%, rgba(28, 31, 36, 0.99) 45%);
}

.tb-authmodal-wx-mobile.is-open {
  display: block;
}

.tb-authmodal-wx-mobile-inner {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  animation: tb-authmodal-wx-in 0.28s var(--am-ease);
}

@keyframes tb-authmodal-wx-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tb-authmodal-wx-mobile-badge {
  width: 52px;
  height: 52px;
  margin: 4px auto 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #1aad19 0%, #07c160 100%);
  box-shadow: 0 10px 24px rgba(7, 193, 96, 0.28);
  font-size: 1.45rem;
}

.tb-authmodal-wx-mobile-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--am-ink);
  letter-spacing: -0.01em;
}

.tb-authmodal-wx-mobile-lead {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--am-muted);
}

.tb-authmodal-wx-guide {
  border: 1px solid var(--am-line);
  border-radius: 16px;
  background: var(--am-surface);
  box-shadow: 0 8px 28px rgba(21, 32, 43, 0.06);
  overflow: hidden;
  margin-bottom: 16px;
}

.nice-dark-mode .tb-authmodal-wx-guide {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.tb-authmodal-wx-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(7, 193, 96, 0.08);
  border-bottom: 1px solid var(--am-line);
}

.nice-dark-mode .tb-authmodal-wx-guide-head {
  background: rgba(7, 193, 96, 0.12);
}

.tb-authmodal-wx-guide-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--am-ink);
  line-height: 1.35;
}

.tb-authmodal-wx-guide-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #067c3e;
  background: rgba(7, 193, 96, 0.16);
  border-radius: 999px;
  padding: 4px 9px;
}

.nice-dark-mode .tb-authmodal-wx-guide-tag {
  color: #6ee7a8;
}

.tb-authmodal-wx-guide-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.tb-authmodal-wx-guide-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
}

.tb-authmodal-wx-guide-list li + li {
  border-top: 1px dashed var(--am-line);
}

.tb-authmodal-wx-guide-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #067c3e;
  background: rgba(7, 193, 96, 0.14);
}

.nice-dark-mode .tb-authmodal-wx-guide-num {
  color: #6ee7a8;
}

.tb-authmodal-wx-guide-list strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--am-ink);
  line-height: 1.4;
  margin-bottom: 3px;
}

.tb-authmodal-wx-guide-list p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--am-muted);
}

.tb-authmodal-wx-guide-list a {
  color: var(--am-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tb-authmodal-wx-mobile-cta {
  width: 100%;
  margin-top: auto;
}

.tb-authmodal-wx-mobile-back {
  margin-top: 10px;
  text-align: center;
  width: 100%;
}

.tb-authmodal-wxqr-back {
  margin-top: 16px;
}

@media (max-width: 859.98px) {
  .tb-authmodal-shell {
    max-width: 420px;
  }

  .tb-authmodal-card {
    max-height: min(92vh, 680px);
  }

  .tb-authmodal-main {
    max-height: min(92vh, 680px);
  }

  .tb-authmodal-body {
    overflow-y: auto;
  }

  .tb-authmodal-header,
  .tb-authmodal-tabs-wrap,
  .tb-authmodal-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tb-authmodal-foot {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 380px) {
  .tb-authmodal-captcha-row {
    grid-template-columns: 1fr;
  }

  .tb-authmodal-captcha-box {
    width: 100%;
  }
}
