


#news-body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #ffffff; /* 整体页面背景 */
}

.news-section {
    background: #ffffff; /* 整体页面背景 */
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 500px;
}

.news-section h2 {
    color: #0a5cad; /* 主题蓝色 */
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0a5cad; /* 主题蓝色 */
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: -webkit-box; /* 使用 WebKit 的弹性盒子模型 */
    -webkit-box-orient: vertical; /* 垂直方向排列 */
    -webkit-line-clamp: 1; /* 显示的行数 */
    overflow: hidden; /* 隐藏超出容器的内容 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
    line-height: 1.5; /* 行高 */
}

.news-item:last-child {
    border-bottom: none;
}

/*.news-item {*/
/*    width: 100%;*/
/*    color: #1e1e1e; !* 主要黑色 *!*/
/*    text-decoration: none;*/
/*    font-size: 16px;*/
/*    flex: 1;*/
/*    display: -webkit-box; !* 使用 WebKit 的弹性盒子模型 *!*/
/*    -webkit-box-orient: vertical; !* 垂直方向排列 *!*/
/*    -webkit-line-clamp: 3; !* 显示的行数 *!*/
/*    overflow: hidden; !* 隐藏超出容器的内容 *!*/
/*    text-overflow: ellipsis; !* 超出部分显示省略号 *!*/
/*    line-height: 1.5; !* 行高 *!*/

/*}*/




.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 确保文字和日期垂直居中 */
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden; /* 隐藏超出容器的内容 */
}

.news-item a {
    flex: 1; /* 文字部分占据剩余空间 */
    color: #1e1e1e; /* 主要黑色 */
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap; /* 禁止换行 */
    overflow: hidden; /* 隐藏超出容器的内容 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
    margin-right: 10px; /* 与日期保持间距 */
}

.news-date {
    color: #575757; /* 次要黑灰色 */
    font-size: 14px;
    white-space: nowrap; /* 禁止日期换行 */
    flex-shrink: 0; /* 禁止日期缩小 */
}


.news-item a:before {
    content: "›";
    color: #0a5cad; /* 主题蓝色 */
    margin-right: 10px;
    font-weight: bold;
}

.news-item:hover {
    background-color: #f6f7ff; /* 淡蓝背景色 */
    padding-left: 10px;
}

.news-item:hover a {
    color: #0068b7; /* 主要黑色字体 hover */
}



.news-button {
    display: inline-block;
    background: #0a5cad; /* 主题蓝色 */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.news-button:hover {
    /*background-color: #0068b7; !* 主要黑色字体 hover *!*/
    color: #0068b7;
}

@media (max-width: 768px) {
    .news-item {
        font-size: 14px;
    }

    .news-section {

        width: auto;
    }

}

/* 新增标题栏flex布局 */
.news-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px; /* 调整标题与列表的间距 */
}

/* 定义简洁的链接样式 */
.news-section .more-link {
  color: #2c58a0; /* 主题色，可根据实际设计调整 */
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.news-section .more-link:hover {
  color: #1a3a6d; /* 悬停颜色 */
  text-decoration: underline;
}