:root {
  color-scheme: light;
  --text: #252c36;
  --muted: #626d7b;
  --link: #155e9c;
  --border: #dce2e8;
  --soft: #f5f7fa;
}
* { box-sizing: border-box; }
html { background: #fff; }
body {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 28px;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.site-header { padding: 36px 0 24px; border-bottom: 1px solid var(--border); }
.site-title { font-size: 1.9rem; font-weight: 700; text-decoration: none; color: var(--text); }
.site-description { margin: 4px 0 16px; color: var(--muted); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-header nav a { text-decoration: none; }
main { min-height: 50vh; padding: 28px 0 40px; }
h1, h2, h3, h4 { line-height: 1.45; }
h1 { margin: 0 0 24px; font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }
.post-preview { padding: 24px 0; border-bottom: 1px solid var(--border); }
.post-preview:first-of-type { padding-top: 0; }
.post-preview h2 { margin: 0 0 8px; }
.post-preview h2 a { color: var(--text); text-decoration: none; }
.post-preview h2 a:hover { color: var(--link); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 0.875rem; }
.post header h1 { margin-bottom: 12px; }
.post-content { margin-top: 30px; }
.post-content h2, .post-content h3 { margin-top: 1.8em; }
.post-content p { margin: 1em 0; }
.post-content img, .post-content video, .post-content iframe { max-width: 100%; }
.post-content img, .post-content video { height: auto; }
.post-content figure { margin: 1.5em 0; }
.post-content figcaption { color: var(--muted); font-size: 0.9rem; }
.post-content blockquote { margin: 1.5em 0; padding: 2px 20px; border-left: 3px solid var(--border); color: var(--muted); }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.9em; }
code { background: var(--soft); padding: 0.15em 0.3em; border-radius: 3px; }
pre { max-width: 100%; overflow-x: auto; padding: 16px; background: var(--soft); border-radius: 4px; line-height: 1.65; overflow-wrap: normal; tab-size: 4; }
pre code { padding: 0; background: transparent; border-radius: 0; font-size: inherit; }
.highlight { max-width: 100%; overflow-x: auto; }
.post-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.post-content th, .post-content td { padding: 8px 12px; border: 1px solid var(--border); }
.post-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--border); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 32px; }
.term-list { list-style: none; margin: 0; padding: 0; }
.term-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.count { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.archive-year { margin-top: 28px; }
.archive-list { padding: 0; list-style: none; }
.archive-list li { display: flex; gap: 20px; margin: 10px 0; }
.archive-list time { flex: 0 0 3.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
@media (max-width: 600px) {
  body { padding: 0 18px; font-size: 16px; }
  .site-header { padding-top: 24px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
  .site-header nav { gap: 8px 18px; }
  main { padding-top: 24px; }
  .post-meta { gap: 4px 12px; }
  pre { padding: 12px; }
  .archive-list li { gap: 12px; }
}
