/* ==========================================================================
   全站页脚 - site-footer.php
   浅色信息层级，替代 Astra 默认页脚
   ========================================================================== */

.site-footer.csr-site-footer {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  border-top: 1px solid #d9e2dd;
  background: #f4f7f5;
  color: #26372f;
  font-size: 14px;
  line-height: 1.7;
}

.csr-site-footer__accent {
  height: 3px;
  background: #2e8555;
}

.csr-site-footer__inner,
.csr-site-footer__bottom-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.csr-site-footer__inner {
  padding: 52px 0 46px;
}

.csr-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(270px, 1.55fr) repeat(2, minmax(140px, 0.8fr)) minmax(230px, 1.15fr);
  gap: 52px;
  align-items: start;
}

.csr-site-footer__brand {
  min-width: 0;
}

.csr-site-footer__identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit !important;
  text-decoration: none !important;
}

.csr-site-footer__logo,
.csr-site-footer__monogram {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
}

.csr-site-footer__logo {
  display: block;
  padding: 4px;
  border: 1px solid #d8e2dc;
  background: #ffffff;
  object-fit: contain;
}

.csr-site-footer__monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f6b43;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.csr-site-footer__identity-text {
  display: grid;
  min-width: 0;
}

.csr-site-footer__identity-text strong {
  color: #14241d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.csr-site-footer__identity-text small {
  margin-top: 2px;
  color: #6a7a72;
  font-size: 12.5px;
  line-height: 1.4;
}

.csr-site-footer__eyebrow {
  margin: 18px 0 7px;
  color: #1f6b43;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.csr-site-footer__description {
  margin: 0;
  max-width: 40ch;
  color: #52635b;
  font-size: 13.5px;
  line-height: 1.8;
}

.csr-site-footer__column h2 {
  margin: 0 0 16px;
  color: #26372f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.csr-site-footer__links,
.csr-site-footer__notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.csr-site-footer__links {
  display: grid;
  gap: 8px;
}

.csr-site-footer__links a {
  display: inline-block;
  color: #3e5047 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.csr-site-footer__links a:hover,
.csr-site-footer__links a:focus-visible,
.csr-site-footer__bottom a:hover,
.csr-site-footer__bottom a:focus-visible {
  color: #1f6b43 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.csr-site-footer__notes ul {
  display: grid;
  gap: 13px;
}

.csr-site-footer__notes li {
  padding-top: 11px;
  border-top: 1px solid #dce5e0;
  color: #5b6c64;
  font-size: 12.5px;
  line-height: 1.65;
}

.csr-site-footer__notes li:first-child {
  padding-top: 0;
  border-top: 0;
}

.csr-site-footer__notes strong {
  display: block;
  margin-bottom: 2px;
  color: #2c3d35;
  font-size: 12.5px;
  font-weight: 700;
}

.csr-site-footer__bottom {
  border-top: 1px solid #d9e2dd;
  background: rgba(255, 255, 255, 0.58);
}

.csr-site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 18px;
}

.csr-site-footer__bottom p {
  margin: 0;
  color: #66766e;
  font-size: 12.5px;
}

.csr-site-footer__bottom a {
  color: #4a5b53 !important;
  text-decoration: none !important;
}

.csr-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.csr-site-footer__legal span::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin-left: 18px;
  vertical-align: -1px;
  background: #cbd7d0;
}

.csr-site-footer a:focus-visible {
  outline: 2px solid #2e8555;
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .csr-site-footer__grid {
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(150px, 0.8fr));
    gap: 42px 34px;
  }

  .csr-site-footer__notes {
    grid-column: 1 / -1;
    max-width: 760px;
  }
}

@media (max-width: 767px) {
  .csr-site-footer__inner,
  .csr-site-footer__bottom-inner {
    width: min(100% - 32px, 1240px);
  }

  .csr-site-footer__inner {
    padding: 38px 0 34px;
  }

  .csr-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .csr-site-footer__brand,
  .csr-site-footer__notes {
    grid-column: 1 / -1;
  }

  .csr-site-footer__description {
    max-width: 100%;
  }

  .csr-site-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 14px 0 16px;
  }

  .csr-site-footer__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .csr-site-footer__grid {
    grid-template-columns: 1fr;
  }

  .csr-site-footer__brand,
  .csr-site-footer__notes {
    grid-column: auto;
  }

  .csr-site-footer__legal span::after {
    display: none;
  }
}
