/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-brand img {
    margin-right: 15px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.navbar-nav li {
    margin: 0 25px;
    position: relative;
}

.navbar-toggle {
    display: none;
    cursor: pointer;
}

.navbar-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    overflow: hidden;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: #0066cc;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #0066cc;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

/* 导航栏滚动效果 */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .navbar-brand {
    font-size: 24px;
    color: #0066cc;
}

.navbar.scrolled .navbar-brand img {
    width: 40px;
    height: 40px;
}

.navbar.scrolled .navbar-nav a {
    color: #333;
}

.navbar.scrolled .navbar-nav a:hover,
.navbar.scrolled .navbar-nav a.active {
    color: #0066cc;
}

.navbar.scrolled .navbar-nav a::after {
    background: linear-gradient(90deg, #0066cc, #0088ff);
}

/* 非首页导航栏样式 */
body:not(.index-page) .navbar {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body:not(.index-page) .navbar-brand {
    color: #0066cc;
}

body:not(.index-page) .navbar-nav a {
    color: #333;
}

body:not(.index-page) .navbar-nav a:hover,
body:not(.index-page) .navbar-nav a.active {
    color: #0066cc;
}

/* body:not(.index-page) .navbar .container {
    padding: 15px 0;
} */

/* 响应式容器样式 */
@media (max-width: 751px) {
    .container {
        padding: 0 15px;
    }
}

@media (min-width: 751px) {
    .navbar-brand .mobile-logo {
        display: none;
    }
}

/* 响应式样式 */
@media (max-width: 751px) {
    /* 移动设备导航栏始终为白色背景 */
    .navbar {
        background: rgba(255, 255, 255, 0.99) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    .navbar-brand {
        color: #0066cc !important;
    }
    
    .navbar-nav a {
        color: #333 !important;
    }
    
    .navbar-nav a:hover,
    .navbar-nav a.active {
        color: #0066cc !important;
    }
    
    .navbar-nav a::after {
        background: linear-gradient(90deg, #0066cc, #0088ff) !important;
    }
    
    .navbar-nav {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
        margin-left: 0;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-nav li {
        margin: 10px 0;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar .container {
        justify-content: center;
        height: 60px;
        align-items: center;
        padding: 15px 0 !important;
    }
    
    .navbar-brand {
        margin-left: 0;
        display: flex;
        align-items: center;
    }
    
    .navbar-brand .desktop-logo {
        display: none;
    }
    
    .navbar-brand .mobile-logo {
        display: block;
        width: 96px;
        height: 25px;
    }
    
    .navbar-toggle {
        margin-right: 0;
        display: flex;
        align-items: center;
        flex: 1;
        justify-content: flex-end;
    }
    
    .navbar-toggle img {
        width: 1rem;
        height: 14px;
    }
}