[data-x].offset{
    transform: translateY(150px);
}
[data-x]{
    transform: translateY(0px);
    transition: all 0.3s;
}
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}
.topNavBar>.nav{
    display: flex;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    /*定位的盒子要给出高和宽,要不然定位会尽量压缩盒子的空间*/
    align-items: center;
    position: fixed;
    /*不仅可以脱离标准流,还可以在滚动时保持不动*/
    z-index: 1;
    transition: all 0.25s linear;
}
.topNavBar>.nav.sticky{
    height: 60px;
    background: white;
    color: #484f5b;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
}
.topNavBar>.nav.sticky>ul>li{
    color: #3d4451;
}
.topNavBar>.nav>.logo{
    display: flex;
    padding-left: 20px;
    font-size: 30px;
    font-family: "Sitka Text";
}
.topNavBar>.nav>.logo>.rs{
    color: #e8676b;
    margin-right: 4px;
}
.topNavBar>.nav>.logo>.card{
    color: #9a9da2;
}
.topNavBar>.nav>ul{
    display: flex;
}
.topNavBar>.nav>ul>li{
    margin-left: 18px;
    margin-right: 18px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    position: relative;
    padding: 6px 0;
}
.topNavBar>.nav>ul>li>a{
    position: relative;
    padding: 3px 0;
}
.topNavBar>.nav>ul>li.active>a::after,
.topNavBar>.nav>ul>li.highLight>a::after{
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: #e8676b;
    position: absolute;
    top: 100%;
    left: 0;
    animation: menuSlide 0.3s linear;
}
@keyframes menuSlide{
    0%{
        width: 0px;
    }
    100%{
        width: 100%;
    }
}

.topNavBar>.nav>ul>li>.submenu{
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: #3d4451;
    padding: 5px 5px;
    box-shadow: 0 0 6px 0 rgba(0,0,0,0.3);
}
.topNavBar>.nav>ul>li>.submenu>li{
    white-space: nowrap;
    margin: 5px;
}
.topNavBar>.nav>ul>li>.submenu>li:hover{
    color: red;
}
.topNavBar>.nav>ul>li.active .submenu{
    display: block;
    animation: submenuSlide 0.3s;

}
@keyframes submenuSlide {
   0%{
       /*margin-right: 100%;*/
       right: 100%;
   }
    100%{
        /*margin-right: 0;*/
        right: 0;
    }
}
/*topNavBar 结束*/

/*banner 开始*/
.banner{
    height: 515px;
    width: 100%;
    background-image: url(./image/背景.jpg);
    background-position: center center;
    background-size: cover;
}
.banner>.mask{
    height: 515px;
    background-color: rgba(0,0,0,0.8);
}

/* main 部分开始啦*/

main{
    margin-top: -340px;
}
main>.userCard{
    max-width: 930px;
    /*height: 526px;*/
    display: flex;
    flex-direction: column;
    background: #ffffff;
    margin: 0 auto;
}
main>.userCard>.message{
    flex: 1;
    padding: 55px 50px 0px;
    display: flex;
}
main>.userCard>.message>.headPic{
    margin-right: 74px;
}
main>.userCard>.message>.text{
    flex: 1;
}
main>.userCard>.message>.text>.welcom{
    /*width: 64px;*/
    /*height: 28px;*//*不要轻易把盒子大小限制死,那样在改变文字,盒子还要重新做*/
    display: inline-block;
    padding: 4px 20px;
    background: #e8676b;
    color: white;
    margin-bottom: 34px;
    position: relative;
}
main>.userCard>.message>.text>.welcom>.triangle{
    display: block;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    border-left-color: #e8676b;
    border-top-width: 0px;
    position: absolute;
    top: 100%;
    left: 4px;
}
main>.userCard>.message>.text>h1{
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
}
main>.userCard>.message>.text>hr{
    /*height: 1px;*//*hr并没有高度,他只有上下两条边框线,2px*/
    border: none;
    border-bottom: 1px solid #dedede;
    margin: 20px 0;
}
main>.userCard>.message>.text>dl{
    display: flex;
    flex-wrap: wrap;
}
main>.userCard>.message>.text dt{
    width: 30%;
    padding: 10px 0;
    color: #333333;
    font-size: 12px;
    font-weight: 700;
}
main>.userCard>.message>.text dd{
    width: 70%;
    color: #9da0a7;
    font-size: 15px;
    font-weight: 400;
}
main>.userCard>footer{
    width: 100%;
    height: 70px;
    margin-top: 50px;
    background: #e8676b;
    display: flex;
    justify-content: center;
    align-items: center;
}
main>.userCard>footer svg{
    font-size: 24px;
    fill: white;
}
main>.userCard>footer a {
    width: 44px;
    height: 44px;
    margin: 0 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}
