:root {
  --contact-green: #0f4736;
  --contact-green-2: #174f3d;
  --contact-warm: #f2e4bd;
  --contact-text: #10251d;
  --contact-muted: rgba(35, 72, 58, 0.64);
  --contact-line: rgba(15, 71, 54, 0.12);
}

.contact-page {
  color: var(--contact-text);
  background: #ffffff;
}

.contact-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--contact-green-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.72;
}

.contact-hero {
  min-height: clamp(780px, calc(100vh - 72px), 880px);
  display: flex;
  align-items: center;
  padding: 112px 0 82px;
  background:
    radial-gradient(circle at 86% 18%, rgba(242, 228, 189, 0.26), transparent 30%),
    radial-gradient(circle at 12% 12%, rgba(232, 243, 236, 0.66), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
}

.contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(460px, 0.44fr) minmax(560px, 0.56fr);
  gap: 78px;
  align-items: center;
}

.contact-copy h1 {
  margin: 0;
  color: var(--contact-green);
  font-size: clamp(64px, 5.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.contact-lead {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--contact-muted);
  font-size: 17px;
  line-height: 1.92;
}

.contact-info-panel {
  max-width: 560px;
  margin-top: 36px;
  padding: 30px 32px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(248,251,248,0.70));
  border: 1px solid rgba(15, 71, 54, 0.12);
  box-shadow:
    0 24px 64px rgba(15, 71, 54, 0.07),
    inset 0 1px 0 rgba(255,255,255,0.82);
}

.info-title {
  color: var(--contact-green);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.info-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.info-list div {
  padding-top: 18px;
  border-top: 1px solid rgba(15, 71, 54, 0.09);
}

.info-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.info-list span {
  display: block;
  margin-bottom: 7px;
  color: rgba(35, 72, 58, 0.50);
  font-size: 12px;
  font-weight: 900;
}

.info-list strong {
  display: block;
  color: var(--contact-green);
  font-size: 15px;
  line-height: 1.6;
}

.contact-form-card {
  position: relative;
  padding: 40px 40px 38px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 228, 189, 0.26), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,255,255,0.92));
  border: 1px solid rgba(15, 71, 54, 0.12);
  box-shadow:
    0 32px 86px rgba(15, 71, 54, 0.105),
    inset 0 1px 0 rgba(255,255,255,0.88);
}

