/**
 * 统一导航栏样式
 * 适用于所有前台页面
 */

/* 导航栏基础样式 */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 品牌文字样式 */
.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    text-decoration: none;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a73e8 0%, #6c8ef5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.navbar-brand:hover .brand-text {
    transform: scale(1.05);
    background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 移动端品牌文字适配 */
@media (max-width: 768px) {
    .brand-text {
        font-size: 1.5rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
        min-height: 60px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
        font-weight: 700;
    }
}

/* 导航链接样式 */
.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #1a73e8;
}

/* 用户下拉菜单样式 */
.dropdown-toggle {
    border: none;
    background: transparent;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

/* 按钮样式统一 */
.btn-outline-primary {
    border-color: #1a73e8;
    color: #1a73e8;
}

.btn-outline-primary:hover {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.btn-primary:hover {
    background-color: #0d47a1;
    border-color: #0d47a1;
}

/* 响应式优化 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
}