﻿@charset "utf-8";

:root {
    --varColor: #8D0704;
    --focuseColor: #A30404;
}

html {
    font-size: 100px;
    scroll-behavior: smooth;
}

@media screen and (max-width: 1280px) {
    html {
        font-size: 96px;
    }
}

@media screen and (max-width: 1200px) {
    html {
        font-size: 88px;
    }
}

@font-face {
    font-family: D-DIN-PRO-Bold;
    src: url("../fonts/D-DIN-PRO-700-Bold.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: "microsoft yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(12px, 0.14rem, 0.14rem);
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    background: url("../images/bg.jpg") no-repeat center bottom;
    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);
}

.container {
    width: 13.80rem;
    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: relative;
    height: 1.3rem;
    background: linear-gradient(90deg, #AA0000 0%, #9A0909 100%);
    border-bottom: 5px solid #EFB48C;
}

header .flex {
    height: 100%;
}

header .logo {
    position: relative;
    padding-left: 0.38rem;
    display: inline-flex;
    align-items: center;
    z-index: 2;
}

header .logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5.92rem;
    height: 2.22rem;
    background: url("../images/flag.png") no-repeat;
    background-size: cover;
    z-index: -1;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.search {
    display: inline-flex;
    align-items: center;
    padding: 0 0.68rem;
    margin-bottom: 0.1rem;
    height: 0.48rem;
    background: #760000;
    border: 1px solid #620C0C;
    border-bottom-left-radius: 0.48rem;
}

.search a {
    color: #fff;
    position: relative;
    padding-left: 25px;
    background: url("../images/home.png") no-repeat left center;
}

.search form {
    position: relative;
    margin: 0 0.2rem;
}

.search input[type='text'] {
    width: 2rem;
    height: 0.28rem;
    padding: 0 0.3rem 0 0.1rem;
    box-sizing: border-box;
}

.search input[type='submit'] {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.28rem;
    height: 0.28rem;
    background: url("../images/search.png") no-repeat center center;
    cursor: pointer;
}

input[type='text']::placeholder {
    color: #666;
}

/*导航*/
nav ul {
    display: flex;
    width: 100%;
    margin-right: 0.68rem;
}

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, .5);
}

nav ul li:hover > a {
    font-weight: bold;
}

nav dl {
    position: absolute;
    top: 0.6rem;
    left: 0;
    min-width: 100%;
    width: max-content;
    border-top: 2px solid orangered;
    z-index: 9;
    display: none;
}

nav dl dt a {
    height: 0.5rem;
}

nav dl dt a:hover {
    background: orangered;
}

/*尾部*/
footer {
    padding: 0.35rem;
    background: #A30404;
}

footer p {
    color: #fff;
    text-align: center;
    line-height: 2em;
}

footer p a {
    color: #fff;
}

footer p a:hover {
    color: #fff;
    text-decoration: underline;
}

/*返回顶部*/
.toTop {
    position: fixed;
    right: 0.15rem;
    bottom: -100px;
    width: 0.4rem;
    height: 0.4rem;
    line-height: 0.4rem;
    text-align: center;
    color: #fff;
    font-size: 0.24rem;
    font-weight: bolder;
    font-family: '黑体';
    background: rgba(0, 0, 0, .6);
    border-radius: 5px;
    transform: rotate(-90deg);
    cursor: pointer;
    transition: .3s;
    z-index: 9;
}

section {
    position: relative;
    padding-bottom: 2rem;
    flex-grow: 1;
    width: 100%;
    z-index: 1;
}

/*响应式适配多端*/
@media screen and (max-width: 1440px) {

    .search {
        padding: 0 0.28rem;
    }

    .search form {
        margin: 0 0.1rem;
    }

    nav ul {
        margin-right: 0.28rem;
    }

    nav ul li a {
        padding: 0 0.1rem;
        font-size: 0.16rem;
    }

    section {
        padding-bottom: 1rem;
    }

}

@media screen and (max-width: 1380px) {

    .container {
        width: 100%;
        padding: 0 0.2rem;
    }

}

/*浏览器滚动条样式*/
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 4px;
}