* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Microsoft YaHei,Helvetica Neue,Helvetica,STHeiTi,Arial,sans-serif;
}

.header {
    height: 100px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    position: fixed; /* 确保下拉菜单相对于头部定位 */
    z-index: 1000; /* 确保头部在顶部 */
    width: 100%;
    border-bottom: 1px solid #ccc;
}
main {
    padding-top: 100px;
}
.nav{
    width:1057px;
    margin:0 auto;
}
.logo{
    width: 233px;
    height:57px;
    float: left;
    margin-right: 123px;
    margin-top:30px;
}
.nav{
    float: left;
}
.nav-list {
    list-style: none;
    display: flex;
}

.nav-item {
    width: 110px;
    position: relative;
    /* margin: 0 20px; */
}

.nav-link {
    text-decoration: none;
    color: #303138;
    font-size: 14px;
    height: 100px;
    padding-top: 52px;
    display: block;
    text-align: center;
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100px; /* 下拉菜单紧挨着导航项下方 */
    left: 0;
    background-color: rgb(255,255,255,0.73);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    width: 110px; /* 设置下拉菜单宽度 */
    padding: 20px 3px 0px 3px;
    border-radius: 0px 0px 10px 10px;
    /*border: 2px solid rgb(255, 255, 255,0.73);*/
}

.nav-item:hover .dropdown-menu {
    max-height: 800px; /* 凭据内容调整高度 */
    opacity: 1;
}

.dropdown-menu li {
    font-size: 14px;
    padding: 10px 0px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid rgb(152,152,152,0.73);
}
.dropdown-menu li:last-child {
        border-bottom: none;
}

.dropdown-menu li a {
    text-decoration: none;
    color: #595959;
    display: block;
}

.dropdown-menu li:hover {
    background-color: #e2e2e6;
    a {
        color:#a29d9f;
    }
}<!--耗时1795706965.5048秒-->