:root {
  --bg: #f7f7f5;
  --fg: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #c0392b;
  --card: #ffffff;
  --border: #e5e3df;
  --code-bg: #f0efe9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

header.site-header .site-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header.site-header .site-title a { color: var(--fg); text-decoration: none; }

header.site-header .site-desc {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

nav.site-nav { margin-top: 16px; font-size: 14px; }
nav.site-nav a { margin-right: 20px; color: var(--muted); }
nav.site-nav a:hover { color: var(--accent); text-decoration: none; }

.post-list .post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 20px;
}

.post .post-title { font-size: 20px; font-weight: 600; }
.post .post-title a { color: var(--fg); }
.post .post-title a:hover { color: var(--accent); text-decoration: none; }

.post .post-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.post .post-excerpt {
  margin-top: 12px;
  font-size: 15px;
  color: #444;
}

article.post-full { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 34px 38px; }
article.post-full h1 { font-size: 26px; margin-bottom: 8px; }
article.post-full .post-meta { font-size: 13px; color: var(--muted); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
article.post-full h2 { font-size: 21px; margin: 26px 0 12px; }
article.post-full h3 { font-size: 18px; margin: 20px 0 10px; }
article.post-full p { margin-bottom: 16px; }
article.post-full ul, article.post-full ol { margin: 0 0 16px 24px; }
article.post-full li { margin-bottom: 6px; }
article.post-full blockquote {
  border-left: 3px solid var(--accent);
  background: #faf6f2;
  padding: 10px 16px;
  margin: 16px 0;
  color: #555;
  border-radius: 0 4px 4px 0;
}
article.post-full code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
article.post-full pre {
  background: #2d2d2d;
  color: #eee;
  padding: 16px 18px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
}
article.post-full pre code { background: transparent; color: inherit; }

.page { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 34px 38px; }
.page h1 { font-size: 26px; margin-bottom: 20px; }

footer.site-footer {
  margin-top: 48px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  article.post-full, .page { padding: 22px 18px; }
  .post-list .post { padding: 18px 18px; }
  header.site-header { padding-top: 32px; }
}
