/* 联系我们：浅底首屏 + 表单 + 侧栏。顶栏只改本页，不碰页脚 Logo */

.page--contact .header {
  color: var(--color-text);
}

.page--contact .header .logo__on-dark {
  display: none;
}

.page--contact .header .logo__on-light {
  display: block;
}

.page--contact .nav {
  color: var(--color-text);
}

.page--contact .phone-pill {
  background: var(--color-line);
  color: var(--color-text);
}

.page--contact .phone-pill:hover {
  background: rgba(18, 18, 18, 0.12);
}

.page--contact .phone-pill__icon {
  filter: invert(1);
}

.page--contact .nav-toggle {
  background: rgba(18, 18, 18, 0.06);
}

.page--contact .nav-toggle span {
  background: #121212;
}

.contact-hero {
  position: relative;
  min-height: 591px;
  overflow: hidden;
  background: #f3f5f8;
}

.contact-hero::before,
.contact-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.contact-hero::before {
  width: 541px;
  height: 541px;
  left: 10%;
  top: -120px;
  background: rgba(180, 200, 230, 0.35);
}

.contact-hero::after {
  width: 370px;
  height: 370px;
  right: 14%;
  top: 80px;
  background: rgba(160, 190, 230, 0.28);
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 48px;
  min-height: 591px;
  padding-top: 64px;
}

.contact-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 320px;
  min-width: 0;
  padding-top: 24px;
}

.contact-hero__copy h1 {
  font-size: var(--display-size);
  font-weight: 700;
  line-height: 64px;
  color: var(--color-text);
}

.contact-hero__br {
  display: none;
}

.contact-hero__copy p {
  margin-top: 10px;
  font-size: var(--desc-size);
  line-height: 32px;
  color: var(--color-sub);
}

.contact-hero__media {
  width: min(273px, 100%);
  flex: 0 1 273px;
  min-width: 0;
  align-self: flex-end;
  margin-right: 176px;
}

.contact-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

.contact-form {
  background: var(--color-module);
  padding: 60px 0 80px;
}

.contact-form__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.contact-form__card {
  width: 100%;
  padding: 0;
  background: none;
  border-radius: 0;
}

.contact-form__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.contact-form__head h2 {
  font-size: var(--title-size);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.contact-form__head p {
  font-size: var(--desc-size);
  line-height: 32px;
  color: var(--color-sub);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 140px;
  margin-top: 45px;
}

.contact-form__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  height: 100%;
}

.contact-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.contact-field span {
  font-size: 16px;
  line-height: 1;
  color: var(--color-text);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease;
}

.contact-field--area {
  flex: 1 1 auto;
  min-height: 0;
}

.contact-field textarea {
  height: 208px;
}

.contact-field--area textarea {
  flex: 1 1 auto;
  height: auto;
  min-height: 160px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--color-sub);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--color-primary);
}

.contact-form__submit {
  width: 160px;
}

.contact-form__submit:disabled {
  background: #8aa8ff;
  pointer-events: none;
}

.contact-form__tip {
  min-height: 22px;
  margin: -16px 0 0;
  color: #ff4411;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.contact-success {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 18, 18, 0.45);
}

.contact-success[hidden] {
  display: none;
}

.contact-success__box {
  width: min(400px, 100%);
  padding: 40px 32px 32px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.contact-success__box h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.contact-success__box p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-sub);
}

.contact-success__ok {
  width: 160px;
  margin-top: 28px;
}

.contact-cta .iot-cta__inner {
  gap: 60px;
}

.contact-cta__phone {
  width: 160px;
  gap: 3px;
}

.contact-cta__phone img {
  width: 14px;
  height: 14px;
}
