@charset "UTF-8";
/* ==========================================================================
   产品资料下载 · 留资弹窗（驰骥微电子）
   依赖 style.css 中的设计令牌（--brand / --ink-* / --ease ...）
   ========================================================================== */

.lead-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: rgba(0, 31, 92, .55);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lead-mask.is-open { display: flex; animation: leadFade .26s var(--ease); }

@keyframes leadFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes leadUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.lead-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: auto;
  padding: 36px 34px 30px;
  border-radius: var(--radius-l);
  background: #fff;
  box-shadow: var(--sh-3);
}
.lead-mask.is-open .lead-modal { animation: leadUp .32s var(--ease); }

.lead-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink-3);
  transition: background-color .24s var(--ease), color .24s var(--ease);
}
.lead-close:hover { background: var(--bg-soft-2); color: var(--ink-1); }

.lead-eyebrow {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 100px;
  background: var(--brand-tint);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--brand);
}
.lead-modal h3 {
  margin-top: 16px;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-1);
}
.lead-sub {
  margin-top: 10px;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--ink-2);
}
.lead-sub b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand);
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  margin-top: 26px;
}
.lead-field--full { grid-column: 1 / -1; }

.lead-field label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-1);
}
.lead-field label i { font-style: normal; color: var(--accent); }

.lead-field input[type="text"],
.lead-field input[type="tel"],
.lead-field input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg-soft);
  font-size: var(--fs-xs);
  transition: border-color .24s var(--ease), background-color .24s var(--ease);
}
.lead-field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.lead-field input::placeholder { color: var(--ink-3); }

.lead-err {
  display: none;
  margin-top: 7px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--accent);
}
.lead-field.is-bad input { border-color: var(--accent); background: #FFF6F6; }
.lead-field.is-bad .lead-err { display: block; }

.lead-code { display: flex; gap: 10px; }
.lead-code input { flex: 1 1 auto; min-width: 0; }
.lead-code img {
  flex: 0 0 auto;
  width: 124px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  cursor: pointer;
}

/* 反垃圾诱饵 */
.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  cursor: pointer;
}
.lead-agree input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  accent-color: var(--brand);
  cursor: pointer;
}
.lead-agree a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.lead-agree.is-bad { color: var(--accent); }

.lead-submit { margin-top: 24px; }
.lead-submit[disabled] { opacity: .55; cursor: not-allowed; }

.lead-note {
  display: none;
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: var(--radius-s);
  font-size: 16px;
  line-height: 1.6;
}
.lead-note.is-error { display: block; background: #FFF2F2; color: #A8000A; }
.lead-note.is-ok { display: block; background: #EDF7EE; color: #1B6B30; }

@media (max-width: 640px) {
  .lead-mask { padding: 16px 14px; }
  .lead-modal { padding: 30px 22px 26px; border-radius: var(--radius); }
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-code img { width: 108px; }
}
