/* ============================================================
   联系我们页（contact.html）
   结构：body > .contactbox > .con01box   联系方式 + 在线留言
        body > .incontent               底部图片 CTA 条
   色板沿用 DESIGN.md §2；新增状态色登记见 DESIGN.md §2.2
   ============================================================ */

/* ---------- 1. 联系方式 / 在线留言 ---------- */
.contactbox .con01box {
  padding: 5.75rem 0;
  background: radial-gradient(
      60% 80% at 85% 0%,
      rgba(51, 175, 112, 0.06) 0%,
      rgba(51, 175, 112, 0) 60%
    ),
    linear-gradient(180deg, #FFFFFF 0%, #F2FAF5 100%);
}

.contactbox .con01box > .wh {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}

.gy-lx-left {
  width: 40%;
}

.gy-lx-right {
  width: 54%;
}

/* 左栏：标题 + 联系方式 */
.gy-lx-sub {
  margin-top: 1rem;
  color: #5A5E5F;
  font-size: 1.125rem;
  line-height: 1.7em;
}

.gy-lx-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2.75rem;
}

.gy-lx-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.gy-lx-item .ic {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(51, 175, 112, 0.35);
  border-radius: 50%;
  background: #fff;
  color: var(--color-zt);
  font-size: 1.5rem;
  box-shadow: 0 0.5rem 1.25rem rgba(11, 90, 51, 0.06);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease,
    color 0.4s ease;
}

.gy-lx-item .ic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--grad-zt);
  background-origin: border-box;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gy-lx-item .ic i {
  position: relative;
  z-index: 1;
}

.gy-lx-item:hover .ic {
  border-color: transparent;
  color: #fff;
  transform: translateY(-0.25rem);
  box-shadow: 0 0.75rem 1.5rem rgba(11, 90, 51, 0.18);
}

.gy-lx-item:hover .ic::before {
  opacity: 1;
}

.gy-lx-item .txt {
  display: block;
  padding-top: 0.15rem;
}

.gy-lx-item .lb {
  display: block;
  color: #868686;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.gy-lx-item .val {
  display: block;
  margin-top: 0.3rem;
  color: var(--color-ys);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  transition: color 0.3s ease;
}

a.gy-lx-item:hover .val {
  color: var(--color-zt);
}

