/* 修复侧栏被首页模块折叠问题 */

/* 暂时注释以下规则，解决电脑端模块过大问题 */
/*
/* 确保内容区域和侧栏使用正确的Flexbox布局 */
.b2-content {
    display: flex;
    flex-flow: row;
    align-items: flex-start; /* 确保子元素从顶部开始对齐 */
    justify-content: space-between; /* 确保子元素之间有空间 */
}

/* 确保内容区域有固定宽度，为侧栏留出足够空间 */
.b2-content .content-area {
    flex: 1; /* 内容区域占据剩余空间 */
    max-width: calc(100% - 320px); /* 为侧栏留出320px宽度 */
}

/* 确保侧栏有固定宽度，不会被内容区域挤压 */
.widget-area {
    width: 300px; /* 固定侧栏宽度 */
    flex-shrink: 0; /* 侧栏不收缩 */
    position: relative;
    z-index: auto; /* 移除过高的z-index值，使用默认值 */
}
*/

/* 确保首页模块不会影响侧栏布局 */
.home_row {
    width: 100%;
    box-sizing: border-box;
}

/* 修复小工具容器，确保其不会被外部元素遮挡 */
.widget.b2-widget-movie {
    position: relative;
    z-index: auto !important; /* 移除过高的z-index值，使用默认值 */
    transform: none !important; /* 移除不必要的transform */
    will-change: auto !important; /* 移除不必要的will-change */
}

/* 确保小工具内部元素正常显示 */
.movie-widget-box-container {
    z-index: auto !important; /* 移除过高的z-index值，使用默认值 */
    transform: none !important; /* 移除不必要的transform */
}

.movie-widget-list-ul {
    z-index: auto !important; /* 移除过高的z-index值，使用默认值 */
    transform: none !important; /* 移除不必要的transform */
}

/* 确保展开内容正常显示在当前列表项下方 */
.movie-widget-list-ul > li.movie-widget-box.show-content .movie-widget-post-body {
    position: relative !important;
    z-index: 1000 !important; /* 使用合理的z-index值，确保展开内容不被下方列表项遮挡，但不会遮挡其他模块 */
    margin-top: 8px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
}