
/* 顶部导航栏 - 只在电脑版显示 */
.top-navbar {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px; /* 增加导航高度 */
    background-color: #ffffffcc; /* 半透明白色背景 */
    backdrop-filter: blur(5px); /* 毛玻璃效果 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 左侧logo样式 - 增加左边距 */
.nav-logo {
    margin-left: 420px; /* 左边距100px */
}


/* 左侧logo样式 */
.nav-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    font-family: FontStyle;
}

/* 右侧导航菜单样式 - 增加右边距 */
.nav-menu {
    margin-right: 450px; /* 右边距120px */
}

/* 右侧导航菜单样式 */
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

/* 鼠标悬停下划线效果 */
.nav-menu a:hover {
    color: #1E90FF;
}

.nav-menu a:hover:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #1E90FF;
    animation: underline 0.3s ease;
}

@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}

/* 只在电脑版显示导航 */
@media (min-width: 768px) {
    .top-navbar {
        display: flex;
    }
    
    /* 为固定导航腾出空间，防止内容被遮挡 */
    body {
        padding-top: 30px;
    }
}

/* 移动端隐藏导航 */
@media (max-width: 767px) {
    .top-navbar {
        display: none;
    }
}
