/* ==========================================================================
   联系我们页
   ========================================================================== */

.contact-section { padding: 64px 0 88px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 56px; align-items: start; }

/* ---------- 左：联系方式 ---------- */

.contact-title { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; }

.contact-list { margin-top: 34px; display: grid; gap: 28px; }
.contact-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; }
.contact-ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: #e8f1fb;
  color: var(--brand);
}
.contact-ico svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.contact-item h3 { font-size: 17px; font-weight: 600; line-height: 1.5; }
.contact-item .value { margin-top: 6px; font-size: 15px; color: var(--ink); line-height: 1.7; font-variant-numeric: tabular-nums; }
.contact-item .note { margin-top: 4px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }

/* 地图占位 */
.contact-map {
  position: relative;
  margin-top: 36px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px rgba(17, 24, 39, .05);
  overflow: hidden;
}
.contact-map svg { display: block; width: 100%; height: auto; }
.contact-map .map-chip {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, .07);
}
.contact-map img { display: block; width: 100%; height: auto; }
.contact-map .map-chip svg { width: 16px; height: 16px; flex: none; stroke: var(--brand); fill: none; stroke-width: 1.6; }
.contact-map .map-chip span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- 右：在线留言 ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 38px 40px 36px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}
.form-card h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.015em; }
.form-card .sub { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }

.contact-form { margin-top: 28px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field > span em { font-style: normal; color: #e11d48; margin-left: 2px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0 14px;
  height: 48px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { height: 150px; padding: 13px 14px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--tint);
}
.field input.is-bad, .field textarea.is-bad { border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225, 29, 72, .1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.btn-submit {
  width: 100%; height: 52px;
  margin-top: 6px;
  border-radius: 10px;
  font-size: 15px;
  justify-content: center;
  gap: 10px;
}
.btn-submit svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.form-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* 蜜罐字段：视觉隐藏但仍提交，真人不会填 */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(225, 29, 72, .07);
  border: 1px solid rgba(225, 29, 72, .25);
  color: #b91c3c;
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

.btn-submit:disabled { opacity: .7; cursor: progress; }

.form-done {
  margin-top: 28px;
  padding: 34px 28px;
  border: 1px dashed var(--line-3);
  border-radius: 12px;
  text-align: center;
  background: var(--bg-soft);
}
.form-done .ok {
  width: 44px; height: 44px; margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--brand);
}
.form-done .ok svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.form-done h3 { margin-top: 16px; font-size: 17px; font-weight: 600; }
.form-done p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.form-done a { color: var(--brand-dark); border-bottom: 1px solid var(--tint-2); }

@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-map { display: none; }
}

@media (max-width: 620px) {
  .contact-section { padding: 40px 0 64px; }
  .form-card { padding: 26px 22px 24px; border-radius: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 20px; }
  .contact-item { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .contact-ico { width: 48px; height: 48px; border-radius: 12px; }
  .contact-ico svg { width: 22px; height: 22px; }
}
