/* Shared foundation for all public templates; homepage content remains in its dedicated design. */
:root {
  color-scheme: light;
  --bgColor: #f3f0ee;
  --fontColor: #252d28;
  --headColor: #252d28;
  --headbg: #fcfbfa;
  --themeColor: #355543;
  --ButtonFontColor: #ffffff;
  --footerColor: #eeece8;
  --borderColor: #d4d8d0;
  --entryConColor: #3e4840;
  --termBarbg: #eeece8;
  --boxShowColor: rgba(37, 45, 40, .12);
  --submenuBg: #f5f3f0;
  --webkit-scrollbar-thumb: #bdc6bb;
  --postH1Size: 34px;
  --postH2Size: 24px;
  --postH3Size: 20px;
  --postSize: 18px;
  --postGlobalMargin: 24px;
}

html {
  background: #f3f0ee;
  color: #252d28;
  font-family: "PingFang SC", "PingFang TC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

#body {
  min-height: 100vh;
  background: #f3f0ee;
  color: #252d28;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

#body a {
  color: inherit;
  word-break: normal;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

#body a:focus-visible,
#body button:focus-visible,
#body input:focus-visible {
  outline: 3px solid #355543;
  outline-offset: 3px;
}

#body .site-header {
  height: auto;
  min-height: var(--headHeight);
  border-bottom: 1px solid #e2e2dc;
  background: #fcfbfa;
  box-shadow: 0 8px 24px rgba(37, 45, 40, .045);
}

#body .site-header .header-container.container {
  box-sizing: border-box;
  width: min(calc(100% - 40px), 1200px);
  max-width: 1200px;
  padding: 8px 0;
  gap: 12px 16px;
}

#body .site-header .header-menu {
  margin-right: 0;
  color: #252d28;
}

#body .site-header .fwl-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  height: auto;
  max-height: none;
  color: #252d28;
  line-height: 1.4;
  white-space: nowrap;
}

#body .site-header .fwl-site-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

#body .site-header .header-menu .gore {
  gap: 2px;
  margin: 0;
}

#body .site-header .header-menu .gore > li {
  margin: 0 3px;
}

#body .site-header .header-menu .gore > li > a {
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 8px;
  color: #252d28;
  line-height: 1.5;
  transition: background-color .18s ease, color .18s ease;
}

#body .site-header .header-menu .gore > li > a:hover,
#body .site-header .header-menu .gore > li.current-menu-item > a,
#body .site-header .header-menu .gore > li.current-menu-parent > a {
  background: #e7ece5;
  color: #355543;
}

#body .site-header .header-menu .sub-menu {
  border: 1px solid #d4d8d0;
  background: #fcfbfa;
  color: #252d28;
  box-shadow: 0 12px 30px rgba(37, 45, 40, .10);
}

#body .site-header .header-menu .sub-menu li {
  border-color: #e3e4de;
}

#body .site-header .iconButton:not(.mobile) {
  display: inline-flex;
}

#body .site-header .iconButton {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 4px;
  border: 1px solid #d4d8d0;
  border-radius: 8px;
  background: #fcfbfa;
  color: #252d28;
}

#body .site-header .iconButton:hover {
  background: #e7ece5;
  color: #355543;
}

#body .site-header .site-search {
  z-index: 101;
  right: 20px;
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid #d4d8d0;
  border-radius: 12px;
  background: #fcfbfa;
  box-shadow: 0 12px 30px rgba(37, 45, 40, .12);
}

#body .site-header .site-form {
  align-items: center;
  gap: 8px;
}

#body .site-header .site-form .field {
  box-sizing: border-box;
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #aab4a8;
  border-radius: 8px;
  background: #ffffff;
  color: #252d28;
  font-size: 1rem;
}

#body .mask {
  background: rgba(37, 45, 40, .30);
}

#body .term-bar {
  border-bottom: 1px solid #e2e2dc;
  background: #fcfbfa;
  color: #252d28;
}

#body .term-bar .container {
  box-sizing: border-box;
  width: min(calc(100% - 40px), 1040px);
  max-width: 1040px;
  padding: 28px 0;
}

#body .term-illustrate {
  margin-top: 6px;
  color: #252d28;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#body .term-description {
  margin-top: 10px;
  color: #555e56;
  font-size: 1rem;
  line-height: 1.8;
}

#body section.site-content.container {
  box-sizing: border-box;
  width: min(calc(100% - 40px), 1040px);
  max-width: 1040px;
  margin: 32px auto 56px;
  padding: 0;
}

#body section.site-content > article.hasThumb {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  gap: 24px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid #dfe1da;
  border-radius: 14px;
  background: #fcfbfa;
  box-shadow: 0 8px 24px rgba(37, 45, 40, .035);
}

