/* ============================================================
   道法博客 — 博客专用样式
   ============================================================ */

/* ----------------------------------------------------------
   博客列表页
   ---------------------------------------------------------- */

.blog-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #D4A0A0;
}

.blog-header h1 {
  color: #4A1518;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.blog-header .blog-tagline {
  color: #8B1A1A;
  font-size: 1.05em;
  font-style: italic;
}

.blog-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0.8rem;
  background: #FAF5F5;
  border-radius: 6px;
}

.blog-nav a {
  color: #8B1A1A;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.blog-nav a:hover {
  background: #E8D0D0;
  color: #4A1518;
  text-decoration: none;
}

/* 文章卡片 */
.posts-grid {
  display: grid;
  gap: 2rem;
}

.post-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #FFFAFA;
  border: 1px solid #E8D0D0;
  border-radius: 8px;
  border-left: 4px solid #8B1A1A;
}

.post-card-image {
  flex: 0 0 160px;
}

.post-card-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.post-card-body {
  flex: 1;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.85em;
  color: #8B1A1A;
}

.post-card-meta time {
  font-weight: 500;
}

.post-card-meta .meta-sep {
  color: #D4A0A0;
}

.post-card-meta .post-author a {
  color: #8B1A1A;
  text-decoration: none;
}

.post-card-meta .post-author a:hover {
  color: #4A1518;
  text-decoration: underline;
}

.post-card-meta .post-category {
  background: #F5EEEE;
  border: 1px solid #D4A0A0;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  color: #4A1518;
}

.post-card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
  color: #2A2A2A;
}

.post-card h2 a {
  color: #2A2A2A;
  text-decoration: none;
}

.post-card h2 a:hover {
  color: #8B1A1A;
  text-decoration: none;
}

.post-card-excerpt {
  font-size: 0.95em;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.read-more-link {
  display: inline-block;
  background: #8B1A1A;
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.88em;
  font-weight: 600;
  transition: background 0.2s;
}

.read-more-link:hover {
  background: #6B0000;
  color: white;
  text-decoration: none;
}

/* ----------------------------------------------------------
   文章详情页
   ---------------------------------------------------------- */

.post-article {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #F5EEEE;
}

.post-header h1 {
  color: #4A1518;
  font-size: 2rem;
  text-align: left;
  margin-bottom: 1rem;
}

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.9em;
}

.post-meta-bar > span {
  background: #FAF5F5;
  border-left: 3px solid #8B1A1A;
  padding: 0.25rem 0.7rem;
  border-radius: 0 4px 4px 0;
  color: #4A1518;
}

.post-meta-bar a {
  color: #8B1A1A;
  text-decoration: none;
}

.post-meta-bar a:hover {
  text-decoration: underline;
}

.post-excerpt-block {
  font-size: 1.1em;
  font-style: italic;
  color: #4A1518;
  background: #FAF5F5;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid #8B1A1A;
  border-radius: 0 4px 4px 0;
  margin-top: 1rem;
}

/* 文章正文 */
.post-body {
  font-size: 1.05em;
  line-height: 1.85;
  color: #2A2A2A;
}

.post-body h1 { color: #4A1518; font-size: 1.9em; margin: 2rem 0 0.8rem; text-align: left; }
.post-body h2 { color: #4A1518; font-size: 1.5em; margin: 2rem 0 0.8rem; border-bottom: 1px solid #E8D0D0; padding-bottom: 0.3rem; }
.post-body h3 { color: #4A1518; font-size: 1.2em; margin: 1.5rem 0 0.6rem; }

.post-body p { margin-bottom: 1.3rem; }

.post-body blockquote {
  background: #FAF5F5;
  border-left: 4px solid #8B1A1A;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4A1518;
  border-radius: 0 4px 4px 0;
}

.post-body strong { color: #4A1518; }
.post-body em { color: #4A1518; }

.post-body ul,
.post-body ol {
  margin: 1.2rem 0;
  padding-left: 1.8rem;
}

.post-body li { margin-bottom: 0.6rem; }

.post-body figure {
  margin: 2rem 0;
  text-align: center;
}

.post-body figure img {
  max-width: 100%;
  border-radius: 4px;
}

.post-body figcaption {
  color: #8B1A1A;
  font-size: 0.9em;
  font-style: italic;
  margin-top: 0.5rem;
}

/* 文章底部 */
.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #F5EEEE;
  font-size: 0.9em;
}

.post-tags-section {
  margin-bottom: 0.8rem;
}

.post-tags-section strong,
.post-concepts-section strong {
  color: #4A1518;
}

.post-tag {
  display: inline-block;
  background: #8B1A1A;
  color: white;
  padding: 0.2rem 0.7rem;
  margin: 0.2rem 0.2rem 0.2rem 0;
  border-radius: 12px;
  font-size: 0.82em;
}

.post-concept {
  display: inline-block;
  background: #F5EEEE;
  border: 1px solid #D4A0A0;
  color: #4A1518;
  padding: 0.2rem 0.7rem;
  margin: 0.2rem 0.2rem 0.2rem 0;
  border-radius: 12px;
  font-size: 0.82em;
}

/* ----------------------------------------------------------
   响应式
   ---------------------------------------------------------- */

@media (max-width: 680px) {
  .post-card {
    flex-direction: column;
  }

  .post-card-image {
    flex: none;
  }

  .post-card-image img {
    height: 180px;
    width: 100%;
  }

  .blog-nav {
    gap: 0.5rem;
  }
}
