.footer {
  margin-top: 80px;
  padding: 78px 0 36px;
  border-top: 1px solid rgba(15,59,43,.08);
}

.footer-inner {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 58px;
}

.footer .logo {
  color: var(--green);
  margin-bottom: 18px;
}

.footer .logo-mark {
  border-color: var(--green);
}

.footer-brand p,
.footer-col a,
.footer-col p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-col h3 {
  margin: 0 0 22px;
  font-size: 14px;
}

.footer-col a {
  display: block;
  margin-bottom: 13px;
}

.copyright {
  width: min(1120px, calc(100% - 64px));
  margin: 52px auto 0;
  color: #a4aaa6;
  font-size: 12px;
  text-align: center;
}

/* Footer 里稍微大一点，更像品牌识别 */
.footer-logo-real .logo-symbol {
  width: 46px;
  height: 46px;
}

.footer-logo-real .logo-word {
  width: 148px;
}

@media (max-width: 980px) {
  .logo-word {
    width: 118px;
  }

  .logo-symbol {
    width: 38px;
    height: 38px;
  }
}




/* ===== Mobile footer refine v1 2026-05-30 START ===== */

@media (max-width: 760px) {
  .footer {
    margin-top: 0 !important;
    padding-top: 52px !important;
    padding-bottom: 30px !important;
  }

  .footer .footer-inner,
  .footer-inner {
    width: min(100% - 28px, 1180px) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .footer-logo,
  .footer-brand {
    align-items: flex-start !important;
  }

  .footer-links,
  .footer-nav,
  .footer-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 18px !important;
  }

  .footer a,
  .footer p,
  .footer li {
    font-size: 13px !important;
    line-height: 1.75 !important;
  }
}