#body section.site-content > article.hasThumb .article-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

#body section.site-content > article.hasThumb .entry-title {
  display: -webkit-box;
  margin: 0 0 8px;
  color: #252d28;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#body section.site-content > article.hasThumb .entry-title a:hover {
  color: #355543;
  text-decoration: underline;
}

#body section.site-content > article.hasThumb .entry-content {
  display: -webkit-box;
  max-width: none;
  margin: 0;
  color: #555e56;
  font-size: .98rem;
  line-height: 1.75;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

#body section.site-content > article.hasThumb .entry-info {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 10px;
  color: #687268;
  font-size: .875rem;
  line-height: 1.6;
}

#body section.site-content > article.hasThumb .entry-info .infoLeft {
  margin-right: 0;
}

#body section.site-content > article.hasThumb .entry-info a {
  color: #355543;
}

#body section.site-content > article.hasThumb .entry-thumb {
  box-sizing: border-box;
  width: 220px;
  flex: 0 0 220px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #eeece8;
}

#body section.site-content > article.hasThumb .entry-thumb img {
  width: 100%;
  height: 142px;
  border-radius: 10px;
  object-fit: cover;
}

#body .pagenavi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

#body .pagenavi .page-numbers {
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #d4d8d0;
  border-radius: 8px;
  background: #fcfbfa;
  color: #252d28;
  font-size: 1rem;
  text-align: center;
}

#body .pagenavi .page-numbers.current,
#body .pagenavi .page-numbers:hover {
  border-color: #355543;
  background: #355543;
  color: #ffffff;
}

#body .vice-search {
  box-sizing: border-box;
  width: min(100%, 680px);
  max-width: 680px;
  min-height: 56px;
  gap: 8px;
  padding: 5px 6px 5px 18px;
  border: 1px solid #cbd2c8;
  border-radius: 12px;
  background: #fcfbfa;
}

#body .vice-search .field {
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: #252d28;
  font-size: 1rem;
}

#body .vice-search .search-submit {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 8px;
  background: #355543;
  color: #ffffff;
}

#body .vice-search .search-submit .iconfont {
  color: #ffffff;
}

#body .trem-state,
#body .trem-info {
  color: #252d28;
}

#body .site-footer.fwl-site-footer {
  margin-top: 48px;
  padding: 30px 0 22px;
  border-top: 1px solid #dfe1da;
  background: #eeece8;
  color: #3e4840;
  font-size: 1rem;
  line-height: 1.8;
}

#body .site-footer.fwl-site-footer .container {
  box-sizing: border-box;
  width: min(calc(100% - 40px), 1120px);
  max-width: 1120px;
  padding: 0;
}

#body .site-footer.fwl-site-footer .container::before {
  display: none !important;
  content: none !important;
}

#body .site-footer.fwl-site-footer .fwl-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d4d8d0;
}

#body .site-footer.fwl-site-footer .fwl-footer-brand {
  margin: 0;
  color: #252d28;
  font-size: 1.1rem;
  font-weight: 650;
}

#body .site-footer.fwl-site-footer .footer-nav-list {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
}

#body .site-footer.fwl-site-footer .footer-nav-list li {
  margin: 0;
}

#body .site-footer.fwl-site-footer .footer-nav-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #355543;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#body .site-footer.fwl-site-footer .container > p {
  display: block !important;
  margin: 12px 0 0;
  color: #555e56;
  text-align: left;
}

#body .site-footer.fwl-site-footer .container > .fwl-footer-notice {
  max-width: 900px;
  margin-top: 14px;
  font-size: .95rem;
}

#body .site-footer.fwl-site-footer .container > p a,
#body .site-footer.fwl-site-footer .Copyright a {
  color: #355543;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#body .site-footer.fwl-site-footer .Copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between !important;
  gap: 6px 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d4d8d0;
  color: #687268;
  font-size: .875rem;
}

#body .site-footer.fwl-site-footer .Copyright span:last-child {
  display: inline !important;
}

#body .site-footer.fwl-site-footer .Copyright span:last-child a {
  margin-left: 8px;
}

@media (min-width: 767px) and (max-width: 980px) {
  #body .site-header.fwl-header-has-title .header-container.container {
    gap: 10px;
  }

  #body .site-header .fwl-header-brand {
    gap: 8px;
  }

  #body .site-header .fwl-site-title {
    font-size: 16px;
  }

  #body .site-header.fwl-header-has-title .header-menu .gore > li {
    margin-inline: 0;
  }

  #body .site-header.fwl-header-has-title .header-menu .gore > li > a {
    padding-inline: 8px;
  }
}

