/* 临时：关闭领航计划首页飘窗（恢复时删除本段） */
#ad_lhjh,
#ad_lhjh_enroll,
#ad_lhjh_enroll_m {
  display: none !important;
}

/* 举办单位入口：首页常显（关闭后加 is-dismissed） */
#ad_lhjh.lhjh-float {
  display: block;
  /* 左侧 ad2 专题研讨班：top 548px、高 289px，下留 24px */
  top: 861px;
  z-index: 998;
}
#ad_lhjh.lhjh-float.is-dismissed {
  display: none !important;
}

/* 学员报名飘窗默认隐藏，登录且博士名单校验通过后再加 lhjh-float--eligible */
#ad_lhjh_enroll,
#ad_lhjh_enroll_m {
  display: none;
}
@media (min-width: 768px) {
  #ad_lhjh_enroll.lhjh-float--eligible {
    display: block;
  }
  #ad_lhjh_enroll_m {
    display: none !important;
  }
}
@media (max-width: 767px) {
  #ad_lhjh_enroll {
    display: none !important;
  }
  #ad_lhjh_enroll_m.lhjh-float--eligible {
    display: block;
  }
}

.lhjh-float {
  position: fixed;
  top: 374px;
  left: 20px;
  z-index: 999;
  width: 229px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 20, 60, 0.35);
  cursor: pointer;
  background: linear-gradient(160deg, #0a1f4d 0%, #1a3a7a 45%, #0d2b5c 100%);
  color: #fff;
  font-family: "Microsoft YaHei", sans-serif;
}
.lhjh-float--right {
  left: auto;
  right: 20px;
}
.lhjh-float__inner {
  padding: 18px 16px 16px;
  position: relative;
  box-sizing: border-box;
}
.lhjh-float__close {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.lhjh-float__close:hover {
  color: #fff;
}
.lhjh-float__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin: 14px 0 14px;
  letter-spacing: 0.5px;
  padding: 0 4px;
}
.lhjh-float__btn {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #c9a227, #e8c547);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  width: auto;
  max-width: 100%;
  margin: 0 6px;
  box-sizing: border-box;
  cursor: pointer;
}
.lhjh-float__stars {
  height: 40px;
  opacity: 0.35;
  background: radial-gradient(circle at 20% 50%, #fff 1px, transparent 1px),
    radial-gradient(circle at 60% 30%, #fff 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, #fff 1px, transparent 1px);
  background-size: 40px 40px;
}

.lhjh-qr-modal .remodal {
  max-width: 420px;
}
/* remodal 初始化会给 .remodal-is-initialized { display:inline-block }，避免弹窗节点留在 body 顶部撑乱首页 */
body > .remodal.lhjh-qr-modal {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden !important;
}
#lhjh-btn-mock-scan {
  display: inline-block;
  width: auto;
  min-width: 140px;
}

.lhjh-qr-modal .qr-box {
  margin: 12px auto;
  padding: 12px;
  background: #f5f7fa;
  border-radius: 8px;
  display: inline-block;
}
.lhjh-qr-modal .bind-info {
  font-size: 12px;
  background: #f0f6ff;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  word-break: break-all;
}

/* 学员报名入口 — 未登录提示（简洁白底弹层，不与登录框 jAlert 叠层） */
.lhjh-enroll-login-tip {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.lhjh-enroll-login-tip.is-open {
  display: flex;
}
.lhjh-enroll-login-tip__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.lhjh-enroll-login-tip__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 28px 24px 20px;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}
.lhjh-enroll-login-tip__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}
.lhjh-enroll-login-tip__actions {
  margin-top: 28px;
  text-align: right;
}
.lhjh-enroll-login-tip__ok {
  display: inline-block;
  min-width: 88px;
  padding: 8px 28px;
  border-radius: 999px;
  border: 2px solid #246be4;
  background: #246be4;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  line-height: 1.4;
}
.lhjh-enroll-login-tip__ok:hover {
  background: #1a5acc;
  border-color: #1a5acc;
}

@media (max-width: 767px) {
  #ad_lhjh.lhjh-float {
    top: 861px;
    left: 12px;
    right: auto;
    width: auto;
    max-width: 220px;
  }
}

.lhjh-float--mobile-enroll {
  top: auto;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  width: auto;
  max-width: 320px;
  margin: 0 auto;
  z-index: 10001;
}
