html,
body {
    height: 100%;
    width: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Segoe UI","Helvetica Neue","PingFang SC","Noto Sans","Noto Sans CJK SC","Microsoft YaHei",微软雅黑,sans-serif;
    font-weight: 400;
}
li,ul{ list-style:none; }
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block;}
a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}
.hide{ display:none; }
a:hover,
a:focus {
    color: #474157;
}

hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.container{margin-right:auto;margin-left:auto;}
.w1200{width:1200px;margin:0 auto;}
.navbar-default {
    font-weight: 200;
    letter-spacing: 1px;
}
.clearfix:after{ content:".";display:block;height:0;visibility:hidden;clear:both; }
.navbar-default .navbar-header .navbar-brand {
    margin-top: 8px;
    display: block;
    height: 50px;
    width: 150px;
    background: url(../img/logo.png) center;
    background-size: cover;
    font-size: 0;
}

.navbar-default .navbar-header .navbar-brand:hover,
.navbar-default .navbar-header .navbar-brand:focus {
    color: #474157;
}

.navbar-default .navbar-header .navbar-toggle {
    font-size: 12px;
    color: #474157;
    padding: 8px 10px;
}
.navbar-default .nav > li > a:hover{max-height:500px; }

.navbar-default .nav > li > a {
    text-transform: uppercase;
    margin: 0 10px;
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    height:inherit;
    position:relative;
}
.navbar-default .nav > li > a:after{
	content:'';
	position:absolute;
	left:0;
	bottom:0;
	width:100%;
	height:2px;
	background:#2A75ED;
	-webkit-transform:scaleX(0);
	transform:scaleX(0);
	-webkit-transform-origin:center;
	transform-origin:center;
	-webkit-transition:-webkit-transform .3s ease-in-out;
	transition:-webkit-transform .3s ease-in-out;
	transition:transform .3s ease-in-out;
	transition:transform .3s ease-in-out, -webkit-transform .3s ease-in-out}
	
.navbar-default .nav > li > a:hover:after{
	-webkit-transform:scaleX(1); transform:scaleX(1); }
.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus:hover {
    color: #105CFB;
}

.navbar-default .nav > li.active > a,
.navbar-default .nav > li.active > a:focus {
    color: #474157 !important;
    background-color: transparent;
}

.navbar-default .nav > li.active > a:hover,
.navbar-default .nav > li.active > a:focus:hover {
    background-color: transparent;
}
.navbar-default .nav > li.dropdown ul.dropdown-menu{ width:100%; }
.navbar-default .nav > li.dropdown ul.dropdown-menu > li > a{ font-size:16px; }

#mainbody {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;
    background: #f1f6fd;
    color: #474157;
    height: calc(100vh - 61px);
}

#mainbody .index-text {
    text-align: center;
    padding: 250px 0 50px;
    position: relative;
    height: 100vh;
}

#mainbody .index-text h1 {
    font-size: 50px;
    font-weight: bold;
    color: #171347
}

#mainbody .index-gallery {
    text-align: center;
    padding: 200px 0 50px;
    position: relative;
}

@media (max-height: 500px) {
    #mainbody {
        height: inherit;
    }
}

@media (min-width: 768px) {
    .navbar-default {
        background-color:#FFF;
        border-bottom:1px solid #F5F6F9;
    }

    #mainbody .index-text {
        text-align: left;
    }
}

@media (max-width: 767px) {

    .navbar-default {
        background-color: #f1f6fd;
        border-color: #f1f6fd;
    }

    .navbar-default .navbar-collapse {
        background: #f1f6fd;
        box-shadow: 5px 9px 5px rgba(0, 0, 0, 0.07);
    }

    #mainbody {
        height: unset;
    }

    #mainbody .index-text {
        padding: 130px 0 0 0;
        height: calc(100vh - 261px);
    }

    #mainbody .index-gallery {
        padding: 30px 0 50px 0;
    }

    #mainbody .index-text h1 {
        font-size: 50px;
        margin-bottom: 20px;
    }
}



.bg-primary {
    background: #fdcc52;
    background: -webkit-linear-gradient(#fdcc52, #fdc539);
    background: linear-gradient(#fdcc52, #fdc539);
}

.btn {
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 300px;
}

.btn-xl {
    margin-top: 20px;
    padding: 10px 45px;
    font-size: 14px;
}
