﻿@charset "utf-8";

:root {
    --varColor: #A41F35;
}

html {
    font-size: calc(100vw / 1920 * 100);
    scroll-behavior: smooth;
}

/*@media screen and (max-width: 1440px) {*/
/*    html {*/
/*        font-size: 96px;*/
/*    }*/
/*}*/

/*@media screen and (max-width: 1280px) {*/
/*    html {*/
/*        font-size: 88px;*/
/*    }*/
/*}*/

@font-face {
    font-family: SourceHanSansCN-Bold;
    src: url("../fonts/SourceHanSansCN-Bold.otf");
}

@font-face {
    font-family: SourceHanSansCN-Medium;
    src: url("../fonts/SourceHanSansCN-Medium.otf");
}

@font-face {
    font-family: SourceHanSansCN-Normal;
    src: url("../fonts/SourceHanSansCN-Normal.otf");
}

@font-face {
    font-family: SourceHanSansCN-Regular;
    src: url("../fonts/SourceHanSansCN-Regular.otf");
}

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: SourceHanSansCN-Regular, "microsoft yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(14px, 0.18rem, 0.18rem);
    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 {
    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;
}

.container {
    width: 14.40rem;
    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 .logo {
    padding: 0.6rem 0;
}

nav {
    display: flex;
    justify-content: right;
}

/*导航*/
nav ul {
    display: flex;
    margin-bottom: 0.1rem;
}

nav ul li {
    position: relative;
    margin: 0 0.1rem;
    font-family: SourceHanSansCN-Medium;
}

nav ul li:last-of-type {
    margin-right: 0;
}

nav ul li:not(:last-of-type)::after {
    content: '';
    position: absolute;
    right: -0.1rem;
    top: 50%;
    width: 1px;
    height: 0.25rem;
    background: #666;
    transform: translateY(-50%);
}

nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0.6rem;
    color: #000;
    font-size: 0.28rem;
    padding: 0 0.2rem;
}

nav ul li:hover a {
    color: #fff;
    background: var(--varColor);
}

nav dl {
    position: absolute;
    top: 0.6rem;
    left: 0;
    min-width: 100%;
    width: max-content;
    z-index: 9;
    display: none;
}

nav dl dt a {
    font-size: 0.22rem;
    height: 0.6rem;
    border-top: 1px solid #fff;
}

nav dl dt a:hover {
    opacity: 0.9;
}

/*尾部*/
footer {
    color: #fff;
    padding: 0.6rem;
    margin-top: 0.8rem;
    background: var(--varColor);
}

footer ul {
    display: flex;
    justify-content: right;
    margin-top: 0.5rem;
}

footer ul li {
    margin-left: 0.5rem;
}

footer ul li a {
    color: #fff !important;
}

footer p {
    margin-top: 0.3rem;
}

footer p img {
    width: 6em;
}

/*返回顶部*/
.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%;
    z-index: 1;
}

/*响应式适配多端*/
@media screen and (max-width: 1440px) {

    .container {
        width: 1360px;
    }

}

@media screen and (max-width: 1360px) {

    .container {
        width: 1280px;
    }

}

@media screen and (max-width: 1280px) {

    .container {
        width: 1200px;
    }

}

@media screen and (max-width: 1200px) {

    .container {
        width: 100%;
        padding: 0 0.2rem;
    }

}