/* ----------toast 弹窗 ---------- */
.com_toast_wrap {
  position: fixed;
  left: 50%;
  top: 90px;
  transform: translateX(-50%) translateY(-16px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  z-index: 9999;
  min-width: 200px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  box-shadow: 0 10px 28px var(--com-shadow-color);
  white-space: nowrap;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  opacity: 1;
}
.com_toast_wrap.com_toast_center {
  top: 50%;
  transform: translate(-50%, -50%);
}

.com_toast_icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.com_toast_tip {
  flex: 1;
}
.com_toast_tip span:last-child {
  font-size: 15px;
  color: #706c6c;
  color: #333;
}

/* 弹窗通用（登录/注册 + 验证码） */
.modal-login-wrap {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-login-wrap[hidden] {
  display: none;
}

.modal-login-mask {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 22, 40, 0.55);
}

.modal-login-box {
  position: relative;
  width: 420px;
  max-width: 100%;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 36px 40px 28px;
  box-shadow: 0 24px 60px var(--com-shadow-color);
  box-sizing: border-box;
}

.modal-login-close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #9aa3b2;
  cursor: pointer;
  border-radius: 50%;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.modal-login-close:hover {
  color: #1053a0;
  background-color: #f0f5fb;
}

/* 登录/注册 tab */
.modal-login-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 26px;
}

.modal-login-tab {
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  padding: 6px 30px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.modal-login-tab.active {
  color: #000;
  border-bottom-color: #1053a0;
}

/* 表单 */
.modal-login-pane {
  display: block;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.auth-field:focus-within {
  border-color: #1053a0;
}

.auth-prefix {
  flex: 0 0 auto;
  padding: 0 12px;
  font-size: 14px;
  color: #737373;
  border-right: 1px solid #e6edf6;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 46px;
}

.auth-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 14px;
  font-size: 14px;
  color: #1f2d3d;
}
.auth-sms {
  color: #666;
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.auth-sms.disabled {
  color: #aab4c4;
  cursor: not-allowed;
}

.auth-input::placeholder {
  color: #aab4c4;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-link {
  font-size: 13px;
  color: #1053a0;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-agree {
  gap: 6px;
  font-size: 12px;
  color: #8a97ab;
  line-height: 1.6;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.auth-agree a {
  color: #2d2d2d;
  font-weight: 600;
  text-decoration: none;
  text-decoration-line: underline;
}

.auth-agree input {
  margin-top: 2px;
  accent-color: #1053a0;
}

.auth-submit {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-radius: 25px;
  background-color: #1053a0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  justify-content: center;
}

.auth-submit:hover {
  background-color: #0b3d91;
}

/* 滑块验证 */
.auth-slider {
  position: relative;
  height: 46px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #ececec;
  overflow: hidden;
  user-select: none;
}

.auth-slider-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #a0a0a0;
}

.auth-slider-btn {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 42px;
  height: 44px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d8e2ef;
  color: #838383;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 2;
  box-shadow: 0 2px 8px var(--com-shadow-color);
}

.auth-slider.done {
  border-color: #1053a0;
  background: #eaf2fb;
}

.auth-slider.done .auth-slider-btn {
  background: #1053a0;
  color: #ffffff;
  border-color: #1053a0;
}

.auth-slider.done .auth-slider-track {
  color: #1053a0;
}

/* 滑块验证成功后的绿色提示块（默认隐藏，验证通过后由 JS 加 show 显示） */
.auth-slider-success {
  display: none;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: #65c366;
  color: #ffffff;
  font-size: 14px;
  user-select: none;
}

.auth-slider-success.show {
  display: flex;
}

.auth-slider-success .iconfont {
  color: #ffffff;
  font-size: 16px;
  margin-right: 5px;
}

/* ---------- 图形验证码（登录/注册）---------- */
.auth-captcha-img {
  flex: 0 0 auto;
  width: 130px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e6edf6;
  cursor: pointer;
  overflow: hidden;
  background: #f4f7fb;
  user-select: none;
}

.auth-captcha-img img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 40px;
  object-fit: cover;
}

.auth-captcha-ph {
  font-size: 12px;
  color: #737373;
  text-align: center;
  padding: 0 6px;
  line-height: 1.4;
}

.auth-captcha-img:hover .auth-captcha-ph {
  color: #1053a0;
}

/* ---------- 确认框（baseConfirmOpen 动态注入，无模板依赖）---------- */
/* z-index 取 3000：压在 uc_dialog(1000) / 登录弹窗(2000) 之上，同时留 toast(9999) 在最上层 */
.com_confirm_mask {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 22, 40, 0.55);
}

.com_confirm_box {
  width: 100%;
  max-width: 420px;
  padding: 28px 30px 24px;
  background: #ffffff;
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 24px 60px var(--com-shadow-color);
  animation: comConfirmIn 0.2s ease-out;
}

.com_confirm_title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #222;
}

/* pre-line：让 content 里的 \n 还原成换行，同时保持普通文本自动折行 */
.com_confirm_content {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  color: #555;
  white-space: pre-line;
  word-break: break-word;
}

.com_confirm_opts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.com_confirm_btn {
  min-width: 120px;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.com_confirm_btn_ok {
  background: #1053a0;
  color: #ffffff;
}

.com_confirm_btn_ok:hover {
  background: #0d4380;
}

.com_confirm_btn_cancel {
  background: #ffffff;
  color: #66788c;
  border: 1px solid #d8e2ef;
}

.com_confirm_btn_cancel:hover {
  color: #1053a0;
  border-color: #1053a0;
}

@keyframes comConfirmIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .com_confirm_box {
    max-width: 100%;
    padding: 24px 20px 20px;
  }
  .com_confirm_opts {
    flex-direction: column-reverse;
  }
  .com_confirm_btn {
    width: 100%;
    min-width: 0;
  }
}
