:root {
  --bg: #0f1117;
  --fg: #e6e6e6;
  --muted: #9aa0aa;
  --accent: #4f8cff;
  --card: #171a22;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #232733;
  background: #12141c;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--fg); }
.site-header nav a { margin-left: 18px; color: var(--muted); }
.site-header nav a:hover { color: var(--fg); }

main { max-width: 820px; margin: 0 auto; padding: 40px 24px 64px; }

.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 { font-size: 2.4rem; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.1rem; }

.posts h2, .archive h1 { border-left: 3px solid var(--accent); padding-left: 12px; }

.post-list { list-style: none; padding: 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border-radius: 10px;
}
.post-list time { color: var(--muted); font-size: 0.85rem; }

.post h1 { font-size: 2rem; margin-bottom: 4px; }
.post-date { color: var(--muted); display: block; margin-bottom: 24px; }
.content { font-size: 1.05rem; }
.content img { max-width: 100%; border-radius: 8px; }
.content pre { background: #0b0d12; padding: 16px; border-radius: 8px; overflow: auto; }
.content code { background: #0b0d12; padding: 2px 6px; border-radius: 4px; }

footer { text-align: center; color: var(--muted); padding: 32px 16px; font-size: 0.85rem; border-top: 1px solid #232733; }
