/* ============================================================
   新闻动态-图文详情 (page-news-detail) — 设计稿 789:3846
   富文本标准样式: 标题+日期+分隔线 / 首图 / 段落16px行高32 / 案例h2+图 / 尾段 / 上下篇
   正文 1200 宽居中 (360..1560), 案例图 1003×552
   ============================================================ */
body.page-news-detail { background: #fff; }

/* ---------- 顶部导航: 白色底子 ---------- */
body.page-news-detail .site-header {
  background: #fff;
  box-shadow: inset 0 -1px 0 0 #EBEBEB;
}
body.page-news-detail .site-header .logo .logo-dark { display: block; }
body.page-news-detail .site-header .logo .logo-light { display: none; }
body.page-news-detail .site-header .navbar > li > a { color: #2E3033; }
body.page-news-detail .site-header .navbar > li > a:hover { color: #2168E5; opacity: 1; }
body.page-news-detail .site-header .navbar > li.active > a { color: #2168E5; }
body.page-news-detail .site-header .vr-pill { border-color: #5C6066; color: #2E3033; }
body.page-news-detail .site-header .icon-btn img { filter: none; }
body.page-news-detail .site-header .nav-toggle span { background: #2E3033; }
body.page-news-detail .site-header.is-scrolled,
body.page-news-detail .site-header.is-solid {
  background: #fff;
  box-shadow: inset 0 -1px 0 0 #EBEBEB;
}

/* ============================================================
   正文容器 (设计稿 1094:18882: 360,120 宽1200, 顶部 margin 120-64=56)
   ============================================================ */
.nd-article {
  max-width: 1200px;               /* 设计稿 1200 宽 */
  margin: 64px auto 0 auto;        /* fixed 头部 64 → 内容区 */
  padding: 56px 0 79px 0;          /* 标题 120; 底 79 → footer 4560 */
}

/* ---------- 标题组 (设计稿 1088:18554) ---------- */
.nd-title {
  margin: 0;
  font-size: 36px;
  font-weight: 749;
  line-height: 56px;
  color: #222426;
}
.nd-meta {
  margin-top: 16px;                /* 标题底 176 → 日期 192 */
  font-size: 14px;
  font-weight: 489;
  line-height: 20px;
  color: #2E3033;
}
.nd-divider {
  margin-top: 31px;                /* 日期底 212 → 线 243 */
  height: 1px;
  background: #E5E5E5;
}

/* ---------- 首图 (设计稿 789:3921: 1200×660) ---------- */
.nd-figure {
  margin: 0;
}
.nd-figure--hero {
  margin-top: 48px;                /* 线 243 → 图 292 */
}
.nd-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.nd-figure--hero img {
  aspect-ratio: 1200/660;          /* 图区固定比例 (设计稿 1200×660, FILL) */
  object-fit: cover;
}

/* ---------- 正文 (设计稿 16px/w489/32 #393C40) ---------- */
.nd-body {
  margin-top: 48px;                /* 首图底 952 → 段1 1000 */
}
.nd-body p {
  margin: 0;
  font-size: 16px;
  font-weight: 489;
  line-height: 32px;
  color: #393C40;
  text-align: justify;
}
.nd-body p + p { margin-top: 24px; }   /* 段落间距 24 */

/* ---------- 案例标题 (设计稿 20px/w749 #222426) ---------- */
.nd-h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 749;
  color: #222426;
}
.nd-body .nd-h2 { margin-top: 48px; }                    /* 上文底 → h2 */
.nd-body .nd-h2:nth-of-type(1) { line-height: 20px; }    /* 案例一 设计 20 高 */
.nd-body .nd-h2:nth-of-type(2) { line-height: 30px; }    /* 案例二 设计 30 高 */

/* ---------- 案例图 (设计稿 1003×552, 左侧与正文对齐) ---------- */
.nd-body .nd-figure {
  margin: 40px 0 0 0;              /* h2 底 → 图1 40 */
  width: 1003px;
  max-width: 100%;
}
.nd-body .nd-figure + .nd-figure { margin-top: 24px; }   /* 图间距 24 */
.nd-body .nd-h2 + .nd-figure { margin-top: 40px; }
.nd-body .nd-figure img {
  width: 100%;
  aspect-ratio: 1003/552;
  object-fit: cover;
}

/* 尾段与案例图间距 */
.nd-body .nd-figure:last-of-type { margin-bottom: 0; }
.nd-body p:last-child { margin-top: 48px; }

/* ---------- 上下篇 (设计稿 1094:18901: 线 y4438 + 左右两栏 14px) ---------- */
.nd-prevnext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;                /* 尾段底 → 线 4438 */
  padding-top: 20px;               /* 线 → 文字 4458 */
  border-top: 1px solid #E5E5E5;
}
.nd-pn {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 50%;
  font-size: 14px;
  font-weight: 513;
  line-height: 22px;
  color: #2E3033;
  text-decoration: none;
  transition: color .25s ease;
}
.nd-pn:hover { color: #2168E5; }
.nd-pn-label {
  flex: none;
  font-size: 14px;
  font-weight: 666;
  line-height: 22px;
  color: #2168E5;
  display: none;
}
.nd-pn-ic {
  flex: none;
  width: 14px;
  height: 14px;
  color: #7E7F82;
  transition: color .25s ease;
}
.nd-pn:hover .nd-pn-ic { color: #2168E5; }
.nd-pn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nd-pn--prev { justify-content: flex-start; }
.nd-pn--next { justify-content: flex-end; }

/* ============================================================
   自适应
   ============================================================ */
@media (max-width: 1336px) {
  .nd-article { max-width: 100%; padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 1100px) {
  .nd-body .nd-figure { width: 100%; }
}

@media (max-width: 767px) {
  .nd-article { padding-top: 32px; padding-left: 16px; padding-right: 16px; }
  .nd-title { font-size: 24px; line-height: 36px; }
  .nd-meta { margin-top: 12px; font-size: 13px; line-height: 18px; }
  .nd-divider { margin-top: 20px; }
  .nd-figure--hero { margin-top: 32px; }
  .nd-body { margin-top: 32px; }
  .nd-body p { font-size: 15px; line-height: 28px; }
  .nd-body p + p { margin-top: 20px; }
  .nd-h2 { margin-top: 36px; padding-top: 0; font-size: 18px; line-height: 28px; }
  .nd-body .nd-figure { margin-top: 28px; }
  .nd-body .nd-figure + .nd-figure { margin-top: 16px; }
  .nd-body .nd-figure + .nd-h2 { margin-top: 36px; }
  .nd-body .nd-h2 + .nd-figure { margin-top: 28px; }
  .nd-body p:last-child { margin-top: 36px; }
  .nd-prevnext { display: block; margin-top: 40px; padding-top: 16px; }
  .nd-pn { display: block; font-size: 14px; line-height: 20px; max-width: 100%; }
  .nd-pn + .nd-pn { margin-top: 12px; }
  .nd-pn-text { display: inline; white-space: normal; }
  .nd-pn-label { display: inline; font-size: 14px; line-height: 20px; color: #2E3033;  }   /* 移动端: 标题前显示上一篇/下一篇 */
  .nd-pn-ic { display: none; }              /* 移动端去掉箭头图标 */
}

@media (max-width: 400px) {
  .nd-title { font-size: 21px; line-height: 32px; }
  .nd-body p { font-size: 14px; line-height: 26px; }
}

/* ============================================================
   WordPress 后台正文适配: 编辑器输出的 h2/图片 与静态标记样式对齐
   (静态用 .nd-h2/.nd-figure 类, 后台编辑器输出裸标签)
   ============================================================ */
.nd-body h2 {
  margin: 48px 0 0;
  font-size: 20px;
  font-weight: 749;
  line-height: 30px;
  color: #222426;
}
.nd-body h2 + p { margin-top: 24px; }
.nd-body img {
  max-width: 100%;
  height: auto;
}

