/* 联系我们页（Contact Page）样式：页面主视觉、联系表单、联系信息面板与地图。
   数值按 1440px 设计稿（Figma Frame 143:24803）标注；公共头部/页脚不在此维护。 */
.aoyea-component-contact-page {
  overflow: hidden;
  padding-bottom: 110px;
  background: #121212;
  color: #fff;
  font-family: var(--aoyea-font-ui);
}

/* 页面主视觉（Page Hero）：联系主题背景图 + 超大标题 H1 */
.aoyea-contact-page-hero {
  position: relative;
  height: var(--aoyea-hero-height-default);
  overflow: hidden;
  background: #121212;
}

.aoyea-contact-page-hero-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.aoyea-contact-page-hero h1 {
  position: absolute;
  bottom: -29px;
  left: max(calc((100vw - 1100px) / 2 - 5px), 20px);
  z-index: 1;
  margin: 0;
  font-family: var(--aoyea-font-display);
  font-size: 175px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transform: scaleX(1.125);
  transform-origin: left bottom;
}

/* 主体内容（Body）：表单与联系信息面板，宽度对齐设计稿 1100px 内容区 */
.aoyea-contact-page-body {
  width: min(1100px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: 59px;
}

.aoyea-contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 576fr) minmax(0, 448fr);
  align-items: start;
  justify-content: space-between;
  gap: 76px;
}

/* 栏目标记（Section Label）：斜切绿色色块 + 标题 */
.aoyea-contact-page-label {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 28px;
}

.aoyea-contact-page-label > span {
  width: 12px;
  height: 22px;
  margin-right: 2px;
  background: linear-gradient(104deg, var(--aoyea-color-brand) 0 48%, transparent 49%);
}

.aoyea-contact-page-heading {
  margin: 36px 0 17px;
  font-size: 36px;
  font-weight: 500;
  line-height: 45px;
  letter-spacing: 2.2px;
}

.aoyea-contact-page-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 24px;
}

/* 分隔线（Divider）：表单标题与字段之间的细分隔线 */
.aoyea-contact-page-divider {
  height: 0;
  margin: 0 0 41px;
  border: 0;
  border-top: 1px solid #888;
}

/* 表单字段标题（Field Label）与必填标记（Required） */
.aoyea-contact-page-fields-label {
  display: block;
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.aoyea-contact-page-required {
  margin-left: 4px;
  color: #ff3b30;
  font-size: 14px;
  line-height: 1;
  vertical-align: 2px;
}

.aoyea-contact-page-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 23px;
}

.aoyea-contact-page-input {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 1px solid #e6e6e8;
  border-radius: 5px;
  background: #3d3d3d;
  color: #fff;
  font-family: var(--aoyea-font-ui);
  font-size: 14px;
  line-height: 20px;
}

.aoyea-contact-page-input::placeholder,
.aoyea-contact-page-textarea::placeholder {
  color: #9b9b9b;
  opacity: 1;
}

/* 未填写状态（Empty State）：仅在提交校验后由脚本添加 .is-invalid，显示红框与错误提示 */
.aoyea-contact-page-field {
  display: block;
}

.aoyea-contact-page-input.is-invalid,
.aoyea-contact-page-textarea.is-invalid,
.aoyea-contact-page-input.is-invalid:focus,
.aoyea-contact-page-textarea.is-invalid:focus {
  border-color: #f74646;
}

/* 表单字段只保留一条边框：隐藏通用 :focus-visible 外轮廓，避免红/绿边框叠加 */
.aoyea-component-contact-page .aoyea-contact-page-input:focus-visible,
.aoyea-component-contact-page .aoyea-contact-page-textarea:focus-visible {
  outline: none;
}

.aoyea-contact-page-error {
  margin: 7px 0 0;
  color: #f74646;
  font-family: var(--aoyea-font-copy);
  font-size: 13px;
  line-height: 18px;
}

/* 聚焦状态（Focus）：聚焦中的字段使用品牌绿边框 */
.aoyea-contact-page-input:focus,
.aoyea-contact-page-textarea:focus {
  border-color: var(--aoyea-color-brand);
  outline: none;
}

.aoyea-contact-page-fields-label--message {
  margin-top: 35px;
  margin-bottom: 8px;
}

.aoyea-contact-page-textarea {
  display: block;
  width: 100%;
  height: 135px;
  min-height: 135px;
  padding: 13px 15px;
  border: 1px solid #e6e6e8;
  border-radius: 5px;
  background: #3d3d3d;
  color: #fff;
  font-family: var(--aoyea-font-ui);
  font-size: 14px;
  line-height: 20px;
  resize: vertical;
}

/* 提交按钮（Submit）：品牌绿胶囊按钮 */
.aoyea-contact-page-submit {
  display: inline-flex;
  width: 140px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 33px;
  border: 0;
  border-radius: 23px;
  background: var(--aoyea-color-brand);
  color: #fff;
  cursor: pointer;
  font-family: var(--aoyea-font-ui);
  font-size: 16px !important;
  font-weight: 500;
  transition: background 220ms ease;
}

