/* 罗大川的个人博客 — 干净、易读、响应式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #0f766e;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 17px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* 页眉 */
.site-header { border-bottom: 1px solid var(--border); padding: 28px 0 20px; }
.site-header .container { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-title { font-size: 26px; font-weight: 700; letter-spacing: 0.05em; }
.site-title a { color: var(--text); }
.site-title a:hover { text-decoration: none; }
.site-nav a { margin-left: 20px; color: var(--muted); font-size: 15px; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.active { color: var(--accent); font-weight: 600; }

/* 内容 */
main { padding: 36px 0 48px; }
.hero { margin-bottom: 36px; }
.hero h1 { font-size: 30px; line-height: 1.4; margin-bottom: 12px; }
.hero p { color: var(--muted); font-size: 16px; }
.section-title { font-size: 15px; color: var(--muted); letter-spacing: 0.15em; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.post-list { list-style: none; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.post-list li:last-child { border-bottom: none; }
.post-list a.post-title { font-size: 19px; font-weight: 600; color: var(--text); display: block; margin-bottom: 4px; }
.post-list a.post-title:hover { color: var(--accent); text-decoration: none; }
.post-meta { color: var(--muted); font-size: 14px; }
.post-excerpt { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* 文章页 */
.post h1 { font-size: 28px; line-height: 1.4; margin-bottom: 8px; }
.post .post-meta { margin-bottom: 24px; }
.post p { margin-bottom: 18px; }
.post h2 { font-size: 20px; margin: 28px 0 12px; }
.post hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.back-link { display: inline-block; margin-top: 8px; font-size: 15px; }

/* 关于页 */
.about p { margin-bottom: 16px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); padding: 20px 0 32px; color: var(--muted); font-size: 14px; text-align: center; }

/* 小屏适配 */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { padding: 20px 0 16px; }
  .site-title { font-size: 22px; }
  .hero h1 { font-size: 25px; }
  .post h1 { font-size: 24px; }
  main { padding: 28px 0 36px; }
}
