:root {
  --fg: #24292f;
  --muted: #6a737d;
  --accent: #2f6f4f;
  --bg: #fdfdfb;
  --line: #e6e4de;
  --chip-bg: #eef4f0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e1d8;
    --muted: #9a958a;
    --accent: #7fc8a3;
    --bg: #17181a;
    --line: #2c2e30;
    --chip-bg: #22302a;
  }
}
* { box-sizing: border-box; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/images/bg.jpg") center / cover no-repeat;
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  body::before { opacity: 0.10; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  line-height: 1.75;
  font-size: 17px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand { font-size: 22px; font-weight: 700; color: var(--fg); text-decoration: none; letter-spacing: 2px; }
.site-header nav a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.site-header nav a:hover { color: var(--accent); }
main { padding-top: 36px; padding-bottom: 56px; }
.intro h1 { font-size: 32px; margin: 0 0 6px; }
.intro p { color: var(--muted); margin: 0 0 10px; }
.intro-tags { margin-top: 14px; }
.chip {
  display: inline-block;
  background: var(--chip-bg);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 13px;
  text-decoration: none;
  margin-right: 6px;
  line-height: 1.6;
}
.card { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.card-cover { flex: 0 0 200px; }
.card-cover img { width: 200px; height: 134px; object-fit: cover; border-radius: 10px; display: block; }
.card-body { flex: 1; min-width: 0; }
.card-meta { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.card-meta .chip { margin-left: 6px; margin-right: 0; }
.card h2 { margin: 2px 0 6px; font-size: 21px; line-height: 1.45; }
.card h2 a { color: var(--fg); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card-summary { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) {
  .card { flex-direction: column; gap: 12px; }
  .card-cover { flex: none; }
  .card-cover img { width: 100%; height: 180px; }
}
.list-title { font-size: 26px; margin: 0 0 8px; }
.post h1 { font-size: 28px; margin: 0 0 8px; line-height: 1.4; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.post-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin: 0 0 26px; display: block; }
.post-body p { margin: 0 0 16px; }
.post-body strong { color: var(--fg); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-nav a { color: var(--accent); text-decoration: none; }
.post-nav .next { margin-left: auto; text-align: right; }
.back { margin-top: 24px; }
.back a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 18px; padding-bottom: 24px; }
a { color: var(--accent); }
