:root {
  --bg: #f6f1e7;
  --card: #fffdf8;
  --text: #2c2a24;
  --muted: #8a8375;
  --line: #e7dfcd;
  --green: #2f5d46;
  --green-dark: #234735;
  --orange: #d9823f;
  --shadow: 0 2px 12px rgba(47, 93, 70, 0.10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.8;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.hero {
  position: relative;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  margin-bottom: 8px;
}
.hero img { display: block; width: 100%; height: 240px; object-fit: cover; }
.hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 40, 28, 0.72), rgba(20, 40, 28, 0.05) 65%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 28px;
}
.hero .overlay h1 { margin: 0; color: #fffdf8; font-size: 30px; letter-spacing: 1px; }
.hero .overlay h1 a { color: inherit; text-decoration: none; }
.hero .overlay p { margin: 4px 0 0; color: #f0e9d8; font-size: 14px; }
header.site {
  padding: 18px 0 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--green);
}
nav { font-size: 15px; }
nav a { color: var(--green); text-decoration: none; margin-right: 20px; font-weight: 600; }
nav a:hover { color: var(--orange); }
article.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0;
}
article.card .thumb { flex: 0 0 190px; }
article.card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
article.card .text { padding: 20px 22px; }
article.card h2 { margin: 0 0 6px; font-size: 21px; }
article.card h2 a { color: inherit; text-decoration: none; }
article.card h2 a:hover { color: var(--green); }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.meta span { color: var(--orange); font-weight: 600; }
.excerpt { margin: 0; color: #55524a; }
.post h1 { font-size: 26px; line-height: 1.4; margin: 0 0 8px; }
.post .cover { border-radius: 14px; overflow: hidden; margin: 8px 0 22px; box-shadow: var(--shadow); }
.post .cover img { display: block; width: 100%; height: 260px; object-fit: cover; }
.post .body { margin-top: 8px; }
.post .body h2 { font-size: 19px; margin-top: 28px; color: var(--green-dark); }
.post .body code { background: #efe9da; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.post .body pre { background: #2c2a24; color: #f0e9d8; padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
.post .body pre code { background: none; padding: 0; color: inherit; }
.back { display: inline-block; margin-top: 28px; color: var(--green); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--orange); }
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 20px 0 44px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 600px) {
  .hero img { height: 170px; }
  .hero .overlay { padding: 16px 20px; }
  .hero .overlay h1 { font-size: 24px; }
  article.card { flex-direction: column; }
  article.card .thumb { flex: none; }
  article.card .thumb img { height: 150px; }
  .post .cover img { height: 180px; }
}
