/**
 * 强制显示侧边栏 - 突破所有样式限制
 * 使用最高优先级覆盖父主题和所有其他样式
 */

/* 强制显示侧边栏 - 无论屏幕大小 */
.home_row.module-links .widget-area,
.home_row.module-links .links-category-sidebar,
.home_row.module-links #links-category-sidebar,
.links-category-sidebar,
.widget-area {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 152px !important;
    min-width: 152px !important;
    max-width: 152px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    z-index: 100 !important;
}

/* 强制wrapper使用flex布局 */
.home_row.module-links > .wrapper,
.home_row.module-links > div[class*="wrapper"] {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    max-width: 1600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
    box-sizing: border-box !important;
    align-items: flex-start !important;
}

/* 强制内容区使用flex */
.home_row.module-links .content-area,
.home_row.module-links .home-row-left {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
}

/* 移除所有响应式隐藏 - 强制显示 */
@media (max-width: 1920px) {
    .home_row.module-links .widget-area,
    .home_row.module-links .links-category-sidebar,
    .links-category-sidebar,
    #links-category-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 1600px) {
    .home_row.module-links .widget-area,
    .home_row.module-links .links-category-sidebar,
    .links-category-sidebar,
    #links-category-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 1280px) {
    .home_row.module-links .widget-area,
    .home_row.module-links .links-category-sidebar,
    .links-category-sidebar,
    #links-category-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 1200px) {
    .home_row.module-links .widget-area,
    .home_row.module-links .links-category-sidebar,
    .links-category-sidebar,
    #links-category-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 1024px) {
    .home_row.module-links .widget-area,
    .home_row.module-links .links-category-sidebar,
    .links-category-sidebar,
    #links-category-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .links-modules-container {
        display: grid !important;
        grid-template-columns: 152px 1fr !important;
        gap: 0 !important;
    }
}

/* 只在768px以下隐藏侧边栏 */
@media (max-width: 768px) {
    .home_row.module-links .widget-area,
    .home_row.module-links .links-category-sidebar,
    .links-category-sidebar,
    #links-category-sidebar {
        display: none !important;
    }
    .links-modules-container {
        grid-template-columns: 1fr !important;
        padding: 0 24px !important;
    }
    .links-modules-container .home_row.module-links {
        grid-column: 1 !important;
    }
}

/* 确保侧边栏内容可见 */
.home_row.module-links .widget-area * {
    max-width: 100% !important;
}

/* 侧边栏背景 */
.links-sidebar-background {
    display: block !important;
    visibility: visible !important;
    width: 152px !important;
}

/* Grid容器强制显示 */
.links-modules-container {
    display: grid !important;
    grid-template-columns: 152px 1fr !important;
    gap: 0 16px !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 30px !important; /* 左右对称30px */
    visibility: visible !important;
    opacity: 1 !important;
}

/* 强制侧边栏在grid中显示 */
.links-modules-container .links-category-sidebar {
    grid-column: 1 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 强制内容在第二列 */
.links-modules-container .home_row.module-links {
    grid-column: 2 !important;
}

/* 侧边栏菜单项强制显示 */
.links-cat-nav-widget,
.links-cat-nav-list,
.cat-nav-item,
.cat-nav-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

