#tobpopup-modal-wrap {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.36);
  z-index: 10099;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 日间卡片拟物风格优化 ===== */
.tobpopup-modal {
  background: linear-gradient(135deg, #fafdff 85%, #f2f4fa 100%);
  border-radius: 18px;
  width: 360px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow:
    0 10px 36px 0 rgba(120,140,180,0.13),
    0 2px 10px #e8ebf2,
    0 2px 0 0 #fff inset;
  position: relative;
  padding: 0;
  font-family: 'PingFang SC','Microsoft YaHei',Arial,sans-serif;
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: 420px;
  border: none;
}

.tobpopup-header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 12px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #f6fafd 88%, #f2f4fa 100%);
  border-radius: 18px 18px 0 0;
  padding-top: 22px;
  padding-bottom: 8px;
  box-shadow: 0 2.5px 12px #fff inset, 0 1px 0 0 #e8ebf4;
  position: relative;
  z-index: 1;
}

.tobpopup-logo-area {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  margin-top: 0;
  background: linear-gradient(180deg, #fafdff 88%, #f2f4fa 100%);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 2.5px 10px #eaf0fa, 0 1.5px 0 0 #fff inset;
  position: relative;
}
.tobpopup-logo-area::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 2px;
  border-radius: 1.5px;
  background: linear-gradient(90deg,rgba(185,200,230,0.10) 0%,rgba(230,235,245,0.06) 100%);
  box-shadow: 0 2px 6px 0 #e1e5f1;
  opacity: 0.48;
  pointer-events: none;
}

.tobpopup-logo-img {
  max-width: 112px;
  max-height: 48px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 2px 10px #f4f6fb) drop-shadow(0 0 0 #fff);
}
.tobpopup-logo-text {
  font-size: 21px;
  font-weight: bold;
  color: #222B3A;
  margin: 0 auto;
  display: block;
  line-height: 60px;
  text-shadow: 0 2px 0 #fff, 0 2px 10px #dae1f1;
}

.tobpopup-tabs {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 0 0 4px 0;
  background: none;
}
.tobpopup-tab-link {
  font-size: 15.5px;
  color: #b2b7c2;
  padding: 0 0 7px 0;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 1.2px;
  transition: color .15s, border-bottom .15s;
  text-shadow: 0 1px 0 #fff;
}
.tobpopup-tab-link.active {
  color: #338aff;
  font-weight: bold;
  border-bottom: 2.5px solid #338aff;
  text-shadow: 0 1px 0 #fff, 0 2.5px 10px #d2e0ff;
}

.tobpopup-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background:url('data:image/svg+xml;utf8,<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="6.46447" y="7.87868" width="2" height="20" rx="1" transform="rotate(-45 6.46447 7.87868)" fill="gray"/><rect x="7.87868" y="21.2132" width="2" height="20" rx="1" transform="rotate(-135 7.87868 21.2132)" fill="gray"/></svg>') center/20px no-repeat;
  opacity: .6;
  transition:.2s;
  z-index: 3;
}
.tobpopup-close:hover { opacity:1; }

