/* 首页桌面端 sidebar 常驻全屏（覆盖 sidebar_no 默认隐藏；其他页面不动） */
@media (min-width: 992px) {
    body.home #sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        height: 100vh !important;
        width: 60px;
        opacity: 1 !important;
        z-index: 1081;
        display: block !important;
        overflow: hidden;
        transition: width .3s ease;
        box-shadow: 2px 0 8px rgba(0,0,0,.06);
    }
    body.home #sidebar:hover { width: 260px; }
    body.home #sidebar .modal-dialog,
    body.home #sidebar .sidebar-nav-inner {
        width: inherit !important;
        max-width: 260px !important;
        height: 100vh;
        margin: 0;
    }
    body.home #sidebar .sidebar-logo,
    body.home #sidebar .sidebar-menu,
    body.home #sidebar .border-top { display: block; }
    body.home #sidebar .sidebar-menu { height: calc(100vh - 74px - 50px); }
    body.home #sidebar .sidebar-scroll,
    body.home #sidebar .sidebar-menu-inner { height: 100%; overflow-y: auto; overflow-x: hidden; }
    body.home #sidebar .logo .logo-expanded { display: none; }
    body.home #sidebar .logo .logo-collapsed { display: block; }
    body.home #sidebar:hover .logo .logo-expanded { display: block; }
    body.home #sidebar:hover .logo .logo-collapsed { display: none; }
    body.home #sidebar .sidebar-item > a > span,
    body.home #sidebar .top-menu > a > span { opacity: 0; transition: opacity .2s; }
    body.home #sidebar:hover .sidebar-item > a > span,
    body.home #sidebar:hover .top-menu > a > span { opacity: 1; }
    body.home #sidebar .sidebar-item ul { display: none; }
    body.home #sidebar:hover .sidebar-item:hover > ul { display: block; }
    body.home .main-content { margin-left: 60px; transition: margin-left .3s ease; }
    body.home #sidebar:hover ~ .main-content { margin-left: 260px; }
    body.home .page-header.sticky { left: 60px; transition: left .3s ease; }
    body.home #sidebar:hover ~ .main-content .page-header.sticky { left: 260px; }
}

/* 强制禁用 swiper coverflow 3D 旋转，避免切换时内容被视觉切割 */
@media (min-width: 992px) {
    body.home .swiper-post-module .media-content,
    body.home .swiper-post-module .swiper-slide {
        transform: none !important;
    }
    body.home .swiper-post-module {
        overflow: hidden;
    }
}
