/* 金坷垃的博客 - 简洁现代风格 */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #2d2d2d;
  --muted: #888;
  --accent: #2563eb;
  --border: #e8e8e8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}
.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 60px;
}
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; }
.site-header nav a {
  margin-left: 24px; color: var(--muted); font-size: 0.95rem;
}
.site-header nav a.active, .site-header nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: 1.9rem; margin-bottom: 12px; }
.hero p { color: var(--muted); font-size: 1.05rem; }

/* Posts */
.posts { padding-bottom: 40px; }
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.post-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.post-card h2 { font-size: 1.3rem; margin-bottom: 10px; }
.post-card h2 a { color: var(--text); }
.post-card p { color: #555; margin-bottom: 12px; }
.read-more { font-size: 0.9rem; }

/* Article */
.article { padding: 40px 0; }
.article h1 { font-size: 1.8rem; margin-bottom: 8px; }
.article .post-meta { margin-bottom: 24px; }
.article h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.article h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 24px; }
.article li { margin-bottom: 8px; }
.article code {
  background: #f0f0f0; padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em; font-family: ui-monospace, monospace;
}
.article pre {
  background: #1e1e1e; color: #d4d4d4; padding: 18px;
  border-radius: 8px; overflow-x: auto; margin-bottom: 20px;
}
.article pre code { background: none; padding: 0; color: inherit; }
.article blockquote {
  border-left: 3px solid var(--accent); padding-left: 16px;
  color: #555; margin-bottom: 16px;
}
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); }

/* About / Archive */
.page { padding: 40px 0; }
.page h1 { font-size: 1.8rem; margin-bottom: 20px; }
.page p { margin-bottom: 16px; }
.archive-year { font-size: 1.2rem; font-weight: 700; margin: 28px 0 12px; }
.archive-item {
  display: flex; gap: 16px; padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.archive-item .date { color: var(--muted); font-size: 0.9rem; min-width: 90px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer p { margin-bottom: 6px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .post-card { padding: 20px; }
}
