/*
  * 全局样式
  */
:root {
    /* 颜色 */
    --color: #ffffff;
    --main-color: #cc0033;
    --bg-color: #f4f4f4;
    --text-color: #252525;
    --text-color-2: #666666;
    --border-color: #dcdcdc;
    /* 边框圆角 */
    --border-radius: 0.5rem;
    --border-radius-s: 0.25rem;
    --border-radius-x: 50%;
    /* 字体大小 */
    --fs-1: 0.875rem;
    --fs-2: 1rem;
    --fs-3: 1.125rem;
    --fs-4: 1.5rem;
    --fs-5: 1.875rem;
    --fs-6: 2rem;
    /* 间距 */
    --gap-xs: 10px;
    --gap-sm: 20px;
    --gap-md: 30px;
    --gap-lg: 40px;
    --gap-xl: 60px;
    --gap-xxl: 80px;
}

html {
    font-size: 16px;
    /* 基准字体大小 */
}

body {
    font-family: "Microsoft YaHei";
    font-size: var(--fs-2);
    font-weight: normal;
    line-height: 1.5;
    color: var(--text-color);
    min-width: 360px;
}

* {
    margin: 0;
    padding: 0;
    text-transform: capitalize;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

h1 {
    font-size: var(--fs-6);
    font-weight: normal;
}

h2 {
    font-size: var(--fs-5);
    font-weight: normal;
}

h3 {
    font-size: var(--fs-4);
    font-weight: bold;
}

h4 {
    font-size: var(--fs-4);
    font-weight: normal;
}

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

a:hover {
    opacity: 0.9;
    color: var(--main-color);
}

ul,
li {
    list-style: none;
}

img {
    max-width: 100%;
}

/* 分割线样式 */
hr {
    border-width: 1px 0 0 0;
    border-style: solid;
    border-color: var(--border-color);
    width: 100%;
}

.container {
    max-width: 1660px;
    margin: 0 auto;
    padding: 0 5%;
}

/* "更多"链接样式 */
a.more {
    display: flex;
    text-decoration: none;
    justify-content: flex-start;
    align-items: center;
    font-size: var(--fs-1);
    color: var(--text-color);
    background-color: var(--color);
    line-height: var(--gap-lg);
    border-radius: var(--border-radius-s);
    border: 1px var(--text-color) solid;
    width: fit-content;
}

a.more:hover {
    background-color: var(--main-color);
    color: var(--color);
    border-color: var(--main-color);
}

a.more span {
    padding: 0 var(--gap-sm);
    border-right: 1px solid var(--text-color);
}

a.more:hover span {
    border-color: var(--color);
}

a.more .icon {
    width: auto;
    height: var(--gap-sm);
    padding: 0 var(--gap-xs);
}

a.more .icon path {
    fill: var(--text-color);
}

a.more:hover .icon path {
    fill: var(--color);
}

p {
    text-align: justify;
    word-break: break-all;
}

.img-zoom:hover {
    transform: scale(1.15);
}

.img-zoom {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(.65, .05, .36, 1);
}

/*
  * 页眉样式
  */
header {
    width: 100%;
    top: -300px;
}

header.fixed {
    position: fixed;
    z-index: 997;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
    width: 100%;
    background-color: var(--color);
}

header .head-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gap-md);
}

header .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 37px 0;
}

header .logo img {
    height: auto;
    max-width: 240px;
}

/*
  * 侧边按钮
  */
footer .side-btn {
    position: fixed;
    right: 5%;
    z-index: 997;
    bottom: 5%;
    display: grid;
    gap: var(--gap-sm);
}

