@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
body{
    overflow-x: hidden;
    
}
a{
    text-decoration: none;
}
ul{
    list-style: none;
}
.label-img{
    width:20px;
    height:20px;
}
/*--------------nav----------------*/
nav{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    height: 60px;
    width: 100%;
    z-index: 10;
    position: fixed;
}
.n-line{
    position: absolute;
    top: 28px;
    width: 0px;
    border-bottom: 4px salmon solid;
    transition: .3s ease-in-out;
}
.logo{
    color: whitesmoke;
}
.nav_1{
    display: flex;
    align-items: center;
}
.nav_1 li img{
    width: 20px;
    height: 20px;
    margin-right: 5px;
}
.nav_1 li{
    margin-left: 17px;
    display: flex;
    position: relative;
}
.nav_1 li a{
    color: whitesmoke;
    cursor: pointer;
}
.menu{
    display: none;
}
.mark{

    width: 100%;
    height: 60px;
    background-color: rgb(58, 58, 58);
    opacity: 0;
    position: absolute;
    left: 0;
    z-index: 1;
    position: fixed;
}
/*----------header--------------*/
.header-content{
    margin-bottom: 40vh;
    text-align: center;
}
.header-content h1{
    font-size: 8vmin;
    opacity: 0.9;
    color: #363d59;
}
.header-content p{
    font-size: 2.5vmin;
    color: #404968;
}

/*----------section-1---------------*/
section{
    width: 80%;
    margin: 0 auto;
    
}
.Sec-1{
    display: flex;
    margin-top: 15px;
}
.person{
    padding: 30px 30px;
}
.board{
    width: 300px;
    height: 100px;
}
.text{
    padding: 30px 30px;
}
.classify{
    height: 440px;
    padding: 30px 20px;
}
.label{
 /*不要把高定死，要不然内容会溢出，要让内容自己撑开*/
    padding: 30px 30px;
}
.card{
    width: 300px;
    background: white;
    margin-bottom: 15px;
    margin-right: 15px;
    box-shadow:0 10px 12px rgba(0,0,0,.2);
    border-radius: 15px;
}

