/* 标题导航栏样式 */
.navi {
    width: 100vw;
    height: 2.5rem;
    /* max-width: 1560px; */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    /* justify-content: space-around; */
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid #f7af8c;
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    left: 50%;
    /* 将元素左侧边缘定位到视口水平中心 */
    transform: translateX(-50%);
    /* 向左平移元素自身宽度的一半 */
    background-color: white;
    /* 设置背景颜色，避免内容透出 */
    z-index: 1000;
    /* 设置 z-index，确保元素在最上层 */

}

.navi-left {
    /* width: 76%; */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    background-color: white;
    margin-left: 1.5rem;
}

.navi-right {
    /* width: 20%; */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    flex-wrap: wrap;
    background-color: white;
    margin-right: 1.5rem;
}

.navi-item {
    font-size: 1rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    line-height: 2.5rem;
}

.navi-item img {
    width: 1.3rem;
    height: auto;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.navi a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    outline: none;
    text-underline-offset: 5px;
    vertical-align: middle;
    line-height: 2.5rem;
}

/* 鼠标悬停样式 */
.navi a:hover {
    background-color: #fee0c6;
    /* 鼠标悬停时背景颜色 */
}

/* 选中样式 */
.navi a:active {
    background-color: #f69f75;
    /* 链接被选中时的背景颜色 */
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    /* 改为 center 实现垂直居中 */
    justify-content: space-between;
}

/* 下拉菜单内容 (默认隐藏) */
.navi .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    width: 10rem;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    left: 0;
}

/* 下拉菜单链接样式 */
.navi .dropdown-content a {
    color: black;
    padding: 0.5rem 0.5rem;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* 鼠标悬停时的链接样式 */
.navi .dropdown-content a:hover {
    background-color: #fee0c6;
}

/* 当鼠标悬停在下拉按钮上时显示下拉菜单 */
.navi .dropdown:hover .dropdown-content {
    display: block;
}