/* ============================================================
   contact.css - 联系我们页面样式
   前缀标识: zs
============================================================ */

/* ============================================================
   Banner - 复用产品页 banner 结构
============================================================ */
.zs-pbanner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.zs-pbanner img {
  width: 100%;
  height: auto;
  display: block;
}

.zs-pbanner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 60%);
  /* 文案左对齐：左边距与页面内容区（max-width 1400px + 30px 内边距）对齐 */
  padding: 0 30px 0 max(30px, calc(50% - 670px));
  text-align: left;
}

.zs-pbanner-title {
  font-size: 48px;
  font-weight: 400;
  color: #ffffff;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: 3px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   公共内容容器
============================================================ */
.zs-contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ============================================================
   区块标题
============================================================ */
.zs-section-heading {
  margin-bottom: 30px;
  padding-top: 50px;
}

.zs-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e1440;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  margin-bottom: 10px;
}

.zs-section-line {
  display: block;
  width: 36px;
  height: 2px;
  background: #1e1440;
  position: relative;
}

.zs-section-line::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #1e1440;
}

.zs-section-arrow {
  display: block;
  height: 8px;
  width: auto;
  object-fit: contain;
}

/* ============================================================
   Contact Us - 三列联系信息卡片
============================================================ */
.zs-contact-section {
  padding-bottom: 10px;
}

.zs-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.zs-contact-card {
  background: #f9f8fc;
  border: 1px solid #eeedf3;
  border-radius: 4px;
  padding: 40px 30px 36px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.zs-contact-card:hover {
  box-shadow: 0 6px 24px rgba(91, 74, 158, 0.1);
  transform: translateY(-3px);
}

.zs-contact-card-icon {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zs-contact-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1440;
  margin-bottom: 16px;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
}

.zs-contact-card-info p {
  font-size: 14px;
  color: #666666;
  line-height: 2;
}

.zs-contact-card-info a {
  color: #666666;
  transition: color 0.3s ease;
}

.zs-contact-card-info a:hover {
  color: #5B4A9E;
}

/* ============================================================
   Office Address - 办公地址
============================================================ */
.zs-office-address {
  margin-top: 36px;
  background: #f9f8fc;
  border: 1px solid #eeedf3;
  border-radius: 4px;
  padding: 36px 30px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.zs-office-address:hover {
  box-shadow: 0 6px 24px rgba(91, 74, 158, 0.1);
}

.zs-office-address .zs-contact-card-info p {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================================
   Feedback - 反馈表单
============================================================ */
.zs-feedback-section {
  padding-bottom: 10px;
}

.zs-feedback-form {
  width: 100%;
}

.zs-feedback-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.zs-feedback-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zs-feedback-field label {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  white-space: nowrap;
}

.zs-required {
  color: #e74c3c;
  margin-right: 2px;
}

.zs-feedback-field input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  color: #333333;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 3px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.zs-feedback-field input::placeholder {
  color: #bbbbbb;
}

.zs-feedback-field input:focus {
  border-color: #5B4A9E;
}

.zs-feedback-submit {
  flex-shrink: 0;
  height: 40px;
  padding: 0 36px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #5B4A9E;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.zs-feedback-submit:hover {
  background: #4a3b8a;
  box-shadow: 0 4px 12px rgba(91, 74, 158, 0.3);
}

/* ============================================================
   Google Map - 地图区域
   地图无标题，顶部间距与区块标题 padding-top 保持一致
============================================================ */
.zs-map-section {
  padding-top: 50px;
  padding-bottom: 60px;
}

.zs-map-wrap {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.zs-map-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #0066FF;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.zs-map-link:hover {
  background: #ffffff;
  color: #0052cc;
}

.zs-map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 400px;
}

/* ============================================================
   响应式
============================================================ */
@media screen and (max-width: 1024px) {
  .zs-pbanner-title {
    font-size: 36px;
  }

  .zs-contact-cards {
    gap: 20px;
  }

  .zs-contact-card {
    padding: 30px 20px 28px;
  }
}

@media screen and (max-width: 768px) {
  .zs-pbanner-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .zs-contact-inner {
    padding: 0 16px;
  }

  .zs-section-heading {
    padding-top: 30px;
    margin-bottom: 20px;
  }

  .zs-section-title {
    font-size: 20px;
  }

  /* 联系卡片单列 */
  .zs-contact-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .zs-contact-card {
    padding: 24px 20px 22px;
  }

  .zs-contact-card-title {
    font-size: 15px;
  }

  .zs-contact-card-info p {
    font-size: 13px;
  }

  /* Office Address */
  .zs-office-address {
    margin-top: 20px;
    padding: 24px 16px;
  }

  /* Feedback 表单竖排 */
  .zs-feedback-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .zs-feedback-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .zs-feedback-field input {
    width: 100%;
  }

  .zs-feedback-submit {
    width: 100%;
    height: 44px;
  }

  /* 地图 */
  .zs-map-section {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  .zs-map-wrap iframe {
    min-height: 280px;
  }
}

@media screen and (max-width: 480px) {
  .zs-pbanner-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .zs-contact-inner {
    padding: 0 12px;
  }

  .zs-section-heading {
    padding-top: 24px;
    margin-bottom: 16px;
  }

  .zs-section-title {
    font-size: 18px;
  }

  .zs-contact-card {
    padding: 20px 16px 18px;
  }

  .zs-map-section {
    padding-top: 24px;
  }

  .zs-map-wrap iframe {
    min-height: 220px;
  }
}

/* zs-pbanner 文案左对齐（小屏左边距） */
@media screen and (max-width: 768px) {
  .zs-pbanner-overlay {
    padding: 0 16px;
  }
}
