@charset "utf-8";

.header-space {
  background-color: #f5f7fa;
}

.page-contact {
  background-color: #f5f7fa;
}

/* 地图 */
.contact-map {
  overflow: hidden;
}

.contact-map img {
  display: block;
  width: 100%;
}

/* 顶部介绍 */
.contact-hero {
  padding: 100px 0 60px;
}

.contact-hero-inner {
  justify-content: space-between;
  align-items: flex-start;
}

.contact-hero-left {
  width: 48%;
}

.contact-hero-right {
  width: 48%;
}

.contact-label {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
  color: #6b7280;
}

.contact-hero .pages-heading-title {
  margin-top: 4px;
}

.contact-hero-right p {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

.contact-hero-right .site-link {
  font-size: 14px;
}

/* 表单区 */
.contact-form-section {
  margin-top: 50px;
  padding: 50px;
  background-color: #fff;
}

.contact-form-inner {
  justify-content: space-between;
}

.contact-info {
  width: 36%;
}

.contact-info .pages-heading-title {
  margin-bottom: 40px;
}

.contact-method {
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 2px solid var(--color-primary);
}

.contact-method-label {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  color: #9ca3af;
}

.contact-phone {
  display: block;
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -1px;
  color: #111827;
}

.contact-email-row {
  margin-bottom: 8px;
  font-size: 14px;
  color: #6b7280;
}

.contact-email-row span {
  color: #6b7280;
}

.contact-email-row a {
  color: #111827;
}

.contact-email-row a:hover {
  color: var(--color-primary);
}

.contact-qr {
  align-items: center;
}

.contact-qr p {
  font-size: 2vw;
  margin-right: 1vw;
}

.contact-qr img {
  width: 8vw;
  display: block;
}

.contact-clients p {
  margin-bottom: 16px;
  font-size: 12px;
  color: #9ca3af;
}

.contact-clients ul {
  margin-left: -16px;
}

.contact-clients li {
  width: 20%;
  padding-left: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  list-style: none;
  box-sizing: border-box;
}

.contact-clients li img {
  display: block;
  width: 100%;
  height: 44px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}

.contact-clients li img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* 表单 */
.contact-form-wrap {
  width: 58%;
}

.contact-form-wrap .pages-heading-title {
  margin-bottom: 32px;
}

.contact-form-group {
  margin-bottom: 24px;
}

.contact-form-group > label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: #374151;
}

.contact-checkbox-list {
  margin: 0 0 12px -12px;
}

.contact-checkbox-list li {
  padding-left: 12px;
  margin-bottom: 12px;
  list-style: none;
}

.contact-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  color: #4b5563;
}

.contact-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact-checkbox span {
  position: relative;
  padding-left: 22px;
}

.contact-checkbox span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 14px;
  height: 14px;
  border: 1px solid #d1d5db;
  background: #fff;
}

.contact-checkbox input:checked + span::before {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.contact-checkbox input:checked + span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact-form-row {
  margin: 0 -12px 16px;
}

.contact-form-item {
  width: 50%;
  padding: 0 12px;
  box-sizing: border-box;
}

.contact-form-item-full {
  width: 100%;
  margin-bottom: 24px;
}

.contact-form-textarea {
  padding: 0;
}

.contact-form-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #374151;
}

.contact-form-item input,
.contact-form-item textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  color: #111827;
  background: #fff;
}

.contact-form-item input::placeholder,
.contact-form-item textarea::placeholder {
  color: #d1d5db;
}

.contact-form-item textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-note {
  margin-top: 12px;
  font-size: 12px;
  color: #9ca3af;
}

/* 必填星号飘红 */
.contact-form label .required {
  color: #e02424;
}

/* 提交状态提示 */
.contact-form-status {
  margin-top: 16px;
  min-height: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.contact-form-status.is-success {
  color: #16a34a;
}

.contact-form-status.is-error {
  color: #e02424;
}

/* 蜜罐反垃圾字段：对用户隐藏 */
.caper-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* 地址 */

.contact-location-list {
  margin-top: 50px;
  margin-left: -24px;
}

.contact-location-list li {
  width: 50%;
  padding-left: 24px;
}

.contact-location-card {
  border: 1px solid #dedede;
  padding: 40px;
  background: #f5f7fa;
}

.contact-location-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #6b7280;
}

.contact-location-card h3 {
  margin-bottom: 24px;
  font-size: 36px;
  font-weight: 500;
  color: #111827;
}

.contact-location-card hr {
  margin: 0 0 24px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
}

.contact-location-card p {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

.contact-location-card p span {
  color: #9ca3af;
}

.contact-location-card a {
  color: #4b5563;
}

.contact-location-card a:hover {
  color: var(--color-primary);
}

/* ===========================================
   响应式适配（断点遵循主题 960 / 768 / 480）
   =========================================== */

/* 960：平板 —— 主区块左右两栏堆叠为单列，二维码改固定尺寸 */
@media (max-width: 960px) {
  .contact-hero {
    padding: 70px 0 50px;
  }
  .contact-hero-inner {
    flex-direction: column;
  }
  .contact-hero-left,
  .contact-hero-right {
    width: 100%;
  }
  .contact-hero-right {
    margin-top: 24px;
  }

  .contact-form-section {
    padding: 40px;
  }
  .contact-form-inner {
    flex-direction: column;
  }
  .contact-info {
    width: 100%;
    margin-bottom: 44px;
  }
  .contact-form-wrap {
    width: 100%;
  }

  /* 二维码用固定尺寸，避免 vw 在窄屏过小无法扫码 */
  .contact-qr img {
    width: 100px;
  }
  .contact-qr p {
    font-size: 14px;
    margin-right: 12px;
  }
}

/* 768：手机 —— 表单每行两个输入框改单列、地址卡片堆叠、内边距收敛 */
@media (max-width: 768px) {
  .contact-hero {
    padding: 56px 0 40px;
  }
  .contact-form-section {
    padding: 30px;
  }
  .contact-info .pages-heading-title {
    margin-bottom: 28px;
  }
  .contact-phone {
    font-size: 32px;
  }

  .contact-form-row {
    flex-direction: column;
    margin: 0 0 16px;
  }
  .contact-form-item {
    width: 100%;
    padding: 0;
    margin-bottom: 16px;
  }
  .contact-form-item-full {
    margin-bottom: 16px;
  }

  .contact-location-list {
    flex-direction: column;
    margin-left: 0;
  }
  .contact-location-list li {
    width: 100%;
    padding-left: 0;
    margin-bottom: 20px;
  }
  .contact-location-card {
    padding: 28px;
  }
}

/* 480：小屏 —— 标题与卡片内边距进一步收紧 */
@media (max-width: 480px) {
  .contact-hero {
    padding: 44px 0 32px;
  }
  .contact-hero .pages-heading-title h1 {
    font-size: 26px;
  }
  .contact-form-section {
    padding: 22px;
  }
  .contact-info .pages-heading-title h2,
  .contact-form-wrap .pages-heading-title h2 {
    font-size: 22px;
  }
  .contact-phone {
    font-size: 28px;
  }
  .contact-location-card {
    padding: 20px;
  }
  .contact-location-card h3 {
    font-size: 28px;
  }
  .contact-qr img {
    width: 88px;
  }
}
