/* 头部分logo */
.header-top{
    width: 100%;
    height: 10px;
    
    background-color: #0d6947;
}

.header,
.header-center,
.header .logo,
.inner {
    height: 140px;
    width: 100%;
    margin-top: 0;
}

.header-center .logo img {
    width: 100%;
    height: 100%;
}

/* 全文检索 */
.right_box {
    position: absolute;
    top: 27px;
    right: 10px;
}

.layui-btn {
    background-color: #0d6947 !important;
}

.layui-icon-login-weibo {
    color: #0d6947;
}

.navBar,
.nav .on a {
    background: #0d6947;
    font-weight: normal;
}

/* 导航栏 */
.nav .sub {
    display: none;
    background: #0d6947;
    min-width: 100%;
    border: none;
    position: absolute;
}

.nav .sub li a {
    color: white;
}

.nav .m:hover * {
    display: block;
}

.nav .m:hover,
.nav .on a:hover {
    background: #00ac3f;
    display: block;
}

.nav h3 a {
    padding: 0 21px;
}

.nav .sub li a {
    border: none;
    white-space: nowrap;
}

.nav .kypt {
    width: auto;
    left: -72%;
}

li.m.kypt1{
    width: 115px;
}

.nav .sub li a:hover {
    color: white;
}

.nav .sub li:hover *,
.nav .sub li:hover {
    background: #00ac3f;
}


/* 主体 */

.item {
    float: left;
    padding: 0;
}

.dialog {
    width: 92%;
    margin: 5px 4%;
}

.dialog-five , .dialog-seven{
    width: 96%;
    margin: 5px 2%;
}


/* 比例 */
.one {
    width: 50%;
}

.five,
.nine,
.eight,
.seven {
    width: 100%;
}

.two {
    display: none;
    width: 50%;
}

.three,
.four,
.six {
    width: 50%;
}
/* 调整通知公告高度 */
.three .itemCon{
    padding-top: 10px;
}

/* 去掉标题的边框和背景 */
.itemTit,
.itemCon {
    padding-top: 0;
    border: none;
    background: none;
}

/* 标题颜色 */
.itemTit h3 {
    color: #0d6947;
    font-size: 25px;
    font-weight: bolder;
    padding: 0;
}

.itemTit .itemMore {
    font-size: 16px;
}

/* 标题的横线 */
.itemTit {
    padding-bottom: 5px;
    border-bottom: 3px solid #0d6947;
}


.newscon {
    width: 100%;
    float: none;
}
/* 通知公告调整 */
.container-tzgg{
    height: 240px;
    overflow: hidden;
}
.container-tzgg .swiper-wrapper{
    height: 25%;
    flex-direction: column;
}



/* 列表的方框 */

/* 修改了通知公告模块 */
#fitslist ul li,
.newscon ul li,
.newscon ul li.ico,
.li-box .info {
    background: none;
    padding-left: 0;
    margin: 15px 0;
    font-size: 16px;
    position: relative;
}
.info .ico-two span{
    font-size: 12px;
    color: #999;
    float: right;
}

.newscon ul li:hover *,.li-box .info:hover * {
    color: #0d6947;
    font-size: 18px;
    font-weight: bold;
    font-family: '微软雅黑';
}


/* 列表方框想大小颜色 */
.newscon .info::before {
    display: block;
    content: "";
    position: absolute;
    top: 36%;
    z-index: 9;
    width: 8px;
    height: 8px;
    background: #0d6947;
}

.newscon .info {
    display: flex;
    justify-content: space-between;
}

.info .ico-one {
    width: 80%;
    padding-left: 20px;
    flex: 1;
}
.info .ico-two{
    width: 20%;
}

