/* 以下是针对整个页面的基本样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* 以下是对文章列表的样式设置 */
.list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px auto;
}

.list li {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    width: 48%; /* 使每个列表项大致占据一半的宽度，为间隔留出空间 */
    box-sizing: border-box;
}

.list li.thumbnail {
    position: relative; /* 给图片容器添加相对定位 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 200px; /* 设置图片容器的高度 */
}

.list li.thumbnail img {
    position: absolute; /* 使图片脱离文档流，可根据容器大小缩放 */
    top: 0;
    left: 0;
    width: 100%; /* 图片宽度充满容器 */
    height: 100%; /* 图片高度充满容器 */
    border-radius: 5px;
}

.list li.content {
    margin-top: 10px;
}

.list li.article-title {
    display: block;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
}

.list li.article-title:hover {
    color: #007BFF;
}

.list li.article-info {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.list li.article-info span {
    margin-right: 10px;
}

.list li.brief {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    max-height: 6em; /* 限制简介部分的高度，超出部分隐藏 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 显示三行文本 */
    -webkit-box-orient: vertical;
}

/* 以下是对分页的样式设置 */
.page {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

.page a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.page a:hover {
    background-color: #ddd;
}

.page a.active {
    background-color: #007BFF;
    color: #fff;
    border-color: #007BFF;
}
