:root {
  color-scheme: light;
  --article-green: #175d3b;
  --article-green-deep: #0f422a;
  --article-ink: #202820;
  --article-muted: #667168;
  --article-line: #dfe7e1;
  --article-paper: #fff;
  --article-wash: #f4f8f5;
  --article-nav-glass: rgba(244, 248, 245, 0.66);
  --article-nav-border: rgba(23, 93, 59, 0.14);
  --article-nav-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.article-page {
  margin: 0;
  overflow-x: hidden;
  color: var(--article-ink);
  background: var(--article-paper);
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.article-page ::selection { color: #fff; background: var(--article-green); }

.article-page a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.article-page a:focus-visible {
  outline: 3px solid #78b897;
  outline-offset: 4px;
  border-radius: 4px;
}

.article-shell { width: 100%; }

.article-site-header {
  position: fixed;
  z-index: 1400;
  top: 0;
  left: 50%;
  display: grid;
  width: 100%;
  min-height: 5.25rem;
  grid-template-columns: auto 1fr;
  padding: 0 max(2rem, calc((100% - 80rem) / 2));
  align-items: center;
  border: 1px solid transparent;
  background: transparent;
  transform: translateX(-50%);
  transition: top 320ms var(--article-nav-ease), width 320ms var(--article-nav-ease), min-height 320ms var(--article-nav-ease), padding 320ms var(--article-nav-ease), border-radius 320ms var(--article-nav-ease), background-color 220ms ease, border-color 220ms ease, box-shadow 320ms var(--article-nav-ease), backdrop-filter 220ms ease;
}

.article-site-header[data-scrolled="true"] {
  top: 0.72rem;
  width: min(80rem, calc(100% - 2rem));
  min-height: 4.15rem;
  padding-inline: 1rem;
  border-color: var(--article-nav-border);
  border-radius: 1.35rem;
  background: var(--article-nav-glass);
  box-shadow: 0 1rem 3rem rgba(10, 28, 18, 0.14), inset 0 1px rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(1.55rem) saturate(165%);
  backdrop-filter: blur(1.55rem) saturate(165%);
}

.article-page .article-wordmark {
  display: inline-flex;
  width: max-content;
  align-items: center;
  color: var(--article-ink);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-size: 1.52rem;
  font-weight: 780;
  letter-spacing: -0.07em;
  text-decoration: none;
}

.article-nav-desktop {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.25rem);
}

.article-site-header nav a {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0 0.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--article-ink);
  font-size: 0.86rem;
  font-weight: 620;
  text-decoration: none;
  transition: color 180ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 260ms ease, transform 260ms var(--article-nav-ease);
}

.article-site-header nav a:hover,
.article-site-header nav a:focus-visible,
.article-site-header nav a[aria-current="page"] {
  color: var(--article-green);
}

.article-site-header nav a[aria-current="page"] { font-weight: 740; }

.article-nav-desktop > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.42rem;
  left: 0;
  height: 1px;
  background: #d8be6a;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--article-nav-ease);
}

.article-nav-desktop > a:hover::after,
.article-nav-desktop > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.article-nav-desktop > a[aria-current="page"]::after {
  height: 3px;
  background: var(--article-green);
  transform: scaleX(1);
}

