/* 列表页主要样式 */
.list-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.list-wrapper {
    display: flex;
    gap: 30px;
}

/* 左侧主要内容区域 */
.list-main {
    flex: 0 0 70%;
    max-width: 70%;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.item-image {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-item:hover .item-image img {
    transform: scale(1.05);
}

.item-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.item-content h3 {
    margin: 0 0 15px;
    font-size: 20px;
}

.item-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-content h3 a:hover {
    color: var(--secondary-color);
}

.item-desc {
    flex: 1;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.item-meta {
    color: #999;
    font-size: 14px;
}

.item-meta span {
    margin-right: 20px;
}

.item-meta i {
    margin-right: 5px;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
}

.pagination .active {
    background: var(--primary-color);
    color: #fff;
}

.pagination .next {
    background: var(--primary-color);
    color: #fff;
}

.pagination .next:hover {
    background: var(--secondary-color);
}

/* 右侧边栏样式 */
.list-sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

.sidebar-block {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.block-title {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.recommend-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommend-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.recommend-item:hover {
    transform: translateY(-3px);
}

.recommend-item a {
    text-decoration: none;
}

.recommend-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend-item:hover img {
    transform: scale(1.05);
}

.recommend-item h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    margin: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 16px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .list-wrapper {
        flex-direction: column;
    }

    .list-main,
    .list-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .recommend-items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .list-section {
        margin-top: 0;
        padding: 20px 0;
    }

    .list-item {
        flex-direction: column;
    }

    .item-image {
        flex: none;
        height: 200px;
    }

    .recommend-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .pagination a,
    .pagination span {
        padding: 6px 12px;
        margin: 0 2px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .recommend-items {
        grid-template-columns: 1fr;
    }

    .item-content h3 {
        font-size: 18px;
    }

    .item-desc {
        font-size: 14px;
    }
} 