.tobpopup-modal-content {
  flex: 1 1 auto;
  overflow: visible;
  margin-bottom: 60px;
  background: none;
}
.tobpopup-tab-content {
  display: none;
  width: 100%;
}
.tobpopup-tab-content.active {
  display: block;
}
.tobpopup-tab-content form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* 输入框立体感优化，顶高光底阴影 */
.tobpopup-form-group {
  margin: 16px 32px 0 32px;
  position:relative;
  flex-shrink: 0;
}
.tobpopup-form-group:first-child {
  margin-top: 0;
}
.tobpopup-form-group input[type=text], 
.tobpopup-form-group input[type=password], 
.tobpopup-form-group input[type=email] {
  width:100%;
  height:44px;
  font-size: 17px;
  border:1.5px solid #e4e8f1;
  border-radius: 11px;
  padding: 0 48px 0 15px;
  background: linear-gradient(180deg,#fcfdff 90%,#f3f5fa 100%);
  color: #222B3A !important;
  margin-top:0;
  box-sizing: border-box;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 1.2px;
  outline:none;
  transition: border-color .18s,box-shadow .18s,background .18s;
  box-shadow:
    0 3px 10px #f3f6fb inset,
    0 1.5px 0 0 #fff inset,
    0 2px 8px 0 #e8ebf4;
}
.tobpopup-form-group input:focus {
  border-color: #338aff;
  background: #fff;
  box-shadow: 0 8px 20px rgba(51,138,255,0.13);
}
.tobpopup-form-group input::placeholder {
  color: #b2b7c2 !important;
  opacity: 1 !important;
  font-weight: 400;
}
.tobpopup-btn {
  width:100%;
  height:44px;
  background: linear-gradient(90deg, #338aff 90%, #6ad1ff 100%);
  color:#fff;
  border:none;
  border-radius:11px;
  font-size: 18px;
  margin-top: 18px;
  font-weight: bold;
  transition:.18s;
  cursor:pointer;
  letter-spacing:2px;
  font-family: inherit;
  box-shadow: 0 3px 16px #e8f0ff, 0 1.5px 0 0 #fff inset;
}
.tobpopup-btn:hover { background:linear-gradient(90deg,#2466d3,#338aff); }

.tobpopup-msg {
  min-height: 18px;
  font-size: 14px;
  text-align:center;
  margin-top:12px;
  flex-shrink: 0;
}
.tobpopup-msg-ok { color: #28a745;}
.tobpopup-msg-err { color: #e74c3c;}
.tobpopup-captcha {
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink: 0;
}
.tobpopup-captcha input { flex:1; }
.tobpopup-captcha-img {
  width: 90px;
  height: 32px;
  border-radius: 9px;
  border:1.3px solid #e4e8f1;
  background:linear-gradient(180deg,#fafdff 70%,#f3f6fa 100%);
  cursor:pointer;
  object-fit:cover;
  box-shadow: 0 1.5px 6px #f4f8fd inset;
}
.tobpopup-protocol { font-size:12.5px; margin-top:9px; flex-shrink: 0;}
.tobpopup-protocol label { color:#b2b7c2;}
.tobpopup-protocol a { color:#338aff; text-decoration:underline; margin: 0 1px;}

.tobpopup-bottom {
  text-align: center;
  font-size:14px;
  color:#b2b7c2;
  margin: 0 0 0 0;
  letter-spacing:.2px;
  flex-shrink: 0;
  padding: 18px 12px 20px 12px;
  border-top: 1px solid #e4e8f1;
  background: linear-gradient(90deg,#fcfdff 60%,#f2f4fa 100%);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 -1.5px 6px #fff inset;
}
.tobpopup-link {
  color:#338aff;
  margin:0 2px;
  text-decoration:none;
  cursor:pointer;
  transition: color .18s;
}
.tobpopup-link:hover { text-decoration:underline; color:#2466d3;}

/* 明文密码切换小眼睛 */
.tobpopup-password-group {
  position: relative !important;
}
.tobpopup-password-group input[type="password"],
.tobpopup-password-group input[type="text"] {
  padding-right: 48px !important;
}
.tobpopup-showpwd {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 48px !important;
  height: 44px !important;
  display: block !important;
  cursor: pointer !important;
  z-index: 999 !important;
  pointer-events: auto !important;
  background: none !important;
  user-select: none;
  transition: opacity .15s;
}
.tobpopup-showpwd::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 24px; height: 24px;
  transform: translate(-50%, -50%);
  background: url('./eye-close.png') center center no-repeat;
  background-size: 24px 24px;
  transition: background-image .18s,opacity .15s;
}
.tobpopup-showpwd.show::before {
  background-image: url('./eye-open.png');
}
.tobpopup-showpwd:active { opacity: 0.8 !important; }

@media (max-width:600px) {
  .tobpopup-modal {
    width: 94vw !important;
    min-width: 0 !important;
    max-width: 350px !important;
    border-radius: 13px !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
  }
  .tobpopup-form-group {
    margin-left: 15px !important;
    margin-right: 15px !important;
    margin-top: 10px !important;
  }
  .tobpopup-form-group input[type=text], 
  .tobpopup-form-group input[type=password], 
  .tobpopup-form-group input[type=email] {
    height: 42px !important;
    font-size: 16px !important;
    padding: 0 48px 0 10px !important;
    border-radius: 7px !important;
  }
  .tobpopup-showpwd { width: 48px !important; height: 42px !important; }
}
@media (max-width:400px) {
  .tobpopup-modal {
    width: 98vw !important;
    border-radius: 8px !important;
    max-width: 98vw !important;
    margin: 0 !important;
  }
  .tobpopup-form-group {
    margin-left: 4px !important;
    margin-right: 4px !important;
    margin-top: 5px !important;
  }
  .tobpopup-header {
    margin-top: 5px !important;
  }
}

/* ======= 夜间模式：你原来方案，完全不动 ======= */
.darking #tobpopup-modal-wrap {
  background: rgba(0,0,0,0.65);
}
.darking .tobpopup-modal {
  background: rgba(50,51,53,0.97);
  color: var(--tb--base, #e5eef7) !important;
  border-color: var(--tb--card-line, #323335) !important;
  box-shadow: 0 8px 36px rgba(30,30,30,.36);
}
.darking .tobpopup-header {
  background: rgba(50,51,53, 0.82);
  backdrop-filter: saturate(2) blur(18px);
  -webkit-backdrop-filter: saturate(2) blur(18px);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 1px 0 0 #2225;
  color: var(--tb--base, #e5eef7) !important;
  padding-top: 24px;
  padding-bottom: 6px;
  margin-top: 0;
}
.darking .tobpopup-logo-area {
  background: none !important;
}
.darking .tobpopup-logo-img {
  filter: drop-shadow(0 1px 2.5px #1b2c3a) drop-shadow(0 0 2px #fff);
}
.darking .tobpopup-logo-text {
  color: var(--tb--base, #e5eef7) !important;
  text-shadow: 0 1px 3px #191919;
}
.darking .tobpopup-tab-link {
  color: #8f939b !important;
}
.darking .tobpopup-tab-link.active {
  color: var(--tb--link, #2f9fff) !important;
  border-bottom-color: var(--tb--link, #2f9fff) !important;
}
.darking .tobpopup-form-group input[type="text"],
.darking .tobpopup-form-group input[type="password"],
.darking .tobpopup-form-group input[type="email"] {
  background: linear-gradient(90deg, #232325 75%, #292a2d 100%);
  color: var(--tb--base, #e5eef7) !important;
  border-color: var(--tb--card-line, #323335) !important;
  box-shadow: 0 1.5px 4px #18181b2a inset;
}
.darking .tobpopup-form-group input:focus {
  border-color: var(--tb--link, #2f9fff) !important;
  background: #232325;
}
.darking .tobpopup-form-group input::placeholder {
  color: var(--tb--tint, #888) !important;
}
.darking .tobpopup-protocol label,
.darking .tobpopup-protocol a {
  color: #8ea0b5 !important;
  text-shadow: 0 0 3px #1c202c77;
}
.darking .tobpopup-btn {
  background: linear-gradient(90deg, var(--tb--link, #2f9fff) 85%, #338aff 100%) !important;
  color: #fff !important;
}
.darking .tobpopup-btn:hover {
  background: #338aff !important;
}
.darking .tobpopup-captcha-img {
  background: var(--tb--light, #0f0f0f) !important;
  border-color: var(--tb--card-line, #323335) !important;
}
.darking .tobpopup-link {
  color: var(--tb--link, #2f9fff) !important;
}
.darking .tobpopup-link:hover {
  color: #fff !important;
}
.darking .tobpopup-bottom {
  background: rgba(50,51,53, 0.90);
  color: var(--tb--tint, #888) !important;
  border-top-color: var(--tb--card-line, #323335) !important;
  border-radius: 0 0 14px 14px;
  backdrop-filter: saturate(2) blur(18px);
  -webkit-backdrop-filter: saturate(2) blur(18px);
}