/* Lead capture form for shangpinjujiaju.com.
   Loaded by lead-capture.js. Safe to ship even without a backend:
   when POST fails the form falls back to local queue + phone call. */

.lc-section {
  padding: 80px max(4vw, calc((100vw - var(--max, 1180px)) / 2));
  background: var(--paper, #f7f4f1);
  border-top: 1px solid var(--line, #e2dbd6);
}

.lc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.lc-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #ad7774);
  font-weight: 700;
}

.lc-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.1vw, 33px);
  line-height: 1.34;
  color: var(--ink, #2b2523);
}

.lc-lede {
  margin: 0 0 26px;
  color: var(--muted, #6f6763);
  line-height: 1.85;
  font-size: 15px;
}

.lc-benefits {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.lc-benefits li {
  position: relative;
  padding-left: 26px;
  color: var(--ink, #2b2523);
  line-height: 1.7;
  font-size: 15px;
}

.lc-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--brand-red, #85272b);
  border-bottom: 2px solid var(--brand-red, #85272b);
  transform: rotate(-45deg);
}

/* WeChat QR slot: hidden by default, shown only when the image loads. */
.lc-qr {
  display: none;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line, #e2dbd6);
  background: var(--white, #fff);
}

.lc-qr.is-ready { display: flex; }

.lc-qr img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  background: var(--white, #fff);
}

.lc-qr-text { font-size: 13px; color: var(--muted, #6f6763); line-height: 1.7; }
.lc-qr-text b { display: block; color: var(--ink, #2b2523); font-size: 15px; margin-bottom: 2px; }

.lc-form {
  padding: 32px;
  background: var(--white, #fff);
  border: 1px solid var(--line, #e2dbd6);
}

.lc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lc-field { display: grid; gap: 7px; }
.lc-field.is-wide { grid-column: 1 / -1; }

.lc-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #2b2523);
}

.lc-field label .lc-opt {
  font-weight: 400;
  color: var(--muted, #6f6763);
}

.lc-field input,
.lc-field select,
.lc-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--ink, #2b2523);
  background: var(--white, #fff);
  border: 1px solid var(--line, #e2dbd6);
  border-radius: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.lc-field textarea { min-height: 78px; resize: vertical; line-height: 1.7; }

.lc-field input:focus,
.lc-field select:focus,
.lc-field textarea:focus {
  outline: none;
  border-color: var(--brand-red, #85272b);
  box-shadow: 0 0 0 3px rgba(133, 39, 43, .12);
}

/* honeypot: invisible to humans, catches naive bots */
.lc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lc-consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted, #6f6763);
}

.lc-consent input { width: 16px; min-height: 16px; margin-top: 3px; flex-shrink: 0; }
.lc-consent a { color: var(--brand-red, #85272b); }

.lc-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.lc-submit {
  min-height: 50px;
  padding: 0 30px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--white, #fff);
  background: var(--brand-red, #85272b);
  border: 0;
  cursor: pointer;
  transition: background .15s ease;
}

.lc-submit:hover:not(:disabled) { background: var(--brand-red-dark, #64191d); }
.lc-submit:disabled { opacity: .62; cursor: not-allowed; }

.lc-call {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  font-weight: 700;
  color: var(--ink, #2b2523);
  border: 1px solid var(--line, #e2dbd6);
  text-decoration: none;
}

.lc-call:hover { border-color: var(--brand-red, #85272b); color: var(--brand-red, #85272b); }

.lc-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.7;
  display: none;
}

.lc-status.is-on { display: block; }
.lc-status.ok { background: #eef5ef; border: 1px solid #bcd8c2; color: #255c33; }
.lc-status.warn { background: #fdf3ee; border: 1px solid #e6c3ae; color: #8a4a24; }
.lc-status b { display: block; margin-bottom: 3px; }
.lc-status .lc-copy {
  margin-left: 8px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  color: inherit;
}

.lc-field.invalid input,
.lc-field.invalid select { border-color: #b3261e; }

.lc-error {
  font-size: 12.5px;
  color: #b3261e;
  display: none;
}

.lc-field.invalid .lc-error { display: block; }

/* ---------- 静态骨架（由 inject-lead-capture.py 写入页面，不依赖 JS） ---------- */

/* 站点头部是 position:sticky + z-index:20。把它封在一个隔离的层叠上下文里，
   这样 z-index:20 只在 header 内部比较，不会再盖到页面下方的内容上。
   修复：移动端滚动到表单时，头部浮在输入框上方遮挡「所在城市」下拉。 */
.site-header {
  isolation: isolate;
  z-index: 20;
}

.lc-chips-field {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.lc-chips-field legend {
  display: block;
  font-size: 13.5px;
  color: var(--muted, #6b615c);
  margin-bottom: 8px;
  padding: 0;
}

.lc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.lc-chip {
  min-height: 38px;
  padding: 0 15px;
  font: inherit;
  font-size: 14px;
  background: var(--white, #fff);
  border: 1px solid var(--line, #e2dbd6);
  color: var(--ink, #2b2523);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.lc-chip[data-on="1"] {
  background: var(--brand-red, #85272b);
  border-color: var(--brand-red, #85272b);
  color: #fff;
}

.lc-field-wide { grid-column: 1 / -1; }

.lc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.lc-fineprint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted, #6b615c);
}

.lc-hours {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted, #6b615c);
}

@media (max-width: 900px) {
  .lc-wrap { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .lc-section { padding: 60px max(4vw, calc((100vw - var(--max, 1180px)) / 2)); }
}

@media (max-width: 560px) {
  .lc-form { padding: 22px 18px; }
  .lc-grid { grid-template-columns: minmax(0, 1fr); }
  .lc-actions { flex-direction: column; align-items: stretch; }
  .lc-submit, .lc-call { justify-content: center; width: 100%; }
}
