/* ============================================================
   联系我们 · contact.css
   ============================================================ */

/* 间距修正（北京明汉科技零售电商）
   common/common.css 全局 .section-content { padding: 80px 20px }
   会让联系方式 / 留言表单两个区块上下各留 80px 巨大空白。
   改为：外层 .section 提供适度垂直留白（56px），.section-content 仅作容器。
   与 index.css / sale.css 的「section 出间距 + content 清零」规范一致。 */
#contact .section { padding: 56px 0; }
#contact .section-content { padding: 0 20px; max-width: 1240px; margin: 0 auto; }

/* 主视觉（复用 about 的 eyebrow/title/desc 样式） */
.contact-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(44,36,25,0.78) 0%, rgba(44,36,25,0.45) 100%);
}
.contact-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 20px !important;
}

/* 联系方式卡片 */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--mh-bg-card);
  border-radius: var(--mh-radius-lg);
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--mh-line);
  transition: all var(--mh-dur) var(--mh-ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mh-shadow-md);
}
.cc-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--mh-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--mh-primary);
  transition: all var(--mh-dur) var(--mh-ease);
}
.contact-card:hover .cc-icon {
  background: var(--mh-primary);
  color: #fff;
}
.contact-card h4 {
  font-size: 17px;
  font-weight: 600;
  font-family: var(--mh-font-display);
  color: var(--mh-text-1);
  margin-bottom: 12px;
}
.cc-main {
  font-size: 16px;
  font-weight: 500;
  color: var(--mh-text-1);
  margin-bottom: 8px;
  word-break: break-all;
}
.cc-time {
  font-size: 13px;
  color: var(--mh-text-3);
}
.cc-link {
  display: inline-block;
  font-size: 14px;
  color: var(--mh-primary) !important;
  margin-top: 4px;
  transition: gap var(--mh-dur) var(--mh-ease);
}
.cc-link:hover { color: var(--mh-primary-hover) !important; }

/* 留言 + 公司信息布局 */
.contact-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

/* 留言表单 */
.contact-form-card {
  background: var(--mh-bg-card);
  border-radius: var(--mh-radius-lg);
  padding: 40px;
  border: 1px solid var(--mh-line);
}
.form-head { margin-bottom: 30px; }
.form-head h2 {
  font-size: 26px;
  font-weight: 600;
  font-family: var(--mh-font-display);
  color: var(--mh-text-1);
  margin-bottom: 8px;
}
.form-head p { font-size: 14px; color: var(--mh-text-3); }

.mh-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 14px;
  color: var(--mh-text-2);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-group label .req { color: var(--mh-promo); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--mh-text-1);
  background: var(--mh-bg-soft);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius-md);
  outline: none;
  font-family: inherit;
  transition: all var(--mh-dur) var(--mh-ease);
  box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--mh-text-4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mh-primary);
  background: var(--mh-bg-card);
  box-shadow: 0 0 0 3px rgba(107,68,35,0.08);
}
.form-group textarea { resize: vertical; line-height: 1.7; }
.form-submit {
  width: 100%;
  height: 50px;
  background: var(--mh-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: var(--mh-radius-md);
  cursor: pointer;
  transition: all var(--mh-dur) var(--mh-ease);
}
.form-submit:hover { background: var(--mh-primary-hover); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form-tip {
  text-align: center;
  font-size: 12px;
  color: var(--mh-text-4);
  margin-top: 16px;
}
.form-tip a { color: var(--mh-primary) !important; }

/* 公司信息 */
.contact-company {
  background: var(--mh-bg-card);
  border-radius: var(--mh-radius-lg);
  padding: 40px;
  border: 1px solid var(--mh-line);
}
.cc-section-title {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--mh-font-display);
  color: var(--mh-text-1);
  margin-bottom: 24px;
  padding-left: 14px;
  position: relative;
}
.cc-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--mh-primary);
  border-radius: 2px;
}
.company-list { list-style: none; padding: 0; margin: 0 0 30px; }
.company-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mh-line);
}
.company-list li:last-child { border-bottom: none; }
.cl-label {
  font-size: 12px;
  color: var(--mh-text-3);
}
.cl-value {
  font-size: 14px;
  color: var(--mh-text-1);
  line-height: 1.6;
}
.company-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--mh-bg-soft);
  border-radius: var(--mh-radius-md);
}
.qr-box {
  width: 88px;
  height: 88px;
  background: #fff;
  border-radius: var(--mh-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}
.qr-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qr-text strong {
  display: block;
  font-size: 14px;
  color: var(--mh-text-1);
  margin-bottom: 4px;
}
.qr-text span { font-size: 12px; color: var(--mh-text-3); }

/* 响应式 */
@media (max-width: 992px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-main { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-cards { grid-template-columns: 1fr; }
  .mh-form .form-row { grid-template-columns: 1fr; }
  .contact-form-card, .contact-company { padding: 28px 22px; }
}
