/* ==================================================================
 * 资讯动态 · 统一详情页（news-detail.html）
 * 按设计稿：小导航 / 大标题 / 描述 / 时间 / 分隔线 / 编辑器正文
 * 仅本页引入，全部以 body[data-page="news-detail"] 限定，其他页面零影响
 * 规格与 case-detail.css 对齐（同一套设计稿）
 * ================================================================== */

/* 设计稿内容区约 1280px，比全站 1200px 略宽（与案例详情 / about 团队区块一致） */
body[data-page="news-detail"] main .container { max-width: 1328px; }

/* ---------- 顶部小导航：资讯动态 / 资讯详情 ---------- */
body[data-page="news-detail"] .crumbs {
  padding-top: calc(var(--header-h) + 30px);
  padding-bottom: 24px;
  font-weight: 400;
  font-size: 16px;
  color: #4A5057;
  line-height: 30px;
}
body[data-page="news-detail"] .crumbs a,
body[data-page="news-detail"] .crumbs b {
  font-weight: 400;
  font-size: 16px;
  color: #4A5057;
}
body[data-page="news-detail"] .crumbs__sep { margin: 0 8px; color: #9AA3AC; }
body[data-page="news-detail"] .crumbs a:hover { color: #16BBC8; }

/* ---------- 文章容器：左对齐、撑满 container ---------- */
body[data-page="news-detail"] .article {
  max-width: none;
  margin: 0;
  padding: 0 0 80px;
  text-align: left;
}

/* ---------- 大标题 ---------- */
body[data-page="news-detail"] .news-detail__title {
  margin: 12px 0 12px;
  font-weight: 700;
  font-size: 32px;
  color: #4A5057;
  line-height: 46px;
  text-align: center;
}

/* ---------- 描述文字 ---------- */
body[data-page="news-detail"] .news-detail__desc {
  margin: 0 0 10px;
  font-weight: 400;
  font-size: 18px;
  color: #4A5057;
  line-height: 30px;
  text-align: left;
}

/* ---------- 时间文字 ---------- */
body[data-page="news-detail"] .news-detail__date {
  margin: 0 0 12px;
  font-weight: 400;
  font-size: 16px;
  color: #747C86;
  line-height: 30px;
  text-align: left;
}

/* ---------- 头部与正文之间的分隔线 ---------- */
body[data-page="news-detail"] .news-detail__rule {
  height: 1px;
  background: #D8D8D8;
}

/* ==================================================================
 * 正文：后台编辑器输出的富文本容器
 * 下面只做「兜底排版」，后台内容若自带内联样式会优先生效；
 * 不写死任何文案，接入接口后只需替换 #newsBody 的 innerHTML。
 * ================================================================== */
body[data-page="news-detail"] .news-detail__content {
  margin-top: 36px;
  color: #4A5057;
  overflow-wrap: break-word;
}
body[data-page="news-detail"] .news-detail__content p {
  margin: 0 0 30px;
  font-weight: 400;
  font-size: 26px;
  color: #4A5057;
  line-height: 52px;
  text-indent: 0;
}
body[data-page="news-detail"] .news-detail__content strong,
body[data-page="news-detail"] .news-detail__content b { font-weight: 700; }
body[data-page="news-detail"] .news-detail__content em { font-style: italic; }
body[data-page="news-detail"] .news-detail__content a { color: #16BBC8; text-decoration: underline; }
body[data-page="news-detail"] .news-detail__content h2,
body[data-page="news-detail"] .news-detail__content h3,
body[data-page="news-detail"] .news-detail__content h4 {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 28px;
  color: #4A5057;
  line-height: 46px;
}
body[data-page="news-detail"] .news-detail__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 30px;
}
body[data-page="news-detail"] .news-detail__content .article__inline-img {
  margin: 0 0 30px;
  border-radius: 10px;
  overflow: hidden;
}
body[data-page="news-detail"] .news-detail__content .article__inline-img img {
  width: 100%;
  margin: 0;
}
body[data-page="news-detail"] .news-detail__content ul,
body[data-page="news-detail"] .news-detail__content ol {
  margin: 0 0 30px;
  padding-left: 1.4em;
  font-size: 26px;
  line-height: 52px;
}
body[data-page="news-detail"] .news-detail__content ul { list-style: disc; }
body[data-page="news-detail"] .news-detail__content ol { list-style: decimal; }
body[data-page="news-detail"] .news-detail__content blockquote {
  margin: 0 0 30px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #DCFCFE;
  color: #747C86;
}
body[data-page="news-detail"] .news-detail__content table {
  width: 100%;
  margin: 0 0 30px;
  border-collapse: collapse;
  font-size: 18px;
  line-height: 30px;
}
body[data-page="news-detail"] .news-detail__content th,
body[data-page="news-detail"] .news-detail__content td {
  padding: 8px 12px;
  border: 1px solid #E7E8EA;
}
body[data-page="news-detail"] .news-detail__content > :last-child { margin-bottom: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  body[data-page="news-detail"] .crumbs { padding-top: calc(var(--header-h) + 20px); padding-bottom: 16px; }
  body[data-page="news-detail"] .news-detail__title { font-size: 26px; line-height: 38px; }
  body[data-page="news-detail"] .news-detail__desc { font-size: 16px; line-height: 28px; }
  body[data-page="news-detail"] .news-detail__content p,
  body[data-page="news-detail"] .news-detail__content ul,
  body[data-page="news-detail"] .news-detail__content ol { font-size: 20px; line-height: 40px; }
  body[data-page="news-detail"] .news-detail__content h2,
  body[data-page="news-detail"] .news-detail__content h3,
  body[data-page="news-detail"] .news-detail__content h4 { font-size: 22px; line-height: 36px; }
}
@media (max-width: 560px) {
  /* 只改左右内边距：用 padding 简写会把 .crumbs 的 padding-top 一起清零，
     导致小导航被固定 header 盖住 */
  body[data-page="news-detail"] main .container { padding-left: 18px; padding-right: 18px; }
  body[data-page="news-detail"] .crumbs { font-size: 14px; line-height: 26px; }
  body[data-page="news-detail"] .crumbs a,
  body[data-page="news-detail"] .crumbs b { font-size: 14px; }
  body[data-page="news-detail"] .news-detail__title { font-size: 22px; line-height: 32px; margin: 10px 0; }
  body[data-page="news-detail"] .news-detail__desc { font-size: 15px; line-height: 26px; }
  body[data-page="news-detail"] .news-detail__date { font-size: 14px; line-height: 26px; }
  body[data-page="news-detail"] .news-detail__content { margin-top: 26px; }
  body[data-page="news-detail"] .news-detail__content p,
  body[data-page="news-detail"] .news-detail__content ul,
  body[data-page="news-detail"] .news-detail__content ol { font-size: 18px; line-height: 34px; }
}
