html, body {
    margin: 0;
    font-size: 100%;
    background: #fff;
    font-family: 'Source Sans Pro', sans-serif;
    scroll-behavior: smooth;
}

body a {
    text-decoration: none;
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
}

a:hover {
    text-decoration: none;
}

input[type="button"], input[type="submit"], input[type="text"], input[type="email"], input[type="search"] {
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
    font-family: 'Source Sans Pro', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    letter-spacing: 1px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

p {
    font-size: 1em;
    color: #8c9398;
    line-height: 2em;
    letter-spacing: 1px;
    text-align: left;
}

ul {
    margin: 0;
    padding: 0;
}

header {
    width: 100%;
}

nav {
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 1em;
    display: inline-block;
    float: left;
    position: relative;
}

ul.menu {
    margin-top: 32px;
}

nav a {
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 10px 0;
    color: #4c5358;
    border-bottom: 2px solid transparent;
    font-weight: 600;
}

nav ul li {
    list-style: none;
    text-decoration: none;
    padding: 0;
}

nav > ul li ul li:hover {
    background: #f5f6f7;
}

nav > ul li a:hover {
    color: #006abf;
    border-bottom: 2px solid #006abf;

}

ul.menu li.active a {
    color: #006abf;
    border-bottom: 2px solid #006abf;
}

nav ul ul {
    display: none;
    position: absolute;
    left: -60px;
    background: #fff;
    padding: 10px;
    z-index: 99;
    -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

nav ul li:hover > ul {
    display: inherit;
}

nav ul ul li {
    width: 170px;
    float: none;
    display: list-item;
    position: relative;
}

nav ul ul li a {
    color: #333;
    padding: 5px 10px;
    display: block;
}

li > a:only-child:after {
    content: '';
}

/* 防止页面滚动 */
body.drawer-open {
    overflow: hidden;
}


/* 公共类 */
.toggle,[id^=drop] {
    display: none;
}






@media all and (max-width: 768px) {
    nav {
        margin: 0;
    }

    /* Display Dropdown when clicked on Parent Lable */
    [id^=drop]:checked + ul {
        display: block;
        /* background: rgba(16, 16, 16, 0.85); */
        padding: 15px 0;
        text-align: center;
        float: none;
    }

    /* Change menu item's width to 100% */
    nav ul li {
        display: block;
        width: 100%;
        padding: 0;
    }

    nav ul li {
        margin: 0 0;
    }

    nav ul ul .toggle,
    nav ul ul a {
        padding: 0 40px;
    }

    nav ul ul ul a {
        padding: 0 80px;
    }

    nav a:hover,
    nav ul ul ul a {
        background-color: transparent;
    }

    nav ul li ul li .toggle,
    nav ul ul a,
    nav ul ul ul a {
        padding: 14px 20px;
        color: #FFF;
        font-size: 17px;
    }

    /* Hide Dropdowns by Default */
    nav ul ul {
        float: none;
        position: static;
        color: #ffffff;
        /* has to be the same number as the "line-height" of "nav a" */
    }

    /* Hide menus on hover */
    nav ul ul li:hover > ul,
    nav ul li:hover > ul {
        display: none;
    }

    /* Fisrt Tier Dropdown */
    nav ul ul li {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    nav ul ul ul li {
        position: static;
        /* has to be the same number as the "width" of "nav ul ul li" */
    }

    nav ul ul li a {
        font-size: 0.9em;
    }
}

@media all and (max-width: 330px) {
    nav ul li {
        display: block;
        width: 94%;
    }
}
