:root {
  --bg: #faf8f5; --surface: #ffffff; --text: #2c2c2c; --muted: #6e6a63;
  --border: #e8e3da; --accent: #2f5d62; --accent-soft: #e6f0f0; --tag-bg: #f1ede6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151716; --surface: #1d201e; --text: #e6e2da; --muted: #9a958b;
    --border: #2c312e; --accent: #7fb3b8; --accent-soft: #223031; --tag-bg: #252927;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.8; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
header { border-bottom: 1px solid var(--border); padding: 2rem 0 1.35rem; margin-bottom: 2rem; }
.site-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; }
.brand { font-size: 1.45rem; font-weight: 600; color: var(--text); }
.subtitle { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
nav { display: flex; gap: 1.3rem; font-size: .95rem; }
nav a { color: var(--muted); }
nav a.active, nav a:hover { color: var(--text); font-weight: 500; text-decoration: none; }
.post-list { display: flex; flex-direction: column; gap: 1.25rem; }
.post-card, article { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.6rem; }
.post-card h2 { margin: 0 0 .45rem; font-size: 1.18rem; }
.post-card h2 a { color: var(--text); }
.meta { display: flex; flex-wrap: wrap; gap: .55rem; font-size: .84rem; color: var(--muted); margin-bottom: .65rem; }
.tag { background: var(--tag-bg); color: var(--muted); padding: .08rem .55rem; border-radius: 999px; font-size: .77rem; }
.tag.tech { background: var(--accent-soft); color: var(--accent); }
.excerpt { margin: 0; color: var(--muted); font-size: .95rem; }
footer { margin: 3rem 0 2.4rem; padding-top: 1.35rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
