.news-container {
    display: flex;
  gap: 20px;
  /* 关键：让左右两个盒子高度自动对齐 */
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.news-banner {
   flex: 3;
  position: relative;
  height: 450px;
  overflow: hidden;
  border-radius: 8px;
}

.banner-item {
    display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

    .banner-item.active {
        display: block;
    }

    .banner-item img {
      width: 100%;
  height: 100%;
  object-fit: cover;
    }

.banner-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 10px;
}

.news-list {
   flex: 2;
  height: 100%;
  overflow-y: auto;
 border-bottom: 1px solid #eee;
  
}

.news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    
}
 .news-item.a {
       flex: 1;
  text-decoration: none;
  color: #333;
  line-height: 1.5;
    }

    .news-item.active {
        background: #f0f5ff;
    }

    .news-item .date {
        text-align: center;
flex-shrink: 0;
display: inline-block;
width:90px;
        color: #666;
    }