/* =========================================
   联系页 H5（max-width: 768px）
   设计稿 Contact_mobile 390
   仅影响移动端，不改 PC 样式
   ========================================= */

@media (max-width: 768px) {
  /* ----------------------------------------
     Banner
     ---------------------------------------- */
  .contact-banner {
    height: 5rem;
    min-height: 0;
  }

  .contact-banner__bg {
    background: none;
    box-shadow: none;
    filter: none;
  }

  .contact-banner__title {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3.5rem;
    gap: 0.16rem;
  }

  .contact-banner__eyebrow {
    font-size: 0.13rem;
    line-height: 0.18rem;
    opacity: 0.8;
  }

  .contact-banner__heading {
    font-size: 0.52rem;
    line-height: 0.6rem;
    font-weight: 700;
  }

  /* ----------------------------------------
     Main：信息在上，表单在下
     ---------------------------------------- */
  .contact-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.64rem;
    min-height: 0;
    max-width: none;
    padding: 0.48rem 0.2rem;
  }

  .contact-main__left,
  .contact-main__right {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .contact-main__eyebrow {
    font-size: 0.16rem;
    line-height: 0.18rem;
    font-weight: 700;
  }

  .contact-main__info {
    margin-top: 0.32rem;
    gap: 0.64rem;
  }

  .contact-main__info-group {
    gap: 0.4rem;
  }

  .contact-main__item {
    gap: 0.08rem;
  }

  .contact-main__label {
    font-size: 0.15rem;
    line-height: 0.18rem;
  }

  .contact-main__value {
    font-size: 0.18rem;
    line-height: 0.24rem;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* ----------------------------------------
     Right：Form（Figma 387:8545 / 350×829）
     ---------------------------------------- */
  .contact-main__right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
    gap: 0.32rem;
    width: 100%;
  }

  .contact-main__headline {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.28rem;
    line-height: 0.36rem;
    font-weight: 500;
    color: var(--color-black);
    overflow-wrap: break-word;
    word-break: normal;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.48rem;
    width: 100%;
  }

  .contact-form__fields {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    width: 100%;
  }

  .contact-form__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.24rem;
    width: 100%;
  }

  .contact-field {
    flex: none;
    width: 100%;
    gap: 0.08rem;
  }

  .contact-field--spacer {
    display: none;
  }

  .contact-field__label {
    height: 0.14rem;
    font-family: var(--font-inter-tight);
    font-size: 0.14rem;
    line-height: normal;
  }

  .contact-field__input {
    font-family: var(--font-inter-tight);
    font-size: 0.16rem;
    line-height: normal;
    padding: 0 0 0.16rem;
    border-bottom-width: 1px;
  }

  .contact-field__textarea {
    min-height: 0.8rem;
    padding-top: 0;
  }

  .contact-field__error {
    font-family: var(--font-sans);
    font-size: 0.14rem;
    line-height: normal;
    color: var(--color-error);
    overflow-wrap: break-word;
    word-break: normal;
  }

  .contact-field--select.contact-field--error .contact-field__select-trigger {
    border-bottom-color: var(--color-error);
  }

  .contact-field--select {
    width: 100%;
  }

  .contact-field__select-trigger {
    align-items: center;
    min-height: 0.42rem;
    padding: 0 0.24rem 0.16rem 0;
    border-bottom-width: 1px;
  }

  .contact-field__select-placeholder {
    font-family: var(--font-inter-tight);
    font-size: 0.16rem;
    line-height: normal;
    opacity: 0.3;
  }

  .contact-field__select-value {
    font-family: var(--font-inter-tight);
    font-size: 0.16rem;
    line-height: normal;
  }

  .contact-field__select-arrow {
    right: 0;
    top: 50%;
    margin-top: -0.02rem;
    border-left-width: 0.05rem;
    border-right-width: 0.05rem;
    border-bottom-width: 0.07rem;
  }

  .contact-field__dropdown {
    left: 0;
    top: calc(100% + 0.08rem);
    width: 100%;
    max-width: none;
  }

  .contact-field__option {
    font-size: 0.14rem;
    line-height: 0.22rem;
    padding: 0.08rem;
  }

  .contact-form__submit {
    flex-shrink: 0;
  }

  .contact-form__submit > span:first-child {
    padding: 0.08rem 0.32rem;
    font-family: var(--font-sans);
    font-size: 0.14rem;
    font-weight: 500;
    line-height: normal;
  }

  .contact-form__submit-arrow {
    width: 0.32rem;
    height: 0.16rem;
    margin-left: -0.16rem;
  }

  /* ----------------------------------------
     Modal
     ---------------------------------------- */
  .contact-modal__dialog {
    width: 3.5rem;
    min-height: 0;
    max-width: calc(100% - 0.4rem);
  }

  .contact-modal__content {
    min-height: 0;
    padding: 0.48rem 0.24rem 0.32rem;
    gap: 0.1rem;
  }

  .contact-modal__title {
    font-size: 0.24rem;
    line-height: 0.32rem;
  }

  .contact-modal__desc {
    font-size: 0.14rem;
    line-height: 0.22rem;
  }

  .contact-modal__close {
    top: 0.12rem;
    right: 0.12rem;
    width: 0.24rem;
    height: 0.24rem;
  }

  .contact-modal__close img {
    width: 0.24rem;
    height: 0.24rem;
  }
}
