/* reset.css */

/* 去掉所有元素的内外边距 */
html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
pre,
a,
img,
ul,
li,
form,
label,
input,
table,
tbody,
tfoot,
thead,
tr,
th,
td,
audio,
video {
    margin: 0;
    padding: 0;
}

html,
body {
    padding: 0;
    margin: 0 auto;
}

@font-face {
    font-family: fjalla one;
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/fjallaone/v8/Yq6R-LCAWCX3-6Ky7FAFrOF6lw.ttf) format('truetype')
}

@font-face {
    font-family: roboto slab;
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/robotoslab/v13/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmb2Rm.ttf) format('truetype')
}

@font-face {
    font-family: vollkorn;
    font-style: italic;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/vollkorn/v13/0ybuGDoxxrvAnPhYGxksckM2WMCpRjDj-DJGWlmeObE.ttf) format('truetype')
}

/* 统一全局字体 */
body {
    box-sizing: border-box;
    margin: 0 auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
    -webkit-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    /* font-family: "Fira Sans", Helvetica, Arial, sans-serif; */
    color: #000;
    position: relative;
    z-index: 1;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    font-family: roboto slab, helvetica neue light, helvetica neue, Helvetica, Arial, sans-serif;
    width: 100%;
}

/* 列表元素去掉默认的列表样式 */
ol,
ul {
    list-style: none;
}

/* Table元素的边框折叠 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 去掉默认的下划线 */
a {
    text-decoration: none;
}

/* 去掉input自带的边缘效果和背景颜色 */
input {
    outline: none;
    background: none;
}

/* common.css */

/* body默认样式 */
html {
    font-size: 10px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #0054a6;
    text-decoration: none;
}

pre {
    overflow-x: auto;
}

.container {
    /* width: 90%; */
    width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    height: 1%;
}

.icon-home {
    background-image: url(../images/home.png) no-repeat;
    background-size: cover;
    width: 16px;
    height: 16px;
}

/* @media (min-width: 768px) {
    .container {
        width: 720px;
        padding: 0 2rem;
    }
} */

/* >= 1024  至少的意思，如果判断 <= 1024 应该用 max-width */
@media (min-width: 1024px) {
    .container {
        width: 960px;
    }
}

@media (min-width: 1200px) {
    /* .container {
        width: 1200px;
    } */
}

/* header.css */
.header {
    color: #fff;
    background-color: #333;
    height: 19rem;
}

.header a {
    color: #fff;
    text-decoration: none;
}

.header .site {
    padding-top: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 0.2rem;
}

.header .site .brand {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.header .site .desc {
    text-align: center;
}

.header .menu ul {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.header .menu ul li {
    float: left;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid transparent;
    list-style: none;
    list-style-type: none;
}

.header .menu ul li:first-child {
    margin-left: 0;
}

.header .menu ul li:last-child {
    margin-right: 0;
}

.header .menu ul li a {
    padding: 1.2rem 0;
    -webkit-transition: border .2s ease;
    transition: border .2s ease;
    font-family: Montserrat, sans-serif;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
}

.header .menu ul li:hover,
.header .menu ul li.active {
    border-bottom-color: rgba(236, 240, 218, 0.5);
}

@media (min-width: 768px) {
    .header {
        height: 24rem;
    }

    .header .site {
        padding-top: 4.5rem;
        margin-bottom: 4rem;
    }

    .header .site .brand,
    .header .site .desc {
        text-align: left;
    }

    .header .menu ul {
        display: block;
    }
}

@media (min-width: 1024px) {}

@media (min-width: 1200px) {}

/* category.css */
.category {
    background-color: #f0f1f3;
}

.category .category-wrap {
    margin-top: -3.5rem;
    padding: 35px 15px;
    background: #fff;
    -webkit-box-shadow: 0 5px 60px -10px rgba(0, 0, 0, .07);
    box-shadow: 0 5px 60px -10px rgba(0, 0, 0, .07);
    margin-bottom: 2rem;
}


.category .category-wrap ul li {
    font-size: 1.6rem;
    line-height: 1.8;
    letter-spacing: 0.2rem;
    border-bottom: 1px solid #ddd;
    padding: 2rem 0;
    word-break: break-all;
}

.category .category-wrap ul li:last-child {
    margin-bottom: 0;
}

.category .category-wrap ul li a {
    color: #333;
    text-decoration: none;
}

.category .category-wrap p {
    color: #484b52;
    margin-bottom: 1.8rem;
    font-size: 1.6rem;
    line-height: 1.8;
    letter-spacing: .01rem;
}

.category .category-wrap img {
    max-width: 100%;
}

.category .category-wrap h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .category .category-wrap {
        margin-top: -4.5rem;
        padding: 35px;
        border-radius: 0;
    }
}

@media (min-width: 1024px) {}

@media (min-width: 1200px) {}


/**** footer ******/
.footer {
    margin-top: 3rem;
    padding-top: 1.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-top: solid #ccc;
    border-top-width: .0625rem;
    font-size: 1.27rem;
}

.footer a {
    color: #0054a6;
    text-decoration: none;
    line-height: 2.5rem;
}