/* ========================================================================== 
   contactus.css — 联系我们内页样式
   ========================================================================== */

:root {
  --contact-mint: #73CBC7;
  --contact-purple: #403586;
  --contact-text: #494C53;
  --contact-muted: #7A7F88;
  --contact-line: rgba(73, 76, 83, .16);
}

.page-contact {
  background: #fff;
  overflow: hidden;
}

.page-contact-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(231, 240, 249, .98) 0%, rgba(231, 240, 249, .96) 27%, rgba(31, 60, 104, .76) 47%, rgba(9, 42, 94, .98) 100%);
}

.page-contact-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(231, 240, 249, 1) 0%, rgba(231, 240, 249, .86) 25%, rgba(18, 54, 105, .55) 46%, rgba(10, 42, 93, .98) 100%),
    url(../img/page/contact-hero-person.jpg) 43% center / auto 100% no-repeat;
  opacity: 1;
}

.page-contact-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1600px, calc(100% - 64px));
  min-height: 480px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.page-contact-hero__content {
  width: 610px;
  padding-top: 126px;
}

.page-contact-hero__content h1 {
  margin: 0;
  color: var(--contact-purple);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.18;
}

.page-contact-hero__content h2 {
  margin: 22px 0 0;
  color: var(--contact-purple);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.page-contact-hero__content p {
  margin: 23px 0 0;
  color: #4E5968;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.page-contact-hero__content strong {
  color: var(--contact-mint);
  font-weight: 700;
}

.page-contact-hero__features {
  width: 760px;
  padding-top: 110px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 45px;
  color: #fff;
}

.page-contact-hero__feature {
  text-align: center;
}

.page-contact-hero__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 27px;
  display: grid;
  place-items: center;
  color: var(--contact-mint);
}

.page-contact-hero__icon svg {
  width: 58px;
  height: 58px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-contact-hero__icon .is-mint {
  stroke: #73CBC7;
}

.page-contact-hero__feature h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.page-contact-hero__feature p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .94);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.page-contact-form {
  position: relative;
  z-index: 5;
  background: linear-gradient(#fff 0%, #fff 100%);
  padding: 80px 0 70px;
}

.page-contact-form__inner {
  width: min(1600px, calc(100% - 64px));
  margin: -120px auto 0;
  display: grid;
  grid-template-columns: 580px 1fr;
  gap: 60px;
  align-items: stretch;
}

.page-contact-info-card,
.page-contact-message-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(33, 43, 58, .10);
}

.page-contact-info-card {
  min-height: 600px;
  padding: 36px 30px 38px;
}

.page-contact-message-card {
  min-height: 600px;
  padding: 36px 30px 32px;
}

.page-contact-section-title h2 {
  margin: 0;
  color: var(--contact-purple);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.page-contact-section-title span {
  display: block;
  height: 1px;
  margin-top: 28px;
  background: var(--contact-line);
  position: relative;
}

.page-contact-section-title span::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 60px;
  height: 2px;
  background: var(--contact-mint);
}

.page-contact-section-title--card h2 {
  font-size: 26px;
}

.page-contact-section-title--card span {
  margin-top: 28px;
}

.page-contact-info-card__list {
  padding-top: 28px;
}

.page-contact-info-card__item {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  column-gap: 22px;
  align-items: flex-start;
  min-height: 104px;
}

.page-contact-info-card__item+.page-contact-info-card__item {
  margin-top: 22px;
}

.page-contact-info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--contact-purple);
  background: #F6F8FA;
}

.page-contact-info-card__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-contact-info-card__icon .is-mint {
  stroke: var(--contact-mint);
}

