:root {
  color-scheme: light;
  --paper: #fcfbf8;
  --surface: #fffefb;
  --ink: #202832;
  --muted: #747e89;
  --line: #dedfdd;
  --blue: #087dc1;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
a:hover { color: var(--blue); }
::selection { background: #dbeaf1; color: var(--ink); }
.skip-link { position: absolute; left: 20px; top: -90px; z-index: 2; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 16px; }
.home-shell { width: min(100% - 80px, 1280px); margin-inline: auto; }
.home-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; font-size: 14px; }
.eyebrow { font-size: 12px; letter-spacing: .19em; color: var(--muted); }
.masthead { padding-block: 12px 20px; border-bottom: 1px solid var(--line); }
.masthead h1 { margin: 0 0 8px -3px; font-family: var(--serif); font-size: clamp(48px, 6vw, 72px); font-weight: 600; line-height: 1.05; letter-spacing: -.067em; }
.masthead p { margin: 0; font-size: 16px; letter-spacing: .17em; color: var(--muted); font-weight: 500; }
.articles-section { padding-top: 30px; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-header h2 { margin: 0; font-family: "Songti SC", "SimSun", serif; font-size: 30px; font-weight: 600; }
.section-header > span { color: var(--muted); font-size: 14px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 244px; padding: 24px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: border-color .16s ease, box-shadow .16s ease; }
.article-card:hover { border-color: #b9cbd5; box-shadow: 0 4px 18px #20283206; }
.article-card h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.card-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 18px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; }
.article-count { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.article-count svg { flex: none; }
.read-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-block: 4px; color: var(--blue); font-size: 15px; }
.read-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 54px; padding-block: 18px 28px; color: var(--muted); font-size: 13px; }
.reading-shell { width: min(100% - 112px, 1280px); margin-inline: auto; }
.reading-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.back-link { color: #4b627d; font-size: 16px; line-height: 1.7; }
.back-link span { color: var(--blue); margin-right: 4px; }
.reading-main { width: min(100%, 880px); margin-inline: auto; padding-top: 68px; }
.article-header { padding-bottom: 38px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.article-header h1 { margin: 0; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: clamp(36px, 4.8vw, 64px); font-weight: 700; line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; }
.prose { font-size: 18px; line-height: 1.95; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose h2 { margin: 1.7em 0 .65em; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 29px; line-height: 1.55; font-weight: 700; }
.prose h3 { font-size: 22px; margin: 1.5em 0 .6em; line-height: 1.6; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.5em; margin-block: .7em 1.4em; }
.prose li { margin-block: .35em; }
.prose blockquote { margin-inline: 0; padding-left: 1em; border-left: 2px solid var(--line); color: #54606e; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .86em; background: #efeeea; padding: .1em .3em; border-radius: 3px; }
.prose pre { overflow-x: auto; padding: 18px; border-radius: 6px; background: #efeeea; }
.prose pre code { padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.5em; font-size: .9em; table-layout: fixed; }
.prose th, .prose td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.prose th { font-weight: 600; background: #f3f2ee; }
.prose img { display: block; max-width: 100%; height: auto; }
.copyright-notice { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.article-bottom-nav { margin-top: 28px; }
.reading-shell > .site-footer { margin-top: 64px; }
.not-found { max-width: 880px; padding-block: 100px; margin-inline: auto; }
.not-found h1 { font-family: "Songti SC", serif; font-size: 42px; }
.not-found > p:not(.eyebrow) { color: var(--muted); margin-bottom: 30px; }
@media (max-width: 959px) {
  .home-shell { width: calc(100% - 56px); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card { padding: 22px; }
  .reading-shell { width: calc(100% - 64px); }
  .reading-main { padding-top: 48px; }
}
@media (max-width: 639px) {
  .home-shell, .reading-shell { width: calc(100% - 40px); }
  .home-nav { padding-block: 22px; }
  .eyebrow { font-size: 10px; letter-spacing: .13em; }
  .masthead { padding-block: 12px 18px; }
  .masthead h1 { margin-left: -2px; font-size: clamp(40px, 10vw, 56px); letter-spacing: -.07em; }
  .masthead p { font-size: 14px; margin-top: 8px; }
  .articles-section { padding-top: 26px; }
  .section-header h2 { font-size: 25px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .article-card { min-height: 220px; padding: 22px; }
  .article-card h2 { font-size: 19px; }
  .card-summary { margin-top: 15px; }
  .reading-nav { min-height: 80px; gap: 12px; }
  .wordmark { font-size: 26px; }
  .back-link { font-size: 14px; }
  .reading-main { padding-top: 38px; }
  .article-header { padding-bottom: 28px; margin-bottom: 28px; }
  .article-header h1 { font-size: 36px; line-height: 1.5; }
  .prose { font-size: 17px; line-height: 1.95; }
  .prose h2 { font-size: 25px; }
  .prose h3 { font-size: 21px; }
  .prose th, .prose td { padding: 8px 6px; }
  .site-footer { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