.aoyea-contact-page-submit:hover,
.aoyea-contact-page-submit:focus-visible {
  background: var(--aoyea-color-brand-strong);
}

.aoyea-contact-page-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* 提交成功提示（Form Status）：保留页面内状态节点作为无障碍提示 */
.aoyea-contact-page-form-status {
  margin: 14px 0 0;
  color: var(--aoyea-color-brand);
  font-family: var(--aoyea-font-copy);
  font-size: 14px;
  line-height: 20px;
}

/* 联系信息面板（Info Panel）：绿色渐变卡片 */
.aoyea-contact-page-info {
  min-height: 574px;
  padding: 44px 44px 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #30c300 0%, #24a400 45%, #165327 100%);
}

.aoyea-contact-page-info-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.aoyea-contact-page-info-title {
  margin: 22px 0 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.aoyea-contact-page-info-divider {
  height: 0;
  margin: 16px 0 0;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 40%);
}

.aoyea-contact-page-info-list {
  display: grid;
  gap: 20px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.aoyea-contact-page-info-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 17px;
  align-items: start;
}

.aoyea-contact-page-info-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.aoyea-contact-page-info-icon img {
  width: 28px;
  height: 28px;
}

.aoyea-contact-page-info-item h3 {
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.aoyea-contact-page-info-item p {
  margin: 0;
  font-family: var(--aoyea-font-copy);
  font-size: 13px;
  letter-spacing: -0.1px;
  line-height: 17px;
}

.aoyea-contact-page-info-item a,
.aoyea-contact-page-info-item p > span {
  display: block;
}

.aoyea-contact-page-info-item a:hover,
.aoyea-contact-page-info-item a:focus-visible {
  text-decoration: underline;
}

.aoyea-contact-page-info-divider--social {
  margin-top: 30px;
}

.aoyea-contact-page-social {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.aoyea-contact-page-social p {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
}

.aoyea-contact-page-social ul {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aoyea-contact-page-social a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--aoyea-color-brand);
  transition: background 220ms ease;
}

.aoyea-contact-page-social a:hover,
.aoyea-contact-page-social a:focus-visible {
  background: var(--aoyea-color-brand-strong);
}

.aoyea-contact-page-social img {
  width: 20px;
  height: auto;
}

/* 地图（Map）：沿用设计稿中的静态地图截图，圆角裁切 */
.aoyea-contact-page-map {
  width: min(1148px, calc(100% - 80px));
  margin: 110px auto 0;
}

.aoyea-contact-page-map img {
  width: 100%;
  height: 435px;
  border-radius: 12px;
  object-fit: cover;
}

/* 平板（Tablet）：表单与信息面板上下排列，避免窄屏双栏拥挤 */
@media (max-width: 1180px) {
  .aoyea-contact-page-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .aoyea-contact-page-info {
    width: 100%;
    max-width: 576px;
    min-height: 0;
    margin: 0 auto;
  }
}

/* 移动端（Mobile H5）：主视觉缩小、表单单列、面板内边距收紧 */
@media (max-width: 767px) {
  .aoyea-component-contact-page {
    padding-bottom: 60px;
  }

  .aoyea-contact-page-hero {
    height: var(--aoyea-hero-height-default-mobile);
  }

  .aoyea-contact-page-hero h1 {
    bottom: -0.17em;
    left: 22px;
    font-size: clamp(64px, 21vw, 100px);
    letter-spacing: -3px;
    transform: none;
  }

  .aoyea-contact-page-body,
  .aoyea-contact-page-map {
    width: calc(100% - 32px);
  }

  .aoyea-contact-page-body {
    padding-top: 44px;
  }

  .aoyea-contact-page-label {
    font-size: 24px;
    line-height: 24px;
  }

  .aoyea-contact-page-label > span {
    height: 19px;
  }

  .aoyea-contact-page-heading {
    margin-top: 26px;
    font-size: 28px;
    letter-spacing: 1px;
    line-height: 36px;
  }

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

  .aoyea-contact-page-divider {
    margin-bottom: 30px;
  }

  .aoyea-contact-page-info {
    padding: 32px 24px;
  }

  .aoyea-contact-page-map {
    margin-top: 56px;
  }

  .aoyea-contact-page-map img {
    height: 300px;
  }

  .aoyea-contact-page-social {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .aoyea-contact-page-hero h1 {
    bottom: -0.17em;
    left: 40px;
    font-size: clamp(96px, 16vw, 160px);
    letter-spacing: -5px;
    transform: none;
  }
}

/* 动效降级（Reduced Motion） */
@media (prefers-reduced-motion: reduce) {
  .aoyea-contact-page-submit,
  .aoyea-contact-page-social a {
    transition: none;
  }
}