footer .side-btn a {
    width: var(--gap-xl);
    height: var(--gap-xl);
    background-color: var(--text-color);
    border-radius: var(--border-radius-x);
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .side-btn a.back-to-top {
    display: none;
}

footer .side-btn a:hover {
    background-color: var(--main-color);
}

footer .side-btn .car {
    position: relative;
}

footer .side-btn a:hover .inquiry-count {
    background-color: var(--text-color);
}

footer .side-btn .car .inquiry-count {
    position: absolute;
    background-color: var(--main-color);
    height: var(--fs-5);
    width: var(--fs-5);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius-x);
    top: 0;
    right: 0;
    color: var(--color);
    font-size: var(--fs-1);
}

/*
  * 搜索框
  */
.search-form {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: var(--fs-1);
}

.search-box {
    height: 54px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: 1px #999999 solid;
    border-right-width: 0px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background-color: var(--color);
}

.search-form input {
    border: none;
    color: var(--text-color);
    padding: 0 var(--gap-xs);
    font-size: var(--fs-1);
    width: 300px;
}

/* 去除聚焦时的边框 */
input:focus {
    border: none;
    outline: none;
}

/* 通用 button 样式 */
.btn {
    background-color: var(--main-color);
    border: none;
    border-radius: 100px;
    /* 100%圆角 */
    color: var(--color);
    cursor: pointer;
    font-weight: lighter;
}

.btn:hover {
    opacity: 0.9;
}

.btn:active {
    transform: scale(0.9);
}

.search-form .btn {
    height: 54px;
    width: 54px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* 搜索选项 */
.search-box .choices {
    position: relative;
    z-index: 9;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding-right: var(--gap-xs);
    border-left: 1px #999999 solid;
}

.search-box .choices input {
    width: 90px;
}

.search-box .choices ul {
    position: absolute;
    top: 52px;
    padding: var(--gap-xs);
    display: none;
    border: 1px #999999 solid;
    border-top-width: 1px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    width: 100%;
    background-color: var(--color);
}

.search-box .choices ul li {
    padding: 5px 0;
}

.search-box .choices:hover ul {
    display: block;
}

.search-box .choices ul li:hover {
    color: var(--main-color);
}

.search-box .choices:hover svg {
    transform: rotate(180deg);
}

.search-box .choices:hover svg path {
    fill: var(--main-color);
}

/* 顶部右侧 */
header .top-right {
    display: flex;
    gap: var(--gap-sm);
}

/* 语言选择器 */
.language {
    display: grid;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.language .current {
    padding: 0 var(--gap-sm);
    height: 54px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--gap-xs);
    background-color: var(--bg-color);
    border-radius: var(--border-radius-s);
}

.language a {
    text-align: center;
    background-color: var(--text-color);
    color: var(--color);
    display: none;
    position: absolute;
    top: 54px;
    width: 100%;
    line-height: 54px;
    border-radius: 0 0 var(--border-radius-s) var(--border-radius-s);
}

.language.open a {
    display: block;
}

.language.open a.active {
    display: none;
}

.language.open svg:nth-last-child(1) {
    transform: rotate(180deg);
}

.language.open svg:nth-last-child(1) path {
    fill: var(--main-color);
}

/*
  * 导航样式
  */
.nav-toggle {
    display: none;
}

nav {
    position: relative;
    z-index: 8;
}

.fixed .nav {
    display: none;
}

/* 一级导航 */
nav .nav-lists {
    display: flex;
    gap: var(--gap-xl);
    justify-content: center;
    align-items: center;
    font-size: var(--fs-3);
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #999;
}

nav li {
    text-align: center;
}

nav li a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--border-radius);
}

nav li a:hover,
nav .active .first-link {
    color: var(--main-color);
    font-weight: bold;
}

nav .first-item:hover .first-link svg,
nav .open .first-link svg {
    transform: rotate(180deg);
}

nav .first-item:hover .first-link svg path,
nav .open .first-link svg path {
    fill: var(--main-color);
}

/* 二级导航 */
nav .open .sub-nav {
    display: flex;
}

nav .sub-nav {
    position: absolute;
    display: none;
    gap: var(--gap-lg);
    top: 80px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    left: 0;
    justify-content: center;
    align-items: center;
    height: 160px;
}

