﻿@charset "UTF-8";

:root {
    --swiper-theme-color: var(--varColor);
    --swiper-navigation-size: 20px;
}

/*轮播图*/
#swiper, #swiper img {
    width: 100%;
    min-height: 1.6rem;
}

#swiper .swiper-pagination {
    bottom: 0.3rem;
}

#swiper .swiper-pagination-bullet {
    width: 0.16rem;
    height: 0.16rem;
    margin: 0 0.08rem;
    background: #fff;
    opacity: 1;
    transition: .3s;
}

#swiper .swiper-pagination-bullet-active {
    width: 0.48rem;
    background: orangered;
    border-radius: 0.16rem;
}

.swiper-infos {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    color: #fff;
    font-size: 0.18rem;
    text-align: center;
    text-shadow: 0 4px 12px rgba(2, 3, 0, 0.75);
    line-height: 1.75em;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.swiper-infos h1 {
    font-family: "SourceHanSerif-Bold";
    font-size: 0.54rem;
    text-shadow: 0 4px 12px rgba(2, 3, 0, 0.75);
    margin-bottom: 0.24rem;
    height: 0.78rem;
    line-height: 0.78rem;
}

.title {
    position: relative;
    padding: 0.4rem 0;
}

.title h2 {
    position: relative;
    font-family: "SourceHanSerif-Bold";
    font-size: 0.5rem;
    color: var(--varColor);
    text-align: center;
}

.title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.1rem;
    width: 0.64rem;
    height: 0.06rem;
    background: rgba(0, 99, 54, 0.5);
    transform: translateX(-50%);
}

.title a {
    position: absolute;
    top: 50%;
    right: 0;
    color: #fff;
    font-size: 0.18rem;
    padding-right: 0.24rem;
    background: url("../images/more.png") no-repeat right center;
    background-size: 0.24rem;
    transform: translateY(-50%);
    z-index: 1;
}

/*种质资源*/
.sort {
    display: flex;
    margin-bottom: 0.36rem;
    border-bottom: 1px solid #ddd;
}

.sort li {
    flex: 1;
    position: relative;
    padding: 0.16rem 0;
    font-size: 0.24rem;
    text-align: center;
    cursor: pointer;
}

.sort li::before {
    content: '';
    display: block;
    height: 0.5rem;
    margin-bottom: 0.1rem;
    background: url("../images/icon1.png") no-repeat center;
    background-size: contain;
}

.sort li:nth-child(2)::before {
    background-image: url("../images/icon2.png");
}

.sort li:nth-child(3)::before {
    background-image: url("../images/icon3.png");
}

.sort li:nth-child(4)::before {
    background-image: url("../images/icon4.png");
}

.sort li:nth-child(5)::before {
    background-image: url("../images/icon5.png");
}

.sort li:nth-child(6)::before {
    background-image: url("../images/icon6.png");
}

.sort li:nth-child(7)::before {
    background-image: url("../images/icon7.png");
}

.sort li.active {
    color: #fff;
    background: var(--varColor);
}

.sort li.active::before {
    background-image: url("../images/icon1-on.png");
}

.sort li.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 0;
    transform: translate(-50%, 100%);
    border: 0.16rem solid transparent;
    border-top-color: var(--varColor);
}

.sort li.active:nth-of-type(2)::before {
    background-image: url("../images/icon2-on.png");
}

.sort li.active:nth-of-type(3)::before {
    background-image: url("../images/icon3-on.png");
}

.sort li.active:nth-of-type(4)::before {
    background-image: url("../images/icon4-on.png");
}

.sort li.active:nth-of-type(5)::before {
    background-image: url("../images/icon5-on.png");
}

.sort li.active:nth-of-type(6)::before {
    background-image: url("../images/icon6-on.png");
}

.sort li.active:nth-of-type(7)::before {
    background-image: url("../images/icon7-on.png");
}

.resource-item {
    display: none;
    justify-content: space-between;
}

.resource-item.active {
    display: flex;
}

.resource-img {
    width: 3.6rem;
    height: 6.08rem;
    position: relative;
}

.resource-img div {
    position: absolute;
    top: 10%;
    left: 12%;
    right: 12%;
    color: #fff;
    text-align: center;
}

.resource-img h2 {
    font-size: 0.36rem;
}

.resource-img ul {
    display: flex;
    justify-content: space-around;
    font-size: 0.18rem;
    margin: 2em 0;
}

.resource-img ul h3 {
    font-size: 0.5rem;
}

.resource-img p {
    text-align: justify;
    text-indent: 2em;
    line-height: 1.75em;
    margin-bottom: 2em;
}

.resource-info {
    flex: 1;
    margin-left: 0.24rem;
}

.resource-info .type {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.resource-info .type li {
    margin: 0 0.2rem;
}

.resource-info .type li a {
    display: inline-flex;
    position: relative;
    padding: 0.1rem 0.2rem;
    font-size: 0.18rem;
}

.resource-info .type li.on a {
    color: var(--varColor);
    font-weight: bold;
}

.resource-info .type li.on a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0.04rem;
    background: var(--varColor);
}

.resource-box ul {
    margin: 0 -0.12rem;
    overflow: hidden;
    display: none;
}

.resource-box ul.on {
    display: block;
}

.resource-box ul li {
    float: left;
    width: 25%;
    padding: 0 0.12rem;
    margin-top: 0.24rem;
}

.resource-box ul li .img {
    height: 2.56rem;
    position: relative;
}

.resource-box ul li p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.16rem;
    background: rgba(0, 0, 0, 0.5);
    transition: .3s;
}

.resource-box ul li .img:hover p {
    height: 100%;
    font-size: 0.2rem;
    font-weight: bold;
    background: rgba(0, 99, 54, 0.5);
}

/*新闻动态*/
.news {
    margin-top: 0.8rem;
    padding-bottom: 0.64rem;
    background: var(--varColor);
}

.news .title h2 {
    color: #fff;
}

.news .title h2::after {
    background: rgba(255, 255, 255, 0.5);
}

.news ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.12rem;
    overflow: hidden;
}

.news ul li {
    display: inline-flex;
    align-items: center;
    width: calc(33.33% - 0.24rem);
    margin: 0 0.12rem;
    padding: 0.2rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.news ul li .date {
    padding: 0 0.2rem;
    color: #fff;
    font-size: 0.24rem;
    font-family: "SourceHanSerif-Bold";
    line-height: 1.2em;
    text-align: center;
}

.news ul li .date span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.14rem;
    font-weight: normal;
}

.news ul li p {
    flex: 1;
    line-height: 2em;
    padding: 0 0.2rem 0 0.12rem;
    color: #fff;
}

.news ul li p a {
    color: #fff;
}

.news ul li p a:hover {
    color: orangered;
    text-decoration: underline;
}

/*友情链接*/
#link .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0.72rem;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

#link .swiper-slide a span {
    padding-right: 0.34rem;
    background: url("../images/link.png") no-repeat right center;
    background-size: 0.24rem;
}

#link .swiper-slide a:hover {
    border-color: var(--varColor);
}

#link .swiper-slide a:hover span {
    background-image: url("../images/link-on.png");
}