.newscon .info .ico-one a,.li-box .info a {
    /* 控制字数 */
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 新闻动态的样式 */
.layui-row1,
.layui-row2,
.layui-row3 {
    float: left;
}

.layui-row1 {
    width: 49%;
}
.one .layui-row{
    /* display: flex; */
    height: 230px;
}
.one .tit{
    z-index: 2;
    position: absolute;
    bottom: 8px;
    width: 96%;
    margin: 0 2%;
    background: rgba(0, 0, 0, 0.6);
    height: 28px;
    font-size: 18px;
    border-radius: 5px;
}
.one .tit p{
    width: 70%;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.one .layui-row1 {
    overflow: hidden;
    height: 135px;
    width: 40%;
    margin-top: 15px;
}
.swiper-pagination{
    position: relative;
    bottom: 30px !important;
    left: 140px !important;
}
.swiper-pagination-bullet{
    background-color: white;
    width: 10px;
    height: 10px;
}
.swiper-wrapper{
    width: 100%;
}

.one .layui-row1 img {
    width: 96%;
    height: 100%;
    border-radius: 4px;
    margin: 0 2%;
}
.one .layui-row2{
    margin-top: 15px;
    width: 58%;
    table-layout: fixed;
}

.four .layui-row1 img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}


.layui-row2 {
    margin-left: 2%;
    width: 65%;
    height: 135px;
    overflow: hidden;
    display: table;
}
.four .layui-row2{
    height: 100px;
}

.layui-row2 div {
    vertical-align: middle;
    display: table-cell;
}

/* .one .layui-row .layui-row2{
    display: none;
} */

.layui-row2 h3 {
    text-align: left;
    font-weight: bold;
    font-size: 17px;
    line-height: 20px;
    /* 控制字数 */
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.layui-row2 h3:hover * {
    font-size: 18px;
    color: #0d6947;
}

.layui-row2 p {
    margin: 2px 0;
    line-height: 22px;
    color: grey;

    /* 控制字数 */
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.layui-row3{
    width: 100%;
}


/* 党建工作的图片 */
.newscon-image {
    overflow: hidden;
    height: 135px;
    position: relative;
    margin-top: 15px;
}


.newscon-image img {
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
}


/* 友情链接 */
.layui-row-yq *,
.layui-row-yq * {
    text-align: center;
    width: 20%;
    float: left;
    font-size: 20px;
    margin: 20px 5px 10px 5px;
    color: white;
    padding: 10px 10px;
}

.item .itemCon-yq {
    width: 100%;
    height: 80px;
}

.nine {
    margin-bottom: 100px;
}

.dialog-nine {
    width: 96%;
    margin: 5px 2%;
}

.layui-row-yq1>* {
    background: linear-gradient(to right, #0fb38a, #046947);
}

.layui-row-yq2>* {
    background: linear-gradient(to right, #0da083, #056243);
}

.layui-row-yq3>* {
    background: linear-gradient(to right, #159287, #07584f);
}

.nine-small {
    width: 100%;
    height: 30px;
    text-align: center;
}

.nine-small div {
    /* width: 8%; */
    margin: 5px auto;
    padding: 0 10px;
    text-align: center;
    border-right: black 2px solid;
    float: left;
}

.nine-small a:hover {
    color: #0d6947;
    font-weight: bold;
    font-size: larger;
}

/* 科研动态 */
.layui-ky h3 {
    /* 控制字数 */
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.layui-kydt {
    margin: 20px 0;
    height: 100px;
    overflow: hidden;
}

.layui-kydt .layui-image {
    height: 100px;
    width: 28%;
    margin-right: 2%;
}

.layui-ky p {
    line-height: 22px;
}


/* 照片 */
.dialog-eight {
    width: 96%;
    margin: 5px 2%;
}

.eight-photo1 h3 {
    margin-right: 20px;
}

.eight-photo2 h3 {
    color: grey;
}

.eight .eight-container {
    overflow: hidden;
}

.container {
    display: flex;
    scroll-snap-type: x mandatory;
}

.image-box div {
    width: 100%;
    text-align: center;
    height: 80%;
}

.image-box p {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 80%;
    font-size: 16px;
    margin: 10px auto;
}

.image-box div img {
    width: 95%;
    height: 95%;
    border-radius: 8px;
}


.image-box {
    text-align: center;
    flex: 0 0 auto;
    margin: 10px;
    /* 根据你的需求进行调整 */
    scroll-snap-align: start;
    width: 220px;
    /* 根据你的图片大小和需求进行调整 */
    height: 180px;
}



.eight .itemTit .itemMore-two,
.eight .container-two {
    display: none;
}


/* 育成品种 */
.five {
    background-color: #0d6947;
    margin-bottom: 10px;
}

.itemTit-five {
    margin-top: 25px;
    border-bottom: 3px solid white;
}

.itemTit-five h3,
.itemTit-five .itemMore {
    color: white;
}

.item-ycpz {
    text-align: center;
    width: 33%;
    height: 317px;
    float: left;
    overflow: hidden;
    margin: 20px 1px;
}
/* 代表成果调整图片 */
.item-dbcg {
    width: 23%;
    padding: 17px 11px;
    height: 380px;
    float: left;
}
.item-dbcg div{
    height: 100%;
}
.item-dbcg img {
    border: solid 1px;
    border-radius: 5px;
    width: 100%;
    height: 100%;
}

.item-ycpz div {
    text-align: center;
    width: 100%;
    height: 80%;
}

.item-ycpz div img {
    width: 95%;
    height: 95%;
    border-radius: 8px;
}

.item-ycpz img:hover {
    border: 3px solid white;
}

.item-ycpz p {
    margin: 10px auto;
    font-size: 16px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 控制字数 */

}


/* footer */
.footer {
    border-top: none;
    background: url('./footer-back1.jpg');
    background-size: auto 100%;
    background-attachment: scroll;
}

.footer-logo {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    height: 100px;
}

.footer-logo img {
    height: 100%;
}



/* 文本内容格式 */

/* 行高设置 */
.page_box_news p>span {
    line-height: 2em !important;
}

/* 段间距离设置 */
.page_box_news p+p {
    margin: 10px 0;
}




/* 到顶按钮 */
#to-top {
    position: fixed;
    right: -100px;
    bottom: 50px;
    z-index: 99999;
    width: 55px;
    height: 55px;
    font-size: 35px;
    line-height: 55px;
    text-align: center;
    color: #fff;
    background: #0d6947;
    border-radius: 5px;
    box-shadow: 0px 0px 3px #fff;
    -webkit-transition: right .5s !important;
    -moz-transition: right .5s !important;
    -o-transition: right .5s !important;
    transition: right .5s !important;
}
#to-top:hover{
    background: #fff;
    color: #0d6947;
    border: 2px solid #0d6947;
}