.form-head span {
  color: var(--contact-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.form-head h2 {
  margin: 16px 0 0;
  color: var(--contact-green);
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.form-head p {
  margin: 14px 0 0;
  color: var(--contact-muted);
  font-size: 15px;
  line-height: 1.8;
}

.contact-form {
  margin-top: 28px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.form-row:first-child {
  margin-top: 0;
}

.form-row.two {
  grid-template-columns: repeat(2, 1fr);
}

.contact-form label {
  display: block;
}

.contact-form label > span {
  display: block;
  margin-bottom: 9px;
  color: rgba(35, 72, 58, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 71, 54, 0.13);
  border-radius: 16px;
  outline: none;
  background: rgba(255,255,255,0.78);
  color: var(--contact-text);
  font-size: 15px;
  line-height: 1.5;
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    background 240ms ease;
}

.contact-form input,
.contact-form select {
  height: 50px;
  padding: 0 16px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 126px;
  padding: 14px 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(15, 71, 54, 0.32);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 71, 54, 0.06);
}

.contact-form .full {
  margin-top: 16px;
}

.contact-form button {
  width: 100%;
  height: 54px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--contact-green);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(15, 71, 54, 0.20);
  transition:
    transform 320ms cubic-bezier(.19, 1, .22, 1),
    box-shadow 320ms ease,
    background 320ms ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(15, 71, 54, 0.24);
}

.contact-form button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.form-msg {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.form-msg.success {
  color: #0f6a43;
}

.form-msg.error {
  color: #a6422b;
}

.contact-note-section {
  padding: 0 0 56px;
  background: #fff;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.note-grid article {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 30px 30px 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,255,255,0.92));
  border: 1px solid var(--contact-line);
  box-shadow:
    0 22px 58px rgba(15, 71, 54, 0.055),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.note-grid article::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 8%,
      rgba(242, 228, 189, 0.20) 0%,
      rgba(242, 228, 189, 0.08) 20%,
      rgba(242, 228, 189, 0.00) 42%),
    radial-gradient(circle at 18% 0%,
      rgba(232, 243, 236, 0.18) 0%,
      rgba(232, 243, 236, 0.00) 36%);
  z-index: 0;
}

.note-grid article > * {
  position: relative;
  z-index: 1;
}

.note-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 32px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--contact-green);
  background: rgba(242, 228, 189, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.note-grid h3 {
  margin: 0;
  color: var(--contact-green);
  font-size: 22px;
  line-height: 1.34;
  letter-spacing: -0.035em;
}

.note-grid p {
  margin: 14px 0 0;
  color: rgba(35, 72, 58, 0.62);
  font-size: 15px;
  line-height: 1.78;
}

/* Footer spacing */
body:has(.contact-page) .footer {
  margin-top: 0 !important;
}

@media (max-width: 1080px) {
  .contact-hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-hero {
    min-height: auto;
    padding-top: 108px;
  }

  .contact-copy h1 {
    font-size: clamp(56px, 9vw, 76px);
  }

  .note-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .contact-shell {
    width: min(100% - 28px, 1180px);
  }

  .contact-hero {
    padding: 96px 0 64px;
  }

  .contact-copy h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

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

  .contact-form-card,
  .contact-info-panel {
    padding: 28px 22px;
    border-radius: 26px;
  }

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

  .contact-note-section {
    padding-bottom: 44px;
  }
}

/* ===== Contact official page finish 2026-05-29 START ===== */

/*
  联系懒树页最终定位：
  1. 不是宣传页，不使用复杂背景
  2. 白底、轻奢、正式、可提交信息
  3. 加轻动效，但不脱离官网调性
*/

.contact-page {
  background: #ffffff !important;
}

.contact-hero {
  background: #ffffff !important;
  min-height: auto !important;
  padding-top: 118px !important;
  padding-bottom: 86px !important;
}

/* 去掉之前的渐变、放射背景带来的发灰感 */
.contact-hero::before,
.contact-hero::after,
.contact-page::before,
.contact-page::after {
  display: none !important;
  content: none !important;
}

/* 页面整体进入 */
.contact-copy {
  animation: contactFadeLeft 900ms cubic-bezier(.19, 1, .22, 1) both;
}

.contact-form-card {
  animation: contactFadeRight 980ms cubic-bezier(.19, 1, .22, 1) 100ms both;
}

.contact-info-panel {
  animation: contactFadeUp 860ms cubic-bezier(.19, 1, .22, 1) 140ms both;
}

/* 保持官网玻璃白卡，但不要灰 */
.contact-info-panel,
.contact-form-card,
.note-grid article {
  background:
    radial-gradient(circle at 90% 8%, rgba(242, 228, 189, 0.20), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,255,255,0.94)) !important;
  border-color: rgba(15, 71, 54, 0.115) !important;
  box-shadow:
    0 26px 76px rgba(15, 71, 54, 0.075),
    inset 0 1px 0 rgba(255,255,255,0.90) !important;
}

/* 表单卡 hover：轻浮起，不夸张 */
.contact-form-card,
.contact-info-panel,
.note-grid article {
  transition:
    transform 620ms cubic-bezier(.19, 1, .22, 1),
    box-shadow 620ms cubic-bezier(.19, 1, .22, 1),
    border-color 420ms ease,
    filter 420ms ease !important;
}

.contact-form-card:hover,
.contact-info-panel:hover,
.note-grid article:hover {
  transform: translateY(-5px) scale(1.004) !important;
  border-color: rgba(15, 71, 54, 0.18) !important;
  filter: brightness(1.01) saturate(1.02) !important;
  box-shadow:
    0 34px 92px rgba(15, 71, 54, 0.105),
    0 10px 24px rgba(15, 71, 54, 0.045),
    inset 0 1px 0 rgba(255,255,255,0.94) !important;
}

/* 表单输入动效 */
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255,255,255,0.96) !important;
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    background 240ms ease,
    transform 240ms ease !important;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  transform: translateY(-1px) !important;
  border-color: rgba(15, 71, 54, 0.34) !important;
  box-shadow:
    0 0 0 4px rgba(15, 71, 54, 0.055),
    0 10px 24px rgba(15, 71, 54, 0.055) !important;
}

