
.navbar {
    position: absolute;
    left: 0;
    right: 0;
    line-height: 100%;
    z-index: 500 !important;
    overflow: visible;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand span {
    color: #fff;
}

.nav-item .nav-link {
    color: var(--gray);
}

.nav-item.active .nav-link {
    color: white;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    margin: 0 3px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* 侧边栏样式 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -80vw;
    width: 80vw;
    height: 100%;
    background: black;
    z-index: 1000;
    padding-top: 70px;
    transition: all 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar .nav {
    flex-direction: column;
}

.sidebar .nav-item {
    width: 100%;
}

.sidebar .nav-link {
    padding: 15px 25px !important;
    margin: 5px 0;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.sidebar .nav-link i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none;
    }

    .mobile-menu-btn {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .sidebar-overlay, .sidebar {
        display: none;
    }

    .mobile-menu-btn {
        display: none !important;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-btn span {
    font-size: 1.8rem;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}
.navbar-logo {
    /*width: auto;*/
    /*height: 50px;*/
    width: 20vw;
    min-width: 250px;
    max-width: 300px;
}
.navbar-container {
    flex-wrap: wrap !important;
    box-sizing: border-box;
}

@media (max-width: 365px) {
    .mobile-menu-btn span {
        /*font-size: 1rem;*/
        flex: 1;
    }
    .navbar-logo {
        width: 68.5vw;
        min-width: 150px;
        max-width: 350px;
    }
    .navbar-container {
        flex-wrap: nowrap !important;
    }
}