.article-site-header[data-scrolled="true"] .article-nav-desktop > a:hover,
.article-site-header[data-scrolled="true"] .article-nav-desktop > a:focus-visible {
  border-color: color-mix(in srgb, var(--article-ink) 16%, transparent);
  background: color-mix(in srgb, #fbfdfb 70%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.38), 0 0.42rem 1rem rgba(18, 54, 34, 0.08);
  color: var(--article-ink);
  transform: translateY(-0.08rem);
}

.article-site-header[data-scrolled="true"] .article-nav-desktop > a::after {
  display: none;
}

.article-site-header[data-scrolled="true"] .article-nav-desktop > a[aria-current="page"] {
  border-color: rgba(23, 93, 59, 0.22);
  background: rgba(23, 93, 59, 0.12);
  color: var(--article-green-deep);
}

.article-nav-mobile { display: none; }

.article-document { width: min(100%, 820px); margin: 0 auto; }

.article-heading {
  width: min(100% - 64px, 720px);
  margin: 148px auto 46px;
}

.article-heading-category {
  margin: 0 0 12px;
  color: var(--article-green);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.article-heading h1 {
  margin: 0;
  color: #152019;
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.32;
  overflow-wrap: anywhere;
  word-break: auto-phrase;
  text-wrap: balance;
}

.article-byline {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--article-muted);
  font-size: 14px;
}

.article-byline .article-author { color: var(--article-green); font-weight: 650; }

.article-content {
  width: min(100% - 64px, 720px);
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.article-content img {
  display: inline-block;
  max-width: 100% !important;
  height: auto !important;
}

.article-content svg { max-width: none; }

.article-content .article-block-enter { animation: article-block-arrive 620ms cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes article-block-arrive {
  from { opacity: .12; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

.article-source {
  width: min(100% - 64px, 720px);
  margin: 72px auto 64px;
  padding: 24px 0 0;
  border-top: 1px solid var(--article-line);
  color: var(--article-muted);
  font-size: 14px;
  line-height: 1.8;
}

.article-source a { color: var(--article-green); font-weight: 650; }

.article-index-page .article-shell { display: flex; flex-direction: column; min-height: 100svh; }
.article-site-footer { width: 100%; margin-top: auto; padding-block: 2.3rem; color: rgba(232, 243, 235, 0.68); background: #0a1510; }
.article-footer-layout { width: min(1120px, calc(100% - 64px)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.article-site-footer a { text-decoration: none; }
.article-site-footer .article-footer-wordmark { display: inline-flex; align-items: center; min-height: 44px; width: max-content; color: #e8f3eb; font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif; font-size: 1.15rem; font-weight: 780; letter-spacing: -0.07em; }
.article-site-footer p { margin: 0; font-family: "Songti SC", serif; font-size: 0.86rem; }
.article-footer-meta { display: flex; justify-self: end; gap: 1.2rem; align-items: center; }
.article-footer-meta a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(232, 243, 235, 0.62); font-size: 0.72rem; }
.article-footer-meta a:hover { color: #fff; }

.article-navigation-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.article-index { width: min(100% - 64px, 1120px); margin: 116px auto 48px; }
.article-index h1 { margin: 0; color: var(--article-green-deep); font-size: 20px; font-weight: 650; line-height: 1.4; }
.article-list-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.article-list-heading > span { flex-shrink: 0; padding-top: 5px; color: var(--article-muted); font-size: 12px; }
.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li + li { margin-top: 16px; }
.article-list li.article-card-enter { animation: article-card-arrive 650ms cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes article-card-arrive {
  from { opacity: 0; filter: blur(8px); transform: translateY(22px) scale(.985); }
  to { opacity: 1; filter: none; transform: none; }
}
.article-preview { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px; text-decoration: none; border: 1px solid #e3ece6; border-radius: 14px; background: #f4f8f5; transition: background-color 220ms ease, border-color 220ms ease; }
.article-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.article-pagination a, .article-pagination span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 10px; color: var(--article-green-deep); font-size: 13px; text-decoration: none; }
.article-pagination a { transition: background-color 180ms ease, color 180ms ease; }
.article-pagination a:hover, .article-pagination a:focus-visible { background: #e8f1eb; }
.article-pagination a:focus-visible { outline: 2px solid var(--article-green); outline-offset: 2px; }
.article-pagination a[aria-current="page"] { background: var(--article-green-deep); color: white; font-weight: 700; }
.article-pagination span[aria-disabled="true"] { color: var(--article-muted); opacity: .55; }
.article-page-numbers { display: flex; align-items: center; gap: 4px; }
.article-preview-image { position: relative; overflow: hidden; min-width: 0; min-height: 133px; border-radius: 8px; align-self: stretch; }
.article-preview-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 700ms var(--article-nav-ease); }
.article-preview-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.article-preview-meta { width: 100%; justify-content: space-between; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12px; }
.article-list-category { color: var(--article-green); font-weight: 650; }
.article-preview time { color: var(--article-muted); font-variant-numeric: tabular-nums; }
.article-preview h2 { margin: 10px 0 8px; font-size: 20px; line-height: 1.5; font-weight: 650; text-wrap: pretty; }
.article-preview-copy > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--article-muted); font-size: 13px; line-height: 1.8; }
.article-preview-action { display: inline-flex; align-items: center; gap: 12px; align-self: flex-end; margin-top: auto; padding-top: 12px; color: var(--article-green); font-size: 12px; font-weight: 650; }
.article-preview-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 320ms var(--article-nav-ease); }
@media (hover: hover) {
  .article-preview:hover { background: #edf5ef; border-color: #bad0c1; }
  .article-preview:hover .article-preview-image img { transform: scale(1.035); }
  .article-preview:hover .article-preview-action svg { transform: translateX(5px); }
}
.article-preview:focus-visible { outline-offset: 6px; }
.article-nav-mobile > summary:focus-visible { outline: 3px solid #78b897; outline-offset: 4px; }
html { scrollbar-color: #9aafa0 #f4f8f5; }

@media (max-width: 980px) {
  .article-site-header { padding-inline: 1.25rem; }
  .article-nav-desktop { display: none; }

  .article-nav-mobile {
    position: relative;
    display: block;
    justify-self: end;
  }

  .article-nav-mobile > summary {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    place-items: center;
    border: 1px solid var(--article-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    color: var(--article-ink);
    cursor: pointer;
    list-style: none;
    transition: transform 160ms var(--article-nav-ease), border-color 200ms ease, background-color 200ms ease;
  }

  .article-nav-mobile > summary::-webkit-details-marker { display: none; }

  .article-nav-mobile > summary:hover,
  .article-nav-mobile > summary:focus-visible {
    border-color: var(--article-green);
    background: #fff;
  }

  .article-nav-mobile > summary:active { transform: scale(0.94); }

  .article-menu-icon { position: relative; width: 1rem; height: 0.8rem; }

  .article-menu-icon i {
    position: absolute;
    left: 0;
    width: 1rem;
    height: 1px;
    background: currentColor;
    transition: top 200ms var(--article-nav-ease), transform 200ms var(--article-nav-ease);
  }

  .article-menu-icon i:first-child { top: 0.2rem; }
  .article-menu-icon i:last-child { top: 0.62rem; }
  .article-nav-mobile[open] .article-menu-icon i:first-child { top: 0.42rem; transform: rotate(45deg); }
  .article-nav-mobile[open] .article-menu-icon i:last-child { top: 0.42rem; transform: rotate(-45deg); }

  .article-nav-mobile nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    display: grid;
    width: min(20rem, calc(100vw - 2.5rem));
    padding: 0.7rem;
    gap: 0.2rem;
    border: 1px solid rgba(230, 242, 233, 0.16);
    border-radius: 1.25rem;
    background: rgba(12, 29, 20, 0.94);
    box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(1.5rem) saturate(140%);
    backdrop-filter: blur(1.5rem) saturate(140%);
  }

  .article-nav-mobile nav a {
    min-height: 3rem;
    justify-content: flex-start;
    padding: 0 0.85rem;
    border-radius: 0.75rem;
    color: rgba(235, 246, 238, 0.78);
  }

  .article-nav-mobile nav a:hover,
  .article-nav-mobile nav a:focus-visible,
  .article-nav-mobile nav a[aria-current="page"] {
    border-color: transparent;
    background: transparent;
    color: #a9dfbd;
    box-shadow: none;
    transform: none;
  }

  .article-nav-mobile nav a[aria-current="page"] {
    border-color: rgba(169, 223, 189, 0.24);
    background: rgba(169, 223, 189, 0.16);
    color: #f2fff5;
  }
}

@media (max-width: 600px) {
  .article-site-header { min-height: 4.25rem; padding-inline: 1.25rem; }
  .article-site-header[data-scrolled="true"] { top: 0.45rem; width: calc(100% - 1rem); min-height: 3.9rem; padding-inline: 0.75rem; border-radius: 1.15rem; }
  .article-page .article-wordmark { min-height: 2.75rem; font-size: 1.18rem; }
  .article-nav-mobile nav { width: min(16.5rem, calc(100vw - 2rem)); padding: 0.55rem; border-radius: 1rem; }
  .article-heading { width: calc(100% - 40px); margin: 112px auto 32px; }
  .article-heading h1 { font-size: 24px; line-height: 1.4; }
  .article-byline { column-gap: 10px; }
  .article-content { width: 100%; }
  .article-content > div:first-child { padding-right: 20px !important; padding-left: 20px !important; }
  .article-source { width: calc(100% - 40px); margin: 56px auto 44px; }
  .article-site-footer { padding: 24px 0; }
  .article-footer-layout { width: calc(100% - 40px); grid-template-columns: 1fr auto; gap: 12px; }
  .article-footer-meta { grid-column: 1 / -1; width: 100%; justify-content: space-between; justify-self: start; flex-wrap: wrap; gap: 8px 16px; }
  .article-index { width: calc(100% - 40px); margin-top: 96px; }
  .article-index h1 { font-size: 18px; }
  .article-preview { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .article-preview-image { min-height: 0; aspect-ratio: 3 / 2; align-self: center; }
  .article-preview-image img { object-fit: contain; }
  .article-preview-meta { gap: 4px 10px; font-size: 11px; }
  .article-preview h2 { font-size: 16px; margin: 8px 0; line-height: 1.55; }
  .article-preview-copy > p { font-size: 12px; }
  .article-preview-action { display: inline-flex; }
  .article-pagination { gap: 4px; margin-top: 24px; }
  .article-pagination a, .article-pagination span { padding-inline: 8px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .article-list li.article-card-enter { animation: article-card-fade 180ms ease-out backwards; }
  .article-content .article-block-enter { animation: article-card-fade 180ms ease-out backwards; }
  @keyframes article-card-fade { from { opacity: .5; } to { opacity: 1; } }
  .article-preview *,
  .article-site-header,
  .article-site-header *,
  .article-content animate,
  .article-content animatetransform { transition: none; }
  .article-content animate,
  .article-content animatetransform { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .article-site-header[data-scrolled="true"] { background: var(--article-wash); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .article-nav-mobile nav { background: var(--article-green-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
