/* 顶部导航样式 - 覆盖原有的侧边栏样式 */

/* 隐藏移动端的 header */
#header {
    display: none !important;
}

/* 将侧边栏改为顶部导航 */
#sidebar {
    width: 100% !important;
    height: auto !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    background-image: url('/static/bg.jpg') !important;
    background-size: cover !important;
    background-color: #9e9e9e !important;
    overflow: visible !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#sidebar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1390px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

/* Logo 样式 */
#sidebar .profile {
    padding: 0 !important;
    display: flex;
    align-items: center;
    margin: 0 !important;
}

#sidebar .profile a,
#sidebar .profile img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 25px !important;
    margin: 0 !important;
}

#sidebar .profile span {
    display: inline-block !important;
    padding: 0 0 0 15px !important;
    font-size: 20px !important;
    color: #e5e3e9 !important;
    text-align: left !important;
    font-weight: 500;
}

/* 导航按钮 */
#sidebar .buttons {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

#sidebar .buttons li {
    display: inline-block !important;
    width: auto !important;
    height: 70px !important;
    line-height: 70px !important;
    margin: 0 !important;
}

#sidebar .buttons li a {
    display: inline-block !important;
    padding: 0 20px !important;
    height: 70px !important;
    line-height: 70px !important;
}

#sidebar .buttons li a i {
    margin-right: 5px;
}

#sidebar .buttons li a.inline {
    width: auto !important;
    padding: 0 10px !important;
}

/* 主内容区域调整 */
#main {
    padding-left: 40px !important;
    padding-right: 40px !important;
    padding-top: 90px !important;
    max-width: 1390px;
    margin: 0 auto;
}

/* 移除侧边栏遮罩 */
#sidebar-mask {
    display: none !important;
}

/* 移除 body.side 的变换效果 */
body.side {
    position: static !important;
    transform: none !important;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    #sidebar .wrap {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    #sidebar .profile {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    #sidebar .buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    #sidebar .buttons li {
        height: 50px !important;
        line-height: 50px !important;
    }

    #sidebar .buttons li a {
        height: 50px !important;
        line-height: 50px !important;
        padding: 0 15px !important;
    }

    #main {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 140px !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    #sidebar .buttons li a span {
        display: inline !important;
    }

    #main {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
