/* 列表页专用样式 */

.list-container {
    background: #f5f7fa;
    padding: 40px 0;
    min-height: 600px;
}

/* 页面头部 */
.page-header {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.page-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-stats {
    font-size: 14px;
    color: #999;
}

.page-stats strong {
    color: #1890ff;
    font-size: 20px;
    margin: 0 5px;
}

/* 筛选栏 */
.filter-bar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
}

.filter-group select {
    padding: 8px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.filter-group select:focus {
    border-color: #1890ff;
}

/* 成语列表 */
.chengyu-list {
    display: grid;
    gap: 20px;
}

.list-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    overflow: hidden;
}

.list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.item-link {
    display: block;
    padding: 25px 30px;
    color: inherit;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.item-title {
    font-size: 24px;
    color: #1890ff;
    font-weight: 600;
}

.item-pinyin {
    font-size: 14px;
    color: #999;
}

.item-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.meta-tags {
    display: flex;
    gap: 8px;
}

.meta-tags .tag {
    padding: 4px 12px;
    background: #f0f2f5;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.page-num:hover:not(.active):not(.ellipsis) {
    background: #f0f2f5;
    border-color: #1890ff;
    color: #1890ff;
}

.page-num.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
    font-weight: bold;
}

.page-num.ellipsis {
    border: none;
    background: transparent;
    cursor: default;
}

/* 相关推荐 */
.related-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.related-section .section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-link {
    padding: 8px 18px;
    background: #f0f2f5;
    border-radius: 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.related-link:hover {
    background: #1890ff;
    color: #fff;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 25px 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .item-link {
        padding: 20px;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .item-title {
        font-size: 20px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-num {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

