:root {
  --site-font: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --site-title: clamp(2.35rem, 4.4vw, 4.5rem);
  --section-title: clamp(1.75rem, 2.9vw, 3.15rem);
  --copy-size: clamp(1rem, 1.1vw, 1.125rem);
  --site-gutter: clamp(1.25rem, 5vw, 6rem);
  --header-height: 74px;
}
html { scroll-padding-top: calc(var(--header-height) + 12px); }
body.xt-page { margin: 0; font-family: var(--site-font); }
.xt-page main .page-title { font-size: var(--site-title); line-height: 1.15; }
.xt-page main .section-heading { font-size: var(--section-title); line-height: 1.22; }
.xt-page main .body-copy { font-size: var(--copy-size); line-height: 1.75; }
.xt-page .site-header, .xt-page .site-footer {
  box-sizing: border-box; width: 100%; max-width: none; margin: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-inline: var(--site-gutter); color: #26352b; background: #fff;
}
.xt-page .site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-height);
  border-bottom: 1px solid #dce2db;
}
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }
.site-header nav a, .site-contact { font: 500 15px/1.6 var(--site-font); white-space: nowrap; }
.site-header nav a[aria-current="page"] {
  color: #426518; font-weight: 700; text-decoration: underline; text-underline-offset: 6px;
}
.site-header .site-brand img, .site-footer .site-brand img { display: block; width: 145px; height: auto; }
.site-toggle { display: none; }
.xt-page .site-footer { padding-block: 27px; border-top: 1px solid #dce2db; }
.site-footer p, .site-footer > a:last-child { margin: 0; color: #394b40; font: 400 14px/1.6 var(--site-font); }
.site-footer .site-beian {
  margin-left: 1.4rem;
  color: #426518;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.site-footer .site-beian:hover { color: #26352b; }
.site-footer .site-privacy {
  margin-left: .8rem; color: #426518; text-decoration: underline;
  text-underline-offset: 3px; white-space: nowrap;
}
.site-footer .site-privacy:hover { color: #26352b; }
.site-footer .site-copyright { margin-left: .8rem; color: #6b7a6e; font-size: 13px; white-space: nowrap; }
.site-header :focus-visible, .site-footer :focus-visible, .channel-link:focus-visible { outline: 2px solid #537b28; outline-offset: 4px; }
@media (max-width: 991.98px) {
  :root { --header-height: 64px; }
  .site-header nav {
    display: none; position: absolute; inset: 100% 0 auto; background: #fff;
    padding: 12px var(--site-gutter) 20px; box-shadow: 0 12px 24px #17291c18;
  }
  .site-header nav.is-open { display: grid; gap: 0; }
  .site-header nav a { display: block; padding: 10px 0; }
  .site-contact { margin-left: auto; }
  .site-toggle { display: block; color: inherit; background: none; border: 0; font-size: 22px; min-width: 44px; min-height: 44px; cursor: pointer; }
  .xt-page .site-header { gap: 12px; }
  .xt-page .site-footer { flex-wrap: wrap; gap: 14px 24px; }
  .site-footer .site-beian { margin-left: .6rem; }
  .site-footer .site-privacy, .site-footer .site-copyright { margin-left: .5rem; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.xt-page main :is(.page-title, .section-heading, .module-heading, .card-heading) {
  font-family: var(--site-font);
  font-weight: 650;
  letter-spacing: -.025em;
}
.xt-page main .module-heading {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.35;
}
.xt-page main .card-heading {
  font-size: clamp(1.125rem, 1.45vw, 1.45rem);
  line-height: 1.4;
}
.site-header, .site-footer { font-family: var(--site-font); line-height: 1.5; }
.site-toggle { font-family: inherit; }
.site-dialog {
  box-sizing: border-box;
  width: calc(100% - 2.5rem);
  max-width: var(--dialog-width, 30rem);
  max-height: 85vh;
  border: 0;
  border-radius: 3px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #1d3028;
  background: #f8f7f1;
}
.site-dialog::backdrop { background: #12261ed9; }
.site-dialog-close {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 28px;
  cursor: pointer;
}
