/* ==========================================================================
   新闻资讯栏目：列表页 + 内容详情页
   复用 style.css / subpage.css 的变量与基础组件
   ========================================================================== */

/* ---------- 栏目页 Banner ---------- */
.page-banner--news { background-image: url('../images/banner-service.jpg'); }
.page-banner--news .page-banner-copy h1 { font-size: clamp(40px, 4.6vw, 68px); }

/* ---------- 筛选栏 ---------- */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 26px 0;
}
.news-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
}
.news-filter-chip:hover { border-color: rgba(31,109,255,.4); color: var(--blue); }
.news-filter-chip.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31,109,255,.22);
}
.news-filter-chip span { opacity: .7; font-size: 12px; }

/* ---------- 新闻列表：卡片式网格（结合首页与参考布局） ---------- */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 20px;
}
.news-list-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 34px 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.news-list-item:hover {
  transform: translateY(-5px);
  border-color: rgba(31,109,255,.35);
  box-shadow: 0 22px 50px rgba(11,26,48,.09);
}
/* 顶部：超大日期数字 + 年月 + 右上箭头 */
.news-list-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.news-list-date { display: block; }
.news-list-date strong {
  display: block;
  color: #9fb0c8;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}
.news-list-date small {
  display: block;
  margin-top: 8px;
  color: #8b95a5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
}
.news-list-item:hover .news-list-date strong { color: var(--blue); }
.news-list-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #9fb0c8;
  transition: all .28s ease;
}
.news-list-go .icon { width: 18px; height: 18px; }
.news-list-item:hover .news-list-go { color: #fff; background: var(--blue); transform: rotate(-45deg); }
/* 内容区 */
.news-list-body { display: flex; flex-direction: column; flex: 1; padding-top: 22px; }
.news-list-cat {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}
.news-list-body h3 {
  margin: 0 0 12px;
  color: #1b2740;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  transition: color .25s ease;
}
.news-list-item:hover .news-list-body h3 { color: var(--blue); }
.news-list-body p {
  margin: 0;
  color: #8b95a5;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 分页 ---------- */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 50px 0 20px;
}
.news-page-link {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.news-page-link:hover { border-color: var(--blue); color: var(--blue); }
.news-page-link.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.news-page-link.is-disabled { opacity: .4; pointer-events: none; }
.news-page-link .icon { width: 18px; height: 18px; }
.news-page-info { margin-left: 6px; color: #8a98ad; font-size: 12px; }

/* ---------- 文章详情头部（无 Banner 图） ---------- */
/* 新闻详情头部：深色横幅背景 + 暗色遮罩 + 左下标题元信息 + 右下面包屑
   借鉴参考布局的信息组织方式，用品牌蓝竖线、图标化元信息与渐变遮罩形成自有风格 */
.news-article-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 34px;
  overflow: hidden;
  background: #0b1a30 url('../images/banner-service.jpg') center / cover no-repeat;
  color: #fff;
}
.news-article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,15,30,.94) 0%, rgba(8,20,40,.82) 46%, rgba(10,26,52,.5) 100%),
              linear-gradient(0deg, rgba(6,15,30,.88) 0%, transparent 60%);
}
.news-article-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #35c9f0 55%, transparent);
}
/* 与正文共用 .container 宽度约束，不覆盖为 100%，保证头部内容与正文同宽对齐 */
.news-hero-inner { position: relative; z-index: 2; }
/* 头部主内容块与正文左列同宽：正文 = 容器 - 侧栏300 - 间距56 */
.news-hero-main { max-width: calc(100% - 356px); padding-left: 24px; border-left: 3px solid var(--blue); }
.news-hero-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 13px;
  border: 1px solid rgba(159,192,255,.5);
  border-radius: 100px;
  color: #9fc0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.news-article-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.34;
  text-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.news-hero-lead { max-width: 780px; margin: 16px 0 0; color: #c3d1e4; font-size: 16px; line-height: 1.85; }
.news-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
  color: #a9bdd8;
  font-size: 12px;
}
.news-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.news-hero-meta .icon { width: 15px; height: 15px; color: #7db1ff; }
/* 右下面包屑：当前位置 */
.news-hero-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(159,192,255,.18);
  color: #8fa6c4;
  font-size: 12px;
}
.news-hero-crumb .crumb-label { color: #6f89ab; margin-right: 4px; }
.news-hero-crumb a { color: #a9bdd8; }
.news-hero-crumb a:hover { color: #fff; }
.news-hero-crumb span[aria-hidden] { color: #55708f; }

/* ---------- 文章正文布局 ---------- */
.news-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  padding: 66px 0 76px;
}
.news-article-main { min-width: 0; }
.news-article-content { color: #33415a; font-size: 16px; line-height: 2; }
.news-article-content p { margin: 0 0 22px; }
.news-article-content h2 {
  margin: 42px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--blue);
  color: var(--navy);
  font-size: 24px;
  line-height: 1.4;
}
.news-article-content ul { margin: 0 0 24px; padding-left: 22px; }
.news-article-content li { margin-bottom: 10px; padding-left: 4px; }
.news-article-content li::marker { color: var(--blue); }
.news-article-quote {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: #f4f8ff;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
}
.news-article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.news-article-tags span { padding: 7px 14px; border-radius: 100px; background: #eef4ff; color: var(--blue); font-size: 12px; font-weight: 600; }

/* ---------- 文章侧栏 ---------- */
.news-article-side { display: grid; gap: 20px; align-content: start; }
.news-side-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.news-side-card h3 { margin: 0 0 18px; color: var(--navy); font-size: 16px; }
.news-side-list { display: grid; gap: 16px; }
.news-side-link { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; text-decoration: none; color: inherit; }
.news-side-link .news-side-num { color: #b9d0f0; font-size: 18px; font-weight: 800; line-height: 1; }
.news-side-link strong { display: block; color: var(--navy); font-size: 13px; line-height: 1.6; transition: color .2s; }
.news-side-link:hover strong { color: var(--blue); }
.news-side-link small { display: block; margin-top: 4px; color: #8a98ad; font-size: 11px; }
.news-side-cta { padding: 26px; border-radius: var(--radius); background: linear-gradient(150deg, #0d2240, #143c6e); color: #fff; }
.news-side-cta h3 { margin: 0 0 10px; font-size: 18px; }
.news-side-cta p { margin: 0 0 18px; color: #bcd0e8; font-size: 13px; line-height: 1.8; }
.news-side-cta .btn { width: 100%; }

/* ---------- 相关新闻 ---------- */
.news-related { padding: 72px 0; background: var(--bg); }
.news-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-related-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.news-related-card:hover { transform: translateY(-4px); border-color: rgba(31,109,255,.35); box-shadow: 0 18px 40px rgba(11,26,48,.08); }
.news-related-card time { color: #8a98ad; font-size: 12px; }
.news-related-card h3 { margin: 12px 0 10px; color: var(--navy); font-size: 17px; line-height: 1.5; }
.news-related-card:hover h3 { color: var(--blue); }
.news-related-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .news-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news-list-item { padding: 26px; min-height: 300px; }
  .news-list-date strong { font-size: 44px; }
  .news-article-layout { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 60px; }
  .news-article-side { grid-template-columns: 1fr 1fr; }
  .news-related-grid { grid-template-columns: repeat(2, 1fr); }
  .news-hero-main { max-width: 100%; }
}
@media (max-width: 640px) {
  .news-list { grid-template-columns: 1fr; gap: 14px; }
  .news-list-item { padding: 24px; min-height: 0; }
  .news-list-date strong { font-size: 42px; }
  .news-list-body h3 { font-size: 16px; }
  .news-list-body p { font-size: 13px; -webkit-line-clamp: 3; }
  .news-filter { gap: 8px; padding: 20px 0; }
  .news-filter-chip { padding: 8px 14px; font-size: 13px; }
  .news-pagination { flex-wrap: wrap; gap: 6px; padding: 36px 0 10px; }
  .news-page-link { min-width: 38px; height: 38px; padding: 0 8px; font-size: 13px; }
  .news-page-info { width: 100%; margin: 8px 0 0; text-align: center; }
  .news-article-hero { min-height: 0; padding: 116px 0 26px; background-position: 62% center; }
  .news-hero-main { padding-left: 16px; }
  .news-hero-crumb { justify-content: flex-start; margin-top: 22px; font-size: 11px; }
  .news-hero-lead { font-size: 14px; }
  .news-hero-meta { gap: 8px 16px; }
  .news-article-hero h1 { font-size: 28px; }
  .news-article-content { font-size: 15px; line-height: 1.95; }
  .news-article-content h2 { font-size: 20px; }
  .news-article-side { grid-template-columns: 1fr; }
  .news-related-grid { grid-template-columns: 1fr; }
}

/* 首页新闻卡片标题链接 */
.news-item h3 a { color: inherit; text-decoration: none; transition: color .25s ease; }
.news-item:hover h3 a { color: var(--blue); }

/* DCCMS 新闻正文配图样式 */
.news-article-content .news-figure { margin: 28px 0 30px; }
.news-article-content .news-figure img {
  width: 100%; display: block; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(12,32,63,.10);
}
.news-article-content .news-figure figcaption {
  margin-top: 10px; text-align: center; color: var(--muted, #6b7689);
  font-size: 13px; line-height: 1.7;
}
.news-article-content .news-article-note {
  margin: 24px 0; padding: 14px 18px; border-left: 3px solid var(--blue, #1f6dff);
  background: #eef4ff; color: #3d4b61; font-size: 14px; border-radius: 0 8px 8px 0;
}
.news-article-content ol { margin: 0 0 24px; padding-left: 22px; }
.news-article-content ol li { margin-bottom: 10px; }
.news-article-content h3 { font-size: 20px; margin: 28px 0 14px; color: var(--navy, #0b1a30); }
@media (max-width: 760px) {
  .news-article-content .news-figure { margin: 22px 0; }
  .news-article-content .news-figure figcaption { font-size: 12px; }
}
