 /*重置样板格式*/
 *{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    max-width: 100%;
    font-family: 'Poppins',sans-serif;
}
a{
    text-decoration: none;
    }
body{
    scroll-behavior: smooth;
}
.header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    /*flex布局*/
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.8s;
    background-color: white;
}
/*header变为active之后*/
.header.active{
    position: fixed;
    background-color: white;
    /*设置图片背景颜色转换*/
    opacity: 1;
    transition: 0.8s;
}
/*logo--active之前*/
.header .logo{
    position: relative;
    text-decoration: none;
    font-weight: 700;
    background-image: url("../image/logo.png");
    background-size: cover;
    width: 150px;
    height:70px;
    left: 10%;
    z-index: 10;
}
/*logo-active之后*/
.header .navbar{
    position: absolute;
    right: 20%;
    display: flex;
    flex-direction: row;
    list-style: none;
    z-index: 5;
    background-color: white;
}
.header .navbar .nav-item{
    height:80px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    z-index: 5;
}
.header .navbar .nav-item.d{
    display: none;
}
/*a标签导航栏元素 -active之前*/
.header .navbar .nav-link{
    font-size: 20px;
    font-weight: 1000;
    color: #000000;
    text-decoration:none;
    font-weight:500;
    transition:0.7s;
    overflow: hidden;
    z-index: 5;
}
.header .navbar .nav-link:hover,
.header.active .navbar .nav-link:hover{
    color: #ff0000;
    transform: 0.1s;
}
.header .navbar .nav-link.n4::before,
.header .navbar .nav-link.n5::before,
.header .navbar .nav-link.n6::before,
.header .navbar .nav-link.n7::before,
.header .navbar .nav-link.n8::before,
.header.active .navbar .nav-link.n4::before,
.header.active .navbar .nav-link.n5::before,
.header.active .navbar .nav-link.n6::before,
.header.active .navbar .nav-link.n7::before,
.header.active .navbar .nav-link.n8::before{
    width: 80px;
}

.header .navbar .nav-link:hover::before{
    opacity: 1;
}
/*下拉菜单*/
.header .navbar .nav-item .droplist{
    position:absolute;
    height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 40px;
    background-color: rgb(252, 252, 252);
    list-style: none;
    top: 0px;
    width: 65%;
    transform: translateY(80px);
}
.header .navbar .nav-item:hover .droplist{
    transition: 0.5s;
    height: 200px;
    transition: 0.3s;
}
.header .navbar .nav-item:hover .droplist a::before{
    content: "";
    display: inline-block;
    position: relative;
    right: 10px;
    top: 7px;
    width: 5px;
    height: 25px;
    background-color: rgb(65, 147, 255);
    opacity: 0;
    transition: 0.3s;
}
.header .navbar .nav-item:hover .droplist a:hover::before{
    opacity: 1;
    transition: 0.3s;
}
.header .navbar .nav-item .droplist a{
    text-decoration: none;
    color:black;
    font-size: 18px;
    display: flex;
    position: relative;
    left: 50px;
    margin-top: 15px;
}
.header .navbar .nav-item:hover .droplist a:hover{
    color: red;
    background-color: #f5f5f5;
}
.header .navbar .nav-item:hover .droplist.d1{
    height: 400px;
}
.header .navbar .nav-item:hover .droplist.d2{
    height: 200px;
}
.header .navbar .nav-item:hover .droplist.d3{
    height: 400px;
}
/*nav-link标签active之后*/
.header.active .navbar .nav-link{
    color: #000000;
}
@media screen and (max-width: 1600px) {
    .header .navbar .nav-item{
        width: 80px;
        margin: 0 20px;
    }
}

/*汉堡选单*/
.header .hamburger{
    cursor: pointer;
    display: none;
}
/*汉堡选单的三道横线*/
.hamburger .bar{
    display: block;
    background-color: white;
    width: 25px;
    height: 3px;
    margin: 5px;
    transition: all 0.3s ease-in-out;
}
.header.active .hamburger .bar{
    background-color: #000000;
    transition: 0.7s;
}

