/* 公开站点共用外壳，作用域限定，避免影响编辑器和正文。 */
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-display: swap;
}
.site-header,
.site-footer {
  font-family: Inter, Arial, sans-serif;
  box-sizing: border-box;
  color: #23352e;
}
.site-header {
  height: auto;
  min-height: 88px;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid #e2e7df;
  position: relative;
  z-index: 20;
}
.site-brand {
  display: inline-flex;
  flex-shrink: 0;
}
.site-brand img {
  display: block;
  width: 150px;
  height: 60px;
  object-fit: contain;
}
.site-header a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-header a:hover,
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.site-mobile-nav {
  display: none;
}
.site-header a:focus-visible,
.site-header summary:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid #638357;
  outline-offset: 5px;
}
.site-footer {
  padding: 56px 5% 22px;
  background: #f4f5ef;
  border-top: 1px solid #dde3d8;
  margin-top: 40px;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr 1.2fr;
  gap: 36px;
  max-width: 1440px;
  margin: auto;
}
.site-footer-grid > div,
.site-footer-grid > nav,
.site-footer-grid > address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.site-footer h2 {
  font:
    600 13px / 1.5 Inter,
    Arial,
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 12px 0;
  color: #23352e;
}
.site-footer.site-footer p,
.site-footer a,
.site-footer strong,
.site-footer span {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.site-footer.site-footer p {
  margin: 0;
  color: #526255;
}
.site-footer address {
  font-style: normal;
}
.site-footer-brand .site-brand {
  margin-bottom: 8px;
}
.site-footer-brand > span {
  color: #526255;
}
.site-footer-bottom {
  max-width: 1440px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid #d9dfd5;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #526255;
}
@media (max-width: 900px) {
  .site-desktop-nav {
    display: none;
  }
  .site-mobile-nav {
    display: block;
  }
  .site-mobile-nav summary {
    cursor: pointer;
    list-style: none;
    padding: 12px;
    font-size: 14px;
  }
  .site-mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .site-mobile-nav summary span {
    margin-left: 10px;
  }
  .site-mobile-nav nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 16px 5%;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #d9dfd5;
  }
  .site-mobile-nav nav a {
    padding: 14px 0;
    font-size: 15px;
  }
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}
@media (max-width: 480px) {
  .site-header {
    min-height: 76px;
    padding: 8px 5%;
  }
  .site-brand img {
    width: 125px;
    height: 50px;
  }
  .site-footer {
    padding: 32px 6% 20px;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .site-footer-bottom {
    flex-direction: column;
  }
  .site-footer h2 {
    margin: 0 0 4px;
  }
}
