/* =========================================================
   新闻详情页 - news-detail.css
   参考：mbt.midea.com.cn 新闻详情（标题/日期/正文/上一篇下一篇）
   要求：白色底色 + 黑色文字，无右侧悬浮，仅公共头部/脚部
   ========================================================= */

.nd-page {
  background: #ffffff;
  padding-bottom: 80px;
}

/* ---------- 文章容器 ---------- */
.nd-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 标题区 ---------- */
.nd-header {
  padding-bottom: 28px;
  border-bottom: 1px solid #eeeeee;
}

.nd-title {
  margin: 0 0 18px;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.4;
  color: #000000;
  letter-spacing: 0.5px;
}

.nd-date {
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: #888888;
}

/* ---------- 正文 ---------- */
.nd-content {
  padding-top: 34px;
}

.nd-content p {
  margin: 0 0 20px;
  font-size: var(--fs-body);
  line-height: 2;
  color: #333333;
  text-align: justify;
}

.nd-content h2 {
  margin: 46px 0 18px;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.4;
  color: #000000;
}

.nd-content p strong {
  color: #000000;
  font-weight: 700;
}

/* ---------- 正文配图 ---------- */
/* 正文中的图片：默认宽度 100%，除非图片自身设置了 width 属性 */
.nd-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 4px;
}
/* 若图片自带 width 属性则尊重原始宽度，不强制拉满 */
.nd-content img[width] {
  width: auto;
  max-width: 100%;
}

.nd-figure {
  margin: 32px 0;
  text-align: center;
}

.nd-figure img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 4px;
}

/* ---------- 上一篇 / 下一篇 ---------- */
.nd-pager {
  max-width: 960px;
  margin: 56px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nd-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 48px;
  padding: 0 36px;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #ffffff;
  color: #333333;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.nd-pager-btn:hover {
  border-color: #0092d8;
  color: #0092d8;
  background: #f2f9fe;
}

/* ---------- 响应式 ---------- */
@media (max-width: 767.98px) {
  .nd-page {
    padding-bottom: 50px;
  }

  .nd-title {
    font-size: var(--fs-h1);
  }

  .nd-content p {
    font-size: var(--fs-body);
    line-height: 1.9;
  }

  .nd-content h2 {
    font-size: var(--fs-h3);
  }

  .nd-pager {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .nd-pager-btn {
    width: 100%;
    max-width: 280px;
  }
}