nav .sub-nav .sub-link:hover svg {
    transform: translateX(5px);
}

nav .sub-nav .sub-link:hover svg path {
    fill: var(--main-color);
}

/*
  * 页脚样式
  */
footer {
    background-color: #353535;
    border-top: 4px solid var(--main-color);
    color: var(--bg-color);
}

footer .footer-lists {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 120px 0 var(--gap-xl);
}

footer .footer-contact {
    display: grid;
    gap: var(--gap-lg);
}

footer .footer-logo {
    height: auto;
    margin-bottom: var(--gap-sm);
    max-width: 240px;
}

footer .contact-info h3 {
    margin-bottom: var(--gap-sm);
}

footer .contact-info p:nth-last-child(2) {
    padding-bottom: var(--gap-xs);
}

footer .contact-info p span {
    display: block;
}

footer .contact-info p text {
    font-size: var(--fs-4);
    font-weight: bold;
    color: var(--main-color);
}

footer .down-link {
    height: 54px;
    background-color: var(--main-color);
    border-radius: var(--gap-md);
    color: var(--color);
    line-height: 54px;
    text-align: center;
    font-size: var(--fs-3);
    font-weight: bold;
}

footer .footer-pic {
    display: grid;
    gap: var(--gap-xl);
}

footer .qr-code {
    display: flex;
    gap: var(--gap-sm);
    justify-content: flex-end;
    align-items: center;
}

footer .qr-code li {
    position: relative;
}

footer .qr-code a {
    width: 60px;
    height: 60px;
    display: flex;
    background-color: var(--color);
    border-radius: var(--border-radius-x);
    justify-content: center;
    align-items: center;
}

footer .qr-code a:hover {
    background-color: var(--main-color);
}

footer .qr-code a:hover svg path {
    fill: var(--color);
}

footer .qr-code img {
    display: none;
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
}

footer .qr-code li:hover img {
    display: block;
}

footer .awards-link h3 {
    color: var(--color);
    margin-bottom: var(--gap-sm);
    text-align: right;
}

footer .awards-link img {
    height: 54px;
}

footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--gap-md) 0;
    border-top: 1px var(--text-color-2) solid;
    color: var(--text-color-2);
    font-size: var(--fs-1);
    flex-wrap: wrap;
    gap: var(--gap-xs);
}

footer .copyright a {
    color: var(--text-color-2);
    padding-left: 5px;
}

footer a#author {
    color: var(--text-color-2);
}

/* 底部菜单 */
footer .links-lists {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--gap-lg);
}

footer .links-lists li {
    display: grid;
    gap: var(--gap-xs);
}

footer .links-lists li .title {
    font-size: var(--fs-4);
    margin-bottom: var(--gap-xs);
}

footer .links-lists li a {
    color: var(--color);
}

footer .links-lists li a:hover {
    color: var(--main-color);
}

/*
 * 滚动动画样式
 */

/* animate-on-scroll 元素的初始状态 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(200px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* animated 类 - 触发动画效果 */
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 轮播图样式 */
.slider {
    width: 100%;
    margin: 0 auto;
}

/* 应用领域 */
.app-lists {
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
}

.app-lists .list-item {
    position: relative;
    aspect-ratio: 9/6;
    display: grid;
}

.app-lists .app-pic {
    aspect-ratio: 9/6;
    overflow: hidden;
}

.app-lists .app-pic img {
    width: 100%;
}

.app-lists .app-cont {
    padding: var(--gap-sm);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    display: grid;
    gap: var(--gap-xs);
    margin: var(--gap-sm);
    position: absolute;
    bottom: 0px;
}

.app-lists .app-cont:hover {
    color: var(--color);
    background-color: rgba(204, 0, 51, 0.9);
}

.app-lists .app-cont:hover .title {
    color: var(--color);
}

.app-lists .title {
    font-size: var(--fs-4);
}

.app-lists a.more:hover {
    border-color: var(--color);
}