@charset "utf-8";

:root {
    --varColor: #8F0100;
}

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;*/
/*    }*/
/*}*/

body, p, h1, h2, h3, h4, h5, h6, ul, li, dl, dt, dd, div, span, pre {
    margin: 0;
    padding: 0;
    border: none;
    list-style: none;
    box-sizing: border-box;
    font-family: "microsoft yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    font-family: "microsoft yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(14px, 0.16rem, 0.16rem);
    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;
}

pre {
    white-space: pre-wrap;
}

.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 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: linear-gradient(to bottom, var(--varColor), rgba(143, 1, 0, 0));
}

header .logo {
    padding: 0.25rem 0;
}

header .logo img {
    height: 0.82rem;
}

header .info p {
    margin: 0.3rem 0 0.05rem;
    padding: 0 8px;
}

header .info p a {
    color: #fff;
    padding-left: 0.25rem;
    background: url("../images/home.png") no-repeat left center;
    background-size: 0.17rem;
}

header .info p a:first-of-type {
    margin-right: 0.1rem;
    background-image: url("../images/gate.png");
}

header .info p a:hover {
    text-decoration: underline;
}

header .info p img {
    width: 0.18rem;
    margin-left: 0.15rem;
    cursor: pointer;
}

.weather{
    margin: 0 -100px -75px 0;
}

/*导航*/
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;
    color: #fff;
    font-size: 0.18rem;
    padding: 0 0.2rem;
}

nav ul li:hover a {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
}

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 {
    border-top: 1px solid #fff;
}

nav ul li dl dt a:hover {
    background: orange;
}

/*搜索*/
.search {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    background: linear-gradient(0deg, #8F0100, #FCE2E2);
    z-index: 999;
}

.search.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.search p {
    font-size: 0.36rem;
    color: #fff;
    text-align: center;
    line-height: 1.2em;
    margin-bottom: 0.2rem;
}

.search form {
    position: relative;
    width: 40%;
}

.search input[type='text'] {
    width: 100%;
    height: 0.5rem;
    color: #fff;
    font-size: 0.2rem;
    padding: 0 0.5rem 0 0.25rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    box-sizing: border-box;
}

.search input[type='text']::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search input[type='submit'] {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.5rem;
    height: 0.5rem;
    cursor: pointer;
    background: url("../images/search.png") no-repeat center;
    background-size: 0.25rem;
}

.close {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    color: #fff;
    font-size: 0.36rem;
    width: 1em;
    height: 1em;
    line-height: 0.85em;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

/*尾部*/
footer {
    color: #fff;
}

footer .contact {
    padding: 0.5rem 0 0.25rem;
    background: url("../images/footer.jpg") no-repeat center;
    background-size: cover;
}

footer .contact > .flex {
    align-items: center;
}

footer .logo img {
    height: 0.82rem;
}

footer ul li {
    margin-bottom: 0.1rem;
}

footer .code div {
    margin-left: 0.25rem;
}

footer .code img {
    width: 1.42rem;
    border: 0.07rem solid #fff;
}

footer .code p {
    margin-top: 0.1rem;
    text-align: center;
}

footer .copyright {
    padding: 0.18rem 0;
    text-align: center;
    background: var(--varColor);
}

footer .copyright a {
    color: #fff;
}

footer .copyright a:hover {
    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: 1200px) {

    .container {
        width: 100%;
        padding: 0 0.2rem;
    }

}