/* ============================================================
   联系页 · 专属样式（仅 site.css 未覆盖的页面级选择器）
   来源：UI 设计定稿 contact.html
   ============================================================ */

/* ============ 页头 ============ */
.page-hero {
  position: relative; overflow: hidden; padding: 88px 0 72px;
  background:
    radial-gradient(900px 380px at 15% -20%, rgba(168, 50, 45, .05), transparent 55%),
    radial-gradient(900px 380px at 85% -20%, rgba(46, 71, 86, .07), transparent 60%),
    var(--paper);
}
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .3em; color: var(--ink-50); margin-bottom: 22px;
}
.page-hero .eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--faint); }
.page-hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(34px, 5vw, 52px); letter-spacing: .05em; line-height: 1.3;
  margin-bottom: 20px;
}
.page-hero h1 em { font-style: normal; color: var(--cinnabar); }
.page-hero .lede { font-size: 16.5px; color: var(--ink-70); max-width: 620px; }
.page-hero .hero-no {
  position: absolute; right: 6%; top: 44px;
  font-family: "Zhi Mang Xing", var(--serif); font-weight: 400; font-size: 190px; line-height: 1;
  color: rgba(168, 50, 45, .09); pointer-events: none;
}
.page-hero .mountains { position: absolute; left: 0; right: 0; bottom: -4px; pointer-events: none; }
.page-hero .mountains svg { display: block; width: 100%; height: 120px; }

/* ============ 联系卡 ============ */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.contact-card {
  background: var(--paper-2); border: 1px solid var(--faint); border-radius: 4px;
  padding: 30px 28px; text-align: center;
  transition: border-color .2s, transform .2s var(--ease);
  position: relative; overflow: hidden;
}
.contact-card:hover { border-color: var(--cinnabar); transform: translateY(-4px); }
.contact-card .ic {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(168, 50, 45, .08); display: flex; align-items: center; justify-content: center;
}
.contact-card .ic svg { width: 26px; height: 26px; }
.contact-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.contact-card .val {
  font-size: 15px; color: var(--cinnabar); font-weight: 500;
  letter-spacing: .03em; margin-bottom: 8px; word-break: break-all;
}
.contact-card .val a { color: inherit; }
.contact-card .val a:hover { text-decoration: underline; }
.contact-card p { font-size: 13px; color: var(--ink-50); }

/* ============ 主体两栏：表单 + 引流 ============ */
.contact-layout {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px;
  padding: 72px 0 96px; align-items: start;
}

/* ---- 表单卡 ---- */
.form-card { background: var(--paper-2); border: 1px solid var(--faint); border-radius: 4px; padding: 40px; }
.form-card > h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.form-card > .form-note { font-size: 13.5px; color: var(--ink-50); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 500; color: var(--ink-70); letter-spacing: .04em; }
.form-field label .req { color: var(--cinnabar); margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--serif); font-size: 15.5px; padding: 11px 14px;
  border: 1px solid var(--faint); border-radius: 2px;
  background: var(--paper); color: var(--ink); transition: border-color .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--cinnabar); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6C66' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-field .invalid { border-color: var(--cinnabar); }
.form-field .validation-message { font-size: 12.5px; color: var(--cinnabar); }
.form-hint { font-size: 12px; color: var(--ink-50); }
.form-actions {
  grid-column: 1 / -1; display: flex; align-items: center;
  gap: 18px; margin-top: 8px; flex-wrap: wrap;
}
.btn-submit { border: none; cursor: pointer; font-family: var(--serif); }
.form-privacy { font-size: 12.5px; color: var(--ink-50); }
.alert-form {
  display: flex; align-items: center; gap: 8px;
  background: rgba(168, 50, 45, .07); border: 1px solid rgba(168, 50, 45, .35);
  color: var(--cinnabar-dark); font-size: 13px;
  padding: 10px 14px; border-radius: 2px; margin-bottom: 22px;
}
.hp-wrap { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---- 提交成功态 ---- */
.form-ok { text-align: center; padding: 30px 0 10px; }
.form-ok .zi { font-family: "Zhi Mang Xing", var(--serif); font-weight: 400; font-size: 88px; color: var(--cinnabar); line-height: 1.1; }
.form-ok h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.form-ok p { font-size: 14px; color: var(--ink-50); }
.form-ok .btn-again { margin-top: 22px; }

/* ---- 右侧：微信卡 + 流程卡 ---- */
.side-stack { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 104px; }
.wx-card { background: var(--ink); border-radius: 4px; padding: 32px; color: var(--paper); text-align: center; }
.wx-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.wx-card .sub { font-size: 13px; color: rgba(247, 244, 237, .66); margin-bottom: 18px; }
.wx-card .qr {
  width: 168px; height: 168px; margin: 0 auto 14px;
  background: repeating-conic-gradient(#F7F4ED 0 25%, #2E2E2B 0 50%) 0 0 / 21px 21px;
  border: 4px solid #F7F4ED; border-radius: 6px; position: relative;
}
.wx-card .qr::after {
  content: "加微信"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; color: #F7F4ED;
  background: rgba(28, 28, 28, .45); backdrop-filter: blur(2px); letter-spacing: .14em;
}
.wx-card .qr-img {
  width: 168px; height: 168px; margin: 0 auto 14px;
  border: 4px solid #F7F4ED; border-radius: 6px;
  display: block; object-fit: cover;
}
.wx-card .wxid { font-size: 14px; letter-spacing: .06em; color: #E8B4B0; }
.flow-card { background: var(--paper-2); border: 1px solid var(--faint); border-radius: 4px; padding: 28px; }
.flow-card h3 { font-size: 13px; letter-spacing: .28em; color: var(--ink-50); font-weight: 500; margin-bottom: 18px; }
.flow-steps { display: flex; flex-direction: column; }
.flow-step { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px;
  width: 2px; background: var(--faint-2);
}
.flow-step:last-child::before { display: none; }
.flow-no {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: rgba(168, 50, 45, .1); color: var(--cinnabar);
  font-family: var(--serif); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.flow-step b { display: block; font-size: 14.5px; }
.flow-step div span { font-size: 12.5px; color: var(--ink-50); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .side-stack { position: static; }
  .page-hero .hero-no { font-size: 130px; right: 4%; }
}
@media (max-width: 640px) {
  .page-hero { padding: 56px 0 48px; }
  .contact-layout { padding: 48px 0 64px; }
  .form-card { padding: 26px 22px; }
  .form-grid { grid-template-columns: 1fr; }
}