@media screen and (max-width: 768px){
    .header .hamburger{
        cursor: pointer;
        display: block;
        background-color: rgb(255, 255, 255);
    }
    .header .hamburger .bar{
        background-color: #000;
    }
    .header .hamburger.active .bar:nth-child(2){
        opacity: 0;

    }
    .header .hamburger.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);

    }
    .header .hamburger.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);

    }
    .header{
        position: fixed;
        background-color: rgb(255, 255, 255);

    }
    .header.active{
        background-color: white;

    }
    header .navbar .nav-link{
        color: #000;
        font-size: 20px;
    }
    .header .navbar .nav-item.d{
        display: flex ;
        align-items: center;
        justify-content: center;
    }
    .header .navbar .nav-item .droplist{
        display: none;

    }
    .header .navbar{
        position: fixed;
        background-color: rgb(255, 255, 255);
        top: -100%;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        justify-items: center;
        align-items: center;
        gap: 0px;
        transition: all 0.3s ease;

    }
    .header .nav-item{
        margin: 16px;

    }
    .header .navbar.active{
        top: 80px;

    }

}
.sectionA{
    position: relative;
    height: 50vh;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background-image: url("../image/bg14.jpg");
}
.sectionA .title{
    width: 100%;
    height: auto;
}
.sectionA h1{
    position: relative;
    width: 20%;
    text-align: center;
    font-size: 50px;
    color:rgb(255, 255, 255);
}
.sectionA p{
    position: relative;
    width: 20%;
    text-align: center;
    font-size: 20px;
    margin-top: 1em;
    color:rgb(255, 255, 255);
}
@media screen and (max-width:768px) {
    .sectionA{
        display: none;
    }
}
/*一级菜单*/
.section1 {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10vh;
    z-index: 1;
}
.section1 .container{
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: repeat(8,1fr);
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgb(224, 224, 224);
    padding-top: 5vh;
}
.section1 .container .box{
    position: relative;
    width:100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    background-color: rgb(250, 250, 250);
    padding: 15px;
    border: 1px solid rgb(228, 228, 228);
}
.section1 .container .box a{
    text-decoration: none;
}
.section1 .container .box i{
    margin-top: 20px;
    height: 50px;
    font-size: 50px;
    color: rgb(0, 94, 218);
}
.section1 .container .box .iconfont.icon-meitankaicai{
    font-size:60px;
}
.section1 .container .box:hover{
    background-color: rgb(70, 150, 255);
    transform: translateY(-10px);
    z-index: 5;
    transition: 0.3s;
}
.section1 .container .box:hover h4,
.section1 .container .box:hover i{
    color: white;
    transition: 0.3s;
}
.section1 .container .box h4{
    margin-top: 20px;
    margin-bottom: 20px;
    color: #525252;
    font-size: 12px;
    font-weight: 500;
}
@media screen and (max-width:1620px ) {
    .section1 .container{

        grid-template-columns: repeat(4,1fr);
        border: none;

    }
    .section1 .container .box:hover{
        background-color: rgb(70, 150, 255);
        transform: translateY(0px);
        transform: scale(1.05);
        z-index: 5;
        transition: 0.3s;
    }
    .section1 .container .box:hover h4,
    .section1 .container .box:hover i{
        color: white;
        transition: 0.3s;
    }
}
@media screen and (max-width:820px) {
    .section1 .container{

        grid-template-columns: repeat(2,1fr);
        gap: 1em;
        width: 90%;

    }
    .section1 .container .box{
        position: relative;
        border-radius: 3px;
        width: 100%;
    }

    .section1 .container .box i{
        display: none;
    }
}

