/* 资讯详情 页面样式（由原型导出） */
/* ============================================================
   新闻详情页
   ============================================================ */
.nd-page { padding: 56px 0 100px; }
.nd-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.nd-title { font-size: 30px; font-weight: 900; line-height: 1.45; margin-bottom: 16px; }
.nd-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--gray);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.nd-meta span { display: flex; align-items: center; gap: 6px; }
.nd-meta svg { color: var(--brand-red); }

.nd-body { font-size: 15px; color: var(--steel); line-height: 2; }
.nd-body p { margin-bottom: 16px; }
.nd-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--brand-red);
  line-height: 1.4;
}
.nd-body img {
  max-width: 100%; height: auto;
  border-radius: 6px;
  margin: 24px 0;
  box-shadow: 0 16px 44px rgba(0,0,0,0.1);
}
/* 富文本编辑器（v1.1.14）能写出来的其余元素 —— 与后台 .rtx-body 同款排版 */
.nd-body ul, .nd-body ol { margin: 0 0 16px 24px; }
.nd-body li { margin: 6px 0; }
.nd-body a { color: var(--brand-red); text-decoration: underline; }
.nd-body a:hover { color: var(--brand-red-dark); }
.nd-body blockquote {
  margin: 24px 0; padding: 16px 20px; background: var(--bg-soft);
  border-left: 4px solid var(--brand-red); border-radius: 0 4px 4px 0;
}
.nd-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.nd-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.nd-body th, .nd-body td {
  border: 1px solid var(--line); padding: 10px 12px; font-size: 14px; text-align: left;
}
.nd-body th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.nd-quote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-left: 4px solid var(--brand-red);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--steel);
  line-height: 1.9;
}

/* 上一篇/下一篇 */
.nd-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.nd-pn {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.25s;
}
.nd-pn:hover { border-color: rgba(200,16,46,0.3); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.nd-pn .lbl { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.nd-pn .ttl { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.nd-pn:hover .ttl { color: var(--brand-red); }
.nd-pn.next { text-align: right; }

/* 侧栏 */
.nd-side { position: sticky; top: 128px; }
.nd-side-block { border: 1px solid var(--line); border-radius: 4px; background: #fff; margin-bottom: 20px; overflow: hidden; }
.nd-side-title {
  padding: 14px 18px; font-size: 14px; font-weight: 700; color: #fff;
  background: var(--ink); display: flex; align-items: center; gap: 10px;
}
.nd-side-title::before { content: ""; width: 4px; height: 14px; background: var(--brand-red); }
.nd-side-body { padding: 16px 18px; }
.nd-side-news a {
  display: block;
  font-size: 13px;
  color: var(--steel);
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  line-height: 1.6;
  transition: color 0.2s;
}
.nd-side-news a:last-child { border-bottom: none; }
.nd-side-news a:hover { color: var(--brand-red); }
.nd-side-news a span { display: block; font-size: 11px; color: var(--gray); margin-top: 2px; }

@media (max-width: 1024px) {
  .nd-layout { grid-template-columns: 1fr; }
  .nd-side { position: static; }
}
@media (max-width: 600px) {
  .nd-prevnext { grid-template-columns: 1fr; }
}