/*个人card*/
.photo{
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}
.name{
    display: flex;
    align-items: center;
    justify-content: center;/*居中*/
    padding: 15px 0px;
}
.num{
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 15px;
}
.num-1{
    text-align: center;
}
.github{
    width: 100%;
    height: 40px;
    background-color: #3dabf8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.github p{
    margin-left: 8px;
    color: whitesmoke;
}
.icon{
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px 35px;
}
.icon img{
    width: 25px;
    
}
/*公告*/
.board{
    display: flex;
    align-items: center;
    justify-content: center;
}
.board img{
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/*最新文章*/
.text-col{
    display: flex;
    margin-top: 15px;
    border-bottom: 1px gainsboro solid;
}
.text h1{
    font-weight: 400;
}
.text-col img{
    width: 73px;
    height: 73px;
    border-radius: 10px;
}
.text-col .text-col-1 p:nth-of-type(1){
    color: rgb(92, 91, 91);
    font-weight: bold;
}
.text-col p:nth-of-type(2){/*从1开始*/
    color: gray;
}
.text-col-1{
    width: 100%; /*不需要加高 可以加颜色看看*/
    padding: 15px 15px;
    line-height: 20px;
}
.text-col:hover{
    background: rgb(182, 181, 181);
    cursor: pointer;
}

/*分类*/
.classify .classify-title{
    display: flex;
    width: 100%;
    height: 40px;
    align-items: center;
    border-bottom: #e3e3e4 1px solid;
}
.classify-content-1:hover{
    background: rgb(182, 181, 181);
    cursor: pointer;
}
.classify-content .classify-content-1{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 42px;
    
}

/*标签*/
.label .line{
    width: 80%;
    margin: 0 auto;
    height: 3px;
    background-color: rgb(93, 173, 248);
    margin-top: 10px;
}
.label-title{
    display: flex;
    align-items: center;
    width: 100%;
    height: 30px;
}
.label-title p{
    margin-left: 10px;
}
.label-content{
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.label-content p{
    font-size: 18px;
    margin: 5px 5px;
}

/*right*/
.right{
    width: 100%;
}
.col{
    width: 100%;
    height: 320px;
    background: white;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow:0 10px 12px rgba(0,0,0,.2);
    border-radius: 15px;
}
.col-1{
    display: flex;
}
.text-2 a{
    color: rgb(58, 58, 58);
}
.right .col .text-2{
    width: 100%;
    height: 300px;
    padding: 0 50px;
}
.right .col .col-imgMark{
    width: 60%;
    height: 320px;
    overflow: hidden;
}
.right .col .col-imgMark .col-img{
    width: 100%;
    height: 100%;
   
    display: block;
    transition: .3s ease;
}
.right .col .col-imgMark .a1{
    background-image: url(../img/text/1-textImg.png);
    background-position: center;
    background-size: cover;
}
.right .col .col-imgMark .a2{
    background-image: url(../img/text/2-textImg.png);
    background-position: center;
    background-size: cover;
}
.right .col .col-imgMark .a3{
    background-image: url(../img/text/3-textImg.png);
    background-position: center;
    background-size: cover;
}
.right .col .col-imgMark .a4{
    background-image: url(../img/text/1-textImg.png);
    background-position: center;
    background-size: cover;
}
.right .col .col-imgMark .a5{
    background-image: url(../img/text/2-textImg.png);
    background-position: center;
    background-size: cover;
}
.right .col .col-imgMark .a6{
    background-image: url(../img/text/3-textImg.png);
    background-position: center;
    background-size: cover;
}

.col-img:hover{
    transform: scale(1.2);
}
.right .col .text-2 h1{
    margin-top: 80px;
}
.date{
    display: flex;
    margin: 18px 0;
    align-items: center;
}
.line{
    width: 2px;
    height: 15px;
    background-color: #404968;
    margin: 0px 5px;
}

/*----------------footer-------------------*/
.mark-2::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #363d59;
    opacity: 0.6;
    z-index: 1;
}
.mark-2{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mark-2 p{
    color: white;
    font-weight: 400;
    text-align: center;
    line-height: 30px;
    z-index: 10;
}


/*Mobile device*/
@media screen and (max-width:1050px){
    nav{
        padding: 0 40px;
    }
    .n-line{
        display: none;
    }
    .nav_1{
        position: absolute;
        top: 60px;
        right: 0;
        bottom: 0;
        width: 50vw;
        height: calc(100vh - 60px);
        background-color: rgb(58, 58, 58);
        flex-direction: column;
        z-index: 1;
        transform: translateX(100%);
		transition: 0.4s ease-in-out;
    }
    .open{
        transform: translateX(0);
    }
    .nav_1 li{
        margin: 3vh;
        transform: translateX(20px);
        opacity: 0; /*先设置在@keyframes*/
    }
    .menu{
        display: block;
    }
    /*----------section---------*/
    .Sec-1{
        flex-direction: column;
        align-items: center;
    }
    /*left*/
    .card{
        width: 100%;
    }

    /*right*/
    .right{
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    .right .col{
        min-width: 300px;
        height: 50vh;
        
        position: relative;
    }
    .right .col:nth-of-type(1){
        background-image: url(../img/text/1-textImg.png);
        background-size: cover;
        background-position: center;
    }
    .right .col:nth-of-type(2){
        background-image: url(../img/text/2-textImg.png);
        background-size: cover;
        background-position: center;
    }
    .right .col:nth-of-type(3){
        background-image: url(../img/text/3-textImg.png);
        background-size: cover;
        background-position: center;
    }
    .right .col:nth-of-type(4){
        background-image: url(../img/text/1-textImg.png);
        background-size: cover;
        background-position: center;
    }
    .right .col:nth-of-type(5){
        background-image: url(../img/text/2-textImg.png);
        background-size: cover;
        background-position: center;
    }
    .right .col:nth-of-type(6){
        background-image: url(../img/text/3-textImg.png);
        background-size: cover;
        background-position: center;
    }
    .right .col .col-imgMark .col-img{
        display: none;
    }
    .right .col .text-2{ /*优先级要和PC端的样式一样或者是比它高*/
        height: 100px;
        background: white;
        position: absolute;
        bottom: 0px;
        padding: 20px 20px;
        text-align: center;
    }

    .right .col .text-2 h1{
        margin: 0;
        font-size: 3vmin;
    }
    .Lrem{
        display: none;
    }
    .date{
        justify-content: center;
        margin-bottom: 0px;
        margin-top: 0.5vmin;
        font-size: 3vmin;
        color: rgb(131, 130, 129);
    }
    .date .line{
        background: rgb(131, 130, 129);
    }

    @keyframes slideIn {
        form{
            transform: translateX(20px);
            opacity: 0;
        }
        to{
            transform: translateX(0);
            opacity: 1;
        }
    }
}



