/*处理移动端经典案例排版空白*/
@media (max-width: 768px) {
    /* 1. 强制父级和列等高，消除浮动错位 */
    .newsneilist .row,
    .newsneilist .col-xs-6 {
        display: flex;
        flex-wrap: wrap;
    }

    /* 2. 卡片本体变成纵向弹性盒，占满高度 */
    .newsneilist .col-xs-6 {
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .newsneilist .newslistpart {
        height: 100%;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    /* 3. 图片自适应，防止固定尺寸撑破布局 */
    .newsneilist .sanimg img {
        width: 100%;
        height: auto !important;
    }

    /* 4. 文字容器弹性布局，并占据下方所有空间 */
    .newsneilist .sancon {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding-top: 10px;
    }

    /* 5. 核心：标题固定占两行高度，超出隐藏显示省略号 */
    .newsneilist .sancontit {
        height: 42px !important;
        line-height: 21px !important;
        margin: 0 0 10px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-all;
    }

    /* 6. 隐藏摘要，防止文字长短不一导致再次错位 */
    .newsneilist .newszy {
        display: none !important;
    }

    /* 7. 把时间推到最底下对齐 */
    .newsneilist .newstag {
        margin-top: auto;
        padding-bottom: 5px;
    }
}




/* ============================================================
   移动端左侧菜单独立图标图层优化，新增提示箭头，点击展开一级菜单下的二级菜单，且再次点击后隐藏二级菜单
   ============================================================ */

/* PC 端默认隐藏这个新加的图标盒子，绝不影响 PC 端原有布局 */
.mobile-icon-box {
    display: none;
}

@media (max-width: 768px) {
    /* 1. 确保外层标题能够作为图标的定位基准 */
    .tzggtit {
        position: relative !important;
    }

    /* 2. 独立图层的样式：悬浮在右侧，不占用任何空间 */
    .mobile-icon-box {
        display: block !important;
        position: absolute;
        right: 15px; /* 距离右边缘 15px */
        top: 50%;
        transform: translateY(-50%); /* 完美垂直居中 */
        font-size: 14px;
        color: #fff;
        pointer-events: none; /* 点击穿透，点图标等于点背景触发展开 */
        transition: transform 0.3s ease;
    }

    /* 3. 当菜单展开时（悬停或点击），箭头翻转朝上 
    .sidbarnav:hover .mobile-icon-box {
        transform: translateY(-50%) rotate(180deg);
    }
    */

 /* 确保原有通过 hover 展开的逻辑失效，改为由 .open 类控制 */
    .ymtitle {
        height: 0 !important;
        overflow: hidden !important;
        transition: height 0.3s ease !important;
    }

    .sidbarnav.open .ymtitle {
        height: auto !important;
        padding-top: 10px !important;
    }

    /* 图标只有在 .open 状态下才翻转 */
    .sidbarnav.open .mobile-icon-box {
        transform: translateY(-50%) rotate(180deg) !important;
    }

}