/* 提交按钮延续官网主按钮质感 */
.contact-form button {
  transition:
    transform 420ms cubic-bezier(.19, 1, .22, 1),
    box-shadow 420ms ease,
    filter 320ms ease,
    background 320ms ease !important;
}

.contact-form button:hover {
  transform: translateY(-3px) !important;
  filter: brightness(1.03) saturate(1.03) !important;
  box-shadow:
    0 26px 58px rgba(15, 71, 54, 0.24),
    0 8px 18px rgba(15, 71, 54, 0.10) !important;
}

/* 底部三个说明卡依次出现 */
.note-grid article:nth-child(1) {
  animation: contactFadeUp 820ms cubic-bezier(.19, 1, .22, 1) 120ms both;
}

.note-grid article:nth-child(2) {
  animation: contactFadeUp 820ms cubic-bezier(.19, 1, .22, 1) 220ms both;
}

.note-grid article:nth-child(3) {
  animation: contactFadeUp 820ms cubic-bezier(.19, 1, .22, 1) 320ms both;
}

/* 表单锚点定位，避免点击按钮后被固定导航遮住 */
#contact-form {
  scroll-margin-top: 110px !important;
}

/* 联系页 footer 收口 */
body:has(.contact-page) .footer {
  margin-top: 0 !important;
}

/* 动画定义 */
@keyframes contactFadeLeft {
  from {
    opacity: 0;
    transform: translate3d(-26px, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes contactFadeRight {
  from {
    opacity: 0;
    transform: translate3d(26px, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes contactFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 移动端保持简洁 */
@media (max-width: 760px) {
  .contact-hero {
    padding-top: 96px !important;
    padding-bottom: 58px !important;
  }

  .contact-copy,
  .contact-form-card,
  .contact-info-panel,
  .note-grid article {
    animation: contactFadeUp 760ms cubic-bezier(.19, 1, .22, 1) both;
  }
}

/* 尊重系统减少动态设置 */
@media (prefers-reduced-motion: reduce) {
  .contact-copy,
  .contact-form-card,
  .contact-info-panel,
  .note-grid article {
    animation: none !important;
  }

  .contact-form-card,
  .contact-info-panel,
  .note-grid article,
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .contact-form button {
    transition: none !important;
  }
}

/* ===== Contact official page finish 2026-05-29 END ===== */

/* ===== Contact mobile full adapt v1 2026-05-30 START ===== */

@media (max-width: 820px) {
  .contact-page {
    overflow-x: hidden !important;
  }

  .contact-hero {
    min-height: auto !important;
    padding: 104px 0 58px !important;
  }

  .contact-hero-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: calc(100% - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .contact-copy h1 {
    max-width: 100% !important;
    white-space: normal !important;
  }

  .contact-lead {
    max-width: 100% !important;
  }

  .contact-info-panel,
  .contact-form-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 26px 22px !important;
    border-radius: 26px !important;
    transform: none !important;
  }

  .form-row.two,
  .form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .contact-form input,
  .contact-form select {
    height: 48px !important;
  }

  .contact-form textarea {
    min-height: 118px !important;
  }

  .contact-form button {
    height: 52px !important;
  }

  .contact-note-section {
    padding-top: 8px !important;
    padding-bottom: 46px !important;
  }

  .note-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: calc(100vw - 28px) !important;
  }

  .note-grid article {
    min-height: auto !important;
    padding: 24px 22px !important;
    border-radius: 24px !important;
  }
}

/* ===== Contact mobile full adapt v1 2026-05-30 END ===== */
