/* ============================================================
 * 新闻详情页专属样式 (news-detail.css)
 * 仅 news-detail.html 使用。
 * 说明：两栏布局(.layout)、侧栏(.side-card/.cat-tree/.side-contact)
 *       等公共骨架复用 css/products.css，本文件只写“文章正文”自身样式。
 * ============================================================ */

/* ---------- 1. 文章卡片 ---------- */
.article-card { background: #fff; border: 1px solid var(--lj-card-border); border-radius: 12px; padding: 40px 46px; }

/* 标题居中 */
.a-title { font-size: 26px; color: var(--lj-heading); font-weight: 700; line-height: 1.5; text-align: center; margin-top: 0.83em; margin-bottom: 16px; }

/* meta 行：分类 + 日期 + 来源 + 阅读量，居中、虚线分隔 */
.a-meta {
  display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: #b8aca6;
  padding-bottom: 22px; border-bottom: 1px dashed #eee; margin-bottom: 28px;
}
.a-meta .cat { color: var(--lj-accent); background: var(--lj-info-bg); font-size: 12px; padding: 2px 12px; border-radius: 10px; }

/* ---------- 2. 正文排版 ---------- */
.a-content p { font-size: 15px; color: #555; line-height: 1.95; margin-bottom: 16px; }
.a-content h4 {
  font-size: 18px; color: var(--lj-heading); font-weight: 600;
  margin: 26px 0 12px; padding-left: 10px; border-left: 3px solid var(--lj-accent);
}
.a-content ul { margin: 0 0 16px 20px; }
.a-content ul li { font-size: 15px; color: #555; line-height: 1.9; list-style: disc; }
.a-content img { max-width: 100%; border-radius: 8px; margin: 12px 0; display: block; }
.a-content blockquote {
  margin: 0 0 16px; padding: 14px 18px;
  background: var(--lj-info-bg); border-left: 3px solid var(--lj-accent); border-radius: 0 8px 8px 0;
  font-size: 14px; color: #8a7268; line-height: 1.8;
}

/* ---------- 3. 上一篇 / 下一篇 ---------- */
.a-pn {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid #f2ece9; font-size: 14px;
}
.a-pn a { color: var(--lj-text-mute); transition: color .2s; max-width: 48%; }
.a-pn a:hover { color: var(--lj-accent); }
.a-pn .next { text-align: right; margin-left: auto; }
.a-pn .label { color: var(--lj-accent); margin-right: 6px; }

/* ---------- 4. 侧栏：最新新闻列表 ---------- */
.side-news li { list-style: none; border-bottom: 1px dashed #f2ece9; }
.side-news li:last-child { border-bottom: none; }
.side-news a { display: block; padding: 12px 20px; }
.side-news .t {
  display: block; font-size: 14px; color: #444; line-height: 1.5; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s;
}
.side-news a:hover .t { color: var(--lj-accent); }
.side-news .d { font-size: 12px; color: #c4b8b1; }

/* ---------- 5. 响应式 ---------- */
@media (max-width: 767px) {
  .article-card { padding: 22px 18px; }
  .a-title { font-size: 20px; }
  .a-meta { gap: 12px; }
  .a-pn { flex-direction: column; }
  .a-pn a { max-width: 100%; text-align: left !important; }
}