main>.userCard>footer a:hover{
    background: #d05c60;
}
main>.downloadWrapper {
    text-align: center;
}
main>.downloadWrapper>a.downloadBut{
    border: 1px solid #cbcdcf;
    padding: 20px 54px;
    display: inline-block;
    margin: 35px 0;
    font-size: 14px;
    font-weight: 700;
}
main>.downloadWrapper>a.downloadBut:hover{
    box-shadow: 0px 4px 6px 1px rgba(0,0,0,0.2);
    transition: 0.3s;
}
main>p{
    text-align: center;
    font-size: 18px;
    line-height: 30px;
    font-family: '楷体';
}

/*main    结束啦*/


/*section1  技能  开始啦*/

section.skills{
    max-width: 930px;
    margin: 0 auto;
}
section.skills>h1{
    text-align: center;
    margin-top: 70px;
    margin-bottom: 40px;
    font-size: 34px;
    font-weight: 700;
}
section.skills>ul{
    display: flex;
    flex-wrap: wrap;
    padding: 30px 50px;
    background: white;
    box-shadow: 0px 5px 10px 2px rgba(0,0,0,0.3);
}
section.skills>ul>li{
    width: 50%;
    margin: 20px 0;
}
section.skills>ul>li>.progressBar{
    width: 80%;
    /*border: 3px solid #fae1e1;*/
    height: 6px;
    background: #fae1e1;
    border-radius: 3px;
}
section.skills>ul>li>.progressBar>.progress{
    width: 70%;
    height: 6px;
    border-radius: 3px;
    background: #e8676b;
    margin-top: 8px;
    transition: all 1s;
}
section.skills>ul>li>.progressBar>.progress.one{
    width: 20%;
}
section.skills>ul>li>.progressBar>.progress.two{
    width: 40%;
}
section.skills>ul>li>.progressBar>.progress.three{
    width: 35%;
}
section.skills>ul>li>.progressBar>.progress.four{
    width: 50%;
}

section.skills.offset>ul>li>.progressBar>.progress{
    width: 0px;
}

/*section1 skills 结束*/

/**************section2 protfolio 开始啦********************************/

section.portfolio{
    max-width: 668px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
section.portfolio>h1{
    /*text-align: center;*/ /*可以继承*/
    margin-top: 60px;
    margin-bottom: 34px;
    font-size: 34px;
    font-weight: 700;
    color: #3d4451;
}
.swiper-container .swiper-wrapper {
    width: 668px;
    height: 501px;
}
 .swiper-button-prev{
    width: 64px;
    height: 64px;
    /*border: 1px solid red;*/
    border-radius: 50%;
    position: absolute;
    top: 330px;
    left: -66px;
}
.swiper-button-next{
    width: 64px;
    height: 64px;
    /*border: 1px solid red;*/
    border-radius: 50%;
    position: absolute;
    top: 330px;
    right: -66px;
}

/***************************section3 message 开始啦******************************/

section.message>h2{
    text-align: center;
    margin: 70px 0;
}
section.message>ol{
    max-width: 668px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}
section.message>ol>li{
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
section.message>.postMessageForm{
    max-width: 668px;
    margin: 20px auto;
    /*text-align: center;*/
}
section.message>.postMessageForm>ul{
    display: flex;

}
section.message>.postMessageForm>ul>.nameSpace,
section.message>.postMessageForm>ul>.contentSpace{
    margin-right: 20px;
    position: relative;
}
section.message>.postMessageForm>ul>.nameSpace>p,
section.message>.postMessageForm>ul>.contentSpace>p{
    display: none;
    position: absolute;
    top: 25px;
    left: 35px;
    color: red;
}
section.message>.postMessageForm>ul>.nameSpace>p.active,
section.message>.postMessageForm>ul>.contentSpace>p.active{
    display: block;
    position: absolute;
    top: 25px;
    left: 35px;
    color: red;
}