:root {
  --text: #2c2c2c;
  --text-light: #666;
  --bg: #fafafa;
  --accent: #333;
  --border: #e0e0e0;
  --max-width: 680px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  padding: 0 20px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 0 60px;
}

.site-nav {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 40px;
}

.site-nav .site-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.site-nav .site-title:hover { opacity: 0.7; }

.site-nav .nav-links {
  margin-top: 8px;
  font-size: 0.9em;
}

.site-nav .nav-links a {
  color: var(--text-light);
  text-decoration: none;
  margin-right: 16px;
}

.site-nav .nav-links a:hover { color: var(--accent); }

.post-list { list-style: none; }

.post-list li {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child { border-bottom: none; }

.post-list .post-date {
  font-size: 0.85em;
  color: var(--text-light);
}

.post-list .post-title {
  font-size: 1.1em;
  font-weight: 600;
}

.post-list .post-title a {
  color: var(--text);
  text-decoration: none;
}

.post-list .post-title a:hover { color: var(--accent); text-decoration: underline; }

.post-list .post-desc {
  font-size: 0.9em;
  color: var(--text-light);
  margin-top: 4px;
}

.pagination {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9em;
  color: var(--text-light);
}

.pagination a {
  color: var(--text);
  text-decoration: none;
  padding: 4px 12px;
}

.pagination a:hover { text-decoration: underline; }

.post-header { margin-bottom: 32px; }

.post-header h1 {
  font-size: 1.6em;
  line-height: 1.4;
  font-weight: 700;
}

.post-header .post-meta {
  font-size: 0.85em;
  color: var(--text-light);
  margin-top: 8px;
}

.post-content h2 {
  font-size: 1.2em;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.post-content p { margin-bottom: 1.2em; }

.post-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 16px;
  color: var(--text-light);
  margin: 1.5em 0;
}

.post-content a { color: var(--accent); }

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.post-content ul, .post-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.post-content audio { width: 100%; margin: 16px 0; }

.post-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
}

.post-nav a {
  color: var(--text);
  text-decoration: none;
  max-width: 48%;
}

.post-nav a:hover { text-decoration: underline; }

.post-nav .prev::before { content: "\2190 "; }
.post-nav .next::after { content: " \2192"; }

.site-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8em;
  color: var(--text-light);
}

.archive-year {
  font-size: 1.2em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.archive-list { list-style: none; }

.archive-list li { margin-bottom: 8px; }

.archive-list .post-date {
  font-size: 0.85em;
  color: var(--text-light);
  display: inline-block;
  width: 90px;
}

.archive-list a {
  color: var(--text);
  text-decoration: none;
}

.archive-list a:hover { text-decoration: underline; }
