/* ===== 我的博客 - 简洁浅色主题 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2b6cb0;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #f7f9fc;
  --card: #ffffff;
  --border: #e2e8f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* 头部 */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  text-decoration: none;
}
.site-header nav a {
  color: var(--text-light); text-decoration: none; margin-left: 20px;
  font-size: 0.95rem;
}
.site-header nav a:hover, .site-header nav a.active { color: var(--primary); }

/* 主体 */
main { padding: 2.5rem 0 3rem; }
.hero h1 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.hero p { color: var(--text-light); margin-bottom: 2rem; }

.post-list { display: flex; flex-direction: column; gap: 1.2rem; }
.post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.4rem 1.6rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.post-card h2 { font-size: 1.15rem; margin: .3rem 0 .5rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--primary); }
.post-card p { color: var(--text-light); font-size: .95rem; }

.post-meta { color: var(--text-light); font-size: .85rem; }

/* 文章页 */
.post-full h1 { font-size: 1.5rem; margin-bottom: .4rem; }
.post-full .post-meta { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.post-full p, .post-full li { margin: .8rem 0; }
.post-full ul, .post-full ol { padding-left: 1.6rem; }
.post-full code {
  background: #edf2f7; padding: .1em .35em; border-radius: 4px; font-size: .9em;
}

/* 页脚（备案信息必须在此展示） */
.site-footer {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 1.5rem 0; text-align: center;
  color: var(--text-light); font-size: .85rem;
}
.site-footer a { color: var(--text-light); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.3rem; }
  .post-card { padding: 1.1rem 1.2rem; }
}
