body {
    font-family: 'Noto Serif SC', 'Segoe UI', sans-serif;
}

.document-page .columns {
    overflow: hidden;
}

.document-page .columns>.column {
    min-width: 0;
}

.document-page .container {
    margin-top: 2rem;
}

.document-page .menu-column {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
}

.document-page .menu-label {
    margin-bottom: 0.5em !important;
    margin-top: 0 !important;
}

.document-page .menu-list {
    --bulma-menu-list-link-padding: 0.4em 0.8em;
}

.document-page .menu-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.document-page .menu-list a {
    padding: 0.4em 0.8em !important;
    border-radius: 4px;
    margin-top: 1% !important;
    line-height: 1.5;
}

.menu-list a {
    transition-duration: unset;
}

.menu-list a:hover {
    background-color: #3f3f3f59;
}

.menu-list a.is-active {
    background-color: rgb(166, 84, 241);
    color: white;
    font-weight: 600;
}

#content {
    padding: 1.5rem;
    /* background-color: white; */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 80vh;
    overflow-x: hidden;
    min-width: 0;
}

#content pre {
    overflow-x: auto;
    max-width: 100%;
}

#content pre code {
    display: block;
    overflow-x: auto;
    white-space: pre;
    max-width: 100%;
}

/* 按钮样式 */
.is-fixed-bottom-right {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.is-fixed-bottom-right-for-new-slide-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.is-purple {
    background-color: rgb(166, 84, 241);
    color: black;
}

.icon-xitongguanli {
    color: aliceblue;
}

.icon-xiangshang {
    color: aliceblue;
}

/* 响应式：小屏下菜单在上方 */
@media (max-width: 768px) {
    .document-page .columns {
        flex-direction: column;
    }

    .document-page .container {
        padding: 0 1rem;
        /* 添加容器边距 */
    }

    .document-page .columns>.column {
        min-width: 0;
    }

    .document-page .menu-column {
        width: 100%;
        margin-bottom: 1rem;
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
        padding: 0 1rem;
        /* 为菜单列添加边距 */
    }

    .document-page .menu {
        padding: 0;
        /* 确保菜单本身没有额外边距 */
    }

    .document-page #content {
        padding: 1rem;
        /* 移动端内容区域的边距 */
    }
}