@charset "UTF-8";
/* ============================================================
   ESD 内审检查表 · 免费领取浮层（首页专用）
   文件：lead-checklist-20261105.css
   组成：右侧贴边悬挂立牌 + 居中领取弹窗 + 成功态
   原则：全部 fixed 定位，不参与文档流，不占用版面高度
        避开：左上角实验室广告、右上导航搜索、右下悬浮咨询栏
   ============================================================ */

.esc-tab,
.esc-overlay {
  --esc-blue: #007aff;
  --esc-blue-dk: #0b57c2;
  --esc-green: #52ab40;
  --esc-green-dk: #3f8f32;
  --esc-ink: #0f2742;
  --esc-muted: #5d7590;
  --esc-line: #e3edf7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* ---------------- 右侧贴边悬挂立牌 ---------------- */
.esc-tab {
  position: fixed;
  right: 0;
  top: 92px;
  z-index: 10040;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 52px;
  padding: 13px 0 14px;
  margin: 0;
  border: 0;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #1c8bff 0%, #007aff 42%, #0b57c2 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 84, 180, .3), inset 0 1px 0 rgba(255, 255, 255, .26);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s ease;
  -webkit-tap-highlight-color: transparent;
}

.esc-tab:hover,
.esc-tab:focus-visible {
  transform: translateX(-6px);
  box-shadow: 0 14px 34px rgba(0, 84, 180, .38), inset 0 1px 0 rgba(255, 255, 255, .26);
  outline: none;
}

/* 顶部“免费”角标 */
.esc-tab__pill {
  flex-shrink: 0;
  padding: 2px 7px 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb64d, #ff8a00);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.35;
  box-shadow: 0 3px 8px rgba(255, 138, 0, .38);
}

.esc-tab__icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  opacity: .96;
}

/* 竖排文字：字身直立，避免英文横躺 */
.esc-tab__text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.esc-tab__dot {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 0 0 rgba(255, 77, 79, .6);
  animation: escDot 2.4s ease-out infinite;
}

@keyframes escDot {
  0%   { box-shadow: 0 0 0 0 rgba(255, 77, 79, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 77, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0); }
}

/* ---------------- 遮罩与弹窗 ---------------- */
.esc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 26, 50, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .26s ease;
}

.esc-overlay[hidden] {
  display: none;
}

.esc-overlay.is-open {
  opacity: 1;
}

.esc-dialog {
  position: relative;
  width: 100%;
  max-width: 468px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(6, 32, 66, .34), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  transform: translateY(16px) scale(.97);
  opacity: 0;
  transition: transform .3s cubic-bezier(.18, .89, .32, 1.1), opacity .26s ease;
}

.esc-overlay.is-open .esc-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 关闭按钮 */
.esc-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(0, 122, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #6b86a3;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s, border-color .2s;
}

.esc-close:hover,
.esc-close:focus-visible {
  background: #fff;
  border-color: rgba(0, 122, 255, .4);
  color: var(--esc-blue);
  transform: rotate(90deg);
  outline: none;
}

.esc-close svg {
  width: 14px;
  height: 14px;
}

/* 顶部标题区 */
.esc-hero {
  position: relative;
  padding: 26px 26px 18px;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(0, 122, 255, .13) 0%, rgba(0, 122, 255, 0) 58%),
    linear-gradient(180deg, #f3f9ff 0%, #ffffff 100%);
  border-bottom: 1px dashed var(--esc-line);
  overflow: hidden;
}

.esc-hero::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -26px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 171, 64, .16) 0%, rgba(82, 171, 64, 0) 70%);
  pointer-events: none;
}

.esc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(82, 171, 64, .12);
  color: var(--esc-green-dk);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
}

.esc-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--esc-green);
}

.esc-title {
  margin: 12px 0 0;
  font-size: 23px;
  line-height: 1.32;
  font-weight: 800;
  color: var(--esc-ink);
  letter-spacing: -.2px;
}

.esc-title em {
  font-style: normal;
  color: var(--esc-blue);
}

.esc-desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--esc-muted);
}

.esc-points {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.esc-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #33506e;
}

.esc-points svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--esc-green);
}

/* 表单 */
.esc-form {
  padding: 18px 26px 22px;
}

.esc-field {
  margin-bottom: 12px;
}

