/* 初始样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Microsoft YaHei', sans-serif;
}
a {
    text-decoration: none;
    color: #000000;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
}

li {
    list-style: none;
}



/* 导航栏 */
.header {
    padding: 17px 0;
    overflow: hidden;
    border-bottom: 1px solid #e5e5e5;
}

.container {
    margin: 0 auto;
    max-width: 1180px;
}

.logo {
    height: 70px;
}

.slogan {
    font-size: 20px;
    margin-left: 8px;
}
nav {
    background-color: white; /* 设置导航栏背景颜色 */
    transition: all 0.3s ease; /* 添加过渡效果，使样式变化更平滑 */
}

/* 固定在顶部时的样式 */
nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 确保导航栏在其他元素之上 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}
nav ul {
    display: flex;
    width: 100%;
}

nav ul li {
    width: fit-content;
    padding: 5px 15px;
    text-align: center;
    color: #3162A5;
    font-size: 16px;
    border-left: 1px solid #9D9D9D;
}

nav ul li a {
    color: #3162A5;
    display: block;
}

nav ul li:hover {
    background-color: #003B73;
    color: #D7D7D7;
}

nav ul li:hover a {
    color: white;
}

.navbar-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-toggler {
    display: none;
}
.navbar-expand-lg{
    position: sticky;
  top: 0;
  z-index: 1000; /* 设置一个较高的z-index值，确保导航栏在其他元素之上 */
}
.dh {
    display: flex;
    justify-content: space-between;
}

.banner {
    position: relative;
    background-color: #030C37;
}

.banner .lx {
    position: absolute;
    bottom: 15%;
    left: 19%;
    height: 2vw;
    cursor: pointer;
}

.img {
    display: flex;
}

.img img {
    height: 35px;
}

.contact-icons {
    display: flex;
    align-items: center;
    margin: auto;
}

.contact-icons a {
    text-align: center;
}

.contact-icons a img {
    height: 35px;
}

/* 新增的固定图片样式 */
.fixed-image-container {
    position: fixed;
    right: 0;
    top: 35%;
    transform: translateY(-50%);
    z-index: 1000;
}
.icon-bar {
    width: 24px;
    height: 4px;
    background-color: #979797;
    display: block;
    border-radius: 1px;
    margin-bottom: 4px;
}

.navbar-expand-lg {
    border-bottom: 3px solid #3162A5;
}
.nr1{
    padding: 50px;
}
.nr1 img{
    width: 100%;
}
.nr2{
    width: 100%;
    background-image: url(../images/定_18.jpg);
    padding-bottom: 50px;
}
.nr3{
    padding: 50px;
}
.alt{
    display: flex; justify-content: center; align-items: center;
}
.alt a img{
    height: 50px;
}
.alt a img:hover{
     transform: scale(1.05);
}
.car{
    padding: 0px 50px;
    display: flex;
    justify-content: space-between;
}
.ca1{
    background-image: url(../images/定_24.jpg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ca1 .imgs{
    width: 50%;
}
.ca1 .right{
    width: 50%;
}
.ca1 .right .imgs1{
    width: 100%;
}
.ca1 .right .imgs2{
    width: 50%;
}
.ca1 .right .imgs2:hover{
    transform: scale(1.05);
}
.ca2 {
    width: 100%;
    height: auto;
    background-image: url(../images/tp.jpg);
    background-repeat: no-repeat;
    background-color: #114283;
    background-position: center;
    margin-top: 50px;
}
.ca2 .op{
    color: white;
}
.ca2 .op h1{
    margin-bottom: 50px;
    font-weight: 900;
}
.ca2 .op p{
    line-height: 30px;
}
.ca2 .cl{
    display: flex;
    justify-content: center;
}
.ca2 .cl a{
    color: #FFB338;
}
.cars {
    display: flex;
    justify-content: space-around; /* 均匀分布卡片，可按需调整 */
    margin-top: 5%;
}

.cars .card {
    flex: 0 0 auto;
    margin: 5px; /* 适当减小间距 */
}

.cars.ts {
    margin-top: 0; /* 去掉额外间距 */
}

.card:hover {
    transform: translateY(-10px);
}

@media (max-width: 768px) {
   .ca2 {
        padding: 20px;
    }
    .cars .card{
        width: 70%;
        margin: auto;
    }
   .cars .card img {
        width: 100%;
        height: auto;
    }
}
.hero {
    width: 100%;
    height: 400px; /* 可根据实际调整高度 */
    background-image: url('../images/wt.png'); /* 替换为实际背景图路径 */
    background-size: cover;
    background-position: center;
    display: flex;

    align-items: center;
}

.hero-content {
    text-align: left;
    color: white;
    padding: 20px;
    margin-left: 50px;
}

.hero h1 {
    font-size: 2em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero .btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: white;
    color: #333;
}
.footer {
    background-color: #3b597d; /* 深蓝色背景 */
    color: white;
    text-align: center;
}

.top-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
}

.links {
    display: flex;
    gap: 20px;
}

.links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.qr-code {
    margin-left: 20px;
}

.bottom-section {
    background-color: white;
    color: #777;
    padding: 10px 0;
}
.bottom-section a{
    color: #777;
}
@media (max-width: 768px) {
    .top-section {
         font-size: 5px;
         display: flex;
         justify-items: center;
     }
     .top-section img{
         height: 15px;
     }
 }
/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        height: 50px;
    }

    .slogan {
        display: none;
    }

    .navbar-toggler {
        display: block;
    }

    .navbar-nav li {
        width: 100%;
    }

    .jianjie {
        padding: 30px 0;
    }

    .title-div {
        text-align: center;
        margin-bottom: 15px;
    }

    .title {
        font-size: 25px;
        margin: 0;
    }

    .meishi .left {
        padding-left: 0;
        padding-right: 0;
    }

    .meishi .right p {
        line-height: 28px;
        font-size: 15px;
    }
    .contact-icons{
        display: flex;
        justify-content: center;
    }
    .contact {
        width: 100%;
    }

    .contact h5 {
        font-size: 30px;
    }

    .detail-img {
        width: 100%;
        margin-right: 0%;
    }

    .detail-words {
        width: 100%;
    }
}