/* 鼠标悬停下拉菜单样式 */
.nav-item.dropdown {
    position: relative;
}

/* 导航栏背景白色 */
.navbar {
    background-color: white !important;
}

.nav-link {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    display: block;
    border-radius: 4px;
    background-color: white;
}

.nav-link:hover {
    color: #007bff;
    background-color: white;
}

.nav-item.active .nav-link {
    color: #007bff;
    font-weight: 600;
    background-color: white;
}

.subnavbar-nav.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.nav-item.dropdown:hover .subnavbar-nav.dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.dropdown-item:hover {
    background-color: transparent;
    color: #007bff;
}

.dropdown-item.active {
    background-color: transparent;
    color: #007bff;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 991.98px) {
    .nav-item.dropdown {
        position: static;
    }
    
    .subnavbar-nav.dropdown-menu {
        position: static;
        min-width: 200px;
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 0.25rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        opacity: 1;
        transform: none;
        transition: none;
        pointer-events: auto;
    }
    
    .nav-item.dropdown:hover .subnavbar-nav.dropdown-menu {
        display: none;
    }
    
    .dropdown-item {
        display: block;
        width: 100%;
        padding-left: 2rem;
    }
}