﻿/* 公司新闻详情页样式 · NCRSIT Neo v1.4
   使用页面：/news/detail.html 等详情页
   依赖：style.css */

/* ---------------------------------------------------------------------------
   1. 首屏横幅 · 私有 hero（不依赖任何公共 hero 类）
   --------------------------------------------------------------------------- */
.nw-hero {
  position: relative;
  min-height: 250px;
  padding: 110px 0 56px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(4, 27, 62, .96), rgba(10, 79, 137, .68)),
    url('/assets/images/banner/banner-about.jpg') center/cover no-repeat;
}
.nw-hero__wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.nw-crumb {
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nw-crumb a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}
.nw-crumb a:hover { color: #fff; }
.nw-crumb span { opacity: .6; }
.nw-hero__eyebrow {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #bcd8f3;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
   2. 主内容区 左文右侧栏
   --------------------------------------------------------------------------- */
.nw-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  margin: -56px auto 80px;
  max-width: 1080px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ---------------------------------------------------------------------------
   3. 文章卡
   --------------------------------------------------------------------------- */
.nw-article-card {
  background: #fff;
  border: 1px solid var(--neo-line);
  border-radius: 16px;
  padding: 44px 48px 48px;
  box-shadow: 0 18px 48px rgba(16, 48, 86, .06);
}
.nw-article-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 18px;
  color: #9cb3cc;
  font-size: 13px;
}
.nw-article-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nw-article-card__tag {
  padding: 3px 10px;
  color: var(--neo-blue-700);
  background: #eaf2fb;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
.nw-article-card h1 {
  margin: 0 0 18px;
  color: var(--neo-ink);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
}
.nw-article-card__lead {
  margin: 0 0 30px;
  padding: 18px 22px;
  background: #eef5fc;
  border-left: 4px solid var(--neo-blue-700);
  border-radius: 0 8px 8px 0;
  color: var(--neo-ink);
  font-size: 16px;
  line-height: 1.8;
}

/* 正文排版 */
.nw-article-card__body {
  color: var(--neo-ink);
  font-size: 16px;
  line-height: 1.9;
}
.nw-article-card__body p { margin: 0 0 20px; }
.nw-article-card__body h2 {
  margin: 36px 0 12px;
  color: var(--neo-ink);
  font-size: 22px;
  font-weight: 700;
}
.nw-article-card__body h3 {
  margin: 28px 0 10px;
  color: var(--neo-ink);
  font-size: 18px;
  font-weight: 700;
}
.nw-article-card__body ul,
.nw-article-card__body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.nw-article-card__body li { margin-bottom: 6px; }
.nw-article-card__body blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  background: #f3f7fc;
  border-left: 4px solid var(--neo-blue-700);
  color: var(--neo-muted);
  font-style: italic;
}
.nw-article-card__body blockquote::before
{
  padding-right: 20px;
}
.nw-article-card__body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 18px 0;
}
.nw-article-card__body code {
  padding: 2px 6px;
  background: #f3f7fc;
  border-radius: 4px;
  font-size: 14px;
}

/* ---------------------------------------------------------------------------
   4. 作者卡
   --------------------------------------------------------------------------- */
.nw-author {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--neo-line);
}
.nw-author__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eaf2fb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neo-blue-700);
  font-weight: 700;
  font-size: 18px;
}
.nw-author__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  padding: 7px;
  box-sizing: border-box;
}
.nw-author__name {
  color: var(--neo-ink);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}
.nw-author__role {
  color: var(--neo-muted);
  font-size: 13px;
}

/* ---------------------------------------------------------------------------
   5. 侧栏
   --------------------------------------------------------------------------- */
.nw-aside { display: flex; flex-direction: column; gap: 24px; }

.nw-side-card {
  background: #fff;
  border: 1px solid var(--neo-line);
  border-radius: 14px;
  padding: 22px 22px 24px;
}
.nw-side-card h3 {
  margin: 0 0 14px;
  color: var(--neo-ink);
  font-size: 15px;
  font-weight: 700;
}
.nw-side-list { list-style: none; padding: 0; margin: 0; }
.nw-side-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--neo-line);
}
.nw-side-list li:last-child { border-bottom: 0; }
.nw-side-list a {
  color: var(--neo-ink);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  display: block;
}
.nw-side-list a:hover { color: var(--neo-blue-700); }
.nw-side-list time {
  color: #9cb3cc;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}
.nw-side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-side-tags a {
  padding: 4px 10px;
  color: var(--neo-blue-700);
  font-size: 12px;
  background: #eaf2fb;
  border-radius: 999px;
  text-decoration: none;
}
.nw-side-tags a:hover { background: #dbeafb; }

/* ---------------------------------------------------------------------------
   6. 上一篇 / 下一篇 导航
   --------------------------------------------------------------------------- */
.nw-prev-next {
  max-width: 1080px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.nw-pn {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--neo-line);
  border-radius: 14px;
  text-decoration: none;
  transition: .2s;
}
.nw-pn:hover {
  border-color: #bcd6ef;
  box-shadow: 0 8px 20px rgba(16, 48, 86, .06);
  transform: translateY(-2px);
}
.nw-pn__label {
  color: #9cb3cc;
  font-size: 12px;
  margin-bottom: 6px;
}
.nw-pn h3 {
  margin: 0;
  color: var(--neo-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.nw-pn.next { text-align: right; }

/* 正文配图（图片放在各新闻私有 images 目录） */
.nw-figure { margin: 4px 0 28px; }
.nw-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #eef3f9;
}
.nw-figure figcaption {
  margin-top: 10px;
  color: #8a9aab;
  font-size: 12.5px;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   6. 免责声明
   --------------------------------------------------------------------------- */
.nw-disclaimer {
  max-width: 1080px;
  margin: 0 auto 0px;
  padding: 24px 32px 80px 32px;
  background: #f7f9fc;
  border-radius: 10px;
}
.nw-disclaimer h3 {
  margin: 0 0 12px;
  color: var(--neo-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.nw-disclaimer ol {
  margin: 0;
  padding-left: 18px;
  color: var(--neo-muted);
  font-size: 12.5px;
  line-height: 1.9;
}
.nw-disclaimer ol li { margin-bottom: 10px; }
.nw-disclaimer ol li:last-child { margin-bottom: 0; }
.nw-disclaimer a {
  color: var(--neo-blue-700);
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   7. 响应式
   --------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .nw-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nw-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nw-aside .nw-side-card { flex: 1 1 260px; }
  .nw-article-card { padding: 32px 28px 36px; }
  .nw-article-card h1 { font-size: 28px; }
}

@media (max-width: 640px) {
  .nw-hero {
    min-height: 185px;
    padding: 84px 0 28px;
  }
  .nw-detail-layout {
    margin: -32px auto 60px;
    padding: 0 16px;
  }
  .nw-article-card {
    padding: 24px 20px 28px;
    border-radius: 12px;
  }
  .nw-article-card__meta {
    gap: 10px 12px;
    font-size: 12px;
  }
  .nw-article-card h1 { font-size: 24px; line-height: 1.35; }
  .nw-article-card__lead { padding: 14px 16px; font-size: 15px; }
  .nw-article-card__body { font-size: 15px; line-height: 1.85; }
  .nw-article-card__body h2 { font-size: 19px; margin: 28px 0 10px; }
  .nw-aside { flex-direction: column; }
  .nw-prev-next {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .nw-pn.next { text-align: left; }
  .nw-disclaimer {
    padding: 18px 18px;
    margin: 0 16px 40px;
  }
}
