/* 基础导航栏样式 */
.tem_nav .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.tem_nav .nav-content,
.tem_nav .nav_Area {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 70px;
}

.tem_nav .logo-area {
    float: left;
    width: 30%;
    height: 100%;
    line-height: 70px;
    text-align: center;
}

.tem_nav .logo-area img {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
    cursor: pointer;
}

.tem_nav .nav-area {
    float: left;
    width: 70%;
    height: 100%;
}

.tem_nav .nav-list {
    font-size: 0;
    height: 100%;
    white-space: nowrap;
    text-align: center;
}

/* 一级菜单项样式 */
.tem_nav .nav-item {
    position: relative;
    display: inline-block;
    padding: calc((70px - 22px)/2) 0;
    max-width: 175px;
    min-width: 106px;
    text-align: center;
    cursor: pointer;
}

.tem_nav .nav-text {
    font: 16px Tahoma;
    color: #fff;
    line-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    width: 100%;
    text-align: center;
    position: relative;
    transition: color 0.3s ease;
}

/* 下划线效果 */
/* .tem_nav .nav-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #042274;
    transition: width 0.3s ease;
} */

/* 鼠标进入导航区域时的效果 */
.tem_nav .nav-container:hover .nav-text {
    color: #333333;
    /* 所有菜单文字变为深灰色 */
}

/* 当前悬停菜单项的效果 */
.tem_nav .nav-container:hover .nav-item:hover .nav-text {
    color: #042274 !important;
    /* 当前悬停项变为蓝色 */
    font-weight: bold !important;

}

.tem_nav .nav-container:hover .nav-item:hover {
    border-bottom: 2px solid #042274;
    z-index: 99;

    bottom: 2px;

}

.tem_nav .nav-container:hover .nav-item:hover .nav-text::after {
    width: 70%;
    /* 显示下划线 */
}

/* 滚动后样式 */
.navbar-scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 滚动后鼠标悬停效果 */
.navbar-scrolled .nav-text {
    color: #333 !important;
}

.navbar-scrolled .tem_nav .nav-item:hover .nav-text {
    color: #042274 !important;
}

/* 新增：鼠标悬停导航区域时背景变白 */
.tem_nav .nav-container:hover {
    background-color: white !important;
}

/* 二级菜单样式 */
.tem_nav .navDropdownWrapper {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fafafa;
    z-index: 1001;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.tem_nav .nav-item:hover .navDropdownWrapper {
    display: block;
}

.tem_nav .nav-contentWrapper {
    max-height: 600px;
    overflow-y: auto;
    width: 1420px;
    padding-top: 48px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.tem_nav .nav-contentWrapper::-webkit-scrollbar {
    display: none;
}

.tem_nav .nav-secondWrapper {
    width: calc(100%/8 - 20px);
    margin: 0 20px 48px 0;
}

.tem_nav .nav-secondItem {
    cursor: pointer;
    width: 100%;
    font: 16px Tahoma;
    color: #000;
    line-height: 24px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.tem_nav .nav-secondItem:hover,
.tem_nav .nav-secondItem.active {
    color: #042274;
    font-weight: bold;
}