.page-contact-info-card__item h3 {
  margin: 0 0 8px;
  color: #4B4F58;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.page-contact-info-card__item p,
.page-contact-info-card__item a:not(.page-contact-info-card__phone) {
  margin: 4px 0 0;
  color: #4B4F58;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.page-contact-info-card__phone {
  display: block;
  color: var(--contact-mint);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact-info-card__item--wechat {
  align-items: center;
}

.page-contact-info-card__item--wechat .page-contact-info-card__qr {
  position: absolute;
  right: 0;
  bottom: -12px;
  width: 118px;
  height: 118px;
  object-fit: cover;
}

.page-contact-message-card__form {
  padding-top: 31px;
}

/* ---- 行内字段校验 ---- */
.page-contact-fieldwrap {
  display: block;
  position: relative;
}

.page-contact-message-card__grid .page-contact-fieldwrap {
  display: flex;
  flex-direction: column;
}

.page-contact-message-card__grid .page-contact-fieldwrap .page-contact-field,
.page-contact-message-card__grid .page-contact-fieldwrap .page-contact-select {
  flex: 0 0 50px;
}

.page-contact-message-card__grid .page-contact-fieldwrap--select {
  margin-top: 44px;
}

.page-contact-message-card__grid .page-contact-fieldwrap .page-contact-select {
  margin-top: 0;
}

.page-contact-err {
  display: none;
  margin: 6px 2px 0;
  color: #e64340;
  font-size: 13px;
  line-height: 1.4;
}

.page-contact-fieldwrap.is-error .page-contact-err {
  display: block;
}

.page-contact-fieldwrap.is-error .page-contact-field,
.page-contact-fieldwrap.is-error .page-contact-select,
.page-contact-fieldwrap.is-error .page-contact-textarea textarea {
  border-color: #e64340;
  box-shadow: 0 0 0 3px rgba(230, 67, 64, .12);
}

.page-contact-agree.is-error span {
  border-color: #e64340;
  box-shadow: 0 0 0 3px rgba(230, 67, 64, .12);
}

.page-contact-message-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

/* 需要独占一整行的字段（如邮箱），跨满两列 */
.page-contact-message-card__grid .page-contact-fieldwrap--full {
  grid-column: 1 / -1;
}

.page-contact-field,
.page-contact-select {
  height: 50px;
  border: 1px solid #DCDDE1;
  border-radius: 4px;
  display: block;
  background: #fff;
  position: relative;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.page-contact-field:focus-within,
.page-contact-select:focus-within,
.page-contact-field:hover,
.page-contact-select:hover {
  border-color: var(--contact-mint);
  box-shadow: 0 0 0 3px rgba(115, 203, 199, .08);
}

/* ---- 手机验证码行（验证码输入 + 获取验证码按钮同行） ----
   已移入 .page-contact-message-card__grid 内，与左侧「手机号」并列同一行，
   宽度由栅格单列决定，无需再手动限宽。
   注意：这些规则必须放在 .page-contact-field 基础规则之后，
   否则基础规则的 display:block 会覆盖下面的 flex，按钮将掉到输入框下方。 */
.page-contact-fieldwrap--code {
  min-width: 0;
}

.page-contact-field--code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 6px;
}

.page-contact-field--code input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 18px;
}

.page-contact-field--code>span {
  width: 1px;
  height: 26px;
  margin-right: 10px;
  background: #DCDDE1;
  flex: 0 0 1px;
}

.page-contact-code-btn {
  height: 36px;
  border: 0;
  border-radius: 120px;
  padding: 0 16px;
  color: #fff;
  background: #403580;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 14px;
  line-height: 36px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .25s ease, background-color .25s ease;
}

.page-contact-code-btn:hover:not(:disabled) {
  opacity: .88;
}

.page-contact-code-btn:disabled {
  background: #A7A3C4;
  cursor: not-allowed;
}

.page-contact-field input,
.page-contact-select select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  appearance: none;
  color: #343741;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
}

.page-contact-field input {
  padding: 0 29px;
}

.page-contact-field input::placeholder,
.page-contact-textarea textarea::placeholder,
.page-contact-select span {
  color: #9A9DA5;
}

.page-contact-select span {
  position: absolute;
  left: 26px;
  top: -28px;
  color: #4B4F58;
  font-size: 15px;
  line-height: 1;
}

