/*
 * 国家生态环境科技成果转化综合服务平台 通用列表(含详情)页样式文件
 * @author: zhuzl<me@zhuzhilong.com>
 * @date: 2024-06-10 17:58:00
 */

 .page-news .common-bg {
  background: url("../img/banner-bg-news-list.png") no-repeat top center;
  background-size: cover;
}
.banner-catalog {
  height: calc(468px - 175px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  color: #fff;
}
.banner-catalog h2 {
  font-size: 40px;
  font-weight: bold;
  line-height: 56px;
  color: #333;
}
.banner-catalog p {
  font-size: 20px;
  line-height: 28px;
  color: #666;
  margin-top: 16px;
}

.sub-nav-wrap {
  background-color: #FFF;
  height: 60px;
  border-bottom:solid 1px #E8EBF3
}
.sub-nav-wrap .nav-link {
  line-height: 60px;
  position:relative;
  display:inline-block;
  padding:0px;
  margin: 0 30px;
  font-size:16px;
  color:var(--text-color-normal);
}
.sub-nav-wrap .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color-dark);
  transition: all 0.3s ease-in-out;
}
.sub-nav-wrap .nav-link.active, .sub-nav-wrap .nav-link:hover {
  color: var(--primary-color-dark);
  font-weight: 500;
}
.sub-nav-wrap .nav-link.active::after,.sub-nav-wrap .nav-link:hover::after {
  width: 100%;
}
.sub-nav-wrap .nav:first-child a {
  margin-left: 0;
}

.news-list-wrap {
  padding: 8px 0 16px 0;
}
.news-article-item {
  padding: 2rem 0;
  border-bottom: 1px solid #E8EBF3;
}
.news-article-title {
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-color-dark);
  overflow: hidden;
  margin-bottom: 14px;
  border-bottom: 1px solid #E8EBF3;
  padding-bottom: 14px;
  position: relative;
}
.news-article-title::before {
  content: "";
  width: 100px;
  position: absolute;
  left: 0;
  bottom: 0;
  border-bottom: 2px solid #158CE5;
}
.news-article-desc {
  color: var(--text-color-normal);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  /* height: 78px; */
  margin-bottom: 16px;
  line-height: 26px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.news-article-time {
  font-size: 14px;
  font-style: normal;
  color: var(--text-color-light);
}

.news-article-link:hover .news-article-title {
  color:var(--primary-color);
}
.news-article-logo {
  transition: all 0.3s ease-in-out;
  flex: 0 0 306px;
  max-height: 186px;
  overflow: hidden;
}
.news-article-link:hover .news-article-logo {
  /* transform: scale(1.05); */
}
.news-article-link:hover .news-article-desc {
  opacity: 0.85;
}


.page-news-detail {
  background: #F2F3F5 url("../img/banner-bg-news-detail.png") no-repeat top center;
  background-size: contain;
}
.page-news-detail .common-header{
  height: 218px;
}
.page-news-detail .common-bg {
  background-image: none;
  display: none;
}
.page-news-detail .common-body > .container {
  padding-bottom: 3rem;
}
.news-detail-wrap {
  position: relative;
  background: #fff;
  padding: 3rem;
}

.news-detail-wrap .breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 20px;
  /* $breadcrumb-divider: quote(">"); */
}
.news-detail-wrap .breadcrumb .breadcrumb-item a{
  color:var(--text-color-light);
}
.news-detail-wrap .breadcrumb .breadcrumb-item:last-child a{
  color:var(--text-color-dark);
}
.news-detail-wrap .breadcrumb .breadcrumb-item+.breadcrumb-item::before{
  content:'>';
  font-family: "simsun";
  color:#E8E8E8;
}
.article-title {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
  color:var(--text-color-dark);
}
.article-publish-date {
  color:var(--text-color-light);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  margin-top: 10px;
  line-height: 32px;
  text-align: center;
}
.article-content {
  border-top: solid 1px #E8EBF3;
  margin-top: 32px;
  padding: 20px 0 60px 0;
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
}
.article-source {
  padding: 10px 0;
  border-top: 1px solid #eee;
}

.news-list-simple-wrap {
  padding-top: 36px;
}
.news-list-simple-wrap .list-item {
  display: block;
  padding-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E8EBF3;
  line-height: 25px;
  font-size: 18px;
  color: #333;
}
.news-list-simple-wrap .list-item .date {
  font-size: 14px;
  line-height: 20px;
  color: #999;
  min-width: 72px;
}

.common-page-nav {
  padding-top: 0;
  padding-bottom: 40px;
}

@media screen and (max-width: 800px) {
  .news-list-wrap {
    padding: 1rem;
  }
  .news-article-link .d-flex{
    flex-direction: column;
    padding-bottom: 16px;
  }
  .news-article-link .d-flex img {
    width: 100%;
    height: auto;
  }
  .news-article-link .pl-3 {
    padding-left:0;
  }
  .news-article-title {
    margin-top: 16px;   
    margin-bottom: 8px;
    padding-bottom: 8px;     
    font-size: 16px;
    line-height: 1.5;
    font-weight: bold;
  }
  .news-article-desc {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
  }
  .news-article-time {
    font-size: 12px;
  }
  .news-detail-wrap {
    margin-top: -300px;
  }
}

@media screen and (max-width: 600px) {
  .news-detail-wrap {
    padding: 2rem;
  }
  .common-header {
    height: auto;
  }
  .banner-catalog {
    height: 170px;
  }
  .banner-catalog h2 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 0;
  }
  .banner-catalog p {
    font-size: 16px;
    margin-top: 8px;
    line-height: 1.5;
  }
  .sub-nav-wrap {
    height: 44px;
  }
  .sub-nav-wrap .nav-link {
    font-size: 14px;
    line-height: 20px;
    padding: 12px 0;
    margin-right: 24px;
  }
  .news-article-item {
    padding: 0;
  }
  .article-title {
    font-size: 18px;
  }
  .article-content {
    padding-bottom: 0;
  }
}
