.PageBanner {
    background-image: url('../img/banner/new.jpg');
}

.Box1 {
    background-color: #F8F8F8;
    padding: 20px 0;
}

.Box1 .container-md{
    display: flex;
    justify-content: center;
}

.Box1 .container-md a {
    color: #333;
    margin: 0 10px;
}

.Box2 { 
    margin-top: 100px;
    margin-bottom: 50px;
}

/* 关键修改1：为 Flex 父容器添加 align-items: flex-start，避免子元素被拉伸 */
.Box2 .container-md.row{
    margin: 0 auto;
    position: relative;
    /* 确保父容器高度足够，让粘性元素有滚动空间 */
    min-height: calc(100vh - 200px); 
    align-items: flex-start; 
} 
 
.Box2 .news-container { 
    align-self: stretch;  
    display: block;  
    /* height: 100%;  */
    position: relative;  
}

.Box2 .newHead {
    color: #333;
    font-size: 18px;
}

.Box2 .newHead a {
    color: #999999;
    transition: 0.4s;
}

.Box2 .newHead a:hover {
    color: #E6212A;
}

.Box2 .newTitle {
    font-size: 24px;
    font-weight: bold;
}
 
.Box2 .nr{
    display: flow-root;
} 

.Box2 .newImg {
    float: left;
    margin: 0 20px 10px 0;
    width: 270px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.Box2 .text{ 
    padding-right: 5%;
}

.news-container { 
    flex-shrink: 0;
    position: relative;
}
 


.Box2 .news3.scrolled {
    position: fixed; /* 激活时变为固定定位 */
    top: 110px; /* 固定定位时距离顶部距离 */ 
    margin-right: 106px; /* 清除粘性定位时的右距 */
    opacity: 1; /* 激活时完全可见 */
    visibility: visible; /* 激活时可见 */
}

/* 3. 移出状态（距离底部≤500px 或 滚动≤535px）：添加动画效果 */
.Box2 .news3.hidden {
    position: fixed; /* 移出时保持固定定位，避免跳变 */
    top: 110px; /* 与激活状态保持一致的顶部距离 */ 
    margin-right: 106px;
    opacity: 0; /* 淡入透明 */
    visibility: hidden; /* 完全不可见（但仍占定位位置，避免布局跳动） */
}
.Box2 .news3 .tit {
    font-size: 30px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 0 0 10px 0;
}

.Box2 .news3 .tit i{ 
    color: #E6212A;
    font-size: 24px;
    margin-right: 10px;
}

.Box2 .news3 .new-box{
    background-color: #F7F7F7;
    border: 1px solid #00000013;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    transition: 0.3s;
}
.Box2 .news3 .new-box:hover{
   box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
   transform: scale(1.1);
}



.Box2 .news3 .new-box h6{
    font-size: 18px;
    padding-bottom: 20px;
    position: relative;
    color: #000;
}

.Box2 .news3 .new-box h6::before{
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #E6212A;
    content: '';
    bottom: 10px;
    left: 0;
}

.Box2 .news3 .new-box p{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    white-space: normal;
    font-size: 14px;
    color: #333;
}

.Box2 .news3 .new-box span{
    font-size: 14px;
    color: #333;
}

/* 移动端隐藏侧边栏，保持原逻辑 */
@media screen and (max-width:991px) {
    .Box2 .news3 {
        display: none !important;
    }
}

@media screen and (max-width:450px) {
    .Box2 .newImg {
        width: 100% ;
    }
}