.page-contact-select select {
  padding: 0 52px 0 29px;
  color: #9A9DA5;
}

.page-contact-select::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--contact-purple);
  border-bottom: 2px solid var(--contact-purple);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.page-contact-message-card__grid .page-contact-select {
  margin-top: 44px;
}

.page-contact-textarea {
  display: block;
  margin-top: 15px;
  position: relative;
}

.page-contact-textarea span {
  display: block;
  margin-bottom: 11px;
  color: #4B4F58;
  font-size: 15px;
  line-height: 1;
}

.page-contact-textarea textarea {
  width: 100%;
  height: 100px;
  padding: 22px 29px;
  border: 1px solid #DCDDE1;
  border-radius: 4px;
  outline: none;
  resize: none;
  color: #343741;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.page-contact-textarea textarea:focus,
.page-contact-textarea textarea:hover {
  border-color: var(--contact-mint);
  box-shadow: 0 0 0 3px rgba(115, 203, 199, .08);
}

.page-contact-message-card__bottom {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-contact-agree {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #6E737B;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.page-contact-agree input {
  position: absolute;
  opacity: 0;
}

.page-contact-agree span {
  width: 24px;
  height: 24px;
  border: 1px solid #DEE1E7;
  border-radius: 50%;
  flex: 0 0 24px;
  background: #F8F9FA;
  transition: border-color .2s ease, background .2s ease;
}

.page-contact-agree input:checked+span {
  border-color: var(--contact-mint);
  background: radial-gradient(circle at center, var(--contact-mint) 0 35%, #fff 38% 100%);
}

.page-contact-submit {
  width: 222px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 32px;
  color: #fff;
  background: var(--contact-mint);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(115, 203, 199, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.page-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(115, 203, 199, .28);
}

.page-contact-submit i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-style: normal;
}

.page-contact-submit svg {
  width: 14px;
  height: 12px;
  display: block;
}

.page-contact-network {
  padding: 2px 0 137px;
  background: #fff;
}

.page-contact-network__inner {
  width: min(1600px, calc(100% - 64px));
  margin: 0 auto;
}

.page-contact-network__grid {
  margin-top: 47px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.page-contact-network__card {
  position: relative;
  height: 360px;
  padding: 29px 24px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #F9FAFA 0%, #fff 88%);
}


.page-contact-network__top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.page-contact-network__top span {
  color: var(--contact-purple);
  font-size: 24px;
  line-height: 1;
}

.page-contact-network__top h3,
.page-contact-network__card--global h3 {
  margin: 0;
  color: var(--contact-purple);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.page-contact-network__card p {
  margin: 17px 0 0;
  color: #494C53;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.page-contact-network__card a {
  display: inline-block;
  margin-top: 5px;
  padding-left: 24px;
  color: #4B4F58;
  font-size: 16px;
  line-height: 1.5;
  position: relative;
}

.page-contact-network__card a::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 14px;
  height: 14px;
  background: url(../img/page/tel_icon.svg) center center no-repeat;
  background-size: contain;
}


.page-contact-network__art {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 155px;
  height: 220px;
  fill: none;
  stroke: #C7C4DD;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-contact-network__grid .page-contact-network__card:nth-of-type(1) .page-contact-network__art {
  width: 172px;
  height: 180px;
}

.page-contact-network__card--suzhou .page-contact-network__art {
  right: -1px;
  bottom: 6px;
  width: 190px;
  height: 190px;
}

.page-contact-network__card--shenzhen .page-contact-network__art {
  right: 14px;
  bottom: 0;
  width: 158px;
  height: 210px;
}

.page-contact-network__card--chengdu .page-contact-network__art {
  right: 31px;
  bottom: 4px;
  width: 120px;
  height: 220px;
}

.page-contact-network__card--global {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 43px 24px 30px;
}

.page-contact-network__card--global img {
  width: 236px;
  height: 118px;
  object-fit: contain;
  opacity: .9;
}

.page-contact-network__card--global div {
  margin-top: 52px;
}

.page-contact-network__card--global p {
  margin-top: 18px;
  color: var(--contact-purple);
  font-size: 16px;
  line-height: 1.5;
}

.page-contact-network__card--global strong {
  color: var(--contact-mint);
  font-weight: 700;
}

@media (max-width: 1680px) {
  .page-contact-hero__features {
    width: 710px;
    gap: 32px;
  }

  .page-contact-form__inner {
    grid-template-columns: 560px 1fr;
    gap: 50px;
  }
}

@media (max-width: 1366px) {

  .page-contact-hero__inner,
  .page-contact-form__inner,
  .page-contact-network__inner {
    width: min(1180px, calc(100% - 48px));
  }

  .page-contact-hero__content {
    width: 500px;
  }

  .page-contact-hero__features {
    width: 600px;
    gap: 20px;
  }

  .page-contact-form__inner {
    grid-template-columns: 420px 1fr;
    gap: 32px;
  }

  .page-contact-info-card__item--wechat .page-contact-info-card__qr {
    width: 96px;
    height: 96px;
  }

  .page-contact-network__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .page-contact-hero {
    min-height: auto;
  }

  .page-contact-hero__inner {
    min-height: auto;
    padding: 72px 0 150px;
    flex-direction: column;
  }

  .page-contact-hero__content {
    width: 100%;
    padding-top: 0;
  }

  .page-contact-hero__features {
    width: 100%;
    padding-top: 46px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-contact-form__inner {
    margin-top: -100px;
    grid-template-columns: 1fr;
  }

  .page-contact-info-card,
  .page-contact-message-card {
    min-height: auto;
  }

  .page-contact-network__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {

  /* 窄屏：grid 已塌成单列，验证码行自然占满整行，按钮收窄避免挤压输入区 */
  .page-contact-code-btn {
    padding: 0 12px;
    font-size: 13px;
  }

  .page-contact-field--code input {
    padding: 0 14px;
  }

  .page-contact-hero__content h1,
  .page-contact-hero__content h2,
  .page-contact-hero__content p {
    color: #fff;
  }

  .page-contact-hero__bg {
    background:
      linear-gradient(90deg, rgba(18, 54, 105, .55) 0%, rgba(18, 54, 105, .55) 25%, rgba(18, 54, 105, .55) 46%, rgba(10, 42, 93, .98) 100%),
      url(../img/page/contact-hero-person.jpg) 43% center / auto 100% no-repeat;
  }

  .page-contact-hero__inner,
  .page-contact-form__inner,
  .page-contact-network__inner {
    width: calc(100% - 32px);
  }

  .page-contact-hero__inner {
    padding: 52px 0 120px;
  }

  .page-contact-hero__content h1 {
    font-size: 30px;
  }

  .page-contact-hero__content h2 {
    font-size: 19px;
    margin-top: 14px;
  }

  .page-contact-hero__content p {
    font-size: 14px;
    line-height: 1.7;
  }

  .page-contact-hero__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .page-contact-hero__icon {
    margin-bottom: 14px;
  }

  .page-contact-hero__feature h3 {
    font-size: 16px;
  }

  .page-contact-hero__feature p {
    font-size: 13px;
  }

  .page-contact-form__inner {
    gap: 24px;
  }

  .page-contact-info-card,
  .page-contact-message-card {
    padding: 28px 20px;
  }

  .page-contact-message-card__grid {
    grid-template-columns: 1fr;
  }

  .page-contact-message-card__grid .page-contact-select {
    margin-top: 32px;
  }

  .page-contact-message-card__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-contact-submit {
    width: 100%;
  }

  .page-contact-info-card__item {
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
  }

  .page-contact-info-card__item--wechat .page-contact-info-card__qr {
    position: static;
    grid-column: 2;
    margin-top: 14px;
  }

  .page-contact-network {
    padding-bottom: 72px;
  }

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

  .page-contact-network__card {
    height: 300px;
  }

  .page-contact-network__card--global {
    height: 260px;
  }

}