* {
    padding: 0;
    margin: 0;
}

body{
    font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,PingFang SC,Hiragino Sans GB,Microsoft Yahei,STHeiti,SimSun,sans-serif;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: rgb(240, 245, 245);
    font-size: 20px;
    font-family: 'font2';
}

.navbar {
    width: 100%;
    height: 70px;
    background-color: rgb(1, 64, 153);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.navbar .nav {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
}

.navbar .nav ul{
    position: relative;
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 100%;
}

.navbar .nav ul > li {
    width: 100%;
    height: 100%;
}

.navbar .nav ul > li > a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 70px;
    text-align: center;
}
.navbar .nav ul > li > a:hover {
    background-color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.navbar .nav ul > li ol {
    width: 100%;
    background-color: rgb(1, 64, 153);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transform: scaleY(0);
    transform-origin: 50% 0;
    transition: all 0.6s;
}

.navbar .nav ul > li ol li {
    height: 70px;
    border-bottom: 1px solid rgb(240, 245, 245);
}

.navbar .nav ul > li ol li a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 70px;
    text-align: center;
}

.navbar .nav ul > li ol li :hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.navbar .nav ul > li:hover ol {
    transform: scaleY(1);
}

.navbar .nav ul .underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 6px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    background-color: rgb(184, 13, 16);
    transition: all 0.6s;
    pointer-events: none;
}

.navbar .nav ul .underline::before {
    content: "";
    position: absolute;
    top: -10px;
    left: calc(50% - 10px);
    width: 18px;
    height: 10px;
    background-color: inherit;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.navbar .nav ul > li:nth-child(2):hover ~ .underline {
    left: 150px;
    background-color: rgb(184, 13, 16);
}
.navbar .nav ul > li:nth-child(3):hover ~ .underline {
    left: 300px;
    background-color: rgb(184, 13, 16);
}
.navbar .nav ul > li:nth-child(4):hover ~ .underline {
    left: 450px;
    background-color: rgb(184, 13, 16);
}
.navbar .nav ul > li:nth-child(5):hover ~ .underline {
    left: 600px;
    background-color: rgb(184, 13, 16);
}
.navbar .nav ul > li:nth-child(6):hover ~ .underline {
    left: 750px;
    background-color: rgb(184, 13, 16);
}
.navbar .nav ul > li:nth-child(7):hover ~ .underline {
    left: 900px;
    background-color: rgb(184, 13, 16);
}
.navbar .nav ul > li:nth-child(8):hover ~ .underline {
    left: 1050px;
    background-color: rgb(184, 13, 16);
}