/* 页头页脚对齐首页 v4：鲜叶绿、胶囊、16px 基准（不受 html rem 缩放） */

.siteHeader,
.footer.footer--v4 {
  --sc-primary: #2f9e44;
  --sc-primary-dark: #248038;
  --sc-ink: #0f172a;
  --sc-text: #475569;
  --sc-muted: #64748b;
  --sc-line: #d5e8d8;
  --sc-bg: #f3faf4;
  --site-header-h: 64px;
  --site-subnav-h: 36px;
  font-size: 16px;
  line-height: var(--ls-line);
}

.siteHeader {
  background: #fff;
  border-bottom: 1px solid var(--sc-line);
}

.siteHeader .header {
  height: 64px !important;
  background: transparent !important;
  border-bottom: none !important;
}

.siteHeader .header .container {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  width: min(100% - 32px, 1152px);
  height: 100%;
  margin-inline: auto;
  column-gap: 16px;
}

.siteHeader .header .left {
  justify-self: start;
  min-width: 0;
}

.siteHeader .header__nav {
  position: static;
  transform: none;
  height: 100%;
  pointer-events: auto;
  justify-self: center;
}

.siteHeader .header__nav .menu {
  pointer-events: auto;
  height: 100%;
}

.siteHeader .header__actions {
  position: static;
  justify-self: end;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5600;
  min-width: 0;
}

.headerLang {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.headerLang a {
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
}

.headerLang a:hover,
.headerLang a.is-active {
  opacity: 1;
}

.headerLang a.is-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.headerLang__sep {
  opacity: 0.4;
  font-weight: 400;
}

.headerMenuBtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sc-ink);
  cursor: pointer;
}

.headerMenuBtn:hover {
  background: #e7f1ef;
  color: var(--sc-primary);
}

.headerNavPanel {
  display: none;
}

.headerNavPanel__auth {
  display: none;
}

.siteHeader .headerBrand {
  color: var(--sc-ink);
}

.siteHeader .headerBrand__name {
  font-size: 18px;
  font-weight: 700;
}

html[lang="zh-CN"] .siteHeader .headerBrand__reg {
  font-size: 0.78em;
  font-weight: 700;
  margin-left: 0.08em;
  margin-top: 0.02em;
}

.siteHeader .headerBrand__icon {
  width: 24px;
  height: 24px;
}

.siteHeader .header .menu .one {
  margin-right: 16px !important;
}

.siteHeader .header .menu .one .first {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--sc-ink) !important;
}

.siteHeader .header .menu .one:hover .first,
.siteHeader .header .menu .one .first.active {
  color: var(--sc-primary) !important;
}

.siteHeader .header .menu .one .first::after {
  background: var(--sc-primary) !important;
  height: 2px !important;
  width: 100% !important;
  bottom: 0 !important;
}

.siteHeaderSpacer {
  height: var(--site-header-h);
}

.siteHeaderSpacer--withSub {
  height: calc(var(--site-header-h) + var(--site-subnav-h));
}

.siteHeaderSpacer--home {
  height: 0 !important;
}

.navSubBar {
  background: #fff;
  border-bottom: 1px solid var(--sc-line);
  box-shadow: none;
}

.navSubBar__inner {
  width: min(100% - 32px, 1152px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 20px;
  min-height: 36px;
  padding: 6px 0;
}

.navCrumb,
.navSibs {
  margin: 0;
  font-size: 13px;
  line-height: var(--ls-line-relaxed);
}

.navCrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--sc-ink);
}

.navCrumb__parent {
  color: var(--sc-primary);
  text-decoration: none;
  font-weight: 600;
}

.navCrumb__parent:hover {
  color: var(--sc-primary-dark);
}

.navCrumb__sep {
  color: var(--sc-muted);
}

.navCrumb__now {
  color: var(--sc-ink);
  font-weight: 600;
}

.navSibs {
  color: var(--sc-muted);
}

.navSibs a {
  color: var(--sc-text);
  text-decoration: none;
}

.navSibs a:hover {
  color: var(--sc-primary);
}

.navSibs a.is-active {
  color: var(--sc-ink);
  font-weight: 600;
}

.navSibs__dot {
  margin: 0 8px;
  color: #cbd5d1;
}

