/* =====================================================
   Footer - 全站统一的底部通栏
   ===================================================== */

.site-footer {
  background:
    radial-gradient(ellipse at 12% 0, #d7efcf80, transparent 55%),
    linear-gradient(110deg, #f4faf0, #eaf6e1 65%, #e3f1d9);
  color: #003f2d;
  padding: 32px 0 22px;
  border-top: 1px solid #e0ece7;
}

/* 统一 footer 内容宽度，不依赖各页面自己的 .container 定义 */
.site-footer .container {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: space-between;
}

.footer-logo {
  position: relative;
  display: block;
  width: 168px;
  flex-shrink: 0;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  max-width: 540px;
  font-size: 12px;
  color: #3c584c;
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.footer-nav a:hover {
  color: #007b48;
  text-decoration: underline;
}

.footer-nav a[aria-current="page"] {
  color: #007b48;
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #007b48;
  border-radius: 2px;
}

.footer-contact {
  font-size: 12px;
  color: #3c584c;
  line-height: 1.8;
}

.footer-slogan {
  flex-shrink: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  line-height: 1.4;
  transform: rotate(-10deg);
  text-align: center;
  color: #00543c;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #ffffff66;
  font-size: 11px;
  color: #5a7065;
  align-items: center;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* 当前页下划线（与顶部通栏一致） */
.footer-nav a {
  position: relative;
}

/* 桌面端 ≤1199px（给底部固定试用条留空间） */
@media (max-width: 1199px) {
  .footer-main {
    flex-wrap: wrap;
  }

  .site-footer {
    padding-bottom: 22px;
  }
}

/* 移动端 ≤767px */
@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 32px;
  }

  .site-footer .container {
    width: calc(100% - 28px);
  }

  .footer-main {
    gap: 22px;
    align-items: flex-start;
  }

  .footer-logo {
    width: 148px;
  }

  .footer-nav {
    flex: auto;
    width: 100%;
    order: 3;
    font-size: 12px;
    gap: 11px 16px;
  }

  .footer-contact {
    font-size: 10px;
    max-width: 160px;
  }

  .footer-bottom {
    border-top: 1px solid #ffffff20;
    padding-top: 18px;
    margin-top: 22px;
    line-height: 1.6;
  }

  .footer-slogan {
    display: none;
  }
}
