/* 列表页模块样式 */

/* 主容器 */
#wrapper {
    position: relative;
    min-height: 600px;
}

/* 文章列表 */
#content {
    margin-bottom: 30px;
}

/* 文章项 */
.post-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 文章标题 */
.post-item h2 {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: normal;
}

.post-item h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item h2 a:hover {
    color: var(--spt-primary);
}

/* 文章摘要 */
.post-item .excerpt {
    margin: 0 0 15px;
    color: #666;
    line-height: 1.6;
}

/* 文章元信息 */
.post-item .meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 文章缩略图 */
.post-item .thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
}

.post-item .thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-item:hover .thumbnail img {
    transform: scale(1.05);
}

/* 分页 */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination ul {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    display: inline;
    margin: 0 5px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--spt-primary);
    color: #fff;
    border-color: var(--spt-primary);
}

.pagination .current {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--spt-primary);
    border: 1px solid var(--spt-primary);
    border-radius: 4px;
    color: #fff;
}

/* 侧边栏 */
#sidebar {
    margin-top: 20px;
}

/* 小工具 */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: normal;
    color: #333;
    border-bottom: 2px solid var(--spt-primary);
    padding-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #wrapper {
        padding: 0 15px;
    }
    
    .post-item {
        padding: 15px;
    }
    
    .post-item h2 {
        font-size: 18px;
    }
    
    .widget {
        padding: 15px;
    }
}