.contact-page .site-header {
  position: sticky;
  top: 0;
}

.contact-page main {
  background: var(--color-white);
}

/* 不再单独收窄，跟随全站 .container 宽度，保证与面包屑及站内其它页面左右对齐。 */
.contact-container {
  max-width: calc(var(--container-max) + var(--container-padding) * 2);
}

.contact-breadcrumb {
  background: #f4f8fb;
}

.contact-breadcrumb .container {
  display: flex;
  min-height: 50px;
  align-items: center;
}

.contact-breadcrumb .breadcrumbs {
  gap: 10px;
  color: #24364b;
  font-size: 14px;
}

.contact-breadcrumb .breadcrumbs li,
.contact-breadcrumb .breadcrumbs a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-breadcrumb .breadcrumbs a {
  color: #172c43;
}

.contact-breadcrumb .breadcrumbs .icon {
  width: 18px;
  height: 18px;
  color: #0879c9;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background: #062d58;
}

.contact-hero__media {
  position: absolute;
  inset: 0 0 0 43%;
  background: var(--contact-hero-image, url("../images/contact-hero.jpg")) center / cover no-repeat;
  filter: saturate(0.8);
  transform: scale(1.03);
}

.contact-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #062d58 0%, #073a70 38%, rgb(6 45 88 / 82%) 53%, rgb(6 45 88 / 15%) 100%);
  content: "";
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 208px;
  align-items: center;
}

.contact-hero__content {
  width: min(720px, 60%);
  padding-block: 28px;
}

.contact-hero h1 {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 12px;
  color: var(--color-white);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.contact-hero h1::before {
  width: 9px;
  height: 42px;
  flex: 0 0 auto;
  background: #008cff;
  content: "";
  transform: skew(-20deg);
}

.contact-hero__subtitle {
  margin-bottom: 0;
  color: #f2f7fc;
  font-size: 18px;
  line-height: 1.65;
}

.contact-main {
  padding-block: 88px 96px;
}

.contact-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(0, 1fr);
  align-items: start;
  gap: 76px;
}

.contact-info {
  padding: 30px 32px;
  border: 1px solid #e6ebf0;
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.contact-info h2,
.contact-inquiry h2,
.contact-benefits h2 {
  margin-bottom: 0;
  color: #123c5b;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.contact-section-line {
  display: block;
  width: 76px;
  height: 3px;
  margin-top: 10px;
  background: #0879c9;
}

.contact-info__intro,
.contact-inquiry__intro {
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.65;
}

.contact-info__list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.contact-info__list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-block: 22px;
  border-top: 1px solid #e8edf2;
}

.contact-info__list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-info__list li:last-child {
  padding-bottom: 0;
}

.contact-info__icon {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  border-radius: 50%;
  color: #0879c9;
  background: #eff8ff;
}

.contact-info__icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.contact-info h3 {
  margin: 0 0 6px;
  color: #123c5b;
  font-size: 20px;
  font-weight: 700;
}

.contact-info__list p,
.contact-info__list a {
  display: block;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.6;
}

.contact-info__list p {
  color: var(--color-muted);
}

.contact-info__list a {
  color: #0879c9;
}

.contact-info__list a:hover {
  text-decoration: underline;
}

.contact-inquiry {
  padding-top: 4px;
}

.contact-inquiry h2 {
  font-size: 36px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin-top: 32px;
}

.contact-form__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #17202b;
  font-size: 16px;
  font-weight: 700;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #e2e7ed;
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form__field input {
  height: 54px;
  padding: 0 16px;
}

.contact-form__field textarea {
  min-height: 112px;
  padding: 13px 16px;
  line-height: 1.5;
  resize: vertical;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #9aa5b2;
  opacity: 1;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: #0879c9;
  box-shadow: 0 0 0 3px rgb(8 121 201 / 10%);
}

.contact-form__field--message {
  grid-column: 1 / -1;
}

