/* =========================================================
   新闻详情页专用样式
   （导航/页脚/悬浮窗/返回顶部 复用 common.css 全站公共样式）
   ========================================================= */

/* ---------- 文章主体容器 ---------- */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0 16px;
}

/* 详情页无 Banner，需额外顶开固定导航 */
.news-detail-sec {
  padding-top: 140px;
}

.news-crumb {
  margin-bottom: 22px;
}

.news-tag {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 122, 61, 0.10);
  color: var(--blue-500);
  font-size: 12px;
  font-weight: 600;
}

.news-date {
  font-size: 13px;
  color: #98A5B8;
}

/* 文章头部 */
.article-head {
  margin-bottom: 28px;
}

/* 文章 meta（分类标签 / 日期 / 浏览量） */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* 文章标题 */
.article-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.45;
  margin-bottom: 14px;
}

/* 文章摘要 */
.article-summary {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.9;
  padding: 16px 20px;
  background: #FFF6EF;
  border-left: 3px solid var(--blue-500);
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}

/* 封面图 */
.article-cover {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 28px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  display: block;
}

/* ---------- 正文排版 ---------- */
.article-body {
  font-size: 15.5px;
  color: #3A4A61;
  line-height: 2;
}

.article-body p {
  margin-bottom: 18px;
  text-align: justify;
}

/* 正文小标题 */
.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-title);
  margin: 28px 0 14px;
  line-height: 1.5;
}

/* 正文列表 */
.article-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-body ul li {
  margin-bottom: 10px;
  list-style: disc;
}

/* 正文强调引用块 */
.article-body blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--cyan-400);
  background: rgba(255, 122, 61, 0.06);
  border-radius: 0 8px 8px 0;
  color: #44546A;
  font-size: 15px;
}

/* 受版权保护的来源说明 */
.article-copyright {
  margin-top: 34px;
  padding: 14px 18px;
  font-size: 12.5px;
  color: #98A5B8;
  background: #FAFBFC;
  border: 1px dashed var(--border);
  border-radius: 8px;
  line-height: 1.8;
}

/* 上一篇/下一篇切换 */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-nav-item {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.article-nav-item:hover {
  border-color: rgba(255, 122, 61, 0.35);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.article-nav-item .nav-label {
  display: block;
  font-size: 12px;
  color: #98A5B8;
  margin-bottom: 6px;
}

.article-nav-item .nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
  line-height: 1.5;
  display: block;
}

.article-nav-item .nav-title:hover {
  color: var(--blue-500);
}

.article-nav-item.next {
  text-align: right;
}

/* ---------- 相关推荐 ---------- */
.related-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
  margin: 44px 0 8px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 61, 0.35);
  box-shadow: var(--shadow-hover);
}

.related-card .news-meta {
  margin-bottom: 10px;
}

.related-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
  line-height: 1.55;
  margin-bottom: 10px;
}

.related-card-title a {
  color: inherit;
  transition: color 0.25s ease;
}

.related-card-title a:hover {
  color: var(--blue-500);
}

.related-card .news-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500);
}

.related-card .news-more:hover {
  color: var(--cyan-400);
}

/* 响应式适配 */
@media (max-width: 992px) {
  .related-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-detail-sec {
    padding-top: 110px;
  }

  .article-wrap {
    padding-top: 28px;
  }

  .article-title {
    font-size: 23px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: 1fr;
  }
}