/* 优化的导航栏样式 - 基于Bylo.ai风格 */

/* 导航栏基础样式 */
.navbar {
    background: rgba(248, 250, 252, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Logo区域样式 */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover .logo-img {
    transform: scale(1.1);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* 导航链接样式 */
.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: #1a1a1a !important;
    background-color: rgba(0, 0, 0, 0.05);
}

/* 大菜单样式 */
.mega-menu {
    width: 600px;
    padding: 20px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-top: 8px;
}

.mega-menu .row {
    margin: 0;
}

.mega-menu .col-md-6 {
    padding: 0 15px;
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown-header {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.875rem;
    padding: 8px 20px 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: #4a5568;
    border-radius: 6px;
    margin: 2px 8px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1a1a1a;
    transform: translateX(4px);
}

/* 积分显示样式 */
.credits-display {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.credits-display:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* 用户头像样式 */
.user-avatar {
    padding: 0;
    border: none;
    background: none;
}

.user-picture {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.user-avatar:hover .user-picture {
    border-color: #1a1a1a;
    transform: scale(1.05);
}

/* 语言选择器样式 */
.language-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
    min-width: 100px;
    background: white;
    transition: all 0.3s ease;
}

.language-select:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

/* 响应式优化 */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        border-radius: 12px;
        margin-top: 10px;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .mega-menu {
        width: 100%;
    }
    
    .navbar-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 20px;
    }
    
    .credits-display {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 1.25rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .mega-menu .row {
        flex-direction: column;
    }
    
    .mega-menu .col-md-6 {
        padding: 0;
    }
}

/* 增强分隔效果 */
.navbar {
    position: relative;
    z-index: 1030;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

/* 确保主内容区域有足够的上边距 */

@media (max-width: 768px) {
}

/* 增强导航栏阴影效果 */
.navbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 导航栏悬停效果 */
.navbar:hover {
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.12),
        0 3px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Logo区域阴影 */
.logo-wrapper {
    position: relative;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -8px;
    right: -8px;
    bottom: -2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

/* 导航链接阴影 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* 下拉菜单阴影增强 */
.dropdown-menu {
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 用户头像阴影 */
.user-picture {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.user-picture:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* 积分显示阴影 */
.credits-display {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 语言选择器阴影 */
.language-select {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.language-select:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
