/* =========================================================
   新闻列表页（对齐原站 catid=74：日期 + 标题 + 摘要 + 详细信息）
   单栏文字列表，沿用全站红/灰配色与 .container / .pagination

   优先级说明：public/static/cms/css/inner.css 中存在全局规则
   .news-list li { display:flex; align-items:center; gap:16px; flex-wrap:wrap; ... }
   与 .news-list li a { font-size:17px; color: var(--text); }
   其优先级为 (0,1,1)/(0,1,2)，会盖过本文件里 .news-item（0,1,0）等规则，
   导致“左图右文”布局与“详细信息”红底白字按钮失效。
   因此本文件所有 .news-item* 选择器统一加上 .news-list 前缀，
   优先级升至 (0,2,x)，确保稳定盖过 inner.css 的全局规则。
   ========================================================= */

.news-page {
  padding: var(--section-pad, 54px) 0;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 列表项（左图右文）。加 .news-list 前缀，优先级 (0,2,0) 盖过 inner.css 的 .news-list li */
.news-list .news-item {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border, #ececec);
}
.news-list .news-item:last-child {
  border-bottom: none;
}

/* 缩略图（左）：对齐原站 400×250，无圆角、无放大（贴近原站观感） */
.news-list .news-item__thumb {
  flex: 0 0 400px;
  width: 400px;
  height: 250px;
  display: block;
  overflow: hidden;
  background: #f3f3f3;
}
.news-list .news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 文字区（右） */
.news-list .news-item__body {
  flex: 1 1 auto;
  min-width: 0;
}

/* 元信息：日期（灰色，对齐原站 .published） */
.news-list .news-item__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-meta, #999);
}
.news-list .news-item__date {
  color: var(--text-meta, #999);
  font-weight: 400;
}

/* 标题 */
.news-list .news-item__title {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 600;
  font-family: 'PT Sans', sans-serif;
}
/* 加 .news-list 前缀，优先级 (0,2,1) 盖过 inner.css 的 .news-list li a */
.news-list .news-item__title a {
  color: #222;
  text-decoration: none;
  transition: color .2s;
}
.news-list .news-item__title a:hover {
  color: var(--red, #E53333);
}

/* 摘要 */
.news-list .news-item__excerpt {
  margin: 0 0 12px;
  color: var(--text, #555);
  font-size: 14px;
  line-height: 1.85;
  font-family: 'PT Sans', sans-serif;
}

/* 阅读更多：对齐原站 .btn.btn-default（红底白字实心按钮，hover 反白）
   加 .news-list 前缀，优先级 (0,2,0) 盖过 inner.css 的 .news-list li a（白字红底按钮真正生效） */
.news-list .news-item__more {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 26px;
  background: var(--red, #dc291e);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid var(--red, #dc291e);
  border-radius: 3px;
  transition: background .2s, color .2s;
}
.news-list .news-item__more:hover {
  background: #fff;
  color: var(--red, #dc291e);
}

.news-list .news-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--text-meta, #999);
}

/* 中屏：缩略图缩到 180×112.5（对齐原站 768–1099 断点），仍左图文右 */
@media (max-width: 1099px) and (min-width: 768px) {
  .news-list .news-item__thumb {
    flex: 0 0 180px;
    width: 180px;
    height: 112.5px;
  }
}

/* 移动端：改为纵向堆叠，缩略图通栏 */
@media (max-width: 768px) {
  .news-list .news-item {
    flex-direction: column;
    gap: 14px;
    padding: 22px 0;
  }
  .news-list .news-item__thumb {
    flex: none;
    width: 100%;
    height: 200px;
  }
  .news-list .news-item__title {
    font-size: 17px;
  }
  .news-list .news-item__excerpt {
    font-size: 14px;
  }
}

/* =========================================================
   新闻列表页全宽 banner（对齐原站 catid=74 的 et_pb_fullwidth_slider 区段）
   观感镜像 category_product.html / category_product.css 的 .product-banner：
   全宽背景图 + 深色蒙版 + 容器内左侧白色标题；标题类用 .nb-title，
   避免与 .product-banner 的 .pb-title 冲突。
   背景图用站内已有的 /static/cms/images/slajder1.png（后续可换）。
   ========================================================= */
.news-banner {
  position: relative;
  width: 100%;
  min-height: 300px;
  background: #1f1f26 url(/static/cms/images/news_banner.jpg) center center / cover no-repeat;
  display: flex;
  align-items: center;
}
#et-main-area .news-banner .news-banner__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
  text-align: left !important;
}
#et-main-area .news-banner .nb-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  text-align: left !important;
  margin: 0;
  letter-spacing: 1px;
}
.news-banner .nb-slash {
  color: var(--red, #E53333) !important;
  margin-right: 6px;
}

/* =========================================================
   新闻详情页（show_news）：对齐原站 catid=74 详情风格
   ========================================================= */
.news-detail {
  padding: 34px 0 56px;
}
.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-meta, #999);
}
.news-detail__meta time {
  color: var(--red, #E53333);
  font-weight: 600;
  letter-spacing: .5px;
}
.news-detail__source {
  padding: 2px 10px;
  border: 1px solid var(--border-2, #d9d9d9);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-meta, #999);
}
.news-detail__banner {
  margin: 6px 0 26px;
  border-radius: 6px;
  overflow: hidden;
}
.news-detail__banner img {
  width: 100%;
  height: auto;
  display: block;
}
.news-detail__content {
  font-size: 16px;
  line-height: 1.95;
  color: #333;
}
.news-detail__content p {
  margin: 0;
  padding: 0 !important;   /* 段间距归零；同时压掉老内容自带的内联 padding-bottom(27px) */
}
.news-detail__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px auto;
}
.news-detail__back {
  margin-top: 38px;
}
.news-detail__back a {
  display: inline-block;
  padding: 11px 28px;
  background: var(--red, #E53333);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background .2s;
}
.news-detail__back a:hover {
  background: #c1271d;
}

/* 新闻栏目标题区：去掉 inner.css 的灰底，仅新闻栏目生效 */
#et-main-area .main_title_container {
  background: transparent;
}

/* =========================================================
   分页（TP8 Bootstrap 驱动：ul.pagination > li，激活项为 <li class="active"><span>）
   inner.css 的 .pagination 未 reset ul/li：li 块级竖排 + 圆点符号；
   且 .pagination .active 把整行 li 涂红（li 块级占满整行）→ 通栏红条。
   这里统一修正，作用域限定新闻页。
   ========================================================= */
.news-page .pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-page .pagination li {
  display: inline-block;
}
/* 抵消 inner.css 涂在 li.active 上的通栏红底 */
.news-page .pagination li.active {
  background: transparent;
}
/* 红底只涂页码块本身（span/a），与 inner.css 的盒子风格一致 */
.news-page .pagination li.active span,
.news-page .pagination li.active a {
  background: var(--red, #dc291e);
  color: #fff;
  border-color: var(--red, #dc291e);
}