.gy-lx-note {
  margin-top: 2.5rem;
  /* padding-left: 1.25rem; */
  /* border-left: 2px solid;
  border-image: var(--grad-zt) 1; */
  color: #868686;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* 右栏：在线留言表单 */
.gy-lx-form {
  padding: 2.75rem 2.5rem 2.5rem;
  border: 1px solid rgba(51, 175, 112, 0.12);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1.5rem 3rem rgba(11, 90, 51, 0.08);
}

.gy-lx-form .ft {
  color: var(--color-ys);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.4;
}

.gy-lx-form .fs {
  margin-top: 0.5rem;
  color: #868686;
  font-size: 1rem;
  line-height: 1.6;
}

.gy-lx-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.gy-lx-field {
  position: relative;
}

.gy-lx-field.is-full {
  grid-column: 1 / -1;
}

.gy-lx-field input,
.gy-lx-field textarea {
  width: 100%;
  border: 1px solid #DDE7E2;
  border-radius: 0.875rem;
  background: #F6FAF8;
  color: var(--color-ys);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.gy-lx-field input {
  height: 3.375rem;
  padding: 0 1.125rem;
}

.gy-lx-field textarea {
  min-height: 9.5rem;
  padding: 0.95rem 1.125rem;
  line-height: 1.7;
  resize: vertical;
}

.gy-lx-field input::placeholder,
.gy-lx-field textarea::placeholder {
  color: #9AA3A0;
}

.gy-lx-field input:hover,
.gy-lx-field textarea:hover {
  border-color: #CFE3D7;
}

.gy-lx-field input:focus,
.gy-lx-field textarea:focus {
  outline: none;
  border-color: var(--color-zt);
  background: #fff;
  box-shadow: 0 0 0 0.1875rem rgba(51, 175, 112, 0.14);
}

.gy-lx-field.is-error input,
.gy-lx-field.is-error textarea {
  border-color: #C8422F;
  background: #FFF8F7;
}

.gy-lx-err {
  display: none;
  margin-top: 0.4rem;
  color: #C8422F;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.gy-lx-field.is-error .gy-lx-err {
  display: block;
}

.gy-lx-count {
  display: block;
  margin-top: 0.4rem;
  color: #9AA3A0;
  font-size: 0.8125rem;
  line-height: 1;
  text-align: right;
  pointer-events: none;
}

.gy-lx-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.gy-lx-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  border: none;
  border-radius: 3.125rem;
  background: var(--grad-zt);
  background-origin: border-box;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: 0 0.75rem 1.5rem rgba(11, 90, 51, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.gy-lx-submit i {
  margin-left: 0.75rem;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.gy-lx-submit:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 1rem 2rem rgba(11, 90, 51, 0.24);
}

.gy-lx-submit:hover i {
  transform: translateX(0.25rem);
}

.gy-lx-submit:active {
  transform: translateY(0) scale(0.98);
}

.gy-lx-submit:focus-visible {
  outline: 2px solid #00439A;
  outline-offset: 3px;
}

.gy-lx-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.gy-lx-hint {
  color: #9AA3A0;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* 提交成功态 */
.gy-lx-form.is-done .ft,
.gy-lx-form.is-done .fs,
.gy-lx-form.is-done form {
  display: none;
}

.gy-lx-done {
  display: none;
  padding: 3.5rem 1rem 3rem;
  text-align: center;
}

.gy-lx-form.is-done .gy-lx-done {
  display: block;
}

.gy-lx-done .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(51, 175, 112, 0.1);
  color: var(--color-zt);
  animation: gyLxPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gyLxPop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gy-lx-done .ic svg {
  width: 2.25rem;
  height: 2.25rem;
}

.gy-lx-done .t1 {
  margin-top: 1.5rem;
  color: var(--color-ys);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.gy-lx-done .t2 {
  margin-top: 0.75rem;
  color: #5A5E5F;
  font-size: 1rem;
  line-height: 1.7;
}

.gy-lx-done .again {
  margin-top: 1.75rem;
}

/* 锚点定位避开吸顶头部 */
#lx1,
#lx2 {
  scroll-margin-top: calc(var(--head-height) + 1rem);
}

/* ---------- 2. 底部图片 CTA ---------- */
.incontent {
  position: relative;
  overflow: hidden;
}

.incontent .inimg {
  position: relative;
  height: 20vw;
  min-height: 17rem;
}

.incontent .inimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.incontent .ininfo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--cbasta);
  text-align: center;
  background: linear-gradient(
      180deg,
      rgba(4, 26, 17, 0.55) 0%,
      rgba(4, 26, 17, 0.32) 45%,
      rgba(4, 26, 17, 0.62) 100%
    ),
    linear-gradient(
      90deg,
      rgba(4, 26, 17, 0.55) 0%,
      rgba(4, 26, 17, 0.2) 50%,
      rgba(4, 26, 17, 0.55) 100%
    );
}

.incontent .txt {
  color: #fff;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.incontent .sub {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.125rem;
  line-height: 1.7;
}

.incontent .conmore {
  margin-top: 2.25rem;
}

/* 深底 CTA：白底胶囊 → 悬停渐变填充（参考站 .conmore 的白底反色思路） */
.incontent .conmore .more-b {
  padding: 1rem 2.75rem;
  border-color: #fff;
  background: #fff;
  color: var(--color-zt);
  white-space: nowrap;
  box-shadow: 0 1rem 2rem rgba(4, 26, 17, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.incontent .conmore .more-b::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad-zt);
  background-origin: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.incontent .conmore .more-b p {
  line-height: 1.5;
}

.incontent .conmore .more-b:hover {
  border-color: transparent;
  color: #fff;
  transform: translateY(-0.125rem) scale(1.03);
  box-shadow: 0 1.25rem 2.5rem rgba(4, 26, 17, 0.34);
}

.incontent .conmore .more-b:hover::before {
  opacity: 1;
}

.incontent .conmore .more-b:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- 3. 响应式 ---------- */
@media (max-width: 1366px) {
  .contactbox .con01box > .wh {
    gap: 3rem;
  }

  .gy-lx-left {
    width: 42%;
  }

  .gy-lx-right {
    width: 54%;
  }
}

@media (max-width: 990px) {
  .contactbox .con01box > .wh {
    flex-direction: column;
    gap: 3rem;
  }

  .gy-lx-left,
  .gy-lx-right {
    width: 100%;
  }

  .incontent .txt {
    font-size: 2.25rem;
  }

  #lx1,
  #lx2 {
    scroll-margin-top: 76px;
  }
}

@media (min-width: 769px) and (max-width: 990px) {
  .gy-lx-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }

  .gy-lx-list > li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .contactbox .con01box {
    padding: 2.5rem 0;
  }

  .gy-lx-sub {
    font-size: 1rem;
  }

  .gy-lx-list {
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .gy-lx-item {
    gap: 1rem;
  }

  .gy-lx-item .ic {
    width: 2.875rem;
    height: 2.875rem;
    font-size: 1.25rem;
  }

  .gy-lx-item .val {
    font-size: 1.0625rem;
  }

  .gy-lx-note {
    margin-top: 1.75rem;
    padding-left: 1rem;
  }

  .gy-lx-form {
    padding: 1.75rem 1.5rem;
    border-radius: 1.25rem;
  }

  .gy-lx-form .ft {
    font-size: 1.25rem;
  }

  .gy-lx-form form {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin-top: 1.5rem;
  }

  .gy-lx-field input {
    height: 3.125rem;
  }

  .gy-lx-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
  }

  .gy-lx-submit {
    width: 100%;
  }

  .gy-lx-hint {
    text-align: center;
  }

  .incontent .inimg {
    height: auto;
    min-height: 0;
  }

  .incontent .inimg img {
    height: 16rem;
  }

  .incontent .ininfo {
    padding: 2rem 8%;
  }

  .incontent .txt {
    font-size: 1.6rem;
  }

  .incontent .sub {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
  }

  .incontent .conmore {
    margin-top: 1.5rem;
  }
}

/* ---------- 4. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .contactbox .wow,
  .incontent .wow {
    visibility: visible !important;
    animation: none !important;
  }

  .gy-lx-item .ic,
  .gy-lx-item .ic::before,
  .gy-lx-item .val,
  .gy-lx-submit,
  .gy-lx-submit i,
  .incontent .conmore .more-b,
  .incontent .conmore .more-b::before,
  .gy-lx-field input,
  .gy-lx-field textarea {
    transition: none !important;
  }

  .gy-lx-item:hover .ic,
  .gy-lx-submit:hover,
  .gy-lx-submit:hover i,
  .incontent .conmore .more-b:hover {
    transform: none;
  }

  .gy-lx-done .ic {
    animation: none;
  }
}