.esc-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #33506e;
}

.esc-req {
  color: #e5484d;
}

.esc-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dce8f4;
  border-radius: 11px;
  background: #fafcff;
  color: #10273f;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}

.esc-field input::placeholder {
  color: #9aafc4;
}

.esc-field input:focus {
  background: #fff;
  border-color: var(--esc-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, .12);
  outline: none;
}

.esc-field input.is-invalid {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .1);
}

.esc-err {
  display: none;
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #e5484d;
}

.esc-err.is-show {
  display: block;
}

/* 提交按钮 */
.esc-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #5cbb46 0%, #52ab40 46%, #3f8f32 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(63, 143, 50, .3);
  transition: transform .2s, box-shadow .2s, filter .2s;
}

.esc-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(63, 143, 50, .36);
  filter: saturate(1.06);
}

.esc-submit:active {
  transform: translateY(0);
}

.esc-submit:disabled {
  cursor: not-allowed;
  filter: grayscale(.12);
  opacity: .82;
  transform: none;
}

.esc-submit svg {
  width: 17px;
  height: 17px;
}

.esc-formerr {
  display: none;
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fff2f2;
  color: #c53030;
  font-size: 12.5px;
  line-height: 1.55;
}

.esc-formerr.is-show {
  display: block;
}

.esc-tip {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #8ba0b6;
  text-align: center;
}

.esc-tip a {
  color: #5d7590;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 成功态 */
.esc-success {
  padding: 6px 26px 26px;
  text-align: center;
}

.esc-success[hidden] {
  display: none;
}

.esc-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 18px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #5cbb46, #3f8f32);
  color: #fff;
  box-shadow: 0 10px 24px rgba(63, 143, 50, .3);
}

.esc-ok svg {
  width: 28px;
  height: 28px;
}

.esc-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 22px;
  border-radius: 11px;
  background: var(--esc-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 122, 255, .26);
}

.esc-download[hidden] {
  display: none;
}

.esc-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--esc-line);
  border-radius: 14px;
  background: #f8fbff;
  text-align: left;
}

.esc-qr img {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--esc-line);
  background: #fff;
  object-fit: contain;
}

.esc-qr strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--esc-ink);
}

.esc-qr span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--esc-muted);
}

.esc-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #33506e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.esc-phone svg {
  width: 15px;
  height: 15px;
  color: var(--esc-green);
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 768px) {

  /* 立牌改为左侧浮动胶囊，避开右侧竖向悬浮咨询栏（电话/微信/邮件/TOP），不遮挡正文 */
  .esc-tab {
    top: auto;
    bottom: 100px;
    right: auto;
    left: 12px;
    width: auto;
    height: 44px;
    flex-direction: row;
    gap: 7px;
    padding: 0 14px 0 11px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 84, 180, .3);
  }

  .esc-tab:hover,
  .esc-tab:focus-visible {
    transform: translateY(-2px);
  }

  /* 手机端省略“免费”角标，避免与“免费领”重复 */
  .esc-tab__pill {
    display: none;
  }

  .esc-tab__icon {
    width: 17px;
    height: 17px;
  }

  .esc-tab__text {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 12.5px;
    letter-spacing: .5px;
  }

  .esc-tab__dot {
    top: 6px;
    left: 6px;
    width: 5px;
    height: 5px;
  }

  /* 弹窗改为底部抽屉，最大化利用手机屏幕 */
  .esc-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .esc-dialog {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(32px);
  }

  .esc-overlay.is-open .esc-dialog {
    transform: translateY(0);
  }

  .esc-hero {
    padding: 22px 18px 16px;
  }

  .esc-title {
    padding-right: 26px;
    font-size: 19.5px;
  }

  .esc-desc {
    font-size: 12.5px;
  }

  .esc-points li {
    font-size: 12px;
  }

  .esc-form {
    padding: 16px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .esc-success {
    padding: 4px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .esc-qr {
    padding: 12px;
    gap: 12px;
  }

  .esc-qr img {
    width: 84px;
    height: 84px;
  }
}

/* 尊重系统“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
  .esc-tab,
  .esc-overlay,
  .esc-dialog,
  .esc-submit,
  .esc-close {
    transition: none;
  }

  .esc-tab__dot {
    animation: none;
  }
}
