/* ===========================================================
   线索弹窗（左顾问栏 + 右表单）
   =========================================================== */
.lead-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(9, 26, 21, .56);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 26px;
  animation: overlay-in .2s ease both;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.lead-modal {
  width: min(940px, 100%); max-height: min(92vh, 860px);
  background: var(--white); border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-l);
  animation: modal-in .24s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.lead-panel { display: grid; grid-template-columns: 330px 1fr; max-height: min(92vh, 860px); }

/* 左栏：深绿顾问信息 */
.lead-side {
  background: linear-gradient(160deg, var(--green-800) 0%, var(--green-950) 100%);
  color: #fff; padding: 44px 34px 34px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.lead-side::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  left: -150px; top: -120px; border: 1px solid rgba(224, 195, 145, .24);
  box-shadow: 0 0 0 46px rgba(224, 195, 145, .045), 0 0 0 92px rgba(224, 195, 145, .03);
}
.side-kicker { position: relative; font-size: 11.5px; letter-spacing: .18em; color: var(--gold-2); font-weight: 700; }
.lead-side h3 { position: relative; font-family: var(--font-serif); font-size: 25px; line-height: 1.5; margin: 16px 0 12px; font-weight: 600; }
.lead-side > p { position: relative; font-size: 13.4px; line-height: 1.9; color: rgba(255, 255, 255, .74); margin: 0; }
.side-art { position: relative; flex: 1; min-height: 92px; display: flex; align-items: center; gap: 10px; padding: 24px 0 10px; opacity: .8; }
.side-art span { display: block; width: 26px; border-radius: 999px; background: rgba(224, 195, 145, .42); }
.side-art span:nth-child(1) { height: 34px; }
.side-art span:nth-child(2) { height: 62px; background: var(--gold-2); }
.side-art span:nth-child(3) { height: 46px; }
.side-contact { position: relative; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 20px; display: grid; gap: 12px; }
.side-contact div { display: flex; flex-direction: column; }
.side-contact span { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.side-contact a, .side-contact b { font-size: 14px; color: #fff; font-weight: 600; }
.side-contact a:hover { color: var(--gold-2); }
.side-note { position: relative; font-size: 11.5px !important; line-height: 1.8; color: rgba(255, 255, 255, .5) !important; margin: 18px 0 0 !important; }

/* 右栏：表单 */
.lead-main { position: relative; padding: 42px 44px 40px; overflow-y: auto; }
.lead-close {
  position: absolute; right: 22px; top: 18px; width: 34px; height: 34px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 26px; line-height: 1; border-radius: 50%;
}
.lead-close:hover { background: var(--paper-2); color: var(--ink); }
.lead-head h2 { font-family: var(--font-serif); font-size: 28px; color: var(--green-950); margin: 0 0 8px; font-weight: 600; }
.lead-head p { font-size: 13.4px; color: var(--muted); margin: 0 0 26px; line-height: 1.8; }

.lead-form { display: grid; gap: 18px; }
.field { min-width: 0; display: flex; flex-direction: column; position: relative; border: 0; padding: 0; margin: 0; }
.field > label, .field legend {
  font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0;
}
.field label i, .field legend i { color: var(--danger); font-style: normal; margin-left: 2px; }
.field legend small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 8px; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; background: #faf9f5; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 15px;
  font-size: 14px; color: var(--ink); font-family: inherit;
  outline: none; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #a6b0ab; }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 111, 94, .10); }
.field textarea { resize: vertical; min-height: 76px; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.is-error input, .field.is-error textarea { border-color: var(--danger); }
.field-error { font-size: 12px; color: var(--danger); margin: 5px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.char-count { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--muted); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--ink-2); background: #fff;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.chip:hover span { border-color: var(--green-400); color: var(--green-800); }
.chip input:checked + span { background: var(--green-100); border-color: var(--green); color: var(--green-900); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47, 111, 94, .18); }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.lead-privacy { font-size: 12px; color: var(--muted); margin: 2px 0 0; line-height: 1.7; }
.lead-privacy a { text-decoration: underline; }
.lead-submit {
  width: 100%; min-height: 52px; border: 0; border-radius: 12px;
  background: var(--green); color: #fff; font-size: 15.5px; font-weight: 600;
  letter-spacing: .06em; transition: background .16s ease, transform .16s ease;
}
.lead-submit:hover { background: var(--green-800); }
.lead-submit:active { transform: translateY(1px); }

.lead-alert {
  background: #fdf1ef; border: 1px solid rgba(180, 72, 60, .25); border-radius: 12px;
  padding: 12px 16px; font-size: 13px; color: var(--danger); margin-bottom: 20px;
  line-height: 1.7; display: flex; flex-wrap: wrap; gap: 6px;
}
.lead-alert-mail { color: var(--green-800); font-weight: 600; text-decoration: underline; }
.lead-success { text-align: center; padding: 56px 20px 40px; }
.ok-mark {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--green-100); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.lead-success h2 { font-family: var(--font-serif); font-size: 26px; color: var(--green-950); margin: 0 0 12px; }
.lead-success p { font-size: 14px; color: var(--ink-2); line-height: 1.9; max-width: 400px; margin: 0 auto 28px; }
.lead-success b { color: var(--green-900); }

/* -----------------------------------------------------------
   「获取报价」按附件的登录卡样式改版：居中单列白卡
   🔴 只借卡片外形，不做登录墙 / 账号密码 / 验证码（规范 4.1）
   ----------------------------------------------------------- */
.lead-modal.quote-card {
  width: min(460px, 100%); max-height: none; background: transparent;
  box-shadow: none; border-radius: 0; overflow: visible;
}
.lead-panel.card-mode { display: block; max-height: none; overflow: visible; }
.lead-panel.card-mode .lead-side { display: none; }
.lead-panel.card-mode .lead-main {
  max-height: min(90vh, 880px); overflow-y: auto;
  padding: 34px 40px 30px; background: #fff; border-radius: 28px;
  box-shadow: var(--shadow-l);
}
.lead-panel.card-mode .lead-close {
  right: 18px; top: 16px; width: 30px; height: 30px;
  font-size: 24px; color: #98a49f;
}
.card-icon {
  display: block; width: 48px; height: 48px;
  margin: 0 auto 14px; color: var(--green);
}
.lead-panel.card-mode .lead-head { text-align: center; }
.lead-panel.card-mode .lead-head h2 {
  font-size: 26px; margin-bottom: 6px; letter-spacing: .02em;
}
.lead-panel.card-mode .lead-head p {
  font-size: 13px; margin-bottom: 24px; color: #8a9691;
}
.lead-panel.card-mode .lead-form { gap: 16px; }
.lead-panel.card-mode .field-row { grid-template-columns: 1fr; gap: 16px; }
.lead-panel.card-mode .field > label,
.lead-panel.card-mode .field legend { font-size: 13px; margin-bottom: 7px; color: #3f4a45; }
.lead-panel.card-mode .field input[type="text"],
.lead-panel.card-mode .field input[type="tel"],
.lead-panel.card-mode .field textarea {
  background: #f6f8fa; border-color: #dfe6ee; border-radius: 10px;
  padding: 13px 14px; font-size: 13.5px;
}
.lead-panel.card-mode .field input:focus,
.lead-panel.card-mode .field textarea:focus {
  border-color: var(--green); background: #fff;
}
.lead-panel.card-mode .chip span { min-height: 34px; padding: 0 13px; font-size: 12.5px; }
.lead-panel.card-mode .lead-privacy { text-align: center; margin-top: 2px; }
.lead-panel.card-mode .lead-submit {
  min-height: 50px; border-radius: 10px; font-size: 15px; margin-top: 2px;
}
.card-sep {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 14px; font-size: 12px; color: #98a49f;
}
.card-sep::before, .card-sep::after {
  content: ""; height: 1px; flex: 1; background: var(--line);
}
.card-mail {
  display: block; text-align: center; text-decoration: none;
  border: 1px solid #dfe6ee; border-radius: 10px; padding: 12px;
  font-size: 13.5px; color: var(--ink-2); background: #fff;
}
.card-mail:hover { border-color: var(--green-400); color: var(--green-800); }
.card-mail b { color: var(--green-800); margin-left: 6px; }
.card-foot {
  font-size: 11.5px; color: #98a49f; line-height: 1.75;
  text-align: center; margin: 14px 0 0;
}
@media (max-width: 520px) {
  .lead-overlay { padding: 14px; }
  .lead-panel.card-mode .lead-main { padding: 30px 22px 26px; border-radius: 24px; }
  .card-icon { width: 42px; height: 42px; }
  .lead-panel.card-mode .lead-head h2 { font-size: 24px; }
}

/* -----------------------------------------------------------
   访客账号：附件里的「登录管理后台 / 立即注册」居中卡片
   🔴 只服务于「获取报价」；页面本身仍可自由浏览（规范 4.1 的边界）
   ----------------------------------------------------------- */
.quote-user {
  font-size: 12px !important; color: var(--green-800) !important;
  margin: 8px 0 0 !important;
}
.quote-user a { color: var(--muted); text-decoration: underline; }
.auth-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(9, 26, 21, .62); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 22px; animation: overlay-in .2s ease both;
}
.auth-card {
  position: relative; width: min(420px, 100%); max-height: 94vh; overflow-y: auto;
  background: #fff; border-radius: 28px; padding: 34px 38px 28px;
  box-shadow: var(--shadow-l); animation: modal-in .24s cubic-bezier(.2, .8, .3, 1) both;
}
.auth-close {
  position: absolute; right: 18px; top: 16px; width: 32px; height: 32px;
  border: 0; background: transparent; color: #98a49f;
  font-size: 26px; line-height: 1; border-radius: 50%;
}
.auth-close:hover { background: var(--paper-2); color: var(--ink); }
.auth-icon {
  display: block; width: 50px; height: 50px; margin: 0 auto 14px; color: var(--green);
}
.auth-card h2 {
  font-family: var(--font-serif); font-size: 27px; color: var(--green-950);
  text-align: center; margin: 0 0 7px; font-weight: 600; letter-spacing: .02em;
}
.auth-sub {
  font-size: 13.5px; color: #8a9691; text-align: center; margin: 0 0 26px;
}
.auth-form { display: grid; gap: 16px; }
.auth-field { display: flex; flex-direction: column; min-width: 0; }
.auth-field > label {
  font-size: 13px; font-weight: 600; color: #3f4a45; margin-bottom: 7px;
}
.auth-field > input, .captcha-row > input {
  width: 100%; background: #f6f8fa; border: 1px solid #dfe6ee; border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; color: var(--ink);
  font-family: inherit; outline: none;
  transition: border-color .16s ease, background .16s ease;
}
.auth-field > input::placeholder, .captcha-row > input::placeholder { color: #a6b0ab; }
.auth-field > input:focus, .captcha-row > input:focus {
  border-color: var(--green); background: #fff;
}
.captcha-row { display: grid; grid-template-columns: 1fr 120px 34px; gap: 8px; align-items: center; }
.captcha-row > input { min-width: 0; padding: 12px 10px; }
.captcha-img {
  width: 120px; height: 42px; border: 1px solid #dfe6ee; border-radius: 8px;
  background: #f6f8fa; cursor: pointer; object-fit: cover;
}
.captcha-refresh {
  width: 34px; height: 42px; border: 1px solid #dfe6ee; border-radius: 8px;
  background: #fff; color: var(--green-800); font-size: 20px; line-height: 1; cursor: pointer;
}
.captcha-refresh:hover { border-color: var(--green-400); }
.captcha-note { font-size: 11.5px; color: #98a49f; margin: 5px 0 0; }
.auth-error { font-size: 12.5px; color: var(--danger); margin: 0; line-height: 1.6; }
.auth-error:empty { display: none; }
.auth-submit {
  width: 100%; min-height: 50px; border: 0; border-radius: 10px;
  background: var(--green); color: #fff; font-size: 15px; font-weight: 600;
  letter-spacing: .06em; cursor: pointer;
}
.auth-submit:hover { background: var(--green-800); }
.auth-submit:disabled { opacity: .65; cursor: default; }
.auth-sep {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 14px; font-size: 12px; color: #98a49f;
}
.auth-sep::before, .auth-sep::after {
  content: ""; height: 1px; flex: 1; background: var(--line);
}
.auth-wechat {
  width: 100%; min-height: 48px; border: 1px solid #dfe6ee; border-radius: 10px;
  background: #fff; color: var(--ink-2); font-size: 14px; font-family: inherit;
  cursor: pointer;
}
.auth-wechat:hover { border-color: var(--green-400); color: var(--green-800); }
.auth-wechat::before { content: "◉"; color: var(--green); margin-right: 8px; }
.auth-foot {
  font-size: 12.5px; color: #8a9691; text-align: center; margin: 16px 0 0;
}
.auth-foot a { color: var(--green-800); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-tip {
  margin-top: 14px; border-radius: 10px; padding: 11px 13px;
  background: var(--paper-2); font-size: 12px; color: var(--ink-2); line-height: 1.7;
}
.auth-tip a { color: var(--green-800); }

/* -----------------------------------------------------------
   注册新园区：参考图的双栏卡片（园区信息 / 管理员信息）
   🔴 仍是「获取报价」的前置步骤；页面本身自由浏览（规范 4.1）
   ----------------------------------------------------------- */
.auth-overlay[data-active="register"] .auth-card { width: min(880px, 100%); }
.auth-overlay[data-active="register"] .auth-icon,
.auth-overlay[data-active="register"] .auth-card > h2,
.auth-overlay[data-active="register"] .auth-card > .auth-sub { display: none; }

.reg-head { text-align: center; margin: 4px 0 30px; }
.reg-icon { display: block; width: 46px; height: 46px; margin: 0 auto 12px; color: var(--green); }
.reg-head h2 {
  font-family: var(--font-serif); font-size: 27px; color: var(--green-950);
  text-align: center; margin: 0 0 6px; font-weight: 600; letter-spacing: .02em;
}
.reg-sub { font-size: 13.5px; color: #8a9691; text-align: center; margin: 0; }

.reg-form { display: block; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; }
.reg-col { min-width: 0; }
.reg-col-title {
  font-size: 14px; font-weight: 700; color: var(--green-950);
  margin: 0 0 18px; padding: 0 0 10px; border-bottom: 1px solid var(--line);
}
.reg-field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 16px; }
.reg-field > label {
  font-size: 13px; font-weight: 600; color: #3f4a45; margin-bottom: 7px;
}
.reg-field label i { color: var(--danger); font-style: normal; margin-left: 2px; }
.reg-field > input, .reg-field > select, .reg-code-row > input {
  width: 100%; background: #f6f8fa; border: 1px solid #dfe6ee; border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; color: var(--ink);
  font-family: inherit; outline: none; min-height: 44px;
  transition: border-color .16s ease, background .16s ease;
}
.reg-field > input::placeholder, .reg-code-row > input::placeholder { color: #a6b0ab; }
.reg-field > input:focus, .reg-field > select:focus, .reg-code-row > input:focus {
  border-color: var(--green); background: #fff;
}
.region-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.reg-field > select {
  padding: 12px 8px; font-size: 13px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237b8a84' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 11px 7px;
  padding-right: 24px;
}
.reg-field > select:invalid { color: #a6b0ab; }
.wechat-qr-row { display: flex; align-items: center; gap: 14px; }
.wechat-qr {
  width: 92px; height: 92px; flex: none; padding: 6px;
  border: 1px solid #dfe6ee; border-radius: 10px; background: #fff;
}
.wechat-qr svg { width: 100%; height: 100%; }
.wechat-qr-note { font-size: 12px; color: var(--muted); line-height: 1.75; margin: 0; }
.wechat-qr-note a { color: var(--green-800); }
.reg-code-row { display: grid; grid-template-columns: 1fr 108px 36px; gap: 8px; align-items: center; }
.reg-code-row > input { min-width: 0; padding: 12px 10px; }
.reg-code-row .captcha-img {
  width: 108px; height: 44px; border: 1px solid #dfe6ee; border-radius: 8px;
  background: #f6f8fa; cursor: pointer; object-fit: cover;
}
.reg-code-row .captcha-refresh {
  width: 36px; height: 44px; border: 1px solid #dfe6ee; border-radius: 8px;
  background: #fff; color: var(--green-800); font-size: 20px; line-height: 1; cursor: pointer;
}
.reg-code-row .captcha-refresh:hover { border-color: var(--green-400); }
.reg-field .captcha-note { font-size: 11.5px; color: #98a49f; margin: 5px 0 0; }
.reg-pwd .reg-pwd-note { font-size: 11.5px; color: #98a49f; margin: 5px 0 0; }
.reg-submit {
  width: 100%; min-height: 52px; margin-top: 6px; border: 0; border-radius: 10px;
  background: var(--green); color: #fff; font-size: 15.5px; font-weight: 600;
  letter-spacing: .24em; text-indent: .24em; cursor: pointer;
}
.reg-submit:hover { background: var(--green-800); }
.reg-submit:disabled { opacity: .65; cursor: default; }
.reg-form .auth-foot { margin: 16px 0 0; }

@media (max-width: 720px) {
  .auth-overlay[data-active="register"] .auth-card { width: min(460px, 100%); }
  .reg-grid { grid-template-columns: 1fr; gap: 4px; }
  .reg-col-title { margin-top: 8px; }
  .reg-head { margin-bottom: 22px; }
}
@media (max-width: 520px) {
  .auth-overlay { padding: 14px; }
  .auth-card { padding: 30px 22px 24px; border-radius: 24px; }
  .auth-card h2 { font-size: 24px; }
  .captcha-row { grid-template-columns: 1fr 104px 32px; }
  .captcha-img { width: 104px; }
  .region-row { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .reg-field > select { padding-left: 6px; padding-right: 20px; font-size: 12px; }
  .reg-code-row { grid-template-columns: 1fr 96px 34px; }
  .reg-code-row .captcha-img { width: 96px; }
  .reg-code-row .captcha-refresh { width: 34px; }
}


@media (max-width: 860px) {
  .lead-panel { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .lead-side { padding: 26px 28px; }
  .lead-side h3 { font-size: 21px; margin: 10px 0 6px; }
  .lead-side h3 br { display: none; }
  .side-art, .side-note { display: none; }
  .side-contact { grid-template-columns: 1fr 1fr; padding-top: 14px; margin-top: 14px; }
  .lead-main { padding: 30px 28px 34px; overflow: visible; }
  .lead-overlay { padding: 14px; }
  .lead-modal { max-height: 94vh; }
}

