/* warm — 暖纸色轻量主题 */
:root {
  --bg: #faf6ef;
  --bg-soft: #f3ecdf;
  --text: #3a332c;
  --muted: #8a7d6d;
  --accent: #b45309;
  --accent-hover: #92400e;
  --border: #e6dcc8;
  --card: #fffdf8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow { max-width: 780px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* 页眉 */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
}
.site-title:hover { color: var(--accent); text-decoration: none; }
.site-header nav a {
  margin-left: 28px;
  color: var(--muted);
  font-size: 16px;
}
.site-header nav a:hover { color: var(--accent); }

/* 首页文章列表 */
.home { padding: 48px 24px 64px; }
.post-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.post-item:hover { box-shadow: 0 4px 20px rgba(180, 83, 9, .08); }
.post-link {
  display: block;
  padding: 24px 28px;
  color: var(--text);
}
.post-link:hover { text-decoration: none; }
.post-link h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.5;
}
.post-link:hover h2 { color: var(--accent); }
.post-meta { color: var(--muted); font-size: 14px; margin: 0; }
.post-meta .dot { margin: 0 8px; }
.post-summary {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 文章页 */
.post { padding: 48px 24px 64px; }
.post-header { margin-bottom: 36px; text-align: center; }
.post-header h1 {
  font-size: 30px;
  line-height: 1.5;
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.post-content { font-size: 17px; }
.post-content p { margin: 1.2em 0; }
.post-content img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 1.5em auto;
}
.post-content blockquote {
  margin: 1.5em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-nav a { font-size: 15px; max-width: 45%; }

/* 归档 */
.page-title { font-size: 26px; letter-spacing: 2px; margin: 40px 0 24px; }
.archive-year h2 { color: var(--accent); font-size: 22px; margin: 32px 0 12px; }
.archive-year ul { list-style: none; padding: 0; margin: 0; }
.archive-year li {
  display: flex;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.archive-year time { color: var(--muted); font-size: 14px; min-width: 48px; }
.archive-year li a { color: var(--text); }
.archive-year li a:hover { color: var(--accent); }

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  list-style: none;
  padding: 0;
}
.pagination a, .pagination span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
}
.pagination .active span, .pagination a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

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

/* 宽屏适配 */
@media (min-width: 1400px) {
  .wrap { max-width: 1280px; }
  .wrap.narrow { max-width: 860px; }
}
/* 窄屏 */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .post-header h1 { font-size: 24px; }
  .post-link { padding: 18px 20px; }
  .site-header nav a { margin-left: 16px; }
}
