@font-face {
  font-family: "霞鹜文楷";
  src: url("/fonts/霞鹜文楷.ttf") format("truetype"),
       url("/fonts/%E9%9C%9E%E9%B9%9C%E6%96%87%E6%A5%B7.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg-page: #f4f8f4;
  --bg-glow: #eaf2ea;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-panel: rgba(239, 245, 239, 0.94);
  --bg-strip: linear-gradient(180deg, #edf5ed 0%, #e7f0e7 100%);
  --line-soft: #d7e4d6;
  --line-mid: #c9dbc8;
  --text-main: #24342a;
  --text-soft: #738574;
  --accent: #769b79;
  --accent-deep: #557d5c;
  --accent-dark: #2f4d37;
  --accent-darker: #26412e;
  --text-on-dark: #edf5ee;
  --text-on-dark-soft: rgba(237, 245, 238, 0.78);
  --shadow-soft: 0 14px 34px rgba(114, 144, 117, 0.08);
  --shadow-deep: 0 18px 38px rgba(40, 68, 48, 0.16);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


::selection {
  color: #ffffff;
  background: #31634c;
}

::-moz-selection {
  color: #ffffff;
  background: #31634c;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(223, 241, 223, 0.78) 0, transparent 24%),
    linear-gradient(180deg, #fcfffc 0%, var(--bg-page) 100%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.shell,
.container {
  width: min(1360px, calc(100vw - 64px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-main {
  padding-bottom: 56px;
}

/* header */

.site-header {
  padding: 28px 0 18px;
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  border: 1px solid var(--line-soft);
  border-radius: 34px;
  background: rgba(240, 248, 240, 0.92);
  box-shadow: var(--shadow-soft);
}

.site-brand {
  min-width: 0;
}

.site-brand__title {
  display: inline-block;
  text-decoration: none;
  font-size: clamp(1.62rem, 1.9vw, 2.04rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-brand__subtitle {
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-size: 0.96rem;
  font-weight: 700;
}

.site-brand__stance {
  margin: 10px 0 0;
  color: #506451;
  font-size: 0.96rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--accent-deep);
  background: #f3faf3;
  border-color: #c8dbc7;
}

.site-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 308px;
  overflow: hidden;
  border: 1px solid var(--line-mid);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.site-search input,
.local-filter input,
.search-page-form input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 0.96rem;
}

.site-search input::placeholder,
.local-filter input::placeholder,
.search-page-form input::placeholder {
  color: #8fa08f;
}

.site-search button,
.search-page-form button {
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: #f4faf4;
  color: var(--accent-deep);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
}

/* shared cards */

.section-card,
.archive-panel,
.archive-card,
.term-card,
.article-main,
.sidebar-card,
.comment-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chip--category,
.chip--filled {
  border-color: #d7e4d6;
  background: #eef6ee;
  color: #557d5c;
}

.chip--tag {
  border-color: #e5dcc6;
  background: #faf5e8;
  color: #8a6d3c;
}

.archive-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* home */

.home-page {
  position: relative;
  padding-bottom: 0;
}

.home-hero {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 5vw;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  transition: opacity 0.08s linear, transform 0.08s linear;
}

.home-hero.is-faded {
  visibility: hidden;
}

.home-hero__inner {
  display: grid;
  gap: 0.14em;
  text-align: center;
}

.home-hero__line {
  margin: 0;
  color: #2f6b47;
  font-family: "霞鹜文楷", "LXGW WenKai", "STKaiti", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-content {
  position: relative;
  z-index: 2;
  margin-top: 100vh;
}

body.home-hero-dismissed .home-content {
  margin-top: 0;
}

body.home-hero-dismissed .home-hero {
  opacity: 0;
  transform: translate3d(0, -96px, 0);
  visibility: hidden;
}

.home-content .site-header {
  padding-top: 28px;
}

.home-shell,
.archive-shell {
  display: grid;
  gap: 20px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.home-main,
.home-side {
  display: grid;
  gap: 20px;
}

.home-intro {
  padding: 18px 22px;
}

.home-intro__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.home-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-mid);
  border-radius: 16px;
  background: #f6fbf6;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.topic-chip:hover {
  color: var(--accent-deep);
  background: #eef7ee;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.latest-actions {
  margin-top: 18px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
}

.action-pill--solid {
  background: #ecf6ec;
  color: var(--accent-deep);
}

.section-card {
  padding: 22px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading--compact {
  margin-bottom: 14px;
}

.section-heading__kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #8fa18f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-heading__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading__title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-heading__more {
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.entry-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.entry-card__inner {
  display: flex;
  flex-direction: column;
  min-height: 188px;
  height: 100%;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.entry-card__meta,
.archive-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #829383;
  font-size: 0.88rem;
}

.entry-card__title,
.archive-card__title,
.news-row__title {
  margin: 12px 0 0;
  font-size: 1.04rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.entry-card__title a,
.archive-card__title a,
.news-card__title a,
.news-row__title a,
.woman-card__name a,
.term-card__title a {
  text-decoration: none;
}

.entry-card__summary,
.archive-card__summary,
.news-row__summary,
.woman-card__summary,
.term-card__meta,
.search-meta {
  color: var(--text-soft);
  line-height: 1.72;
}

.entry-card__summary {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.entry-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.news-stack {
  display: grid;
  gap: 10px;
}

.news-card--stacked {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(219, 232, 218, 0.7);
}

.news-stack .news-card--stacked:first-child {
  padding-top: 0;
  border-top: 0;
}

.news-card__date {
  color: var(--accent-deep);
  font-size: 0.96rem;
  font-weight: 800;
}

.news-card__title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
}

.news-card__summary {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.woman-card {
  overflow: hidden;
  padding: 0;
}

.woman-card__inner {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.woman-card__name {
  margin: 14px 0 0;
  font-size: 1.12rem;
}

.woman-card__summary {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.home-footer-note {
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, #eef7ee 0%, #e9f3e9 100%);
  color: #445948;
  font-size: 0.98rem;
  line-height: 1.75;
  box-shadow: var(--shadow-soft);
}

.home-footer-note strong {
  color: var(--accent-deep);
  margin-right: 6px;
}

/* archive / terms / article */

.archive-page,
.terms-page,
.article-page {
  padding-bottom: 0;
}

.archive-panel {
  padding: 26px 28px 30px;
  background: var(--bg-panel);
}

.archive-panel--terms,
.archive-panel--news {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.archive-heading {
  margin-bottom: 22px;
}

.archive-heading--simple {
  margin-bottom: 18px;
}

.archive-heading__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #8fa18f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.archive-heading__title {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.24rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.archive-heading__desc,
.archive-heading__body {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.8;
  max-width: 820px;
}

.list-filter,
.search-panel {
  margin-bottom: 20px;
}

.local-filter,
.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-mid);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
}

.search-page-form {
  margin-bottom: 14px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.archive-grid--figures {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-card {
  overflow: hidden;
  padding: 0;
  min-height: 0;
}

.archive-card__inner {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  height: 100%;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.archive-card__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive-card__summary {
  margin: 12px 0 0;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.archive-card__more {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.news-list {
  position: relative;
  display: grid;
  gap: 16px;
}

.news-row {
  display: grid;
  grid-template-columns: 92px 28px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 0;
}

.news-row__date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  color: var(--accent-deep);
}

.news-row__date span {
  font-size: 0.86rem;
  font-weight: 700;
}

.news-row__date strong {
  font-size: 1.4rem;
  line-height: 1;
}
.news-row__timeline {
  position: relative;
}

.news-row__timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(203, 219, 201, 0.08) 0%, rgba(181, 201, 179, 0.92) 14%, rgba(181, 201, 179, 0.92) 86%, rgba(203, 219, 201, 0.08) 100%);
}

.news-row:first-child .news-row__timeline::before {
  top: 22px;
}

.news-row:last-child .news-row__timeline::before {
  bottom: 22px;
}

.news-row__dot {
  position: absolute;
  left: 50%;
  top: 32px;
  width: 14px;
  height: 14px;
  border: 3px solid #f7fbf6;
  border-radius: 999px;
  background: linear-gradient(180deg, #7fa084 0%, #68886f 100%);
  box-shadow: 0 0 0 4px rgba(223, 236, 222, 0.9);
  transform: translateX(-50%);
}

.news-row__content {
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.news-row__content:hover {
  border-color: #cadcc9;
  background: linear-gradient(180deg, #fbfdfb 0%, #f0f7ef 100%);
}


.news-row__title {
  margin: 12px 0 0;
  font-size: 1.08rem;
}

.news-row__summary {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.news-row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #829383;
  font-size: 0.9rem;
}

.news-row__meta a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 800;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.term-grid--decorative {
  gap: 20px;
}

.term-card {
  display: block;
  min-height: 120px;
  padding: 20px;
  text-decoration: none;
}

.term-card--decorative {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 172px;
  padding: 24px 24px 22px;
  border: 1px solid #d7e4d6;
  border-radius: 28px;
  background: linear-gradient(180deg, #f6faf5 0%, #edf5ec 100%);
  box-shadow: 0 14px 30px rgba(114, 144, 117, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.term-card--decorative:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 141, 115, 0.5);
  box-shadow: 0 18px 36px rgba(77, 103, 84, 0.16);
  background: linear-gradient(180deg, #97ac9c 0%, #85a08b 100%);
}

.term-card--decorative::before,
.term-card--decorative::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.22s ease;
}

.term-card--decorative::before {
  right: -20px;
  bottom: -18px;
  width: 180px;
  height: 180px;
  opacity: 0.38;
}

.term-card--decorative::after {
  right: 18px;
  top: 18px;
  width: 72px;
  height: 72px;
  opacity: 0.2;
  border-radius: 50%;
}

.term-card--decorative:hover::before {
  opacity: 0.3;
}

.term-card--decorative:hover::after {
  opacity: 0.16;
}

.term-card--social::before {
  background:
    radial-gradient(circle at 64% 46%, rgba(202, 226, 197, 0.92) 0 18px, transparent 19px),
    radial-gradient(circle at 41% 66%, rgba(226, 236, 216, 0.9) 0 30px, transparent 31px),
    radial-gradient(circle at 76% 72%, rgba(245, 229, 184, 0.86) 0 23px, transparent 24px),
    radial-gradient(circle at 61% 77%, rgba(193, 222, 198, 0.9) 0 13px, transparent 14px);
}

.term-card--social::after {
  background: radial-gradient(circle, rgba(225, 238, 220, 0.95) 0 42%, transparent 43%);
}

.term-card--growth::before {
  background:
    radial-gradient(circle at 70% 72%, rgba(205, 228, 192, 0.92) 0 16px, transparent 17px),
    linear-gradient(18deg, transparent 40%, rgba(199, 224, 184, 0.88) 40% 45%, transparent 45%),
    linear-gradient(-20deg, transparent 51%, rgba(244, 231, 184, 0.86) 51% 57%, transparent 57%),
    radial-gradient(65px 92px at 86% 82%, rgba(210, 231, 198, 0.86) 0 30%, transparent 31%),
    radial-gradient(56px 96px at 72% 88%, rgba(246, 232, 185, 0.78) 0 24%, transparent 25%);
}

.term-card--growth::after {
  background: radial-gradient(circle, rgba(244, 231, 184, 0.92) 0 42%, transparent 43%);
}

.term-card--voice::before {
  background:
    radial-gradient(circle at 72% 28%, rgba(235, 223, 208, 0.82) 0 18px, transparent 19px),
    radial-gradient(circle at 79% 48%, rgba(212, 232, 207, 0.84) 0 23px, transparent 24px),
    linear-gradient(135deg, transparent 48%, rgba(235, 222, 207, 0.82) 48% 62%, transparent 62%),
    linear-gradient(45deg, transparent 56%, rgba(212, 232, 207, 0.84) 56% 69%, transparent 69%);
}

.term-card--voice::after {
  background: radial-gradient(circle, rgba(236, 223, 208, 0.92) 0 42%, transparent 43%);
}

.term-card--archive::before {
  background:
    linear-gradient(90deg, transparent 36%, rgba(214, 231, 210, 0.84) 36% 43%, transparent 43%),
    linear-gradient(90deg, transparent 52%, rgba(244, 231, 186, 0.84) 52% 58%, transparent 58%),
    linear-gradient(0deg, transparent 28%, rgba(210, 228, 205, 0.84) 28% 34%, transparent 34%),
    radial-gradient(circle at 77% 72%, rgba(236, 221, 192, 0.72) 0 26px, transparent 27px);
}

.term-card--archive::after {
  background: radial-gradient(circle, rgba(215, 231, 211, 0.92) 0 42%, transparent 43%);
}

.term-card--site::before {
  background:
    radial-gradient(circle at 69% 56%, rgba(212, 231, 205, 0.88) 0 21px, transparent 22px),
    radial-gradient(circle at 85% 73%, rgba(244, 230, 184, 0.78) 0 14px, transparent 15px),
    linear-gradient(135deg, transparent 45%, rgba(208, 228, 203, 0.84) 45% 50%, transparent 50%),
    linear-gradient(45deg, transparent 54%, rgba(244, 230, 184, 0.76) 54% 58%, transparent 58%);
}

.term-card--site::after {
  background: radial-gradient(circle, rgba(220, 234, 214, 0.92) 0 42%, transparent 43%);
}

.term-card__head,
.term-card__title,
.term-card__meta,
.term-card__count {
  position: relative;
  z-index: 1;
}

.term-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.term-card__title {
  margin: 0;
  color: #27402e;
  font-size: clamp(1.62rem, 2.1vw, 1.96rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 800;
  transition: color 0.22s ease;
}

.term-card__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(122, 155, 126, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #557d5c;
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(2px);
  box-shadow: none;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.term-card.is-empty .term-card__count {
  color: #6f8872;
}

.term-card--decorative:hover .term-card__title {
  color: #f7fbf7;
}

.term-card--decorative:hover .term-card__meta {
  color: rgba(241, 247, 241, 0.88);
}

.term-card--decorative:hover .term-card__count {
  border-color: rgba(246, 250, 246, 0.24);
  background: rgba(245, 249, 245, 0.16);
  color: #f7fbf7;
}

.term-card--decorative:focus-visible {
  outline: none;
  border-color: rgba(108, 141, 115, 0.58);
  box-shadow: 0 0 0 3px rgba(108, 141, 115, 0.14);
}

.term-card__meta {
  margin: 12px 0 0;
  color: #6f8371;
  font-size: 0.92rem;
  line-height: 1.75;
  transition: color 0.22s ease;
}

.term-card__list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.term-card__list a,
.term-card__list span {
  color: var(--text-soft);
  text-decoration: none;
  line-height: 1.6;
}

.empty-state {
  margin: 18px 0 0;
  color: var(--text-soft);
}

.search-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scope-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
}

/* article */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: start;
}


.article-main {
  padding: 30px;
}

.article-hero {
  margin-bottom: 26px;
}

.article-chip-row {
  margin-bottom: 14px;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: #7f907f;
  font-size: 0.92rem;
}

.article-hero__title {
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.article-hero__desc {
  margin: 16px 0 0;
  color: #2f6b47;
  font-size: 1rem;
  line-height: 1.9;
  font-family: "霞鹜文楷";
}

.article-content {
  font-size: 1rem;
  line-height: 1.95;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 1.8em;
  margin-bottom: 0.72em;
  text-indent: 0;
  line-height: 1.35;
  scroll-margin-top: 110px;
}

.article-content h1 {
  padding-left: 18px;
  border-left: 8px solid #2d7b67;
  color: #12251b;
  font-size: clamp(1.72rem, 2vw, 2.08rem);
  font-weight: 900;
}

.article-content h2 {
  display: inline-block;
  padding: 0.36em 0.9em;
  border-left: 6px solid #5e8f69;
  border-radius: 0 16px 16px 0;
  background: #eef6ee;
  color: #27412f;
  font-size: 1.42rem;
  font-weight: 850;
}

.article-content h3 {
  display: inline-block;
  padding: 0.34em 0.9em;
  border-radius: 14px;
  background: #edf5ea;
  color: #3f6b4d;
  font-size: 1.16rem;
  font-weight: 820;
}

.article-content h4 {
  display: inline-block;
  padding: 0.2em 0.72em;
  border-radius: 12px;
  background: #f5f8ef;
  color: #61765b;
  font-size: 1rem;
  font-weight: 780;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table {
  margin: 0 0 1.1em;
}

.article-content p {
  text-indent: 2em;
}

.article-content li,
.article-content blockquote p,
.article-content td p,
.article-content th p {
  text-indent: 0;
}

.article-content blockquote {
  margin-left: 0;
  padding: 0.9em 1em;
  border-left: 3px solid var(--line-mid);
  border-radius: 0 14px 14px 0;
  background: #f6faf6;
  color: var(--text-soft);
}

.article-content a {
  color: #4f845f;
  font-weight: 800;
  text-decoration: none;
  border-bottom: none;
}

.article-content a:hover {
  color: #2f6b47;
}

.article-content code {
  padding: 0.15em 0.4em;
  border-radius: 8px;
  background: #f1f6f1;
  font-size: 0.92em;
}

.article-content pre {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f1f6f1;
  overflow: auto;
}

.article-content pre code {
  padding: 0;
  background: transparent;
}

.text-highlight {
  display: inline;
  padding: 0.08em 0.32em;
  border-radius: 8px;
  background: #e6f2df;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
  position: static;
  top: auto;
  align-self: start;
}

.sidebar-card {
  padding: 20px;
  box-shadow: none;
}

.sidebar-card__title {
  margin: 0 0 12px;
  font-size: 1rem;
}

.toc-card {
  padding-top: 18px;
}

.toc-nav {
  font-size: 1rem;
  line-height: 1.7;
}

.toc-nav nav {
  display: block;
}

.toc-nav ul,
.toc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.toc-nav li {
  counter-increment: item;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.7rem;
  row-gap: 0.28rem;
  align-items: start;
  margin: 0;
}

.toc-nav li + li {
  margin-top: 12px;
}

.toc-nav li::before {
  content: counters(item, ".") ".";
  grid-column: 1;
  grid-row: 1;
  color: #1f2622;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.toc-nav li > a {
  grid-column: 2;
  grid-row: 1;
  display: inline-block;
  min-width: 0;
  color: #2f7e6b;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.6;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.toc-nav li > a:hover {
  color: #1e6455;
}

.toc-nav li > ul,
.toc-nav li > ol {
  grid-column: 2;
  grid-row: 2;
  margin-top: 2px;
  padding-left: 0;
}

/* 一级 */
.toc-nav > nav > ul > li::before,
.toc-nav > nav > ol > li::before,
.toc-nav > ul > li::before,
.toc-nav > ol > li::before {
  color: #1f2622;
  font-size: 1.02rem;
}

.toc-nav > nav > ul > li > a,
.toc-nav > nav > ol > li > a,
.toc-nav > ul > li > a,
.toc-nav > ol > li > a {
  color: #2b7c69;
  font-size: 1.08rem;
  font-weight: 800;
}

/* 二级 */
.toc-nav li li::before {
  color: #496e64;
  font-size: 0.98rem;
}

.toc-nav li li > a {
  color: #4f8f80;
  font-size: 1rem;
  font-weight: 700;
}

/* 三级 */
.toc-nav li li li::before {
  color: #73948b;
  font-size: 0.94rem;
}

.toc-nav li li li > a {
  color: #79a79b;
  font-size: 0.95rem;
  font-weight: 600;
}

/* 四级 */
.toc-nav li li li li::before {
  color: #98b4ac;
  font-size: 0.9rem;
}

.toc-nav li li li li > a {
  color: #9fbbb3;
  font-size: 0.9rem;
  font-weight: 600;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
  position: static;
  top: auto;
  align-self: start;
}

.sidebar-card {
  padding: 20px;
  box-shadow: none;
}

.sidebar-card__title {
  margin: 0 0 12px;
  font-size: 1rem;
}

.sidebar-meta {
  display: grid;
  gap: 12px;
}

.sidebar-meta__row {
  display: grid;
  gap: 6px;
}

.sidebar-meta__label {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.sidebar-meta__value,
.sidebar-meta__value a {
  line-height: 1.7;
}

.sidebar-meta__value--rich {
  color: var(--text-main);
  line-height: 1.8;
}

.sidebar-meta__value--rich p + p {
  margin-top: 0.45em;
}

.sidebar-meta__note {
  margin-top: -8px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(36, 102, 62, 0.72);
  font-family: "霞鹜文楷";
}

.sidebar-meta__link,
.sidebar-meta__link:visited,
.sidebar-meta__value a,
.sidebar-meta__value a:visited,
.article-hero__meta a,
.article-hero__meta a:visited {
  color: #2f6b47;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 107, 71, 0.28);
}

.sidebar-meta__link:hover,
.sidebar-meta__value a:hover,
.article-hero__meta a:hover {
  color: #1f5133;
  border-bottom-color: rgba(31, 81, 51, 0.5);
}

.sidebar-meta__value--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: block;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f3f8f3 100%);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.related-item:hover {
  transform: translateY(-2px);
  border-color: #cadcc9;
  box-shadow: 0 12px 26px rgba(87, 119, 93, 0.1);
  background: linear-gradient(180deg, #fcfefc 0%, #eef6ee 100%);
}

.related-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.related-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.related-item__date {
  color: #7f907f;
  font-size: 0.86rem;
  font-weight: 700;
}

.related-item__title {
  margin: 10px 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.related-item__summary {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comment-panel {
  margin-top: 24px;
  padding: 24px;
}

.mobile-toc {
  display: none;
}

.mobile-toc__overlay,
.mobile-toc__panel,
.mobile-toc__toggle,
.mobile-toc__close {
  display: none;
}

.mobile-toc__toggle {
  position: fixed;
  top: 46vh;
  right: 0;
  z-index: 90;
  width: 44px;
  height: 64px;
  padding: 0 0 0 8px;
  border: 1px solid rgba(118, 148, 123, 0.22);
  border-right: 0;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, rgba(238, 247, 238, 0.98) 0%, rgba(228, 242, 228, 0.98) 100%);
  color: #2f6b47;
  box-shadow: 0 10px 22px rgba(60, 86, 64, 0.12);
  cursor: pointer;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.mobile-toc__toggle:hover {
  transform: translateX(-2px);
  box-shadow: 0 14px 28px rgba(60, 86, 64, 0.16);
}

.mobile-toc__toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-toc__toggle-lines span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-toc__overlay {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(29, 40, 31, 0.06);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.mobile-toc__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  width: min(68vw, 280px);
  min-width: 188px;
  padding: 18px 14px 20px;
  border-left: 1px solid rgba(210, 226, 209, 0.88);
  border-radius: 24px 0 0 24px;
  background: rgba(250, 252, 249, 0.965);
  box-shadow: -18px 0 42px rgba(61, 86, 66, 0.11);
  overflow: auto;
  transform: translate3d(100%, 0, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0.3s ease;
  will-change: transform, opacity;
}

.mobile-toc.is-open .mobile-toc__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-toc.is-open .mobile-toc__panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-toc.is-open .mobile-toc__toggle {
  transform: translateX(-3px);
}

.mobile-toc__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-toc__eyebrow {
  margin: 0 0 4px;
  color: #859989;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.mobile-toc__title {
  margin: 0;
  font-size: 1.02rem;
}

.mobile-toc__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #385c42;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-toc__nav {
  padding-right: 2px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 88;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #dff0df 0%, #cfe9cf 100%);
  color: var(--accent-deep);
  box-shadow: 0 18px 34px rgba(91, 126, 95, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, box-shadow 0.22s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.back-to-top:hover {
  box-shadow: 0 22px 40px rgba(91, 126, 95, 0.24);
}

.back-to-top__icon {
  position: relative;
  width: 18px;
  height: 18px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}

/* footer */

.site-footer {
  margin-top: 28px;
  padding: 0 0 36px;
}

.footer-bar,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(240, 247, 240, 0.92);
  color: #445948;
  line-height: 1.75;
  box-shadow: var(--shadow-soft);
}

.footer-bar__about,
.footer-bar__group {
  display: flex;
  align-items: center;
  gap: 4px 6px;
  flex-wrap: wrap;
}

.footer-bar strong,
.site-footer__inner strong {
  color: var(--accent-deep);
  margin-right: 2px;
}

.footer-bar__group a,
.site-footer__inner a {
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: none;
}

.footer-bar__group a:hover,
.site-footer__inner a:hover {
  text-decoration: underline;
}

.site-footer__inner p {
  margin: 0;
}

/* pagination */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.pagination .active span {
  border-color: #c8dbc7;
  background: #edf6ed;
  color: var(--accent-deep);
  font-weight: 800;
}


@media (min-width: 1101px) {
  .sidebar-stack {
    position: sticky;
    top: 18px;
    align-self: start;
    max-height: calc(100dvh - 36px);
    overflow-y: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sidebar-stack.is-scroll-active,
  .sidebar-stack:hover,
  .sidebar-stack:focus-within {
    overflow-y: auto;
  }

  .sidebar-stack::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}

/* responsive */

@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
    top: auto;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-search {
    width: 100%;
  }

  .home-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .archive-grid,
  .term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .term-grid--decorative {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-hero__line {
    font-size: clamp(2.6rem, 7.6vw, 4.8rem);
  }
}


@media (max-width: 720px) {
  .shell,
  .container {
    width: min(100vw - 28px, 100%);
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  
  .site-nav__link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.84rem;
    flex: 0 0 auto;
  }

  .site-header {
    padding-top: 18px;
  }

  .home-content {
    margin-top: 100svh;
  }

  body.home-hero-dismissed .home-content {
    margin-top: 0;
  }

  .home-hero {
    padding: 6vh 22px;
  }

  .home-hero__line {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
    line-height: 1.18;
  }

  .site-header__inner,
  .section-card,
  .archive-panel,
  .article-main,
  .sidebar-card,
  .comment-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-heading__row,
  .news-row__meta,
  .footer-bar,
  .footer-bar__about,
  .footer-bar__group,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .latest-grid,
  .archive-grid,
  .term-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .article-column,
  .sidebar-stack {
    display: contents;
  }

  .article-main {
    order: 1;
  }

  .toc-card {
    display: none;
  }

  .article-info-card {
    order: 2;
  }

  .comment-panel {
    order: 3;
    margin-top: 0;
  }

  .related-card {
    order: 4;
  }

  .mobile-toc {
    display: block;
  }

  .mobile-toc__overlay,
  .mobile-toc__panel,
  .mobile-toc__toggle {
    display: block;
  }

  .mobile-toc__close {
    display: inline-flex;
  }

  body.mobile-toc-open {
    overflow: hidden;
  }

  .news-row {
    grid-template-columns: 72px 20px minmax(0, 1fr);
    gap: 12px;
  }

  .news-row__date {
    padding-top: 18px;
  }

  .news-row__content {
    padding: 18px;
  }

  .home-actions {
    justify-content: flex-start;
  }

  .news-card--stacked {
    grid-template-columns: 50px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .mobile-toc__panel {
    width: min(68vw, 252px);
    min-width: 176px;
    border-radius: 22px 0 0 22px;
    padding: 16px 12px 18px;
  }

  .mobile-toc__toggle {
    top: auto;
    bottom: 96px;
    width: 40px;
    height: 58px;
    padding-left: 7px;
    border-radius: 18px 0 0 18px;
  }

  .mobile-toc__toggle-lines {
    gap: 4px;
  }

  .mobile-toc__toggle-lines span {
    width: 14px;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .news-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-row__date {
    padding-top: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .news-row__timeline {
    display: none;
  }

  .news-row__content {
    padding: 16px;
    border-radius: 20px;
  }

  .archive-panel--terms {
    padding: 0;
  }

  .term-grid--decorative {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .term-card--decorative {
    min-height: 142px;
    padding: 20px 18px;
    border-radius: 22px;
  }

  .term-card--decorative::before {
    width: 136px;
    height: 136px;
    right: -14px;
    bottom: -16px;
  }

  .term-card__title {
    font-size: 1.42rem;
  }

  .term-card__count {
    min-width: 64px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.9rem;
  }
}

.site-footer {
  margin-top: 28px;
  padding: 0 0 28px;
}

.site-footer__wrap {
  position: relative;
}

.site-footer__rss {
  position: absolute;
  right: 4px;
  bottom: -18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7d8d7e;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.62;
  transition:
    opacity 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.site-footer__rss svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.site-footer__rss:hover {
  color: var(--accent-deep);
  opacity: 0.95;
  text-decoration: none;
  transform: translateY(-1px);
}

.site-footer__rss span {
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .site-footer__wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .site-footer__rss {
    position: static;
    align-self: flex-end;
    margin-right: 2px;
  }
}