/* 共享导航栏样式 */

/* 导航栏容器预加载样式 - 防止闪烁 */
#navbar-container {
    min-height: 60px;
    background: linear-gradient(135deg, #3d4f5c 0%, #4a5f6d 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 导航栏加载动画 */
#navbar-container:empty::before {
    content: '';
    display: block;
    width: 200px;
    height: 30px;
    margin: 15px auto;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: navbarLoading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes navbarLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.top-navbar {
    background: linear-gradient(135deg, #3d4f5c 0%, #4a5f6d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-navbar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3d4f5c 0%, #4a5f6d 100%);
    z-index: -1;
}

.navbar-inner {
    max-width: 1600px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.top-navbar .brand-text {
    font-size: 1.5rem !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.top-navbar .brand-dl {
    color: #4fc3f7;
    text-shadow: 0 2px 4px rgba(79, 195, 247, 0.3);
}

.top-navbar .brand-page {
    color: #ffffff;
}

.navbar-menu {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.nav-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.nav-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-inner {
        padding: 0 15px;
    }
    
    .navbar-menu {
        gap: 3px;
    }
    
    .nav-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-icon {
        font-size: 1.3rem;
    }
}

