/* ============================================================
   文章详情页（信用资讯 / 信用公告共用）
   对应模板：app/index/view/article/detail.html
   设计：参照老站详情页 —— 居中朱砂红标题 + 发布信息行 + 正文（多为公示图片）
   ============================================================ */

.article-detail {
  max-width: 920px;
  margin: 0 auto;
}

/* 标题：居中、朱砂红、大字 */
.article-detail__title {
  margin: 0.25rem 0 1.1rem;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--red-600);
}

/* 发布信息行：发布时间 / 阅读量 / 来源，居中浅棕字 */
.article-detail__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--paper-2);
  border-bottom: 1px solid var(--paper-2);
  font-size: 0.9rem;
  color: var(--muted);
}
.article-detail__meta em {
  font-style: normal;
  font-weight: 700;
  color: var(--red-500);
}

/* 正文区 */
.article-detail__body {
  padding: 1.6rem 0.25rem 0.5rem;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink-2);
  word-break: break-word;
}

/* 正文图片（历史公示数据正文多为整版图片）：自适应宽度、居中、不溢出 */
.article-detail__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.6rem auto;
  border: 0;
}
/* 老数据段落自带 align=center / 内联居中样式，保证图片在各浏览器居中 */
.article-detail__body p { margin: 0.6rem 0; }
.article-detail__body p[align="center"],
.article-detail__body p[style*="center"],
.article-detail__body p[style*="CENTER"] {
  text-align: center;
}
.article-detail__body a { color: var(--red-500); }
.article-detail__body a:hover { color: var(--red-600); text-decoration: underline; }

/* 上一篇 / 下一篇 */
.article-detail__pager {
  margin-top: 1.5rem;
  padding: 1rem 0.25rem;
  border-top: 1px solid var(--paper-2);
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}
.pager__item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  min-width: 0;
}
.pager__item--next { justify-content: flex-end; }
.pager__label {
  flex: none;
  color: var(--muted);
}
.pager__item a {
  color: var(--ink-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pager__item a:hover { color: var(--red-500); }
.pager__empty { color: var(--muted-2); }

/* 返回列表按钮 */
.article-detail__back {
  margin-top: 1.6rem;
  text-align: center;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .article-detail__title { font-size: 1.2rem; }
  .article-detail__body { font-size: 0.95rem; }
  .pager__item--next { justify-content: flex-start; }
}
