﻿
/* 新闻 - 主体 */
.container{ margin-top: 0;}

/* 新闻 - 列表 */
.newslist ul {  display: block;  width: 100%;  font-size: 0;}
.newslist .swiper-slide{ width: 48%; display: inline-block; border-bottom: 1px solid #ccc; padding-bottom: .3rem; margin-top: .3rem;}
.newslist .swiper-slide:nth-of-type(2n){ margin-left: 4%;}
.newslist .swiper-slide a{ width: 100%; display: inline-flex; justify-content: space-between; flex-wrap: nowrap; align-items: top;}
.newslist .picture {  width: 2.5rem; height: 1.4rem; position: relative; overflow: hidden;}
.newslist .picture::before { content: ''; width: 100%; height: 100%; position: absolute; left: 0; top: 0; background-color: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .9s ease-in-out;}
.newslist .picture img { max-width: 100%; height: 100%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1; transition: transform 1s ease-in-out; transform-origin: 0 0;}
.newslist .news-info { font-size: 0; width: 100%; box-sizing: border-box; padding: 0 0  0 .4rem; flex-shrink: 1;}
.newslist .news-info .Desc{ color: #000; font-size: .14rem; display: block; width: 100%; line-height: 1.5; max-height: .42rem; overflow: hidden; padding-top: .1rem; transition: all 0.3s ease-in-out; }
.newslist .news-info .news-title { font-size: .16rem; font-weight: bold; color: #333; line-height: 1.5; display: block; max-height: .48rem; overflow: hidden; margin-bottom: 10px; transition: all 0.3s ease-in-out; }
.newslist span.time{ font-size: .16rem; color: #999; line-height: 1.5; text-align: center; display: inline-block; transition: all 0.3s ease-in-out;}
.newslist span.time:hover{ color: var(--maincolor);}


.newslist .swiper-slide:hover .picture::before { opacity: 1;}
.newslist .swiper-slide:hover .picture img { transform: scale(1.08) translate(-50%, -50%);}
.newslist .swiper-slide:hover .news-info .time{ color: var(--maincolor);}
.newslist .swiper-slide:hover .news-info .Desc{ color: var(--maincolor);}
.newslist .swiper-slide:hover .news-info .news-title{ color: var(--maincolor);}

/* 新闻详情 */
.news-view{ display: block; width: 100%; font-size: 0; position: relative; margin-top: .5rem;}
.news-view .news-title{ width: 100%; display: block; font-size: .36rem; font-weight: bold; line-height: 1.5; color: #000; margin-bottom: .1rem;}
.news-view .news-info{ display: block; width: 100%; margin: .1rem 0;}
.news-view .news-info .SortName{ font-size: .24rem; color: #666; line-height: 1; display: inline-block; }
.news-view .news-info .time{ font-size: .24rem; color: #666; line-height: 1; border-left: 1px solid #ccc; padding: 0 .2rem; margin-left: .2rem; display: inline-block;}
.news-view-picture{ width: 100%; text-align: center; display: block; margin-bottom: 80px;}
.news-view-picture img{ max-width: 100%;}
.news-content{ width: 100%; display: block; margin: .3rem auto 0; }
.news-content{ font-size: .18rem; width: 100%; line-height: 1.5;  color: #3c3c3c;}
.news-content p { font-size: .18rem; width: 100%; line-height: 1.5; margin-bottom: .2rem;  color: #3c3c3c;}
.news-content img {max-width: 100%;display: block; margin: .1rem auto;}
/* 新闻 详情 上一个 下一个*/
.index-news-tool{ width: 100%; display: block; margin: .4rem auto; border: none; border-top: 2px solid #ccc}
.index-news-tool > div, .index-news-tool > a{ width: auto;}
.index-news-tool .iconfont{ transform: skewX(0); display: inline-block; color: #000; font-size: 14px; line-height: 1.8; margin: 16px 0;}
.index-news-tool .iconfont span{ font-size: 14px; color: #000; display: inline-block; margin: 0 10px; transition: all 0.3s ease-in-out; }
.index-news-tool .iconfont:hover{ background: none; color: var(--maincolor);}
.index-news-tool .iconfont:hover span{ color: var(--maincolor);}



/* 内页通用配置 */
center {font-size: 20px; margin: 20px auto;}
.none{ display: none;}
@media screen and (max-width: 768px){
    .newslist .swiper-slide,
    .newslist .swiper-slide:nth-of-type(2n){
        width: 100%;
        margin-left: 0;
    }
    .news-view .news-title{
        font-size: .24rem;
    }
    .news-view .news-info .SortName,
    .news-view .news-info .time{
        font-size: .18rem;
        color: var(--maincolor);
    }
}