/* ==========================================================================
   Contact Us page stylesheet (page-contact_us.php)
   Page-specific styles only. Shared styles live in assets/css/style.css
   (header/footer/buttons) and page-banner comes from style.css (WP 版已合并
   内容页公共布局进公共 style.css)。
   ========================================================================== */

/* ---------- 标题区（与下方联系卡同属浅灰背景块，整体第一块） ---------- */
.contact-head { background: var(--themeColor5, #F7F8FA); padding-bottom: 1.5rem; }
.contact-head-inner { text-align: center; max-width: 90rem; }

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--themeColor1);
  border: 1px solid var(--themeColor1);
  border-radius: 99px;
  padding: 0.7rem 1.8rem;
  margin-bottom: 1.6rem;
}
.contact-eyebrow .yiyingbaoicon { font-size: 1.4rem; }

.contact-title {
  font-size: 5rem;
  font-weight: bold;
  color: #101B4D;
  line-height: 1.2;
  margin-bottom: 1.6rem;
}

.contact-desc {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #5A6472;
  margin: 0 auto;
}

/* ---------- 联系卡 4 列（与上方标题区同一浅灰背景块） ---------- */
.contact-cards {
  background: var(--themeColor5, #F7F8FA);
  padding: 1.5rem 0 4%;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 6px;
  padding: 3.2rem 2.4rem 2.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(16, 27, 77, 0.10);
  border-color: var(--themeColor1);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.6rem;
  height: 7.6rem;
  border-radius: 50%;
  background: #EAF1F9;
  color: var(--themeColor1);
  margin-bottom: 1.8rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.contact-card-icon .jc-icon { width: 3.4rem; height: 3.4rem; }
.contact-card:hover .contact-card-icon { background: var(--themeColor1); color: #fff; }

.contact-card-name {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #101B4D;
  margin-bottom: 0.8rem;
}

.contact-card-value {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--themeColor1);
  word-break: break-word;
}

/* ---------- 主体两列：左表单 + 右地图（白底第二块） ---------- */
.contact-body { background: #fff; }
.contact-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: stretch;
}

/* 左：表单 */
.contact-form-wrap {
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 6px;
  padding: 5rem 4.4rem;
  display: flex;
  flex-direction: column;
}

.contact-form-note {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #5A6472;
  margin-bottom: 3.2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 2.2rem; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #D9DEE7;
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--themeColor2);
  padding: 1.8rem 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.contact-form textarea { resize: vertical; min-height: 16rem; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9AA3B2; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--themeColor1);
  box-shadow: 0 0 0 3px rgba(23, 42, 136, 0.08);
}

.contact-submit {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
  margin-top: 1rem;
}

/* 右：地图 */
.contact-map {
  position: relative;
  height: 100%;
  min-height: 55rem;
  border-top: 4px solid var(--themeColor1);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(16, 27, 77, 0.08);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-map-card {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
  max-width: 34rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(16, 27, 77, 0.18);
  padding: 2rem 2.2rem;
}

.contact-map-company {
  font-size: 1.8rem;
  color: #101B4D;
  line-height: 1.4;
  margin-bottom: 1.2rem;
}

.contact-map-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #5A6472;
  margin-bottom: 0.8rem;
}
.contact-map-row:last-child { margin-bottom: 0; }
.contact-map-row .jc-icon {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.2rem;
  color: var(--themeColor1);
}
.contact-map-row a { color: var(--themeColor1); }
.contact-map-row a:hover { text-decoration: underline; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 960px) {
  .contact-title { font-size: 3.2rem; }
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  .contact-body-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-map { min-height: 0; display: flex; flex-direction: column; border-top: 0; box-shadow: none; }
  .contact-map iframe { position: static; order: 2; height: 30rem; }
  .contact-map-card { position: static; order: 1; max-width: none; margin-bottom: 1.6rem; box-shadow: 0 4px 16px rgba(16, 27, 77, 0.10); }
}

@media (max-width: 560px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 2.6rem 2rem; }
  .contact-submit { width: 100%; text-align: center; }
}
