/* 途言 — 极简博客样式 */

:root {
  --bg: #fafaf8;
  --text: #2c2c2c;
  --text-dim: #888;
  --accent: #c8a96e;
  --accent-dim: #8b7355;
  --border: #e8e4dc;
  --card-bg: #fff;
  --code-bg: #f4f2ed;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1c;
    --text: #d4d0c8;
    --text-dim: #7a7568;
    --accent: #c8a96e;
    --accent-dim: #8b7355;
    --border: #2e2e30;
    --card-bg: #222224;
    --code-bg: #2a2824;
  }
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

header h1 { font-size: 28px; font-weight: 700; letter-spacing: 0.05em; }
header h1 a { color: var(--text); text-decoration: none; }
header h1 a:hover { color: var(--accent); }
header nav { margin-top: 6px; }
header .home-link { color: var(--text-dim); font-size: 13px; text-decoration: none; letter-spacing: 0.04em; }
header .home-link:hover { color: var(--accent); }
header .subtitle { color: var(--text-dim); font-size: 15px; margin-top: 6px; }

/* Hero */
.hero { text-align: center; margin-bottom: 48px; }
.hero h2 { font-size: 18px; font-weight: 400; color: var(--text-dim); }

/* Post list */
.post-list { list-style: none; }
.post-list li { margin-bottom: 20px; }
.post-list li.empty { color: var(--text-dim); text-align: center; padding: 40px 0; }
.post-list li a {
  display: flex; align-items: baseline; gap: 16px;
  text-decoration: none; color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.post-list li a:hover { color: var(--accent); }
.post-list li a time { color: var(--text-dim); font-size: 14px; white-space: nowrap; min-width: 90px; }
.post-list li a span { font-size: 18px; }

/* Article */
article { padding-bottom: 40px; }
article .post-title { font-size: 28px; margin-bottom: 8px; font-weight: 700; }
article time { color: var(--text-dim); font-size: 14px; display: block; margin-bottom: 40px; }

article h2 { font-size: 23px; margin: 40px 0 14px; font-weight: 600; }
article h3 { font-size: 20px; margin: 32px 0 10px; font-weight: 600; }
article h4, article h5, article h6 { font-size: 18px; margin: 28px 0 8px; font-weight: 600; }

article p { margin-bottom: 16px; }
article a { color: var(--accent); text-decoration: none; }
article a:hover { text-decoration: underline; }

article ul, article ol { margin: 0 0 16px 24px; }
article li { margin-bottom: 6px; }

article blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 20px;
  margin: 20px 0;
  color: var(--text-dim);
  font-style: italic;
}

article hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

article img { max-width: 100%; border-radius: 4px; margin: 16px 0; }

article code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace;
}

article pre {
  background: var(--code-bg);
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 20px 0;
}
article pre code { background: none; padding: 0; font-size: 14px; line-height: 1.5; }

/* Footer */
footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
footer p { color: var(--text-dim); font-size: 13px; }
