@charset "utf-8";

:root {
    --varColor: #C61E05;
}

/*@font-face {*/
/*    font-family: '临海体';*/
/*    src: url('../fonts/LinhaiLishuXZ.ttf')*/
/*}*/

html {
    font-size: calc(100vw / 1920 * 100);
    scroll-behavior: smooth;
}

body, p, h1, h2, h3, h4, h5, h6, ul, li, dl, dt, dd, div, span {
    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;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    background-size: contain;
}

a {
    color: #333;
    text-decoration: none;
    transition: .3s;
}

a:hover {
    color: var(--varColor);
    text-decoration: none;
}

input, button, iframe {
    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);
}

video {
    max-width: 100%;
    height: max-content;
    object-fit: cover;
}

table {
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
}

.container {
    width: 14rem;
    margin: 0 auto;
    position: relative;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: justify;
}

.ellipsis-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-align: justify;
}

.ellipsis-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-align: justify;
}

/*头部*/
header {
    background: #ab0102;
}

header > .flex {
    padding: 0.3rem 3%;
}

header .logo img {
    height: 0.8rem;
}

header .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header .info .search p {
    line-height: 0.42rem;
}

header .info p a {
    color: #fff;
    margin: 0 0.1rem;
    padding-left: 0.2rem;
    background: url("../images/home.png") no-repeat left center;
    background-size: 0.16rem;
}

header .info p a img {
    height: 0.22rem;
}

header .info > p a:first-of-type {
    padding-left: 0.24rem;
    background: url("../images/gate.png") no-repeat left center;
}

header .info p a:hover {
    color: orange;
}

header .info p span {
    color: rgba(255, 255, 255, 0.39);
}

header .search {
    display: flex;
}

header form {
    position: relative;
    display: inline-flex;
    justify-content: right;
    margin-left: 0.1rem;
}

header input[type='text'] {
    width: 2.74rem;
    height: 0.42rem;
    color: #fff;
    font-size: 0.16rem;
    padding: 0 0.42rem 0 0.25rem;
    background: rgba(3, 3, 3, 0.3);
    border-radius: 0.25rem;
    box-sizing: border-box;
}

header input[type='text']::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

header input[type='submit'] {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.42rem;
    height: 0.42rem;
    cursor: pointer;
    background: url("../images/search.png") no-repeat center;
    background-size: 0.22rem;
}

/*导航*/
nav {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

nav ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

nav ul li {
    flex-grow: 1;
    position: relative;
}

nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0.6rem;
    font-size: 0.2rem;
    padding: 0 0.2rem;
}

nav ul li:hover a {
    color: var(--varColor);
}

nav ul li dl {
    position: absolute;
    top: 0.6rem;
    left: 0;
    min-width: 100%;
    width: max-content;
    z-index: 9;
    display: none;
}

nav ul li dl dt a {
    color: #fff !important;
    border-top: 1px solid #fff;
    background: rgba(198, 30, 5, 0.6);
}

nav ul li dl dt a:hover {
    background: rgba(171, 1, 2, 1);
}

/*尾部*/
footer {
    color: #fff;
    background: url("../images/footer.jpg") no-repeat center;
    background-size: cover;
}

footer .contact {
    padding: 0.56rem 0;
}

footer .logo img {
    height: 0.57rem;
    margin-bottom: 0.5rem;
}

footer ul li {
    margin-bottom: 0.1rem;
}

footer ul li h3 {
    font-size: 0.16rem;
    margin: 0.15rem 0;
}

footer .code div {
    margin-left: 0.25rem;
}

footer .code img {
    width: 1.47rem;
    margin: 0.2rem 0 0.1rem;
}

footer .code p {
    text-align: center;
}

footer .copyright {
    color: rgba(255, 255, 255, 0.73);
    padding: 0.18rem 0;
    text-align: center;
    background: var(--varColor);
}

footer .copyright a {
    color: rgba(255, 255, 255, 0.73);
}

footer .copyright a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

/*返回顶部*/
.toTop {
    position: fixed;
    right: clamp(10px, 0.15rem, 0.15rem);
    bottom: -100px;
    width: clamp(30px, 0.4rem, 0.4rem);
    height: clamp(30px, 0.4rem, 0.4rem);
    line-height: clamp(30px, 0.4rem, 0.4rem);
    text-align: center;
    color: #fff;
    font-size: clamp(18px, 0.24rem, 0.24rem);
    font-weight: bolder;
    font-family: 'fangsong';
    background: rgba(0, 0, 0, .6);
    border-radius: 5px;
    transform: rotate(-90deg);
    cursor: pointer;
    transition: .3s;
    z-index: 9;
}

.toTop.active {
    bottom: clamp(10px, 0.2rem, 0.2rem);
}

.toTop:hover {
    background: var(--varColor);
}

section {
    position: relative;
    flex-grow: 1;
    width: 100%;
    padding-bottom: 0.5rem;
}

/*响应式适配多端*/
@media screen and (max-width: 1440px) {

    .container {
        width: 100%;
        padding: 0 40px;
    }

}
@media screen and (max-width: 1200px) {

    .container {
        width: 100%;
        padding: 0 20px;
    }

}