/* 首页未滚动：白霜顶栏，叠在浅场英雄上 */
.siteHeader--home:not(.siteHeader--solid) {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(213, 232, 216, 0.75);
  box-shadow: 0 8px 24px rgba(22, 48, 36, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.siteHeader [class*="memberCenterLink"] {
  font-size: 13px;
  color: var(--sc-ink);
}

.siteHeader [class*="memberCenterLink"]:hover {
  color: var(--sc-primary);
  background: #e7f1ef;
}

.siteHeader [class*="iconBtn"] {
  width: 36px;
  height: 36px;
  color: var(--sc-ink);
}

.siteHeader [class*="loginPill"],
.siteHeader [class*="registerPill"] {
  height: 36px;
  min-width: 72px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.siteHeader [class*="loginPill"] {
  background: var(--sc-primary) !important;
  color: #fff !important;
  border: 1px solid var(--sc-primary) !important;
}

.siteHeader [class*="loginPill"]:hover {
  background: var(--sc-primary-dark) !important;
  border-color: var(--sc-primary-dark) !important;
}

.siteHeader [class*="registerPill"] {
  background: #fff !important;
  color: var(--sc-ink) !important;
  border: 1px solid var(--sc-line) !important;
}

.siteHeader [class*="registerPill"]:hover {
  border-color: var(--sc-primary) !important;
  color: var(--sc-primary) !important;
}

.homeV4__hero {
  scroll-margin-top: 0;
}

body:has(.siteHeader--home) .homeV4__heroInner {
  padding-top: 5.5em;
}

@media (min-width: 768px) {
  body:has(.homeV4) .homeV4__hero {
    min-height: 100svh;
  }

  body:has(.siteHeader--home) .homeV4__heroInner {
    padding-top: 6.5em;
  }
}

#home-v4-audience,
#home-v4-process,
#capabilities,
#home-v4-trust,
#home-v4-cats,
#inquiry,
#contact-entry,
#brand {
  scroll-margin-top: calc(var(--site-header-h) + 12px);
}

/* 页脚 */
.footer.footer--v4 {
  background: #163024 !important;
  padding: 48px 0 0;
}

.footer.footer--v4 .container {
  width: min(100% - 32px, 1152px);
  margin: 0 auto;
}

.footer.footer--v4 .top {
  display: grid !important;
  grid-template-columns: minmax(16em, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  justify-content: stretch !important;
  gap: 32px 40px;
  padding-bottom: 32px;
  align-items: start;
}

.footer.footer--v4 .top .left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer.footer--v4 .top .left .name {
  font-size: 18px !important;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 8px !important;
}

.footer.footer--v4 .ftNet__lead {
  margin: 0 0 18px;
  max-width: 22em;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.footer.footer--v4 .ftNet {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: max-content minmax(8em, 1fr);
  column-gap: 20px;
  row-gap: 10px;
  align-items: baseline;
  width: 100%;
}

.footer.footer--v4 .ftNet__item {
  display: contents;
}

.footer.footer--v4 .ftNet__area {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.footer.footer--v4 .ftNet__detail,
.footer.footer--v4 .ftNet__mail {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  white-space: nowrap;
}

.footer.footer--v4 a.ftNet__detail:hover,
.footer.footer--v4 .ftNet__mail:hover {
  color: #5eead4;
}

.footer.footer--v4 .ftNet__mail {
  margin-top: 14px;
  font-weight: 600;
}

.footer.footer--v4 .footerSocial {
  margin-top: 20px;
  gap: 10px;
}

.footer.footer--v4 .footerSocial__icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.footer.footer--v4 .footerSocial__icon svg {
  width: 18px;
  height: 18px;
}

.footer.footer--v4 .top .line {
  margin-left: 0 !important;
  white-space: normal;
}

.footer.footer--v4 .top .line .title,
.footer.footer--v4 .top .line .one {
  display: block;
}

.footer.footer--v4 .top .line .title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer.footer--v4 .top .line .one {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 8px;
}

.footer.footer--v4 .top .line .title:hover,
.footer.footer--v4 .top .line .one:hover {
  color: #5eead4;
}

.footer.footer--v4 .bot {
  height: auto;
  min-height: 52px;
  padding: 14px 0;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer.footer--v4 .bot .left,
.footer.footer--v4 .bot .right {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: var(--ls-line);
}

@media (max-width: 767px) {
  .siteHeader .header {
    height: 56px !important;
    min-height: 56px;
  }

  .siteHeader .header .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: min(100% - 24px, 1152px);
    height: 56px;
    min-height: 56px;
    column-gap: 8px;
  }

  .siteHeader .header .left {
    order: 1;
    min-width: 0;
    flex: 1 1 auto;
  }

  .siteHeader .header__nav {
    display: none;
  }

  .siteHeader .header__actions {
    position: static;
    order: 2;
    height: 56px;
    margin-left: 0;
    padding-right: 0;
    flex: 0 0 auto;
    gap: 2px;
  }

  .header__authBar {
    display: none;
  }

  .headerMenuBtn {
    display: inline-flex;
  }

  .siteHeader .headerBrand {
    flex-shrink: 1;
    min-width: 0;
  }

  .siteHeader .headerBrand__icon {
    width: 22px;
    height: 22px;
  }

  .siteHeader,
  .footer.footer--v4 {
    --site-header-h: 56px;
  }

  .navSibs {
    display: none;
  }

  .headerNavPanel {
    display: none;
    position: fixed;
    top: var(--site-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5556;
    overflow: auto;
    padding: 12px 20px 40px;
    background: #fff;
    color: var(--sc-ink);
    -webkit-overflow-scrolling: touch;
  }

  .headerNavPanel.is-open,
  .headerNavPanel:not([hidden]) {
    display: block;
  }

  .headerNavPanel[hidden] {
    display: none !important;
  }

  .headerNavPanel__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .headerNavPanel__group {
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--sc-line);
  }

  .headerNavPanel__parent {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--sc-ink);
    text-decoration: none;
    line-height: 1.4;
  }

  .headerNavPanel__group.is-active .headerNavPanel__parent {
    color: var(--sc-primary);
  }

  .headerNavPanel__children {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding-left: 2px;
  }

  .headerNavPanel__child {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--sc-text);
    text-decoration: none;
    line-height: 1.4;
  }

  .headerNavPanel__child:hover,
  .headerNavPanel__parent:hover {
    color: var(--sc-primary);
  }

  .headerNavPanel__auth {
    display: block;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--sc-line);
  }

  .headerNavPanel__auth [class*="headerAuth"] {
    flex-wrap: wrap;
    gap: 10px;
  }

  .siteHeader:has(.is-navOpen) {
    background: #fff;
    border-bottom-color: var(--sc-line);
    box-shadow: none;
    backdrop-filter: none;
  }

  .siteHeader:has(.is-navOpen) .headerBrand,
  .siteHeader:has(.is-navOpen) .headerLang,
  .siteHeader:has(.is-navOpen) .headerMenuBtn {
    color: var(--sc-ink) !important;
  }

  .siteHeader:has(.is-navOpen) [class*="iconBtn"] {
    color: var(--sc-ink) !important;
  }

  .footer.footer--v4 .top {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }

  .footer.footer--v4 .top .left {
    grid-column: 1 / -1;
  }

  .footer.footer--v4 .ftNet {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .footer.footer--v4 .ftNet__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .footer.footer--v4 .ftNet__area,
  .footer.footer--v4 .ftNet__detail {
    white-space: normal;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .siteHeader .header .menu .one {
    margin-right: 16px !important;
  }

  .footer.footer--v4 .top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer.footer--v4 .top .left {
    grid-column: 1 / -1;
  }
}

/* 右侧浮条：提交需求 + 电话 + 回顶部 */
.pageRight {
  display: none !important;
}

.floatRail {
  --sc-primary: #2f9e44;
  --sc-ink: #0f172a;
  --sc-line: #d5e8d8;
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 5400;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
  font-size: 16px;
  line-height: var(--ls-line-tight);
}

.floatRail__fab,
.floatRail__mask {
  display: none;
}

.floatRail__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floatRail__item {
  position: relative;
  width: 56px;
  min-height: 56px;
  padding: 8px 4px 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--sc-line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  color: var(--sc-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
}

.floatRail__item:hover,
.floatRail__item:focus-visible {
  color: var(--sc-primary);
  border-color: var(--sc-primary);
}

.floatRail__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floatRail__tip {
  display: none;
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--sc-line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  color: var(--sc-primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.floatRail__item--tel:hover .floatRail__tip,
.floatRail__item--tel:focus-within .floatRail__tip {
  display: block;
}

@media (max-width: 767px) {
  .floatRail {
    right: 16px;
    bottom: 16px;
  }

  .floatRail__mask {
    display: block;
    position: fixed;
    inset: 0;
    background: transparent;
    border: 0;
    padding: 0;
    z-index: -1;
  }

  .floatRail__fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: var(--sc-primary);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
    cursor: pointer;
  }

  .floatRail__panel {
    display: none;
  }

  .floatRail.is-open .floatRail__panel {
    display: flex;
  }

  .floatRail__tip {
    display: none !important;
  }
}

/* 需求提交弹窗：右侧悬浮条“提交需求”触发，复用首页 v4 表单样式 */
.inquiryModal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  animation: inquiryModalFade 0.18s ease;
}

@keyframes inquiryModalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.inquiryModal__panel {
  /* 弹窗在 .homeV4 外渲染，需补上首页 v4 表单依赖的 CSS 变量 */
  --hv4-primary: #2f9e44;
  --hv4-primary-dark: #248038;
  --hv4-heading: #0f172a;
  --hv4-text: #475569;
  --hv4-border: #d5e8d8;
  --hv4-ok: #1b7a32;
  position: relative;
  font-size: 16px;
  line-height: var(--ls-line);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 1.75em 1.5em 1.5em;
  background: #fff;
  border-radius: 1em;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  color: #0f172a;
}

.inquiryModal__close {
  position: absolute;
  top: 0.75em;
  right: 0.75em;
  width: 2em;
  height: 2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: #f3faf4;
  color: #475569;
  cursor: pointer;
}

.inquiryModal__close:hover {
  background: #c8e6cc;
  color: #0f172a;
}

.inquiryModal__close svg {
  width: 1.1em;
  height: 1.1em;
}

.inquiryModal__title {
  margin: 0 2em 0.25em 0;
  font-size: 1.375em;
  font-weight: 700;
  color: #0f172a;
}

.inquiryModal__lead {
  margin: 0 0 1.1em;
  font-size: 0.9375em;
  color: #64748b;
}
