/*CSS样式重写*/

:root{
    --varColor: #0078F6;
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
dl,
dt,
dd,
pre {
    margin: 0;
    padding: 0;
    border: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    font-family: "microsoft yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background: #fff;
}

a {
    color: #333;
    text-decoration: none;
    transition: .3s;
}

a:hover {
    color: var(--varColor);
}

input,
button {
    outline: 0;
}

img {
    vertical-align: middle;
    border: 0;
    max-width: 100%;
    transition: .3s;
}

table {
    border-collapse: collapse;
}

/*通用样式*/
.lf {
    float: left;
}

.rt {
    float: right;
}

.active {
    display: block;
}

.container {
    width: 1400px;
    margin: 0 auto;
    position: relative;
}

.container:before,
.container:after {
    content: '';
    display: table;
    clear: both;
}

.ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.ellipsis-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.img{
    display: block;
    height: 100%;
    overflow: hidden;
}
.img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img:hover img{
    transform: scale(1.1);
}

/*头部*/
header {
    position: relative;
    height: 170px;
    background: url(../images/header.jpg) no-repeat center top;
    background-size: 100% 100%;
}

header .top {
    overflow: hidden;
}

header .top .lf {
    margin-top: 30px;
}

header .top .rt {
    margin-top: 15px;
    height: 20px;
    line-height: 20px;
    padding-left: 25px;
    color: #fff;
    background: url(../images/home.png) no-repeat left center;
}

header .top .rt a {
    color: #fff;
}

header .search {
    position: absolute;
    top: 55px;
    right: 0;
    height: 32px;
    display: inline-block;
}

header input[type='text'] {
    width: 200px;
    height: 32px;
    line-height: 32px;
    padding: 0 32px 0 15px;
    border-radius: 5px;
    background: #fff;
    border: none;
}

header input[type='submit'] {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border: none;
    background: url(../images/search.png) no-repeat center center;
}

/*导航栏*/
header .navbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52px;
    line-height: 50px;
    border-top: 4px solid #0078F6;
    background: #fff;
    z-index: 9;
}

header .navbar>ul {
    display: flex;
    width: 1400px;
    margin: 0 auto;
}

header .navbar>ul>li {
    position: relative;
    flex-grow: 1;
    text-align: center;
    border-bottom: 2px solid #fff;
}

header .navbar>ul>li>a {
    display: block;
    font-size: 18px;
}

header .navbar>ul>li>a:hover {
    color: #fff;
    background: var(--varColor);
}

header .sub-menu {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(0, 120, 246, 0.8);
    display: none;
    z-index: 99;
}

header .sub-menu li a {
    display: block;
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-size: 16px;
    text-align: center;
}

header .sub-menu li a:hover {
    background: var(--varColor);
}

/* 尾部 */
footer {
    padding: 40px 0;
    line-height: 2em;
    color: #fff;
    font-size: 16px;
    text-align: center;
    background: #015EEA;
}
footer a{
    color: #fff;
    text-decoration: underline;
    margin: 0 5px;
}
footer a:last-of-type{
    padding-left: 25px;
    background: url(../images/pc.png) no-repeat left center;
}
footer a:hover{
    color: orangered;
}

/*返回顶部*/
.toTop {
    position: fixed;
    right: 15px;
    bottom: -100px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: bolder;
    font-family: '黑体';
    background: rgba(0, 0, 0, .6);
    border-radius: 5px;
    transform: rotate(90deg);
    cursor: pointer;
    transition: .3s;
    z-index: 99;
}

@media screen and (max-width: 1440px) {

    html,
    body,
    header,
    footer {
        min-width: 1200px;
    }

    .container,
    header .navbar>ul {
        width: 1200px;
    }

}
