/* Sider Bar 侧边栏样式 - 从 sider-bar.vue 转换 */
.sider_box {
    position: fixed;
    top: var(--nav-bar-h, 54px);
    bottom: 0;
    left: 0;
    z-index: 999;
    width: var(--sider-w, 77px);
    height: 100vh;
    overflow: hidden;
    padding: 3px 5px 0 5px;
    box-sizing: border-box;
    font-size: 12px;
    background-color: var(--theme-background-color, #f9f9f9);
}

.sider_item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(var(--sider-w, 77px) - 10px);
    min-width: calc(var(--sider-w, 77px) - 10px);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.sider_item img {
    width: 20px;
    height: 20px;
    transition: all .3s;
}

.sider_item div {
    transition: height .3s;
    opacity: 1;
    height: 16px;
    font-size: 12px;
    margin-top: 4px;
    text-align: center;
}

.sider_item + .sider_item {
    margin-top: 4px;
}

.sider_item:hover {
    background-color: #eaeaea;
}

.sider_item.active {
    position: relative;
    background-color: #fff;
}

.sider_item.active div {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.sider_item.active img {
    width: 22px;
    height: 22px;
    transition: all .3s;
}

.tab-line {
    position: absolute;
    left: 10px;
    top: 25px;
    width: 4px;
    height: 25px;
    background-color: #000;
    border-radius: 8px;
    transition: transform 0.3s;
}

.tab-line.animate {
    animation: siderBar 0.3s ease forwards;
}

@keyframes siderBar {
    0% {
        height: 25px;
    }
    50% {
        height: 40px;
    }
    100% {
        height: 25px;
    }
}

