﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
ul,li {list-style: none;}
a {text-decoration: none;color: #333;}
img {width: 100%;display: block;}
.container {width: 1200px;margin: 0 auto;padding: 0 15px;}

/* 新增顶部蓝色热线栏样式 */
.top-bar {
    width: 100%;
    background: #0F4096;
    color: #ffffff;
    font-size: 15px;
    line-height: 44px;
}
.top-bar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-left {
    white-space: normal;
}
.top-right {
    white-space: nowrap;
}

/* 头部导航 */
header {
    background: #165DFF;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}
.logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}
/* PC导航 */
.nav-list {
    display: flex;
    gap: 40px;
}
.nav-list li a {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}
.nav-list .active{
    color:#0fe2ef;
}
.nav-list li a:hover {
    color: #FFD700;
}
.nav-list li a::after {
    content: "";
    width: 0;
    height: 2px;
    background: #FFD700;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}
.nav-list li a:hover::after {
    width: 100%;
}
/* 移动端汉堡按钮 */
.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
}
.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: 0.3s;
}
.menu-btn span:nth-child(1) {top: 8px;}
.menu-btn span:nth-child(2) {top: 18px;}
.menu-btn span:nth-child(3) {top: 28px;}
.menu-btn.active span:nth-child(1) {transform: rotate(45deg);top:18px;}
.menu-btn.active span:nth-child(2) {opacity: 0;}
.menu-btn.active span:nth-child(3) {transform: rotate(-45deg);top:18px;}

/* Banner轮播 */
.banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}
.banner-box {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s ease-in-out;
}
.banner-item {
    width: 100%;
    height: 100%;
    flex-shrink: 0; /* 关键！禁止item宽度压缩，防止第二三屏缩小空白 */
}
/* PC端 */
.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* 980px以下移动端 */
@media screen and (max-width: 992px) {
    .banner-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}
.banner-dot {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: #fff;
    transform: scale(1.2);
}
.banner-btn {
    width: 50px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 28px;
    line-height: 60px;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: 0.3s;
}
.banner-btn:hover {
    background: rgba(22,93,255,0.7);
}
.prev {left: 20px;}
.next {right: 20px;}

/* 通用区块标题 */
.section-title {
    text-align: center;
    padding: 60px 0 40px;
}
.section-title h2 {
    font-size: 32px;
    color: #165DFF;
    margin-bottom: 12px;
}
.section-title p {
    color: #666;
    font-size: 15px;
}

/* 公司介绍 */
.about {
    padding-bottom: 60px;
}
.about-wrap {
    display: flex;
    gap: 50px;
    align-items: center;
}
.about-img {
    width: 50%;
    overflow: hidden;
    border-radius: 8px;
}
.about-img img {
    transition: transform 0.5s ease;
}
.about-img:hover img {
    transform: scale(1.05);
}
.about-text {
    width: 50%;
}
.about-text h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #222;
}
.about-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
    font-size: 15px;
}
.about-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 28px;
    background: #165DFF;
    color: #fff;
    border-radius: 4px;
    transition: 0.3s;
}
.about-btn:hover {
    background: #0f48cc;
}

/* 产品分类 - 自动上下滚动核心 */
.product {
    background: #f7f9fc;
    padding-bottom: 70px;
}
.product-scroll-box {
    height: 420px;
    overflow: hidden;
    position: relative;
}
.product-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom:25px;
}
.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}
.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(22,93,255,0.18);
}
.pro-img {
    height: 200px;
    overflow: hidden;
}
.pro-img img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-item:hover .pro-img img {
    transform: scale(1.1);
}
.pro-text {
    padding: 18px;
}
.pro-text h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #222;
}
.pro-text p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

