/* ===== threefree blog · 全局样式 ===== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* 内容容器：居中，最大 680px，手机端留白 */
.container { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航 ===== */
nav { border-bottom: 1px solid #e8e8e8; padding: 24px 0; }
nav .container { display: flex; justify-content: space-between; align-items: center; }
.site-name { font-size: 18px; font-weight: 700; color: #1a1a1a; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.site-name img { height: 28px; width: auto; display: block; }
.site-name .after-logo { height: 28px; }
.nav-links a { color: #555; text-decoration: none; font-size: 14px; margin-left: 20px; }
.nav-links a:hover { color: #1a1a1a; }

/* ===== 文章列表 ===== */
main { padding: 48px 0; }
article { padding: 28px 0; border-bottom: 1px solid #f0f0f0; }
article h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
article h2 a { color: #1a1a1a; text-decoration: none; }
article h2 a:hover { text-decoration: underline; }
.post-date { font-size: 13px; color: #999; margin-bottom: 12px; }
.post-excerpt { font-size: 15px; color: #444; line-height: 1.7; }

/* ===== 文章正文页 ===== */
.post { padding: 60px 0; }
.post h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.post .date { font-size: 13px; color: #999; margin-bottom: 32px; }
.post p { margin-bottom: 20px; }
.back { display: inline-block; margin-bottom: 32px; color: #555; font-size: 14px; text-decoration: none; }
.back:hover { color: #1a1a1a; }

/* ===== 底部 ===== */
footer { border-top: 1px solid #e8e8e8; padding: 32px 0 48px; text-align: center; }
footer p { font-size: 13px; color: #aaa; line-height: 1.6; }

/* ===== 手机端 (≤600px) ===== */
@media (max-width: 600px) {
  body { font-size: 15px; }
  nav .container { flex-direction: column; gap: 12px; align-items: flex-start; }
  .nav-links a { margin-left: 0; margin-right: 16px; }
  article h2 { font-size: 18px; }
  main { padding: 32px 0; }
}
