﻿/* 新闻详情页 · 内容类型变体组件 · NCRSIT Neo v1.4
   使用页面：/news/company-dynamic-detail-demo.html
            /news/industry-dynamic-detail-demo.html
            /news/viewpoint-detail-demo.html
            /news/festival-greeting-detail-demo.html
            /news/festival-newyear-detail-demo.html
            /news/festival-spring-detail-demo.html
            /news/festival-dragonboat-detail-demo.html
   依赖：news-detail.css（基础详情页样式）+ style.css */

/* ---------------------------------------------------------------------------
   1. 首屏 hero 变体（仅覆盖背景，其余继承 .nw-hero）
   --------------------------------------------------------------------------- */
.nw-hero--company {
  background:
    linear-gradient(110deg, rgba(4, 27, 62, .94), rgba(10, 79, 137, .60)),
    url('/assets/images/banner/banner-news.jpg') center/cover no-repeat;
}
.nw-hero--industry {
  background:
    linear-gradient(110deg, rgba(9, 32, 58, .95), rgba(20, 93, 168, .58)),
    url('/assets/images/banner/banner-solutions.jpg') center/cover no-repeat;
}
.nw-hero--viewpoint {
  background:
    linear-gradient(110deg, rgba(6, 24, 50, .96), rgba(24, 85, 163, .56)),
    url('/assets/images/banner/banner-news-detail.jpg') center/cover no-repeat;
}
.nw-hero--festival {
  min-height: 320px;
  padding: 120px 0 76px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 218, 160, .30), transparent 62%),
    linear-gradient(135deg, #6d1010 0%, #a8261f 48%, #6d1010 100%);
}
.nw-hero--festival .nw-crumb { justify-content: center; }
.nw-hero--festival .nw-hero__eyebrow {
  color: #ffd9a8;
  letter-spacing: 4px;
}

/* 节日祝福 hero 通用：居中 + 大高度 */
.nw-hero--spring,
.nw-hero--newyear,
.nw-hero--dragonboat {
  min-height: 320px;
  padding: 120px 0 76px;
  text-align: center;
}
.nw-hero--spring .nw-crumb,
.nw-hero--newyear .nw-crumb,
.nw-hero--dragonboat .nw-crumb { justify-content: center; }
.nw-hero--spring .nw-hero__eyebrow,
.nw-hero--newyear .nw-hero__eyebrow,
.nw-hero--dragonboat .nw-hero__eyebrow { letter-spacing: 4px; }

