/* ==========================================================
   新闻/案例详情页 nwsd- 专属样式
   ========================================================== */
.nwsd-main {
  padding: 48px 0 72px;
  background: #f5f7fa;
}

/* ---------- 面包屑 ---------- */
.nwsd-crumb .breadcrumb {
  margin-bottom: 16px;
  padding: 0;
}

.nwsd-crumb .breadcrumb-item {
  font-size: 14px;
  color: #667085;
}

.nwsd-crumb .breadcrumb-item a {
  color: #667085;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nwsd-crumb .breadcrumb-item a:hover {
  color: #004da1;
}

.nwsd-crumb .breadcrumb-item.active {
  color: #004da1;
}

.nwsd-crumb .breadcrumb-item+.breadcrumb-item::before {
  content: "\ea6e";
  font-family: "remixicon";
  color: #c0c5d0;
}

.nwsd-crumb .breadcrumb-item a i {
  margin-right: 4px;
}

/* ---------- 返回列表 ---------- */
.nwsd-back {
  margin-bottom: 24px;
}

.nwsd-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #ffffff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  font-size: 14px;
  color: #333a46;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nwsd-back__btn i {
  font-size: 16px;
  color: #004da1;
  transition: transform 0.3s ease;
}

.nwsd-back__btn:hover {
  border-color: #004da1;
  color: #004da1;
}

.nwsd-back__btn:hover i {
  transform: translateX(-3px);
}

/* ---------- 详情两栏 ---------- */
/* 注意：不能给 .row 设置 gap，会与 Bootstrap 百分比栅格冲突导致右栏换行；
   两栏间距使用 Bootstrap 默认 gutter（--bs-gutter-x: 1.5rem）即可 */

/* --- 左栏：文章 --- */
.nwsd-article {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 6px 24px rgba(0, 77, 161, 0.06);
}

.nwsd-article__badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 77, 161, 0.08);
  color: #004da1;
  font-size: 13px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.nwsd-article__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a2e;
  margin-bottom: 16px;
  width: 100%;
  word-break: break-all;
}

.nwsd-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #eef0f4;
}

.nwsd-article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #98a2b3;
}

.nwsd-article__meta span i {
  font-size: 15px;
  color: #d4811a;
}

.nwsd-article__content {
  font-size: 15px;
  line-height: 2;
  color: #4b5563;
}

.nwsd-article__content p {
  margin-bottom: 16px;
  width: 100%;
  overflow-wrap: break-word;
}

.nwsd-article__content p img {
  width: 100%;
}

.nwsd-article__content p:last-child {
  margin-bottom: 0;
}

/* --- 上一篇 / 下一篇 --- */
.nwsd-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eef0f4;
}

.nwsd-page__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #fafbfd;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nwsd-page__link i {
  font-size: 18px;
  color: #004da1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nwsd-page__link span {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  max-width: 300px;
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nwsd-page__link:hover {
  border-color: #004da1;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 77, 161, 0.1);
}

.nwsd-page__link--next:hover i {
  transform: translateX(3px);
}

.nwsd-page__link--prev:hover i {
  transform: translateX(-3px);
}

.nwsd-page__link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* --- 右栏：热门资讯 --- */
.nwsd-side {
  /* 默认静态定位，小屏随文档流上下布局 */
  position: static;
}

.nwsd-hot {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 6px 24px rgba(0, 77, 161, 0.06);
}

.nwsd-hot__hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid #004da1;
}

.nwsd-hot__hd i {
  font-size: 22px;
  color: #004da1;
}

.nwsd-hot__hd h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0;
}

.nwsd-hot__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nwsd-hot__item a {
  display: flex;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nwsd-hot__item a:hover {
  opacity: 0.85;
}

.nwsd-hot__thumb {
  width: 108px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.nwsd-hot__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nwsd-hot__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nwsd-hot__meta time {
  font-size: 12px;
  color: #98a2b3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nwsd-hot__meta time i {
  font-size: 13px;
}

.nwsd-hot__meta h6 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: #333a46;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.nwsd-hot__item a:hover h6 {
  color: #004da1;
}

.nwsd-hot__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px 0;
  font-size: 14px;
  color: #004da1;
  text-decoration: none;
  border-top: 1px solid #eef0f4;
  transition: color 0.3s ease;
}

.nwsd-hot__more:hover {
  color: #003a7a;
}

/* ---------- 响应式 ---------- */
/* 大屏（≥992px）：左文章 / 右热门资讯 左右布局，右栏粘滞定位 */
@media (min-width: 992px) {
  .nwsd-side {
    position: sticky;
    top: 24px;
  }
}

/* 小屏（<992px）：单列上下布局，右栏随文档流显示在文章下方 */
@media (max-width: 991px) {
  .nwsd-main {
    padding: 32px 0 56px;
  }

  .nwsd-article {
    padding: 32px 28px;
  }

  .nwsd-side {
    position: static;
  }
}

@media (max-width: 767px) {
  .nwsd-article {
    padding: 24px 18px;
  }

  .nwsd-article__title {
    font-size: 21px;
  }

  .nwsd-page {
    grid-template-columns: 1fr;
  }
}