/*二级菜单*/
.section2{
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    margin-top: 3vh;
}
.section2 .container{
    width: auto;
    height: auto;
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: repeat(4,1fr);
    border-top: #e0e0e0 1px solid;
}
.section2 .container .box{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: #e0e0e0 1px solid;
    padding: 10px 40px;
    cursor: pointer;
}
.section2 .container .box i{
    font-size: 40px;
    color: rgb(0, 94, 218);
}
.section2 .container .box h3{
    font-size: 1em;
    width: 100%;
    margin-top: 0.5em;
    font-weight: 300;
    color: #000;
}
.section2 .container .box:hover{
    background-color: rgb(70, 150, 255);
    transform: translateY(-10px);
    z-index: 5;
    transition: 0.3s;
}
.section2 .container .box:hover h3,
.section2 .container .box:hover i{
    color: white;
    transition: 0.3s;
}
@media screen and (max-width:700px) {
    .section2 .container i{
        display: none;
    }
}
.section3{
    position: relative;
    top: 2vh;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    margin-bottom: 2em;
}
.section3 .host{
    position: relative;
    width: auto;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 0.5em;
}
.section3 .sensor{
    position: relative;
    width: auto;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 2em;
}
.section3 .Transmitterr{
    position: relative;
    width: auto;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 2em;
}
.section3 .substation{
    position: relative;
    width: auto;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 2em;
}
.section3 .title{
    margin-top:2em;
    margin-bottom: 2em;
    width: auto;
}
.section3 .title h1{
    font-size: 40px;
    width: auto;
    padding: 10px;
}
.section3 .title p{
    position: relative;
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
}
.section3 .container .image{
    display: flex;
    height: auto;
    width: 100%;
    margin: 5% 0;
    justify-content: center;
    align-items: center;
}
.section3 .container .image img{
    width: 80%;
}
.section3 .box{
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgb(214, 214, 214);
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    background-color: white;
}
.section3 .box:hover{
    transition: 0.3s;
    border: 2px solid #ffffff;
    animation: shake 0.5s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.section3 .box h4{
    color: #000;
    font-size: 20px;
    font-weight: 400;
}
.section3 .box img{
    transition: 0.3s;
    margin-bottom: 2em;
}
.section3 .box:hover img{
    transform: scale(1.05);
    transition: 0.3s;
}
@media screen and (max-width:1700px){
    .section3 .host,
    .section3 .sensor,
    .section3 .Transmitterr,
    .section3 .substation{
        grid-template-columns: repeat(3,1fr);
    }
}
@media screen and (max-width:1300px){
    .section3 .host,
    .section3 .sensor,
    .section3 .Transmitterr,
    .section3 .substation{
        grid-template-columns: repeat(2,1fr);
    }
}
@media screen and (max-width:900px){
    .section3 .host,
    .section3 .sensor,
    .section3 .Transmitterr,
    .section3 .substation{
        grid-template-columns: repeat(1,1fr);
    }
}
@media screen and (max-width:768px) {
    .section3 .host,
    .section3 .sensor,
    .section3 .Transmitterr,
    .section3 .substation{
        grid-template-columns: repeat(2,1fr);
        padding: 20px;
    }
    .section3 .box{
        width: 100%;
        height: 100%;
        border: 2px solid rgb(214, 214, 214);
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        transition: 0.3s;
        background-color: white;
        padding: 10px 0;
    }
    .section3 .box h4{
        font-size: 15px;
        margin-top: 2%;
    }
}

.section3 h4{
    font-size: 1em;
}
.section4{
    margin-top: 20vh;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
}
.section4 .container{
    border-top: #999 1px solid;
    width: 80%;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}
.section4 .container a{
    width: 100%;
    text-decoration: none;
}
.section4 .container h4{
    font-size: 20px;
    color: black;
    font-weight: 400;
}

footer{
    position: relative;
    top: 10vh;
    width:100%;
    height:auto;
    padding:50px 100px;
    background:#111;
    display:flex;
    justify-items: center;
    align-items: center; 
}
footer .connect{
    position: relative;
    width: 80%;
    left: 10%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
footer .connect i{
    color: white;
    font-size: 2em;
    margin: 0 20px;
}
footer .connect .youxiang,
footer .connect .dizhi{
    color: white;
    display: flex;
    flex-direction: row;
}
footer .connect .dianhua{
    display: flex;
    flex-direction: row;
    color: white;
}
@media screen and (max-width:1400px) {
    footer .connect{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2em;
    }
}
.copurightText{
    position: relative;
    top:10vh;
    width: 100%;
    background:#181818;
    padding: 8px 100px;
    text-align: center;
    color: #999;
}