﻿@charset "UTF-8";

:root {
    --varColor: #1658F2;
}

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;
    min-height: 100vh;
    background: #F0F2F5;
    display: flex;
    flex-direction: column;
}

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

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

input, button {
    outline: none;
    border: none;
}

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

.img {
    display: block;
    overflow: hidden;
}

.img img {
    width: 100%;
    height: 100%;
}

.img:hover img {
    transform: scale(1.1);
}

.lf {
    float: left;
}

.rt {
    float: right;
}

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

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

.flex {
    display: flex;
    justify-content: space-between;
}

.flex:before, .flex:after {
    display: none;
}

.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;
}

/*头部*/
.header {
    position: relative;
    height: 80px;
    background: #3A7EEC;
}

.header .flex {
    height: 100%;
    align-items: center;
}

.header .logo img {
    max-height: 48px;
}

.header .top a {
    color: #fff;
    font-size: 18px;
    margin-left: 2em;
    display: inline-flex;
    align-items: center;
}

.header .top img {
    margin-right: 10px;
}

.swiper img {
    width: 100%;
}

.topic {
    position: absolute;
    top: 15%;
    left: 50%;
    color: #fff;
    font-size: 20px;
    width: 1600px;
    transform: translateX(-50%);
    z-index: 9;
}

.topic span {
    display: inline-flex;
    font-size: 24px;
    font-weight: bold;
    color: var(--varColor);
    padding: 5px 20px;
    margin-bottom: 0.3em;
    background: #FFFFFF;
    border-radius: 30px 0;
}

.topic h1 {
    font-size: 42px;
}

.topic p {
    margin: 0.5em 0 2em;
}

.topic h2 {
    display: flex;
    align-items: center;
    font-size: 30px;
    padding-left: 40px;
    background: url("../images/contact.png") no-repeat left center;
}

/*尾部*/
.footer {
    margin-top: 40px;
    padding-top: 40px;
    background: url("../images/footer.png") no-repeat center bottom;
    background-size: cover;
}

.footer .flex > div {
    width: 25%;
}

.footer .flex > div:first-of-type img {
    max-height: 48px;
}

.footer h3 {
    color: #ddd;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer p {
    color: #ccc;
    line-height: 1.75em;
}

.footer .copyright {
    color: #ccc;
    text-align: center;
    padding: 30px 0;
}

.footer a {
    color: #ccc;
}

.footer a:hover {
    color: orangered;
}

.section {
    position: relative;
    flex-grow: 1;
}

/*右侧悬浮*/
aside {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: .3s;
    z-index: 9;
}

aside > div {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 60px;
    padding: 1.5em 0;
    margin: 12px 0;
    background: #FFFFFF;
    box-shadow: 0 1px 9px 0 rgba(0, 0, 0, 0.15);
    border-radius: 53px;
}

aside div p {
    width: 2em;
    color: #666;
    line-height: 1.2em;
    margin-top: 0.25em;
}

aside .toTop {
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    display: none;
}

aside .toTop.on {
    display: flex;
}

aside .toTop i {
    display: inline-flex;
    width: 32px;
    height: 1px;
    margin: 0.5em 0;
    background: #F1F1F1;
    border-radius: 10px;
}