@media (max-width: 900px) {
  #body .site-header .header-container.container {
    width: calc(100% - 32px);
  }

  #body .site-header .header-menu .gore > li {
    margin-inline: 0;
  }

  #body section.site-content > article.hasThumb {
    gap: 18px;
  }

  #body section.site-content > article.hasThumb .entry-thumb {
    width: 180px;
    flex-basis: 180px;
  }

  #body section.site-content > article.hasThumb .entry-thumb img {
    height: 124px;
  }
}

@media (max-width: 766px) {
  #body .site-header .fwl-header-brand {
    gap: 8px;
  }

  #body .site-header .fwl-header-brand img {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
  }

  #body .site-header .fwl-site-title {
    font-size: 14px;
  }

  #body .site-header .iconButton.mobile {
    display: inline-flex;
  }

  #body .site-header {
    min-height: 66px;
  }

  #body .site-header .header-container.container {
    min-height: 66px;
    width: calc(100% - 24px);
    gap: 6px;
    padding: 8px 0;
  }

  #body .site-header .openMenu {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #d4d8d0;
    border-radius: 8px;
    background: #fcfbfa;
  }

  #body .site-header .header-menu {
    box-sizing: border-box;
    width: min(320px, calc(100vw - 48px));
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 72px 16px 24px;
    background: #fcfbfa;
    box-shadow: 12px 0 32px rgba(37, 45, 40, .12);
  }

  #body .site-header .header-menu .gore {
    margin: 0;
    border: 1px solid #dfe1da;
    border-radius: 12px;
    background: #f3f0ee;
  }

  #body .site-header .header-menu .gore > li {
    min-height: 52px;
    border-color: #dfe1da;
  }

  #body .site-header .header-menu .gore > li > a {
    width: calc(100% - 32px);
    min-height: 52px;
    padding: 10px 16px;
    line-height: 1.5;
  }

  #body .site-header .header-menu .menuButton {
    top: 12px;
    right: 16px;
    background: #f3f0ee;
  }

  #body .site-header .header-menu .langSwitch.menuButton {
    right: 72px;
  }

  #body .site-header .langSwitch.iconButton,
  #body .site-header .goFind.iconButton {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
  }

  #body .site-header .site-search {
    top: calc(100% + 6px);
    right: 12px;
    padding: 12px;
  }

  #body .term-bar .container {
    width: calc(100% - 32px);
    padding: 22px 0;
  }

  #body section.site-content.container {
    width: calc(100% - 32px);
    margin: 22px auto 40px;
  }

  #body section.site-content > article.hasThumb {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: start;
    gap: 8px 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 12px;
  }

  #body section.site-content > article.hasThumb .entry-content {
    display: -webkit-box !important;
    margin-top: 4px;
    font-size: .9rem;
    line-height: 1.6;
    -webkit-line-clamp: 2;
  }

  #body section.site-content > article.hasThumb .entry-info {
    gap: 4px 10px;
    margin-top: 8px;
    font-size: .8rem;
  }

  #body section.site-content > article.hasThumb .entry-info .rtime {
    display: inline !important;
  }

  #body section.site-content > article.hasThumb .entry-thumb {
    width: 96px;
    flex: 0 0 96px;
  }

  #body section.site-content > article.hasThumb .entry-thumb img {
    height: 82px;
  }

  #body .site-footer.fwl-site-footer {
    margin-top: 36px;
    padding: 24px 0 18px;
  }

  #body .site-footer.fwl-site-footer .container {
    width: calc(100% - 32px);
  }

  #body .site-footer.fwl-site-footer .fwl-footer-top {
    display: block;
  }

  #body .site-footer.fwl-site-footer .footer-nav-list {
    justify-content: flex-start;
    gap: 2px 12px;
    margin-top: 8px;
  }

  #body .site-footer.fwl-site-footer .container > p {
    margin-top: 10px;
  }
}

@media (max-width: 360px) {
  #body .site-header .fwl-header-brand {
    gap: 6px;
  }

  #body .site-header .fwl-header-brand img {
    width: 28px;
    height: 28px;
  }

  #body .site-header .fwl-site-title {
    font-size: 13px;
  }

  #body .site-header .header-container.container {
    width: calc(100% - 16px);
    gap: 4px;
  }

  #body section.site-content > article.hasThumb {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 8px;
    padding: 12px;
  }

  #body section.site-content > article.hasThumb .entry-thumb {
    width: 78px;
    flex-basis: 78px;
  }

  #body section.site-content > article.hasThumb .entry-thumb img {
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #body *,
  #body *::before,
  #body *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
