﻿
/* CSS Xunibi */

.xnb_box {
    width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction:column;
    margin-bottom: 50px;
    margin-top: 30px;
    box-sizing: border-box;
}
.xnb_box dl {
    width: 100%;
    display: flex;
    flex-direction:row;
    margin: 14px auto;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #f0f4ff;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(49, 48, 53, 0.1);
}
.xnb_box dl dt {
    background: rgba(17, 44, 72, 0.8);
    background: linear-gradient(to top,var(--zlan),var(--dlan));
    color: var(--bai);
    text-shadow:  0 5px 15px rgba(4, 21, 179, 0.3);
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.xnb_box dl dt p {
    font-size: 30px;
    font-weight: bold;
    animation: lod3 0.8s 1;
}
@keyframes lod3 {
    0%{
        font-size: 0px;
    }
    100%{
        font-size: 30px;
    }
}
.xnb_box dl dd {
    width: 80%;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.xnb_box dl dd ul {
    display: flex;
    flex-direction:column;
    cursor: pointer;
    border-right: 1px solid #9badc0;
    box-sizing: border-box;
    position: relative;
}
.xnb_box dl:nth-child(1) dd ul {
    flex: 1 1 calc(100% / 2); 
}
.xnb_box dl:nth-child(2) dd ul {
    flex: 1 1 calc(100% / 4); 
}
.xnb_box dl:nth-child(3) dd ul {
    flex: 1 1 calc(100% / 2); 
}
/*去除右分割线*/
.xnb_box dl:nth-child(1) dd ul:nth-child(2),.xnb_box dl:nth-child(1) dd ul:nth-child(4),.xnb_box dl:nth-child(1) dd ul:nth-child(6) {
    border-right: 0;
}
.xnb_box dl:nth-child(2) dd ul:nth-child(4),.xnb_box dl:nth-child(2) dd ul:nth-child(8),.xnb_box dl:nth-child(2) dd ul:nth-child(12) {
    border-right: 0;
}
.xnb_box dl:nth-child(3) dd ul:nth-child(2),.xnb_box dl:nth-child(3) dd ul:nth-child(4),.xnb_box dl:nth-child(3) dd ul:nth-child(6) {
    border-right: 0;
}
.xnb_box dl dd ul span {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 0%;
    background: var(--lan2);
    color: #fff;
    opacity: 0;
    transition:all 0.5s;
    font-size: 20px;
}
.xnb_box dl dd ul li {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
}
.xnb_box dl dd ul li:nth-child(1) {
    height: 70px;
}
.xnb_box dl dd ul li:nth-child(1) img {
    width: auto;
    height: 40px;
    transition:all 0.3s;
    animation: lod2 1s 1;
}
@keyframes lod2 {
    0%{
        height: 0px;
    }
    100%{
        height: 40px;
    }
}
.xnb_box dl dd ul li:nth-child(2) {
    font-size: 18px;
    color: #4b4b4b;
    padding: 5px 0;
    border-bottom: 1px solid #9badc0;
    background: #dee1e4;
    transition:all 0.5s;
}
/*倒数的二个去除下分割线*/
.xnb_box dl:nth-child(1) dd ul:nth-last-child(1) li,.xnb_box dl:nth-child(1) dd ul:nth-last-child(2) li {
    border-bottom: 0;
}
.xnb_box dl:nth-child(2) dd ul:nth-last-child(1) li:nth-child(2),.xnb_box dl:nth-child(2) dd ul:nth-last-child(2) li:nth-child(2),.xnb_box dl:nth-child(2) dd ul:nth-last-child(3) li:nth-child(2),.xnb_box dl:nth-child(2) dd ul:nth-last-child(4) li:nth-child(2) {
    border-bottom: 0;
}
.xnb_box dl:nth-child(3) dd ul:nth-last-child(1) li:nth-child(2),.xnb_box dl:nth-child(3) dd ul:nth-last-child(2) li:nth-child(2) {
    border-bottom: 0;
}
.xnb_box dl dd ul:hover li:nth-child(1) img {
    transform: scale(1.1); 
}
.xnb_box dl dd ul:hover li:nth-child(2) {
    color: #456287;
    background: #fff;
}
.xnb_box dl dd ul:hover span {
    opacity: 0.9;
    height: 68%;
}
/*文本不可选择*/
.pt_nav,.pingtai {
	-moz-user-select:none; /* Firefox私有属性 */
    -webkit-user-select:none; /* WebKit内核私有属性 */
    -ms-user-select:none; /* IE私有属性(IE10及以后) */
    -khtml-user-select:none; /* KHTML内核私有属性 */
    -o-user-select:none; /* Opera私有属性 */
    user-select:none; /* CSS3属性 */
}

/*适配*/
@media only screen and (max-width: 1400px) {
    .xnb_box {
        width: 100%;
    }
}
@media only screen and (max-width: 1200px){
    .xnb_box {
        margin-bottom: 4.166vw;
    }
    .xnb_box dl {
        margin: 1.166vw auto;
        border-radius: 1.666vw;
    }
    .xnb_box dl dt p {
        font-size: 2.5vw;
    }
    .xnb_box dl dd ul li {
        padding: 0.833vw 0;
    }
    .xnb_box dl dd ul li:nth-child(1) {
        height: 5.833vw;
    }
    .xnb_box dl dd ul li:nth-child(1) img {
        height: 3.333vw;
        animation: lod2_1200 1s 1;
    }
    @keyframes lod2_1200 {
        0%{
            height: 0vw;
        }
        100%{
            height: 3.333vw;
        }
    }
}
@media only screen and (max-width: 720px) {
    .xnb_box {
        padding: 0 5%;
        margin-bottom: 6.944vw;
    }
    .xnb_box dl {
        flex-wrap: wrap;
        flex-direction:column;
        margin: 2.166vw auto;
    }
    .xnb_box dl dt {
        height: 11.11vw;
    }
    .xnb_box dl dt p {
        font-size: 4.166vw;
    }
    .xnb_box dl dt,.xnb_box dl dd {
        width: 100%;
    }
    .xnb_box dl:nth-child(1) dd ul:nth-child(3) {
        border-right: 1px solid #9badc0;
    }
    .xnb_box dl:nth-child(1) dd ul:nth-child(2),.xnb_box dl:nth-child(1) dd ul:nth-child(4) {
        border-right: 0;
    }
    .xnb_box dl:nth-child(2) dd ul:nth-child(2) {
        border-right: 0;
    }
    .xnb_box dl:nth-child(1) dd ul:nth-last-child(3) li:nth-child(2) {
        border-bottom: 1px solid #9badc0;
    }
    .xnb_box dl:nth-child(2) dd ul:nth-last-child(4) li:nth-child(2),.xnb_box dl:nth-child(2) dd ul:nth-last-child(3) li:nth-child(2) {
        border-bottom: 1px solid #9badc0;
    }
    .xnb_box dl:nth-child(1) dd ul,.xnb_box dl:nth-child(2) dd ul {
        flex: 1 1 calc(100% / 2);
    }
    .xnb_box dl dd ul li:nth-child(1) {
        height: 11.11vw;
    }
    .xnb_box dl dd ul li:nth-child(1) img {
        height: 5.555vw;
        animation: lod2_720 1s 1;
    }
    @keyframes lod2_720 {
        0%{
            height: 0vw;
        }
        100%{
            height: 5.555vw;
        }
    }
    .xnb_box dl dd ul li:nth-child(2) {
        font-size: 2.5vw;
        padding: 1.388vw 0;
    }
    .xnb_box dl dd ul span {
        font-size: 2.777vw;
    }
    .xnb_box dl dd ul:hover span {
        height: 11.11vw;
    }
}
@media only screen and (max-width: 280px) {
    .xnb_box {
        margin-bottom: 22vw;
    }
    .xnb_box dl {
        margin-bottom: 20px;
    }
    .xnb_box dl dt {
        height: 40px;
    }
    .xnb_box dl dt p {
        font-size: 16px;
    }
    .xnb_box dl:nth-child(1) dd ul,.xnb_box dl:nth-child(2) dd ul,.xnb_box dl:nth-child(3) dd ul {
        flex: 1 1 calc(100% / 1);
    }
    .xnb_box dl dd ul li:nth-child(1) {
        height: 60px;
    }
    .xnb_box dl dd ul li:nth-child(1) img {
        height: 30px;
        animation: lod2_280 1s 1;
    }
    @keyframes lod2_280 {
        0%{
            height: 0px;
        }
        100%{
            height: 30px;
        }
    }
    .xnb_box dl dd ul li:nth-child(2) {
        font-size: 14px;
        padding: 5px 0;
    }
    .xnb_box dl dd ul span {
        font-size: 14px;
    }
    .xnb_box dl dd ul:hover span {
        height: 60px;
    }
    .xnb_box dl:nth-child(n) dd ul:nth-child(n) {
        border-right: 0;
    }
    .xnb_box dl:nth-child(n) dd ul:nth-last-child(n) li:nth-child(2) {
        border-bottom: 1px solid #9badc0;
    }
    .xnb_box dl:nth-child(n) dd ul:nth-last-child(1) li:nth-child(2) {
        border-bottom: 0;
    }
}