body {
    background: #efefef;
    color: black;
    margin: 0px;
}

a{
    /* 颜色跟随父节点 */
    color: inherit;
    /* 取消下划线 */
    text-decoration: none;
}

* {
    margin: 0;
    padding: 0;
}

hr {
    height: 0;
    border: none;
    border-top: 1px solid #dedede;
}

ol,ul{
    list-style: none;
}

/* 套路 不用理解 记住就行 */
.clearfix::after {
    content: '';
    display: block;
    clear:both;
}

.icon {
    width: 1em; height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
 }

.topNavBar {
    padding: 20px 0;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    transition: all 0.5s;
    color: #b7b7b7;
}

.topNavBar.sticky{
    background: white;
    padding: 10px 0;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    color: #3d4451;
}

.topNavBar nav > ul > li.highlight > a::after,
.topNavBar nav > ul > li.active > a::after {
content: '';
display: block;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: #e06567;
height: 3px;
animation: menuSlide .5s;
}
@keyframes menuSlide{
0%{ width: 0; }
100%{ width: 100%; }
}

.topNavBar-inner {
    padding: 0 16px;
}

.topNavBar nav {
    padding-top: 3px;
    padding-bottom: 4px;
}

.topNavBar nav > ul {
    list-style: none;
    margin: 0; padding: 0;
}

.topNavBar nav > ul > li {
    /* 横向布局 */
    float:left;
    margin-left: 17px;
    margin-right: 17px;
}

.topNavBar nav > ul > li > a {
    font-size: 12px;
    color: #b7b7b7;
    font-weight: bold;
    float: left;
    /* transparent 透明 */
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    padding-top: 8px;
    padding-bottom: 5px;
    display: block;
}

.topNavBar nav > ul > li > a:hover {
    border-bottom: 3px solid #16a085;
}


.topNavBar .logo {
    font-size: 24px;
    font-family: "Arial Black";
    padding-top: 3px;
    padding-bottom: 4px;
}

.topNavBar .logo .rs {
    margin-right: 4px;
    color: #16a085;
}

.topNavBar .logo .card {
    color: #b7b7b7
}

