/* 新闻详情 - news_details.html (设计基准 1920px) */

:root {
  --nd-primary: #14126f;
  --nd-accent: #1bb8ce;
  --nd-text: #333333;
  --nd-text-muted: #666666;
  --nd-text-light: #999999;
  --nd-line: #e5e5e5;
  --nd-btn-bg: #f2f2f2;
  --nd-article-max: 1000px;
}

.site-main--nd {
  min-height: auto;
  overflow: hidden;
}

/* ========== Article ========== */

.nd-article {
  padding: clamp(48px, 5.208vw, 100px) 0 clamp(56px, 5.208vw, 100px);
  background: #ffffff;
}

.nd-article__inner {
  max-width: var(--nd-article-max);
  margin-left: auto;
  margin-right: auto;
}

.nd-article__header {
  text-align: left;
}

.nd-article__title {
  margin: 0;
  font-size: clamp(24px, 1.875vw, 36px);
  font-weight: 600;
  line-height: 1.4;
  color: #000000;
}

.nd-article__date {
  display: block;
  margin-top: clamp(12px, 1.042vw, 20px);
  font-size: clamp(13px, 0.8333vw, 16px);
  line-height: 1.5;
  color: var(--nd-text-light);
}

.nd-article__divider {
  width: 100%;
  height: 1px;
  margin: clamp(24px, 2.083vw, 40px) 0;
  background: var(--nd-line);
  border: 0;
}

.nd-article__body {
  font-size: clamp(14px, 0.9375vw, 18px);
  line-height: 1.9;
  color: var(--nd-text);
}

.nd-article__body > p {
  margin: 0 0 clamp(16px, 1.25vw, 24px);
}

.nd-article__subtitle {
  margin: clamp(28px, 2.5vw, 48px) 0 clamp(10px, 0.833vw, 16px);
  font-size: inherit;
  font-weight: 600;
  line-height: 1.7;
  color: var(--nd-text);
}

.nd-article__subtitle + p {
  margin-bottom: clamp(4px, 0.417vw, 8px);
}

.nd-article__figure {
  margin: clamp(16px, 1.25vw, 24px) 0 0;
  padding: 0;
}

.nd-article__figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--nd-line);
}

/* ========== Pager ========== */

.nd-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 3.333vw, 64px);
  margin-top: clamp(48px, 4.167vw, 80px);
}

.nd-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: clamp(120px, 9.375vw, 180px);
  height: clamp(40px, 2.5vw, 48px);
  padding: 0 clamp(20px, 1.667vw, 32px);
  font-size: clamp(14px, 0.8333vw, 16px);
  font-weight: 500;
  line-height: 1;
  color: var(--nd-accent);
  text-decoration: none;
  background: var(--nd-btn-bg);
  border-radius: 14px;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.nd-pager__arrow {
  display: block;
  width: clamp(12px, 0.781vw, 15px);
  height: auto;
  /* Vector_7 为白色，转成当前强调色 */
  filter: brightness(0) saturate(100%) invert(58%) sepia(72%) saturate(500%)
    hue-rotate(143deg) brightness(95%) contrast(92%);
  transition: filter 0.25s ease;
}

.nd-pager__btn--prev .nd-pager__arrow {
  transform: scaleX(-1);
}

.nd-pager__btn:hover,
.nd-pager__btn--next {
  color: #ffffff;
  background: var(--nd-accent);
}

.nd-pager__btn:hover .nd-pager__arrow,
.nd-pager__btn--next .nd-pager__arrow {
  filter: brightness(0) invert(1);
}

.nd-pager__btn--next:hover {
  background: #17a8bd;
}

.nd-pager__back {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  color: var(--nd-accent);
  text-decoration: none;
  font-size: clamp(13px, 0.8333vw, 16px);
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.nd-pager__back:hover {
  opacity: 0.75;
}

.nd-pager__back-icon {
  display: block;
  width: clamp(16px, 1.042vw, 20px);
  height: auto;
}

/* ========== Responsive ========== */

@media (max-width: 767px) {
  .nd-article {
    padding: clamp(32px, 8vw, 48px) 0 clamp(40px, 10vw, 64px);
  }

  .nd-pager {
    flex-wrap: wrap;
    gap: 20px 24px;
  }

  .nd-pager__btn {
    min-width: calc(50% - 40px);
    order: 1;
  }

  .nd-pager__back {
    order: 0;
    width: 100%;
    flex-direction: row;
    gap: 8px;
  }

  .nd-pager__btn--prev {
    order: 1;
  }

  .nd-pager__btn--next {
    order: 2;
  }
}
