:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #2f2a25;
  --muted: #8a817a;
  --accent: #9c6b4a;
  --accent-soft: #f0e6dc;
  --border: #ece5dc;
  --max: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}

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

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav a:first-child { margin-left: 0; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 30px;
  line-height: 1.4;
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* Post list */
.section-title {
  font-size: 18px;
  margin: 40px 0 8px;
  color: var(--text);
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 20px 0;
}

.post-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h3 a:hover { color: var(--accent); }

.meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.post-card p { margin: 0 0 12px; }

.more {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.more:hover { text-decoration: underline; }

/* Article page */
.article {
  padding: 40px 0 24px;
}

.article h1 {
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.article .meta { margin-bottom: 28px; }

.article p { margin: 0 0 18px; }

.article h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}

.article blockquote {
  margin: 18px 0;
  padding: 8px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #5b5048;
  border-radius: 0 8px 8px 0;
}

.back {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.back:hover { text-decoration: underline; }

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

.site-footer p { margin: 4px 0; }
.beian { font-size: 12px; }

@media (max-width: 520px) {
  .hero h1 { font-size: 24px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}
