/* 官网「免费申请试用」弹窗 —— PC / 移动共用，类名统一 jlLead 前缀避免与站点样式冲突 */

.jlLead {
  position: fixed;
  inset: 0;
  z-index: 9999990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.jlLead.is-open {
  display: flex;
}

.jlLead-mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 46, 0.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.jlLead-panel {
  position: relative;
  width: 460px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(6, 30, 66, 0.28);
  padding: 34px 36px 30px;
  box-sizing: border-box;
  animation: jlLeadIn 0.24s ease-out;
}

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

.jlLead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f2f5fa;
  color: #5b6b82;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.jlLead-close:hover {
  background: #e6ecf6;
  color: #0449b0;
}

.jlLead-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #0f6fd1;
}

.jlLead-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  color: #0b2b5c;
  letter-spacing: 0.2px;
}

.jlLead-sub {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.75;
  color: #63758e;
}

.jlLead-form {
  margin: 0;
}

.jlLead-field {
  display: block;
  margin-bottom: 16px;
}

.jlLead-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #24384f;
}

.jlLead-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #d7e0ee;
  border-radius: 10px;
  background: #fbfcfe;
  font-size: 16px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.jlLead-field input::placeholder {
  color: #9aa9bd;
  font-size: 14px;
}

.jlLead-field input:focus {
  border-color: #0f6fd1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 111, 209, 0.14);
}

.jlLead-field.is-error input {
  border-color: #d9363e;
  box-shadow: 0 0 0 3px rgba(217, 54, 62, 0.1);
}

.jlLead-error {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #d9363e;
}

.jlLead-submit {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b57a6, #0f6fd1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.12s, opacity 0.18s;
}

.jlLead-submit:hover {
  box-shadow: 0 10px 22px rgba(11, 87, 166, 0.28);
}

.jlLead-submit:active {
  transform: translateY(1px);
}

.jlLead-submit[disabled] {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.jlLead-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #8b9ab0;
  text-align: center;
}

.jlLead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 成功态：收起标题区，只留确认信息 */
.jlLead-panel.is-done .jlLead-eyebrow,
.jlLead-panel.is-done .jlLead-title,
.jlLead-panel.is-done .jlLead-sub {
  display: none;
}

.jlLead-done {
  padding: 8px 0 4px;
  text-align: center;
}

.jlLead-done[hidden] {
  display: none;
}

.jlLead-doneIcon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(15, 111, 209, 0.1);
  color: #0f6fd1;
  font-size: 30px;
  line-height: 60px;
  font-weight: 700;
}

.jlLead-doneTitle {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #0b2b5c;
}

.jlLead-doneText {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
  color: #3a4a60;
}

.jlLead-done .jlLead-submit {
  width: auto;
  min-width: 140px;
  padding: 0 28px;
  margin: 0 auto;
  font-size: 15px;
}

body.jlLead-lock {
  overflow: hidden;
}

@media (max-width: 640px) {
  .jlLead {
    padding: 16px;
    align-items: flex-end;
  }

  .jlLead-panel {
    width: 100%;
    padding: 26px 20px 22px;
    border-radius: 16px 16px 14px 14px;
    max-height: calc(100vh - 32px);
  }

  .jlLead-title {
    font-size: 19px;
  }

  .jlLead-sub {
    font-size: 12.5px;
    margin-bottom: 18px;
  }

  .jlLead-field input,
  .jlLead-submit {
    height: 46px;
  }
}
