/**
 * dongtai.css - 动态与资讯页面样式
 */

/* --- 全局重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'SourceHanSansCN', 'CustomArial', 'CustomArialUnicode', sans-serif;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

/* --- 容器 --- */
.container {
    width: 72vw;
    margin: 0 auto;
    position: relative;
}

/* --- 列表布局 --- */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid #eeeeee;
    align-items: flex-start; /* 顶部对齐，确保文字不会垂直拉伸 */
    cursor: pointer; 
    transition: background-color 0.3s; 
}

.news-item:first-child {
    padding-top: 0;
}

.news-item:hover {
    background-color: #fafafa; 
}

/* 左侧图片容器 */
.news-img-wrapper {
    width: 280px;  
    height: 170px; 
    flex-shrink: 0;
    margin-right: 30px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-item:hover .news-img {
    transform: scale(1.05);
}

/* 右侧内容容器 - 核心修改区域 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* 删除了 height: 170px; 让高度随内容自适应 */
    /* 删除了 justify-content: space-between; 取消两端对齐 */
    justify-content: flex-start; /* 内容自然从上向下排列 */
}

/* 标题 */
.news-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px; /* 控制标题与简介的间距 */
    cursor: pointer;
}

.news-item:hover .news-title {
    color: #d93826; /* 品牌红 */
}

/* 描述文字 */
.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 15px; /* 控制简介与日期的间距 */

    /* 多行省略 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 限制2行 */
    line-clamp: 2; 
    overflow: hidden;
}

/* 日期标签 */
.news-date {
    display: inline-block;
    background-color: #f8eed8; 
    color: #666; 
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 15px; 
    align-self: flex-start; 
    font-family: Arial, sans-serif;
}

/* --- 分页 --- */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; 
}

.page-num {
    width: 32px; 
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #f5f5f5; 
    border-radius: 2px; 
    border: none; 
}

.page-num:hover {
    background-color: #e0e0e0;
}

.page-num.active {
    background-color: #b62518; 
    color: #fff;
}

.page-next {
    width: 32px; 
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: #666;
    cursor: pointer;
    background-color: #f5f5f5;
    border-radius: 2px;
    border: none;
    transition: all 0.2s;
}

.page-next:hover {
    background-color: #e0e0e0;
}