/* 客户案例横向滚动 */
.case {
    padding-bottom: 70px;
}
.case-scroll-wrap {
    width: 100%;
    overflow: hidden;
}
.case-scroll-box {
    display: flex;
    width: max-content;
    animation: caseMove 25s linear infinite;
}
@keyframes caseMove {
    0% {transform: translateX(0);}
    100% {transform: translateX(-50%);}
}
.case-item {
    width: 300px;
    margin: 0 15px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}
.case-img {
    height: 180px;
}
.case-txt {
    padding: 15px;
}
.case-txt h4 {
    font-size: 16px;
    margin-bottom: 6px;
}
.case-txt p {
    font-size: 13px;
    color: #666;
}

/* 新闻资讯 */
.news {
    background: #f7f9fc;
    padding-bottom: 70px;
}
.news-list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}
.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}
.news-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.news-img {
    height: 170px;
}
.news-text {
    padding: 20px;
}
.news-text h4 {
    font-size: 17px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-text h4 a:hover {
    color: #165DFF;
}
.news-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}
.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 联系我们 */
.contact {
    padding: 70px 0;
}
.contact-wrap {
    display: flex;
    gap: 60px;
}
.contact-left {
    width: 50%;
}
.contact-left h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #222;
}
.contact-item {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
}
.contact-icon {
    width: 40px;
    height: 40px;
    background: #165DFF;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}
.contact-right {
    width: 50%;
}
.contact-right input, .contact-right textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}
.contact-right textarea {
    height: 120px;
    resize: none;
}
.submit-btn {
    width: 100%;
    height: 45px;
    background: #165DFF;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.submit-btn:hover {
    background: #0f48cc;
}

/* 底部版权 */
footer {
    background: #0a244d;
    color: #ccc;
    padding: 50px 0 20px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 40px;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #ccc;
    font-size: 14px;
}
.footer-col a:hover {
    color: #FFD700;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #193866;
    font-size: 14px;
}

.copyright a {
    color: #F0F0EE;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #193866;
    font-size: 14px;
}

/* 页面滚动淡入动画 */
.fade-box {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}
.fade-box.show {
    opacity: 1;
    transform: translateY(0);
}

/* 回到顶部 */
.back-top {
    width: 45px;
    height: 45px;
    background: #165DFF;
    color: #fff;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    position: fixed;
    right: 30px;
    bottom: 30px;
    cursor: pointer;
    display: none;
    z-index: 99;
}

/* ====================== 移动端媒体查询 ====================== */
@media screen and (max-width: 992px) {
    .container {width: 100%;}
    /* 顶部热线移动端适配 */
    .top-bar-wrap {
        flex-direction: column;
        line-height: 26px;
        padding: 6px 0;
        text-align: center;
    }
    .top-bar {
        font-size: 14px;
    }
    .top-left {
        white-space: normal;
        font-size: 12px; /* 缩小字号，减少换行次数 */
        line-height: 26px; /* 和原高度匹配 */
    }
    /* 导航切换汉堡 */
    .menu-btn {display: block;}
    .nav-list {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #165DFF;
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.4s ease;
    }
    .nav-list.active {height: 320px;}
    .nav-list li {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    /* Banner高度缩小 */
    .banner {height: auto;}
    /* 公司介绍上下堆叠 */
    .about-wrap {flex-direction: column;}
    .about-img, .about-text {width: 100%;}
    /* 产品两列布局 */
    .product-list {grid-template-columns: repeat(2,1fr);}
    .product-scroll-box {height: 520px;}
    /* 新闻两列 */
    .news-list {grid-template-columns: repeat(2,1fr);}
    /* 联系我们上下堆叠 */
    .contact-wrap {flex-direction: column;gap:30px;}
    .contact-left, .contact-right {width: 100%;}
}
@media screen and (max-width: 576px) {
    /* 手机单列 */
    .product-list {grid-template-columns: 1fr;}
    .product-scroll-box {height: 650px;}
    .news-list {grid-template-columns: 1fr;}
    .banner-btn {display: none;}
    .section-title h2 {font-size: 24px;}
    .footer-top {flex-direction: column;}
}