/* 春节：深红鎏金 */
.nw-hero--spring {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 210, 130, .34), transparent 60%),
    linear-gradient(135deg, #8c1210 0%, #c0392b 46%, #8c1210 100%);
}
.nw-hero--spring .nw-hero__eyebrow { color: #ffd98f; }

/* 元旦：夜空星蓝 */
.nw-hero--newyear {
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, .45) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, .35) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 42%, rgba(255, 255, 255, .30) 0 1.5px, transparent 3px),
    radial-gradient(circle at 86% 56%, rgba(255, 255, 255, .28) 0 1.5px, transparent 3px),
    radial-gradient(ellipse at 50% 0%, rgba(120, 180, 255, .30), transparent 62%),
    linear-gradient(135deg, #061a3a 0%, #123f7d 52%, #061a3a 100%);
}
.nw-hero--newyear .nw-hero__eyebrow { color: #a9cdf5; }

/* 端午：艾草青绿 */
.nw-hero--dragonboat {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(186, 224, 154, .26), transparent 62%),
    linear-gradient(135deg, #0f3a24 0%, #1f6b43 48%, #0f3a24 100%);
}
.nw-hero--dragonboat .nw-hero__eyebrow { color: #bfe3c8; }

/* ---------------------------------------------------------------------------
   2. 主图与图注
   --------------------------------------------------------------------------- */
.nw-figure { margin: 0 0 30px; }
.nw-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.nw-figure figcaption {
  margin-top: 10px;
  text-align: center;
  color: #9cb3cc;
  font-size: 13px;
}

/* ---------------------------------------------------------------------------
   3. 关键数据条
   --------------------------------------------------------------------------- */
.nw-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 32px;
}
.nw-stat {
  padding: 20px 14px;
  text-align: center;
  background: #f3f7fc;
  border: 1px solid var(--neo-line);
  border-radius: 12px;
}
.nw-stat__num {
  display: block;
  color: var(--neo-blue-700);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}
.nw-stat__num small {
  margin-left: 2px;
  font-size: 15px;
  font-weight: 700;
}
.nw-stat__label {
  display: block;
  margin-top: 6px;
  color: #6b7d95;
  font-size: 12.5px;
}

/* ---------------------------------------------------------------------------
   4. 发展历程时间线
   --------------------------------------------------------------------------- */
.nw-article-card__body .nw-timeline {
  list-style: none;
  margin: 0 0 30px;
  padding-left: 6px;
}
.nw-timeline__item {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 2px solid #e2ebf5;
}
.nw-timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid var(--neo-blue-700);
  border-radius: 50%;
}
.nw-article-card__body .nw-timeline__item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.nw-timeline__year {
  display: block;
  margin-bottom: 4px;
  color: var(--neo-blue-700);
  font-size: 14px;
  font-weight: 700;
}
.nw-timeline__desc {
  color: var(--neo-ink);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------------------------------------------------------------------------
   5. 图片墙
   --------------------------------------------------------------------------- */
.nw-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 30px;
}
.nw-gallery img {
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

/* ---------------------------------------------------------------------------
   6. 信息来源条
   --------------------------------------------------------------------------- */
.nw-source {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 28px;
  padding: 14px 18px;
  background: #f7f9fc;
  border: 1px dashed var(--neo-line);
  border-radius: 10px;
  color: #6b7d95;
  font-size: 13px;
}
.nw-source strong {
  color: var(--neo-ink);
  font-weight: 600;
}
.nw-source a {
  color: var(--neo-blue-700);
  text-decoration: none;
}
.nw-source a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   7. 要点速览
   --------------------------------------------------------------------------- */
.nw-article-card__body .nw-keypoints {
  margin: 0 0 30px;
  padding: 20px 24px 20px 44px;
  background: #eef5fc;
  border-radius: 12px;
  color: var(--neo-ink);
  font-size: 14.5px;
  line-height: 1.85;
}
.nw-keypoints li { margin-bottom: 10px; }
.nw-keypoints li:last-child { margin-bottom: 0; }
.nw-keypoints li::marker {
  color: var(--neo-blue-700);
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   8. 数据表格
   --------------------------------------------------------------------------- */
.nw-table-wrap {
  margin: 0 0 30px;
  overflow-x: auto;
  border: 1px solid var(--neo-line);
  border-radius: 12px;
}
.nw-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.nw-table th,
.nw-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--neo-line);
}
.nw-table thead th {
  background: #f3f7fc;
  color: var(--neo-ink);
  font-size: 13px;
  font-weight: 700;
}
.nw-table tbody tr:last-child td { border-bottom: 0; }
.nw-table td:first-child {
  color: var(--neo-ink);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   9. 文末标签
   --------------------------------------------------------------------------- */
.nw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
}
.nw-tags a {
  padding: 4px 12px;
  background: #eaf2fb;
  color: var(--neo-blue-700);
  font-size: 12.5px;
  border-radius: 999px;
  text-decoration: none;
}
.nw-tags a:hover { background: #dbeafb; }

/* ---------------------------------------------------------------------------
   10. 观点页：开篇引言 + 编号论点
   --------------------------------------------------------------------------- */
.nw-pullquote {
  margin: 0 0 34px;
  padding: 6px 0 6px 26px;
  border-left: 5px solid var(--neo-blue-700);
  color: var(--neo-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.65;
}
blockquote::before {
  font-size: 4rem;
  padding:10px 10px;
}

.nw-pullquote footer {
  margin-top: 12px;
  color: #9cb3cc;
  font-size: 13px;
  font-weight: 400;
}

.nw-points {
  display: grid;
  gap: 24px;
  margin: 0 0 32px;
}
.nw-point { display: flex; gap: 18px; }
.nw-point__no {
  flex: 0 0 auto;
  color: #dbe8f7;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}
.nw-point__body h3 {
  margin: 4px 0 8px;
  color: var(--neo-ink);
  font-size: 18px;
  font-weight: 700;
}
.nw-point__body p {
  margin: 0;
  color: var(--neo-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* 大号作者卡 */
.nw-author--lg { align-items: flex-start; }
.nw-author--lg .nw-author__avatar {
  width: 64px;
  height: 64px;
  font-size: 22px;
}
.nw-author__bio {
  margin-top: 6px;
  color: var(--neo-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 文末小字声明 */
.nw-note {
  margin: 24px 0 0;
  color: #9cb3cc;
  font-size: 12.5px;
  line-height: 1.8;
}

/* ---------------------------------------------------------------------------
   11. 侧栏：公司简介卡
   --------------------------------------------------------------------------- */
.nw-side-profile img {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border-radius: 10px;
}
.nw-side-profile p {
  margin: 0 0 10px;
  color: var(--neo-muted);
  font-size: 13px;
  line-height: 1.75;
}
.nw-side-profile p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   12. 节日祝福页：居中单列
   --------------------------------------------------------------------------- */
.nw-greeting-wrap {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: -76px auto 0;
  padding: 0 24px 50px 24px;
}
.nw-greeting-card {
  padding: 56px 56px 48px;
  text-align: center;
  background: #fff;
  border: 1px solid #f0e3d5;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(90, 20, 20, .12);
}
.nw-greeting__badge {
  display: inline-block;
  padding: 5px 16px;
  color: #a8261f;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  background: #fdf1e3;
  border-radius: 999px;
}
.nw-greeting__title {
  margin: 22px 0 10px;
  color: #7a1414;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 4px;
}
.nw-greeting__sub {
  margin-bottom: 28px;
  color: #b06a3f;
  font-size: 15px;
  letter-spacing: 2px;
}
.nw-greeting__divider {
  width: 60px;
  height: 3px;
  margin: 0 auto 30px;
  background: #e6c9a8;
  border-radius: 2px;
}
.nw-greeting__verse {
  max-width: 560px;
  margin: 0 auto 30px;
  color: #4a3b32;
  font-size: 16px;
  line-height: 2.2;
}
.nw-greeting__verse p { margin: 0 0 6px; }
.nw-greeting__sign {
  color: #7a1414;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.nw-greeting__date {
  margin-top: 8px;
  color: #b08b6a;
  font-size: 13px;
}
.nw-greeting__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-top: 26px;
  color: #c0392b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
  border: 2px solid #c0392b;
  border-radius: 8px;
}
.nw-greeting-back {
  margin: 34px 0 80px;
  text-align: center;
}
.nw-greeting-back a {
  display: inline-block;
  padding: 12px 28px;
  color: #a8261f;
  font-size: 14px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #f0e3d5;
  border-radius: 999px;
  transition: .2s;
}
.nw-greeting-back a:hover {
  background: #fdf1e3;
  transform: translateY(-1px);
}

/* 节日祝福卡配色变体 */
.nw-greeting-card--spring {
  border-color: #f2ddc4;
  box-shadow: 0 24px 60px rgba(140, 18, 16, .14);
}
.nw-greeting-card--newyear {
  border-color: #dbe8f6;
  box-shadow: 0 24px 60px rgba(16, 48, 86, .13);
}
.nw-greeting-card--newyear .nw-greeting__badge {
  color: #1855a3;
  background: #e8f1fb;
}
.nw-greeting-card--newyear .nw-greeting__title { color: #0f3c80; }
.nw-greeting-card--newyear .nw-greeting__sub { color: #5f7ea8; }
.nw-greeting-card--newyear .nw-greeting__divider { background: #c6dcf3; }
.nw-greeting-card--newyear .nw-greeting__sign { color: #0f3c80; }
.nw-greeting-card--newyear .nw-greeting__date { color: #7d9cc0; }
.nw-greeting-card--newyear .nw-greeting__seal {
  color: #1855a3;
  border-color: #1855a3;
}
.nw-greeting-card--dragonboat {
  border-color: #d8e8d8;
  box-shadow: 0 24px 60px rgba(16, 74, 46, .13);
}
.nw-greeting-card--dragonboat .nw-greeting__badge {
  color: #1f6b43;
  background: #e7f3ea;
}
.nw-greeting-card--dragonboat .nw-greeting__title { color: #14512f; }
.nw-greeting-card--dragonboat .nw-greeting__sub { color: #5b8168; }
.nw-greeting-card--dragonboat .nw-greeting__divider { background: #c3ddc9; }
.nw-greeting-card--dragonboat .nw-greeting__sign { color: #14512f; }
.nw-greeting-card--dragonboat .nw-greeting__date { color: #75987f; }
.nw-greeting-card--dragonboat .nw-greeting__seal {
  color: #1f6b43;
  border-color: #1f6b43;
}

/* 返回按钮配色变体 */
.nw-greeting-back--newyear a {
  color: #1855a3;
  border-color: #dbe8f6;
}
.nw-greeting-back--newyear a:hover { background: #e8f1fb; }
.nw-greeting-back--dragonboat a {
  color: #1f6b43;
  border-color: #d8e8d8;
}
.nw-greeting-back--dragonboat a:hover { background: #e7f3ea; }

/* ---------------------------------------------------------------------------
   13. 响应式
   --------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .nw-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nw-greeting-card { padding: 40px 32px 36px; }
  .nw-greeting__title { font-size: 32px; }
}

@media (max-width: 640px) {
  .nw-hero--festival,
  .nw-hero--spring,
  .nw-hero--newyear,
  .nw-hero--dragonboat {
    min-height: 260px;
    padding: 100px 0 52px;
  }
  .nw-stat-grid { gap: 10px; }
  .nw-stat { padding: 16px 10px; }
  .nw-stat__num { font-size: 24px; }
  .nw-gallery { grid-template-columns: 1fr; }
  .nw-gallery img { aspect-ratio: 16 / 10; }
  .nw-pullquote { padding-left: 18px; font-size: 19px; }
  .nw-point { gap: 12px; }
  .nw-point__no { font-size: 28px; }
  .nw-greeting-wrap {
    margin-top: -44px;
    padding: 0 16px 50px 16px;
  }
  .nw-greeting-card {
    padding: 32px 22px 30px;
    border-radius: 16px;
  }
  .nw-greeting__title {
    font-size: 27px;
    letter-spacing: 2px;
  }
  .nw-greeting__verse {
    font-size: 15px;
    line-height: 2;
  }
  .nw-greeting-back { margin: 28px 16px 0px; }
}
