.header1-page { width: 100%; height: 70px; padding: 0 12.5vw; box-sizing: border-box; display: flex; justify-content: space-between; position: fixed; top: 0; left: 0; z-index: 9; } .header1-page.bg { background: rgba(0, 0, 0, 0.7); } .header1-page .logo-img { width: 115px; height: 45px; margin-top: 19px; } .header1-page .menu { width: 393px; display: flex; justify-content: space-between; font-size: 18px; font-family: Gilroy, Gilroy-Bold; font-weight: 700; text-align: left; color: #ffffff; margin-top: 29px; } .header1-page .menu .item { height: 18px; position: relative; cursor: pointer; } .header1-page .menu .item:hover::after { width: 100%; } .header1-page .menu .item::after { transition: width 0.3s; transition-delay: 0.3s; /*避免短时间内,如果重复触发会导致闪烁闪烁*/ content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -17px; height: 4px; width: 0; background: #008cff; } .header1-page .menu .item:hover .expand2 { width: 608px; width: 340px; padding: 55px 60px; } .header1-page .menu .item .expand2 { overflow: hidden; transition: all 0.3s; transition-delay: 0.3s; width: 0; height: 261px; background: #ffffff; border-radius: 20px; position: absolute; left: 50%; transform: translateX(-50%); top: 35px; box-sizing: border-box; display: flex; flex-direction: column; /* justify-content: flex-start; */ align-items: center; flex-wrap: wrap; padding: 0; } .header1-page .menu .item .expand2-box { /* width: 50%; */ font-family: Gilroy, Gilroy-Medium; line-height: 36px; } .header1-page .menu .item .expand2-box-title { font-size: 18px; font-weight: 700; color: #333333; } .header1-page .menu .item .expand2-box-content { font-size: 14px; font-weight: 500; color: #999999; } .header1-page .lang-box { /* margin-top: 29px; */ } .header1-page .lang-box .lang1 { width: 22px; height: 22px; vertical-align: middle; } .header1-page .lang-box span { color: #ffffff; } .header1-page .lang-box .lang2 { width: 18px; height: 14px; vertical-align: middle; } /*移动端*/ @media screen and (max-width: 960px) { .header1-page { height: 14vw; padding: 0 4vw; } .header1-page .logo-img { width: 26.8vw; height: 7.77vw; margin-top: 4vw; } .header1-page .lang-box { margin-top: 4vw; } .header1-page .lang-box .lang1 { display: none; } .header1-page .menu { display: none; } }