/* ===== 特效地带 · 简约大气博客样式 ===== */

:root {
  --paper: #faf9f7;
  --ink: #1f1d1b;
  --muted: #6b665f;
  --line: #e7e3dc;
  --accent: #9c6b3f;
  --accent-soft: #f3ece3;
  --maxw: 820px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 头部 ===== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-tag {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 4px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-nav a {
  font-size: 15px;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.current { color: var(--ink); }
.site-nav a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
}

/* ===== 主体 ===== */
.site-main { padding: 56px 0 80px; min-height: 60vh; }

/* 首页引言 */
.intro { margin-bottom: 48px; }
.intro-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.intro-sub {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

/* 文章列表 */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { border-top: 1px solid var(--line); }
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-link {
  display: block;
  padding: 26px 4px;
  transition: background .2s ease, padding-left .2s ease;
}
.post-link:hover {
  background: var(--accent-soft);
  padding-left: 14px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.cat-tag {
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 12px;
  letter-spacing: .5px;
}
.post-title {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: .5px;
  transition: color .2s ease;
}
.post-link:hover .post-title { color: var(--accent); }
.post-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* 带封面的列表项：左图右文，制造节奏 */
.post-item.has-cover .post-link {
  display: flex;
  align-items: center;
  gap: 22px;
}
.post-thumb {
  flex: 0 0 168px;
  width: 168px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--accent-soft);
  transition: transform .25s ease;
}
.post-item.has-cover .post-link:hover .post-thumb {
  transform: scale(1.03);
}
.post-text { flex: 1 1 auto; min-width: 0; }

/* 单篇封面大图 */
.post-cover {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 34px;
  background: var(--accent-soft);
}

/* 分类页头 */
.cat-head { margin-bottom: 36px; }
.cat-head h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: 1px; }
.cat-count { color: var(--muted); font-size: 14px; margin: 0; }

/* ===== 单篇文章 ===== */
.post { max-width: 720px; margin: 0 auto; }
.post .post-meta { margin-bottom: 14px; }
.post-title-single {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .5px;
  margin: 0 0 28px;
}
.post-body p {
  margin: 0 0 22px;
  font-size: 17px;
  color: #2c2926;
}
.post-body h2 {
  font-size: 20px;
  margin: 38px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  letter-spacing: .5px;
}
.post-author {
  margin-top: 40px;
  color: var(--muted);
  font-size: 15px;
  text-align: right;
}
.back { margin-top: 28px; }
.back a { color: var(--accent); font-size: 15px; }
.back a:hover { text-decoration: underline; }

/* 关于页 */
.about h1 { font-size: 28px; margin: 0 0 20px; letter-spacing: 1px; }
.about p { margin: 0 0 20px; color: #2c2926; }
.about h2 {
  font-size: 19px; margin: 34px 0 12px;
  padding-left: 12px; border-left: 3px solid var(--accent);
}

/* 404 */
.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font-size: 26px; }
.notfound a { color: var(--accent); }

/* ===== 页脚 ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  text-align: center;
}
.site-footer .beian a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .5px;
}
.site-footer .beian a:hover { color: var(--accent); }
.site-footer .copyright {
  color: #a8a29a;
  font-size: 12px;
  margin: 8px 0 0;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 44px 0 12px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pagination a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}
.pagination .page-ellipsis {
  border: none;
  background: none;
  min-width: 18px;
  padding: 0;
  color: var(--muted);
}
.pagination .disabled {
  color: var(--muted);
  opacity: .45;
  pointer-events: none;
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 16px; }
  .site-main { padding: 36px 0 60px; }
  .intro-title { font-size: 24px; }
  .post-title-single { font-size: 24px; }
  .post-title { font-size: 19px; }
  .post-item.has-cover .post-link { flex-direction: column; align-items: stretch; gap: 12px; }
  .post-thumb { flex: none; width: 100%; height: 160px; }
}
