:root {
  --bg: #f7f5f2;
  --fg: #2d2d2d;
  --accent: #8a5a44;
  --muted: #8a8a8a;
  --card: #ffffff;
  --border: #e8e2da;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.8;
}
.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.3rem; font-weight: 700; color: var(--accent);
  text-decoration: none; letter-spacing: 2px;
}
nav a {
  color: var(--fg); text-decoration: none; margin-left: 20px;
  font-size: .95rem;
}
nav a:hover, nav a.active { color: var(--accent); }
nav a.active { font-weight: 600; }
main { padding: 40px 0 60px; }
.page-title { font-size: 1.8rem; margin-bottom: 28px; letter-spacing: 1px; }
.post-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: box-shadow .2s;
}
.post-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.post-item h2 { font-size: 1.15rem; }
.post-item h2 a { color: var(--fg); text-decoration: none; }
.post-item h2 a:hover { color: var(--accent); }
.post-item time { color: var(--muted); font-size: .85rem; }
.post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 40px;
}
.post h1 { font-size: 1.6rem; margin-bottom: 8px; }
.post-date { color: var(--muted); font-size: .9rem; }
.content { margin-top: 24px; }
.content h2 { font-size: 1.3rem; margin: 24px 0 12px; }
.content h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.content p { margin-bottom: 14px; }
.content code {
  background: #f0ece6; padding: 2px 6px; border-radius: 4px;
  font-family: Consolas, monospace; font-size: .9em;
}
.content pre {
  background: #2d2d2d; color: #e8e8e8; padding: 16px; border-radius: 6px;
  overflow-x: auto; margin: 14px 0;
}
.content pre code { background: none; padding: 0; color: inherit; }
.content a { color: var(--accent); }
.content blockquote {
  border-left: 4px solid var(--accent); padding-left: 14px;
  color: var(--muted); margin: 14px 0;
}
.content ul, .content ol { margin: 0 0 14px 24px; }
.content img { max-width: 100%; border-radius: 6px; }
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0; color: var(--muted);
  font-size: .85rem; text-align: center;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer > .container > div { margin-bottom: 4px; }
.site-footer > .container > div:last-child { margin-bottom: 0; }
