/* 合作联系 */

.contact-main {
  padding: calc(87 * var(--px)) 0 calc(127 * var(--px));
  background: #f7f7f7fd;
}

.contact-hello {
  width: 100%;
  text-align: left;
  margin: 0 0 calc(38 * var(--px));
}

.contact-hello h2 {
  display: block;
  width: 100%;
  margin: 0 0 calc(31 * var(--px));
  font-family: var(--font);
  font-size: max(24px, calc(48 * var(--px)));
  font-weight: 700; /* HarmonyOS Sans SC Bold */
  font-style: normal;
  color: #1a3a8e;
  line-height: calc(32 * var(--px));
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.contact-hello p {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: var(--font);
  font-size: max(16px, calc(18 * var(--px)));
  font-style: normal;
  color: #10346d;
  line-height: calc(32 * var(--px));
  text-align: left;
  text-transform: none;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, calc(460 * var(--px)));
  justify-content: space-between;
  gap: 0;
  margin-bottom: 24px;
}

.contact-card {
  width: calc(460 * var(--px));
  height: calc(220 * var(--px));
  box-sizing: border-box;
  background: #ffffff;
  border-radius: calc(8 * var(--px));
  /* box-shadow: 0 10px 30px rgba(26, 58, 142, 0.08); */
  padding: calc(41 * var(--px)) calc(51 * var(--px));
}

.contact-card h3 {
  font-family: var(--font);
  font-size: max(16px, calc(20 * var(--px)));
  font-weight: 500; /* HarmonyOS Sans SC Medium */
  font-style: normal;
  color: #10346d;
  line-height: calc(32 * var(--px));
  text-align: left;
  text-transform: none;
  margin-bottom: calc(20 * var(--px));
}

.contact-card .row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  font-family: var(--font);
  font-size: max(16px, calc(18 * var(--px)));
  font-style: normal;
  color: #10346d;
  line-height: calc(36 * var(--px));
  text-align: left;
  text-transform: none;
}

.contact-card .row img {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  margin-top: calc(9 * var(--px));
  flex-shrink: 0;
}

.contact-form-wrap {
  width: calc(1420 * var(--px));
  max-width: 100%;
  height: calc(520 * var(--px));
  box-sizing: border-box;
  background: #ffffff;
  border-radius: calc(12 * var(--px));
  /* box-shadow: 0 12px 36px rgba(26, 58, 142, 0.08); */
  padding: calc(41 * var(--px)) calc(51 * var(--px));
  display: flex;
  flex-direction: column;
}

.contact-form-wrap form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.contact-form-wrap h3 {
  font-family: var(--font);
  font-size: max(16px, calc(20 * var(--px)));
  font-weight: 500; /* HarmonyOS Sans SC Medium */
  font-style: normal;
  color: #10346d;
  line-height: calc(32 * var(--px));
  text-align: left;
  text-transform: none;
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, calc(426 * var(--px)));
  justify-content: space-between;
  gap: calc(16 * var(--px)) 0;
  margin-bottom: calc(16 * var(--px));
}

.form-grid input,
.form-grid select {
  width: calc(426 * var(--px));
  height: calc(54 * var(--px));
  box-sizing: border-box;
  padding: 0 calc(18 * var(--px));
  background: #f8f9fd;
  border-radius: calc(4 * var(--px));
  border: 1px solid #e1e6ed;
  font-size: max(13px, calc(14 * var(--px)));
  color: var(--text-dark);
}

.form-message textarea {
  width: calc(1334 * var(--px));
  max-width: 100%;
  height: calc(156 * var(--px));
  box-sizing: border-box;
  padding: calc(16 * var(--px)) calc(18 * var(--px));
  background: #f8f9fd;
  border-radius: calc(4 * var(--px));
  border: 1px solid #e1e6ed;
  font-size: max(13px, calc(14 * var(--px)));
  color: var(--text-dark);
}

.form-grid select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
}

.form-message {
  flex: 1;
  min-height: 0;
}

.form-message textarea {
  resize: none;
  line-height: 1.6;
  margin-bottom: 0;
}

.form-grid input::placeholder,
.form-message textarea::placeholder {
  color: #a0a6b3;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  flex-shrink: 0;
  padding-top: calc(24 * var(--px));
}

.form-agree {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  font-family: var(--font);
  font-size: max(13px, calc(15 * var(--px)));
  font-style: normal;
  color: #9ca3af;
  line-height: normal;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.form-agree input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: calc(30 * var(--px));
  height: calc(30 * var(--px));
  box-sizing: border-box;
  margin: 0;
  background: #f8f9fd;
  border-radius: calc(4 * var(--px));
  border: 1px solid #e1e6ed;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.form-agree input[type="checkbox"]:checked {
  background: #1a3a8e;
  border-color: #1a3a8e;
}

.form-agree input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: calc(8 * var(--px));
  height: calc(14 * var(--px));
  border: solid #ffffff;
  border-width: 0 calc(2 * var(--px)) calc(2 * var(--px)) 0;
  transform: translate(-50%, -55%) rotate(45deg);
}

.form-agree a {
  font-family: var(--font);
  font-size: max(13px, calc(15 * var(--px)));
  font-style: normal;
  color: #10346d;
  line-height: normal;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.form-actions .btn {
  width: calc(148 * var(--px));
  min-width: calc(148 * var(--px));
  height: calc(48 * var(--px));
  padding: 0;
  box-sizing: border-box;
  background: #1a3a8e;
  border-radius: calc(24 * var(--px));
  font-family: var(--font);
  font-size: max(14px, calc(16 * var(--px)));
  font-weight: 700; /* HarmonyOS Sans SC Bold */
  font-style: normal;
  color: #ffffff;
  text-align: center;
  text-transform: none;
  justify-content: center;
}

.form-actions .btn:hover {
  background: #142d70;
  color: #ffffff;
}

@media (max-width: 1100px) {
  .contact-cards {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: calc(20 * var(--px));
  }

  .contact-card {
    width: 100%;
    height: auto;
    min-height: calc(220 * var(--px));
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    gap: calc(16 * var(--px)) calc(16 * var(--px));
  }

  .form-grid input,
  .form-grid select {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-main {
    padding: 40px 0;
  }

  .contact-hello {
    margin: 0 0 20px;
  }

  .contact-hello h2 {
    font-size: 22px;
    line-height: 1.35;
    margin: 0 0 12px;
  }

  .contact-hello p {
    font-size: 15px;
    line-height: 1.7;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .contact-card {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 20px 16px;
    border-radius: 8px;
  }

  .contact-card h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .contact-card .row {
    font-size: 14px;
    line-height: 1.6;
    gap: 10px;
    min-height: 44px;
    align-items: center;
  }

  .contact-card .row img {
    width: 18px;
    height: 18px;
    margin-top: 0;
  }

  .contact-form-wrap {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 20px 16px;
    border-radius: 12px;
  }

  .contact-form-wrap h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .form-grid input,
  .form-grid select {
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 16px;
  }

  .form-message textarea {
    width: 100%;
    height: auto;
    min-height: 120px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 16px;
  }

  .form-agree {
    font-size: 13px;
    gap: 10px;
    min-height: 44px;
  }

  .form-agree input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .form-actions .btn {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 22px;
    font-size: 15px;
  }
}
