body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 1200px; /* 设置最小宽度，防止页面过小时布局错乱 */
}

.top-navbar {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    background-color: #F8F0D9;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 60px;
    border-bottom: 1px solid #F1D7B7;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    align-items: center;
    padding-left: 100px; /* 保持原有的左边距 */
    width: 100%;
}

.theme-module {
    margin-right: 180px; /* 保持原有的间距 */
}

.nav-module {
    display: flex;
}

.navbar-item {
    font-size: 16px;
    color: #000000;
    line-height: 60px;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap; /* 防止文本换行 */
}

.nav-module .navbar-item {
    margin-right: 80px; /* 保持原有的间距 */
}

.nav-module .navbar-item:last-child {
    margin-right: 0; /* 移除最后一个导航项右侧的间距 */
}

.navbar-item:hover {
    color: #C04843;
}

.navbar-item.active {
    color: #C04843;
    font-weight: bold;
}

/* 添加横向滚动条，以适应小屏幕 */
@media (max-width: 1200px) {
    body {
        overflow-x: auto;
    }

    .top-navbar {
        width: 1200px; /* 确保导航栏在小屏幕上也保持最小宽度 */
    }
}