/* pages.css B 档拆分 → 新闻详情页（2.6） */
/* --------------------------------------------------------------------------
   2.6 Single Post 新闻详情页
   -------------------------------------------------------------------------- */
.single-post {
  padding: 30px 0;
}

/* 1.4.24：flex → Grid（Grid 的 gap 自 Chrome 57 可用，flex gap 需 84）。
   侧栏在 DOM 中位于内容之前，故第一列（220px）是侧栏。 */
.single-post__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 25px;
}

.single-post__sidebar {
  min-width: 0;
}

.single-post__content {
  flex: 1;
  min-width: 0;
}

/* Article Header BEM Additions */
.article-header__title {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--color-text);
}

.article-header__meta {
  font-size: 13px;
  color: var(--color-text-light);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.article-header__date {
  font-size: 13px;
  color: var(--color-text-light);
}

.article-header__author {
  font-size: 13px;
  color: var(--color-text-light);
}

.article-header__views {
  font-size: 13px;
  color: var(--color-text-light);
}

/* Article Tags BEM */
.article-tags__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-right: 5px;
}

/* Related Posts BEM Additions */
.related-posts__title {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.related-posts__item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.related-posts__item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-posts__link {
  display: flex;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}

.related-posts__link:hover {
  color: var(--color-text);
}

.related-posts__image {
  width: 100px;
  height: 75px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.related-posts__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-posts__info {
  flex: 1;
  min-width: 0;
}

.related-posts__item-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-posts__date {
  font-size: 12px;
  color: var(--color-text-light);
}

/* Share Buttons BEM Additions */
.share-buttons__label {
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
}

.share-buttons__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 13px;
  color: var(--color-text-light);
  transition: var(--transition);
}

.share-buttons__item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.share-buttons__item--wechat:hover {
  border-color: #07c160;
  color: #07c160;
}

.share-buttons__item--weibo:hover {
  border-color: #e6162d;
  color: #e6162d;
}

.share-buttons__item--qq:hover {
  border-color: #12b7f5;
  color: #12b7f5;
}