.banner {
    height: 515px;
    background-image: url(https://cdn.nlark.com/yuque/0/2019/jpeg/416562/1563767867618-0d9ee441-eb27-4ef6-a755-a922f841ace1.jpeg);
    background-position: center center;
    /* 背景图片自适应屏幕尺寸 */
    background-size: cover;
}

.banner .mask {
    height: 515px;
    background-color: rgba(0,0,0,0.3);
}

.userCard {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    border-radius: 0.2;
    box-shadow: 0 1px 5px 0 rgba(0,0,0,0.5)
}

.userCard .welcome {
    background: #16a085;
    color: white;
    display: inline-block;
    padding: 1px 10px;
    line-height: 29px;
    /* 水平居中
    text-align: center; */
    position: relative;
    margin-bottom: 10px;
}

/* 绝对定位：
父元素写 position: relative;
子元素写 position: absolute; */

.userCard .welcome .triangle {
    /* span 加上 diplay: block 就等于 div */
    display: block;
    border: 10px solid transparent;
    width: 0;
    border-left-color: #16a085;
    border-top-width: 0;
    position: absolute;
    left: 4px;
    top: 100%;
}

.userCard .picture {
    float: left;
}

.userCard .text {
    float: left;
    margin-left: 65px;
    width: 420px;
}

.userCard .text h1 {
    margin-top: 18px;
    color: #3d4451;
}

.userCard .text p {
    margin: 6px 0;
    color: #3d4451;
}

.userCard .text hr {
    margin: 26px 0;
}

.userCard .pictureAndText {
    padding: 50px;
}

.userCard dl dt,
.userCard dl dd {
    float: left;
    padding: 6px 0;
    color: #3d4451;
}

.userCard dl dt {
    width: 25%;
    font-weight: bold;
}

.userCard dl dd {
    width: 75%;
    color: #707172;
}

.userCard > footer.media {
    background: #16a085;
    text-align: center;
}

.userCard > footer.media > a {
    display: inline-block;
    border-radius: 50%;
    width: 34px;
    padding: 5px 0;
    line-height: 24px;
    margin: 16px;
}

.userCard > footer.media > a:hover {
background: #128870;
}

.userCard svg {
    width: 24px;
    height: 24px;
    fill: white;
    /* margin: 16px 20px; */
    vertical-align: top;
}

body > main {
    margin-top: -340px;
}

body > main .downloadResume {
    font-size: 15px;
    line-height: 16px;
    padding: 20px 50px;
    display: inline-block;
    border: 1px solid #b7b7b7;
    background: #efefef;
    border-radius: 2px;
    color: #3d4451;
    font-weight: bold;
    margin: 32px;
    transition: box-shadow 0.2s;
}

body > main .downloadResume:hover {
    box-shadow: 0 5px 10px 0 rgba(0,0,0,0.2);
}

body > main .downloadResume-wrapper {
    text-align: center;
}


section.skills,
section.portfolio {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

section.skills > h2,
section.portfolio > h2 {
    /* 文本居中 */
    text-align: center;
    color: #3d4451;
    font-style: 34px;
    line-height: 1.2;
    font-weight: 600;
}

section.skills h3 {
    font-size: 14px;
    line-height: 1.1;
    padding-right: 40px;
    /* 字体取消加粗 */
    font-weight: normal;
    color: #3d4451;
}

section.skills > ol {
    background: white;
    box-shadow: 0 1px 5px 0 rgba(0,0,0,0.5);
    border-radius: 0.2;
    padding: 42px 50px 10px;
    margin-top: 30px;
}

section.skills > ol > li {
    float: left;
    width: 48%;
    box-sizing: border-box;
}

/* 选取偶数的li   单个 ：开头叫伪类   两个 ：开头的叫伪元素 */
section.skills > ol > li:nth-child(even) {
    float: right;
}

section.skills .progressBar {
    height: 5px;
    background: #92c0df;
    border-radius: 2px;
    margin: 4px 0 40px;
}

section.skills .progressBar > .progress {
    height: 100%;
    background: #16a085;
    width: 70%;
    border-radius: 2px;
}

section.skills .progressBar > p {
    font-size: 12px;
    color: #3d4451;
    padding: 4px;
}

section.portfolio {
    text-align: center;
    margin-bottom: 100px;
}

section.portfolio > h2 {
    padding-bottom: 30px;
}

.swiper-button-next {
    color: #fff;
}

.swiper-slide {
    position: relative;
}

.swiper_txt {
    width: 100%;
    left: 0;
    margin-left: 0;
    bottom: 20px;
    position: absolute;
    text-align: left;
    padding-left: 20px;
    color: #3d4451;
}

.swiper_txt p {
    line-height: 20px;
    letter-spacing: 0.5px;
}

/* section.portfolio > nav {
    text-align: center;
    display: inline-block;
    vertical-align: top;
    margin-top: 28px;
}

section.portfolio > nav > ol {
    margin: 0 auto;
    一般下面两个要同时设置
    display: inline-block;
    vertical-align: top;
}

section.portfolio > nav > ol > li {
    float: left;
    margin-left: 40px;
    color: #3d4451;
    cursor: pointer;
}

section.portfolio > nav > ol > li:nth-child(1) {
    margin-left: 0;
}

section.portfolio > nav .bar {
    height: 5px;
    background: white;
    margin-top: 5px;
    margin-bottom: 28px;
    border-radius: 2px;
}

section.portfolio > nav .bar-inner {
    height: 100%;
    background: #16a085 ;
    border-radius: 2px;
    transition: all 0.3s;
}

section.portfolio > nav .bar.state-1 .bar-inner {
    margin-left: 0;
    width: 50px;
}

section.portfolio > nav .bar.state-2 .bar-inner {
    margin-left: 65px;
    width: 50px;
}

section.portfolio > nav .bar.state-3 .bar-inner {
    margin-left: 140px;
    width: 96px;
}

section.portfolio .works {
    position: relative;
}

section.portfolio .works > .big,
section.portfolio .works > .small {
    position: absolute;
} */