/* LK-Blog 站点样式 */
:root {
  --ink: #1F2430;
  --ink-soft: #3A3F4A;
  --ink-mute: #9A968A;
  --accent: #1D9E75;
  --accent-deep: #0F6E56;
  --paper: #FFFFFF;
  --bg: #F7F6F2;
  --line: #E8E5DD;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶栏 ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.site-title .dot { color: var(--accent); }
.site-nav a {
  margin-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--accent-deep); text-decoration: none; }

/* ---------- 首页 hero ---------- */
.hero {
  padding: 64px 0 40px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
.hero .sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-mute);
}
.hero .bar {
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 20px;
}

/* ---------- 文章卡片 ---------- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0 64px;
}
.post-card {
  display: flex;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 36, 48, 0.08);
}
.post-card .thumb {
  width: 200px;
  flex-shrink: 0;
  background: #EFEDE7;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card .body {
  padding: 20px 24px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-card .title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}
.post-card .title a { color: var(--ink); }
.post-card .excerpt {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .meta {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  gap: 12px;
  align-items: center;
}
.post-card .meta .tag {
  color: var(--accent-deep);
  background: #EAF6F1;
  padding: 2px 10px;
  border-radius: 20px;
}

.empty-hint {
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  padding: 40px 0 80px;
}

/* ---------- 文章页 ---------- */
.post-nav {
  padding: 24px 0 0;
  font-size: 14px;
}
.post-nav a { color: var(--ink-mute); }
.post-nav a:hover { color: var(--accent-deep); }

.article-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 20px 0 40px;
  padding: 36px 40px 44px;
}
@media (max-width: 560px) {
  .article-wrap { padding: 24px 20px 32px; }
  .post-card { flex-direction: column; }
  .post-card .thumb { width: 100%; height: 180px; }
  .post-card .body { padding: 4px 20px 20px; }
}

/* 文章内嵌排版（继承原公众号样式基调） */
.article-body { max-width: 677px; margin: 0 auto; }
.article-body p { font-size: 15px; line-height: 1.9; color: var(--ink-soft); margin: 14px 0 0; }
.article-body h1 { font-size: 22px; line-height: 1.5; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; margin: 0; }
.article-body h2 { font-size: 18px; line-height: 1.6; font-weight: 700; color: var(--ink); margin: 6px 0 0; }
.article-body img { max-width: 100%; height: auto; }
.article-body strong { color: inherit; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-mute);
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: var(--ink-mute); }
