/* 联系我们 页面样式（由原型导出） */
/* ============================================================
   联系我们页
   ============================================================ */
.contact-page { padding: 72px 0 100px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

/* 左：联系信息 */
.contact-info-card {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  border-radius: 6px;
  padding: 40px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.contact-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.contact-info-card > * { position: relative; z-index: 1; }
.contact-info-card h3 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.contact-info-card .sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 28px; }

.ci-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.ci-row:last-child { border-bottom: none; }
.ci-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.35);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-red-light);
}
.ci-row h5 { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500; margin-bottom: 3px; }
.ci-row p { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.5; }
.ci-row p small { font-weight: 400; color: rgba(255,255,255,0.55); font-size: 12px; }

/* 地图占位 */
.contact-map {
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 240px;
  background:
    linear-gradient(rgba(200,16,46,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,0.05) 1px, transparent 1px),
    var(--bg-soft);
  background-size: 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray);
}
.contact-map svg { color: var(--brand-red); }
.contact-map b { color: var(--ink); font-size: 14px; }
.contact-map span { font-size: 12px; }

/* 微信客服二维码（后台「站点设置 → 联系方式」可上传，未上传则整块不渲染） */
.contact-qr-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-red);
  border-radius: 6px;
  background: #fff;
  padding: 18px 22px;
  margin-bottom: 20px;
}
.cqr-img {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cqr-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cqr-txt { flex: 1 1 auto; min-width: 0; }
.cqr-txt h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cqr-txt h5::before { content: ""; width: 4px; height: 15px; background: var(--brand-red); flex: 0 0 auto; }
.cqr-txt p { font-size: 13px; color: var(--gray); line-height: 1.8; }
.cqr-txt p small { font-size: 12px; color: #aaa; }

/* 右：留言表单 */
.contact-form-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.contact-form-head {
  background: var(--ink);
  color: #fff;
  padding: 22px 32px;
}
.contact-form-head h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.contact-form-head h3::before { content: ""; width: 4px; height: 18px; background: var(--brand-red); }
.contact-form-head p { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; }

.contact-form-body { padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-item { margin-bottom: 16px; }
.form-row .form-item { margin-bottom: 0; }
.form-item label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-item label .req { color: var(--brand-red); margin-left: 2px; }

.contact-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  justify-content: center;
  margin-top: 8px;
}
.contact-privacy {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin-top: 14px;
}
.contact-privacy a { color: var(--brand-red); }

/* 提交成功态（演示） */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 32px;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(14,140,127,0.1);
  color: var(--accent-teal);
  display: flex; align-items: center; justify-content: center;
}
.form-success h4 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--gray); margin-bottom: 24px; }

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-qr-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cqr-img { width: 132px; height: 132px; }
}
