/* 文章容器底部间距 */
.post-container {
  padding-bottom: 4rem;
}

/* 文章标题与副标题 */
.post-header h1.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.post-subtitle {
  font-size: 1.4rem;
  color: #6c757d;
  text-align: center;
  margin-bottom: 1rem;
}

/* 元数据：一行显示 */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.5rem;
}

.post-meta span {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.post-meta .middot {
  margin: 0 0.3rem;
}

/* 封面图 */
.post-cover img {
  max-width: 100%;
  height: auto;
  border-radius: 0.3rem;
  margin-bottom: 1rem;
}

.post-cover .img-desc {
  font-size: 0.85rem;
  color: #6c757d;
  text-align: center;
  margin-top: 0.3rem;
}

/* 正文 */
.post-body p {
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* 标签和分类卡片 */
.tag-badge,
.category-badge {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 0.3rem 0.8rem;
  margin: 0.2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.tag-badge:hover,
.category-badge:hover {
  background-color: #007bff;
  color: #fff;
  transform: scale(1.05);
}

/* 页脚文字加粗间距 */
.post-footer strong {
  margin-right: 0.5rem;
}

/* 手机屏幕自适应：元数据换行 */
@media (max-width: 767.98px) {
  .post-meta {
    flex-direction: column;
    align-items: center;
  }

  .post-meta span {
    margin-right: 0;
    margin-bottom: 0.3rem;
  }

  .post-meta .middot {
    display: none;
  }

  .tag-badge,
  .category-badge {
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
  }
}