.contact-form__submit {
  display: inline-flex;
  min-height: 54px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.contact-form__submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.contact-form__submit .icon {
  width: 20px;
  height: 20px;
}

.contact-form__submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.contact-form__status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.contact-form__status.is-success {
  color: #176b35;
  background: #edf9f0;
}

.contact-form__status.is-error {
  color: #a32a2a;
  background: #fff1f1;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-benefits {
  padding-block: 64px 70px;
  background: #f4f8fb;
  text-align: center;
}

.contact-benefits h2 {
  font-size: 38px;
}

.contact-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  margin-top: 54px;
}

.contact-benefit__icon {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid #e6edf3;
  border-radius: 50%;
  color: #46738f;
  background: var(--color-white);
  box-shadow: 0 5px 18px rgb(16 24 40 / 5%);
}

.contact-benefit__icon .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.4;
}

.contact-benefit h3 {
  margin-bottom: 10px;
  color: #123c5b;
  font-size: 20px;
  font-weight: 700;
}

.contact-benefit p {
  max-width: 290px;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .contact-hero__content {
    margin-left: 120px;
  }
}

@media (max-width: 1199px) {
  .contact-hero__content {
    margin-left: 60px;
  }

  .contact-main__grid {
    gap: 40px;
  }

  .contact-info {
    padding: 26px;
  }

  .contact-info__intro,
  .contact-inquiry__intro {
    font-size: 16px;
  }

  .contact-info__list p,
  .contact-info__list a {
    font-size: 15px;
  }

  .contact-form {
    gap: 18px;
  }

  .contact-benefits__grid {
    gap: 26px;
  }
}

@media (max-width: 1023px) {
  .contact-hero__inner {
    min-height: 450px;
  }

  .contact-main {
    padding-block: 70px;
  }

  .contact-main__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-info__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
  }

  .contact-info__list li,
  .contact-info__list li:first-child,
  .contact-info__list li:last-child {
    padding: 0;
    border: 0;
  }

  .contact-benefit h3 {
    font-size: 18px;
  }

  .contact-benefit p {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .contact-hero__media {
    background-position: 60% center;
  }

  .contact-hero::after {
    background: linear-gradient(90deg, rgb(7 47 79 / 96%) 0%, rgb(7 47 79 / 83%) 60%, rgb(7 47 79 / 58%) 100%);
  }

  .contact-hero__inner {
    min-height: 430px;
  }

  .contact-hero__content {
    width: 100%;
    padding-block: 44px;
  }

  .contact-hero .breadcrumbs {
    margin-bottom: 32px;
  }

  .contact-hero h1 {
    font-size: 44px;
  }

  .contact-hero__subtitle {
    font-size: 16px;
  }

  .contact-hero__break {
    display: none;
  }

  .contact-main {
    padding-block: 60px;
  }

  .contact-main__grid {
    gap: 48px;
  }

  .contact-info__list {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form__field--message,
  .contact-form__submit {
    grid-column: auto;
  }

  .contact-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 24px;
  }
}

@media (max-width: 479px) {
  .contact-hero h1 {
    font-size: 40px;
  }

  .contact-info {
    padding: 24px 20px;
  }

  .contact-info h2,
  .contact-inquiry h2 {
    font-size: 28px;
  }

  .contact-info__icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .contact-info__list li {
    gap: 14px;
  }

  .contact-benefits h2 {
    font-size: 32px;
  }

  .contact-benefits__grid {
    grid-template-columns: 1fr;
  }
}

.contact-hero__content {
  margin-left: 0;
}

@media (max-width: 1023px) {
  .contact-hero__inner {
    min-height: 208px;
  }
}

@media (max-width: 767px) {
  .contact-breadcrumb .container {
    min-height: 44px;
  }

  .contact-hero__media {
    inset: 0;
    opacity: 0.35;
  }

  .contact-hero::after {
    background: linear-gradient(90deg, rgb(6 45 88 / 96%), rgb(6 45 88 / 72%));
  }

  .contact-hero__inner {
    min-height: 238px;
  }

  .contact-hero__content {
    width: 100%;
    padding-block: 30px;
  }

  .contact-hero h1 {
    gap: 14px;
    font-size: 34px;
    letter-spacing: -1px;
  }

  .contact-hero h1::before {
    width: 7px;
    height: 34px;
  }

  .contact-hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 479px) {
  .contact-hero h1 {
    font-size: 34px;
  }
}
