.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:60px;
    background-color: rgba(255, 255, 255, 0.1);
    /* 设置导航条为完全透明 */
    padding: 10px;
    text-align: left;
    /* 设置文本靠左排列 */
    color: white;
    /* 设置导航条中的文本颜色为白色 */
}

.nav-background{
    background-color: rgba(0, 0, 0, 0.5);
    /* 设置导航条背景颜色为半透明黑色 */
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: -1;
}
/* 当屏幕的宽度小于 600px 时，改变高度 */
@media (max-width: 600px) {
    .nav-background, .navbar {
        height: 85px;
    }
}


.navbar a,
.navbar a:hover,
.navbar a:active {
    color: white;
    /* 设置链接、悬停和点击颜色为白色 */
    text-decoration: none;
    /* 移除链接的下划线 */
}

.navbar-logo {
    height: 40px;
    /* 设置logo的高度 */
    margin-right: 10px;
    /* 在logo和链接之间添加一些空间 */
}

.navbar a {
    margin-right: 20px;
    /* 在链接之间添加20px的间隔 */
}
