:root {
  --fg: #1a1a1a;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
  --bg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #e5e7eb; --muted: #9ca3af; --accent: #60a5fa; --border: #2a2f3a; --bg: #0f1117; }
}
* { box-sizing: border-box; }
body {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 4rem;
  font: 16px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.site-title { font-size: 1.3rem; font-weight: 700; color: var(--fg); }
.rss-link { font-size: .85rem; padding: .15rem .5rem; border: 1px solid var(--accent); border-radius: 5px; }

.intro { color: var(--muted); margin-bottom: 1.5rem; }
.post-list { list-style: none; padding: 0; }
.post-list li { display: flex; gap: .9rem; padding: .45rem 0; align-items: baseline; }
.post-date { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; white-space: nowrap; }
.post-link { font-size: 1.05rem; }

.list-title { font-size: 1.5rem; margin: 0 0 1rem; }
.post h1 { font-size: 1.7rem; line-height: 1.3; margin: 0 0 .4rem; }
.post-meta { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.tag { font-size: .8rem; color: var(--muted); }
.post-content h2 { font-size: 1.25rem; margin-top: 2rem; border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
.post-content h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.post-content blockquote { margin: 1rem 0; padding: .2rem 1rem; border-left: 3px solid var(--border); color: var(--muted); }
.post-content code { background: rgba(127,127,127,.15); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
.post-content pre { background: rgba(127,127,127,.12); padding: 1rem; border-radius: 8px; overflow-x: auto; }
.post-content pre code { background: none; padding: 0; }
.post-nav { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.site-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