@media (max-width: 420px) {
  .footer-links,
  .footer-nav,
  .footer-columns {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Mobile footer refine v1 2026-05-30 END ===== */

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

@media (max-width: 820px) {
  .footer {
    margin-top: 0 !important;
    padding: 44px 0 28px !important;
  }

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

  .footer-brand {
    max-width: 100% !important;
  }

  .footer-col {
    min-width: 0 !important;
  }

  .footer-col h3 {
    margin-bottom: 12px !important;
  }

  .footer-col a {
    margin-bottom: 8px !important;
  }

  .copyright {
    width: calc(100% - 28px) !important;
    margin-top: 32px !important;
    line-height: 1.7 !important;
  }
}

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

/* ===== Mobile footer visual refine 2026-05-30 START ===== */

@media (max-width: 820px) {
  .footer {
    margin-top: 0 !important;
    padding: 42px 0 28px !important;
    background:
      linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%) !important;
    border-top: 1px solid rgba(15, 71, 54, 0.08) !important;
  }

  .footer-inner,
  .footer-mobile-grid {
    width: calc(100% - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 18px !important;
    align-items: start !important;
  }

  .footer-brand {
    grid-column: 1 / -1 !important;
    padding-bottom: 4px !important;
  }

  .footer-brand .logo,
  .footer-logo-real {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .footer-brand .logo-symbol {
    width: 34px !important;
    height: 34px !important;
  }

  .footer-brand .logo-word {
    width: 116px !important;
    max-width: 116px !important;
  }

  .footer-brand .logo-word-wrap small {
    display: block !important;
    margin-top: 2px !important;
    font-size: 10px !important;
    color: rgba(35, 72, 58, 0.48) !important;
  }

  .footer-brand p {
    margin: 8px 0 0 !important;
    font-size: 13px !important;
    color: rgba(35, 72, 58, 0.58) !important;
  }

  .footer-col {
    min-width: 0 !important;
  }

  .footer-col h3 {
    margin: 0 0 10px !important;
    color: #0f4736 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
  }

  .footer-col a {
    display: block !important;
    margin: 0 0 8px !important;
    color: rgba(35, 72, 58, 0.62) !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
  }

  .footer-col p {
    margin: 0 !important;
    color: rgba(35, 72, 58, 0.62) !important;
    font-size: 12.5px !important;
    line-height: 1.65 !important;
  }

  .footer-col:last-of-type {
    grid-column: 1 / -1 !important;
    margin-top: 2px !important;
    padding: 16px 16px !important;
    border-radius: 18px !important;
    background: rgba(15, 71, 54, 0.035) !important;
    border: 1px solid rgba(15, 71, 54, 0.07) !important;
  }

  .copyright {
    width: calc(100% - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin: 24px auto 0 !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(15, 71, 54, 0.07) !important;
    color: rgba(35, 72, 58, 0.42) !important;
    font-size: 11.5px !important;
    line-height: 1.6 !important;
    text-align: left !important;
  }
}

@media (max-width: 390px) {
  .footer-inner,
  .footer-mobile-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .footer-col:last-of-type {
    grid-column: auto !important;
  }
}

/* ===== Mobile footer visual refine 2026-05-30 END ===== */

/* ===== Footer bottom tab spacing 2026-05-30 START ===== */

@media (max-width: 820px) {
  .footer {
    padding-bottom: calc(98px + env(safe-area-inset-bottom)) !important;
  }
}

/* ===== Footer bottom tab spacing 2026-05-30 END ===== */

/* ===== Footer mobile bottom tab final spacing 2026-05-30 START ===== */

@media (max-width: 820px) {
  .footer {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  }
}

/* ===== Footer mobile bottom tab final spacing 2026-05-30 END ===== */

/* ===== Mobile app compact footer 2026-05-30 START ===== */

/*
  手机端 footer 最终形态：
  - 桌面端 footer 保持不变
  - 手机端隐藏原长 footer
  - 显示 App 化紧凑 footer：品牌 + 快捷入口 + 联系 CTA + 版权
*/

.footer-mobile-app {
  display: none;
}

@media (max-width: 820px) {
  .footer {
    margin-top: 0 !important;
    padding: 0 0 calc(92px + env(safe-area-inset-bottom)) !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(15, 71, 54, 0.08) !important;
  }

  /* 隐藏桌面长 footer，避免手机端过长 */
  .footer > .footer-inner,
  .footer > .footer-mobile-grid,
  .footer > .copyright {
    display: none !important;
  }

  .footer-mobile-app {
    width: calc(100% - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin: 0 auto !important;
    padding: 28px 0 0 !important;
    display: block !important;
  }

  .footer-mobile-brand {
    padding: 0 2px 18px !important;
  }

  .footer-mobile-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
  }

  .footer-mobile-logo-symbol {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    display: block !important;
  }

  .footer-mobile-logo span {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  .footer-mobile-logo-word {
    width: 122px !important;
    max-width: 122px !important;
    height: auto !important;
    display: block !important;
  }

  .footer-mobile-logo em {
    margin-top: 3px !important;
    color: rgba(35, 72, 58, 0.48) !important;
    font-style: normal !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
  }

  .footer-mobile-brand p {
    margin: 13px 0 0 !important;
    color: rgba(35, 72, 58, 0.62) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .footer-mobile-links {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 22px !important;
    background:
      radial-gradient(circle at 92% 8%, rgba(242, 228, 189, 0.18), transparent 36%),
      rgba(15, 71, 54, 0.035) !important;
    border: 1px solid rgba(15, 71, 54, 0.075) !important;
  }

  .footer-mobile-links a {
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    color: rgba(15, 71, 54, 0.76) !important;
    background: rgba(255, 255, 255, 0.74) !important;
    border: 1px solid rgba(15, 71, 54, 0.055) !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  .footer-mobile-contact {
    height: 46px !important;
    margin-top: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    background: #0f4736 !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 900 !important;
    box-shadow: 0 16px 34px rgba(15, 71, 54, 0.18) !important;
  }

  .footer-mobile-copy {
    margin-top: 18px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(15, 71, 54, 0.07) !important;
    color: rgba(35, 72, 58, 0.42) !important;
    font-size: 11.5px !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 390px) {
  .footer-mobile-links {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-mobile-links a {
    height: 38px !important;
  }
}

/* ===== Mobile app compact footer 2026-05-30 END ===== */

/* ===== Footer ICP record 2026-05-30 START ===== */

.site-icp {
  margin-top: 8px;
  color: rgba(55, 83, 72, 0.50);
  font-size: 13px;
  line-height: 1.7;
}

.site-icp a {
  color: inherit;
  text-decoration: none;
}

.site-icp a:hover {
  color: #0f4736;
}

@media (max-width: 820px) {
  .site-icp {
    margin-top: 8px;
    font-size: 12px;
  }
}

/* ===== Footer ICP record 2026-05-30 END ===== */

/* ===== Footer ICP visible fix 2026-05-30 START ===== */

.footer-icp-visible,
.footer-icp-link,
.site-icp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: rgba(55, 83, 72, 0.62) !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  text-decoration: none !important;
  pointer-events: auto !important;
}

.footer-icp-visible {
  width: 100%;
  margin-top: 8px;
  text-align: center;
}

.footer-icp-link:hover {
  color: #0f4736 !important;
}

.footer-icp-sep {
  color: rgba(55, 83, 72, 0.32);
}

@media (max-width: 820px) {
  .footer-icp-visible,
  .footer-icp-link,
  .site-icp {
    font-size: 12px !important;
  }

  .footer-icp-sep {
    display: none !important;
  }

  .footer-icp-link {
    display: flex !important;
    margin-top: 6px !important;
  }
}

/* ===== Footer ICP visible fix 2026-05-30 END ===== */
