/* ==========================================================================
   新闻详情页 news-detail.html —— 按《麦秸映像改版/5新闻动态-详情.png》设计稿实现
   依赖 assets/css/style.css / footer.css / case.css（头部、在线留言、悬浮工具）
   仅在本页加载，不影响其他页面
   ========================================================================== */

:root {
  --nd-blue: #1677ff;
  --nd-text: #333;
  --nd-sub: #999;
  --nd-line: #e4e7ed;
  --nd-gray: #f5f6f8;
}

body.page-newsdetail { background: #fff; }

/* ============ 顶栏（与新闻/案例页一致） ============ */
body.page-newsdetail .header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  backdrop-filter: none;
}

/* ============ 横幅（设计稿同款 NEWS 墨迹横幅，文字已含在图中） ============ */
.nd-hero {
  min-height: 480px;
  background-color: #05080f;
  background-size: cover;
  background-position: center;
}

/* ============ 面包屑 ============ */
.nd-crumb { background: var(--nd-gray); padding: 14px 0; }
.nd-crumb .container {
  display: flex; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--nd-sub); line-height: 1;
}
.nd-crumb a { color: var(--nd-sub); transition: color .2s; }
.nd-crumb a:hover { color: var(--nd-blue); }
.nd-crumb i { margin: 0 10px; font-style: normal; color: #c0c4cc; }
.nd-crumb span { color: var(--nd-sub); }

/* ============ 正文 ============ */
.nd-article { padding: 54px 0 30px; background: #fff; }

.nd-title {
  margin: 0; text-align: center;
  font-size: 28px; font-weight: 700; color: var(--nd-text); line-height: 1.5;
}
.nd-meta {
  margin: 22px 0 0; text-align: center;
  font-size: 13px; color: var(--nd-sub);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 34px;
}
.nd-divider {
  max-width: 1400px; margin: 28px auto 0;
  border: 0; border-top: 1px solid var(--nd-line);
}

.nd-body { max-width: 1400px; margin: 40px auto 0; }
.nd-body h2 {
  margin: 30px 0 16px; font-size: 17px; font-weight: 700; color: var(--nd-text);
}
.nd-body h2:first-child { margin-top: 0; }
.nd-body p {
  margin: 0 0 16px; font-size: 15px; line-height: 2; color: #555;
}
.nd-figure { margin: 34px 0; }
.nd-figure img {
  display: block; width: 430px; max-width: 100%; height: auto;
}

/* ============ 上一篇 / 返回列表 / 下一篇 ============ */
.nd-postnav { padding: 30px 0 70px; background: #fff; }
.nd-postnav__row {
  display: flex; align-items: stretch; gap: 16px;
  border-top: 1px solid var(--nd-line);
  border-bottom: 1px solid var(--nd-line);
  padding: 0;
}

.nd-postnav__item {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 26px 10px; color: var(--nd-text);
  transition: color .2s;
}
.nd-postnav__item em {
  flex: 0 0 auto; font-style: normal;
  font-size: 13px; letter-spacing: 2px; color: var(--nd-sub);
  text-transform: uppercase; transition: color .2s;
}
.nd-postnav__item span {
  font-size: 14px; color: #555; line-height: 1.7;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s;
}
.nd-postnav__item:hover em,
.nd-postnav__item:hover span { color: var(--nd-blue); }
.nd-postnav__item.is-next { justify-content: flex-end; text-align: right; }

.nd-postnav__back {
  flex: 0 0 auto; align-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 40px;
}
.nd-postnav__back img { width: 100%; height: auto; display: block; }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  body.page-newsdetail .header .container { height: 72px; }
  body.page-newsdetail .brand img { height: 42px; }
  body.page-newsdetail .header__hot-txt b { font-size: 17px; }
  .nd-hero { min-height: 340px; }
  .nd-title { font-size: 24px; }
}

@media (max-width: 900px) {
  body.page-newsdetail .header__hot { display: none; }
  body.page-newsdetail .header__search { display: none; }
}

@media (max-width: 640px) {
  .nd-hero { min-height: 220px; }
  .nd-article { padding: 36px 0 16px; }
  .nd-title { font-size: 20px; }
  .nd-meta { gap: 6px 16px; font-size: 12px; }
  .nd-body { margin-top: 28px; }
  .nd-body h2 { font-size: 16px; }
  .nd-body p { font-size: 14px; }
  .nd-figure { margin: 24px 0; }
  .nd-figure img { width: 100%; }
  .nd-postnav { padding: 16px 0 44px; }
  .nd-postnav__row { flex-wrap: wrap; gap: 0; }
  .nd-postnav__item { flex: 1 1 50%; padding: 16px 4px; }
  .nd-postnav__item span { white-space: normal; font-size: 13px; }
  .nd-postnav__item.is-next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .nd-postnav__back { order: 3; flex: 0 0 100%; justify-content: center; margin-top: 4px; }
}
