.main {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.container {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow-y: hidden;
}

.sidebar-container {
    padding: 0px;
    min-width: 256px;
    width: 20%;
    overflow-y: auto;
    background-color: #39C5BB; /* miku❤ */
    box-shadow: inset -4px 0px 4px 0px rgba(0, 0, 0, 0.1);
}

.sidebar {
    padding: 20px;
}

.content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

.top-bar {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #f5f5f5;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    height: 40px;
    padding: 10px 20px;
    z-index: 10;
}

.expand-button {
    display: none;
    width: 40px;
    height: 40px;
    background-color: #fff;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    border: none;
}

.expand-button i {
    font-size: 20px;
    color: #333;
}

.title {
    margin-left: 1.5em;
    font-size: 20px;
    font-weight: bold;
}

.github-link {
    margin-left: auto;
    font-size: 16px;
    color: #333333;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    z-index: 99;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 屏幕宽度小于768px时折叠侧边栏 */
@media (max-width: 768px) {
    .sidebar-container {
    position: fixed;
    top: 0;
    bottom: 0;
    min-width: unset;
    width: 80%;
    left: -80%; /* 初始状态下隐藏在左侧 */
    transition: left 0.2s ease;
    z-index: 100;
    }

    .sidebar-container.active {
        left: 0;
    }

    .expand-button {
    display: block;
    }

    .overlay.active {
        opacity: 0.6;
        pointer-events: unset;
    }

    .github-text {
        display: none;
    }

    .github-link {
        font-size: 28px;
    }
}
