/* 列表页样式 */
.list-page {
    padding: 40px 0;
    background-color: #f5f5f5;
}

.list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* 左侧栏目列表 */
.sidebar {
    flex: 0 0 250px;
}

.sidebar-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sidebar-title {
    background-color: #00897b;
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.sidebar-title.active .toggle-icon {
    transform: rotate(180deg);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-menu.collapsed {
    max-height: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background-color: #f5f5f5;
    color: #00897b;
    padding-left: 25px;
}

.sidebar-menu a.active {
    background-color: #e0f2f1;
    color: #00897b;
    font-weight: 600;
}

/* 右侧文章列表 */
.main-content {
    flex: 1;
}

.content-header {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.content-header h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #00897b;
}

/* 文章列表 */
.article-list {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item.no-thumbnail {
    flex-direction: column;
    gap: 10px;
}

.article-thumbnail {
    flex: 0 0 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
}

.article-title {
    font-size: 18px;
    margin: 0 0 10px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #00897b;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 翻页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    list-style: none;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    border-color: #00897b;
    color: #00897b;
}

.pagination a.active {
    background-color: #00897b;
    border-color: #00897b;
    color: white;
}

.pagination .prev, .pagination .next {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .prev:hover, .pagination .next:hover {
    border-color: #00897b;
    color: #00897b;
}

/* 移动端列表页样式 */
@media (max-width: 768px) {
    .list-page {
        padding: 20px 0;
    }

    .list-container {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        flex: 1;
        width: 100%;
        display: none;
    }

    .article-item {
        flex-direction: column;
        gap: 10px;
    }

    .article-thumbnail {
        flex: 1;
        height: 200px;
        width: 100%;
    }

    .content-header h1 {
        font-size: 20px;
    }

    .article-title {
        font-size: 16px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination a {
        padding: 6px 12px;
        font-size: 14px;
    }
}