.fx-news {
    position: relative;
    overflow: hidden; /* 确保内容不会溢出 */
}
.fx-news-bg {
    background: #ffffff;
    padding: 100px 20px;
}
/* 新闻中心容器 */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 15px; */
    width: 100%;
    position: relative; 
    height: 550px; 
    overflow: hidden; 
}
/* 新闻流动列表 */
.newList {
    display: flex;
    flex-wrap: nowrap;
    position: absolute; /* 绝对定位 */
    top: 150px; /* 保持顶部对齐 */
    left: 0; /* 初始位置在容器右侧 */
    height: 100%; /* 继承容器高度 */
    animation: scrollNews 30s linear infinite;
    gap: 20px; 
    padding-bottom: 20px; /* 给滚动条留空间 */
}
.newList:not(.no-animation) {
    animation: scrollNews 30s linear infinite;
}
.newList.no-animation {
    animation: none;
    justify-content: center; /* 单条新闻时居中显示 */
}
.img-placeholder {
    width: 100%;
    height: 120px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes scrollNews {
    0% {
        transform: translateX(0); 
    }
    100% {
        transform: translateX(calc(-50% - 10px)); 
    }
}


.newList:hover {
    animation-play-state: paused;
}

.newList .box {
    display: block;
    flex: 0 0 300px !important; /* 固定宽度 */
    height: 70%;
    margin-bottom: 10px;
    margin: 0; /* 移除原有margin */
    flex: 0 0 calc(33.33% - 20px);
    /* margin: 0 10px; */
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    min-width: 300px;
}

.newList .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newList .box img {
    width: 100%; /* 充满容器宽度 */
    height: 150px; /* 固定高度 */
    max-height: 150px; 
    object-fit: contain; /* 保持比例填充容器 */
    object-position: center; /* 居中显示重点内容 */
    margin-bottom: 15px; /* 可选间距 */
    border: 1px solid #e0e0e0;
}

.newList .content {
    padding: 20px;
}

.newList .title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 65px;
}

.newList .text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 60px;
    text-align: left; /
}

.newList .time {
    font-size: 12px;
    color: #999;
    padding: 0 20px 15px;
    margin-bottom: 15px;
}

/* 确保初始状态显示全部（如果默认激活"全部"选项卡） */
.tabList .box[data-tab="all"].activetabList ~ .newList .box {
    display: block;
}
@media (max-width: 768px) {
    .news-container {
        height: 565px;
    }
    .newList .title {
        font-size: 15px;
        height: 50px;
    }
    .newList .box {
        flex: 0 0 calc(100% - 20px);
        min-width: 200px;
    }
    .newList .text {
        height:75px;
    }
    
    .tabList {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tabList .box {
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
  .fx-news-bg {
    padding: 40px 15px; /* 减少上下padding */
  }
  
  .news-container {
    height: auto; /* 取消固定高度 */
    overflow: visible; /* 取消溢出隐藏 */
    padding-bottom: 20px; /* 添加底部间距 */
  }
  
  .newList {
    position: static; /* 取消绝对定位 */
    flex-direction: column; /* 纵向排列 */
    flex-wrap: wrap; /* 允许换行 */
    gap: 15px; /* 调整间距 */
    animation: none !important; /* 取消动画 */
    padding-bottom: 0; /* 移除滚动条空间 */
    height: auto; /* 自动高度 */
  }
  
  .newList .box {
    flex: 1 1 100% !important; /* 占满宽度 */
    min-width: auto !important; /* 取消最小宽度 */
    height: auto; /* 自动高度 */
    display: flex; /* 启用flex布局 */
    align-items: center; /* 垂直居中 */
    padding: 8px; /* 调整内边距 */
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05); /* 更轻的阴影 */
    border-radius: 6px; /* 圆角调整 */
  }
  
  .newList .box img {
    width: 110px; /* 固定图片宽度 */
    height: 80px; /* 固定图片高度 */
    margin-bottom: 0; /* 取消底部间距 */
    margin-right: 12px; /* 添加右侧间距 */
    flex-shrink: 0; /* 防止图片缩小 */
  }
  
  .newList .content {
    padding: 0; /* 取消内边距 */
    flex: 1; /* 占据剩余空间 */
    min-width: 0; /* 防止内容溢出 */
  }
  
  .newList .title {
    font-size: 12px; /* 调整字号 */
    height: auto; /* 取消固定高度 */
    margin-bottom: 4px; /* 调整间距 */
    -webkit-line-clamp: 2; /* 限制两行 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .newList .text,
  .newList .time {
    display: none; /* 隐藏详情和时间 */
  }
  
  /* 移除hover效果 */
  .newList .box:hover {
    transform: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  }
}