/* 文章分类列表小部件样式 */
.cposts-container {
    display: flex;
    gap: 40px;
    width: 100%;
}

/* 左侧分类列表 */
.cposts-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.cposts-main-title {
    padding: 15px 20px 15px 30px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}

.cposts-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 10px;
}

.cposts-category-item {
    padding: 0 0 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.cposts-category-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    margin-right: 10px;
    flex-shrink: 0;
}

.cposts-category-item:hover {
    opacity: 0.85;
}

.cposts-category-item span {
    transition: color 0.3s ease;
}

/* 右侧内容区 */
.cposts-content {
    flex: 1;
    min-width: 0;
}

.cposts-category-title {
    font-size: 28px;
    font-weight: 700;
}

/* 文章列表 */
.cposts-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cposts-post-item {
    position: relative;
    padding: 40px 20px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.cposts-post-item.has-thumbnail {
    display: flex;
    gap: 25px;
}

.cposts-post-item:last-child {
    border-bottom: none;
}

.cposts-post-thumbnail {
    flex-shrink: 0;
    width: 180px;
}

.cposts-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.cposts-post-thumbnail a {
    display: block;
}

.cposts-post-content {
    flex: 1;
    min-width: 0;
}

.cposts-post-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.cposts-post-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.cposts-post-title a:hover {
    opacity: 0.7;
}

.cposts-post-meta {
    font-size: 13px;
    margin-bottom: 12px;
}

.cposts-post-meta a {
    color: inherit;
    text-decoration: underline;
}

.cposts-post-excerpt {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.cposts-post-footer {
    display: flex;
    justify-content: flex-end;
}

.cposts-read-more {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-bottom: 2px solid;
    border-radius: 0;
    transition: all 0.3s ease;
    background: transparent;
}

.cposts-read-more:hover {
    opacity: 0.8;
}

/* 悬停进度条 */
.cposts-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    transition: width 0.4s ease;
}

.cposts-post-item:hover .cposts-progress-bar {
    width: 100%;
}

/* 无文章提示 */
.cposts-no-posts {
    text-align: center;
    color: #666;
    padding: 40px;
}

/* 加载状态 */
.cposts-content.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* 分页样式 */
.cposts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cposts-pagination .cposts-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #333333;
    background-color: #ffffff;
    cursor: pointer;
}

.cposts-pagination .cposts-page-link:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.cposts-pagination .cposts-page-num.current {
    color: #ffffff;
    background-color: #e62222;
    border-color: #e62222;
}

.cposts-pagination .cposts-page-prev,
.cposts-pagination .cposts-page-next {
    padding: 0;
}

.cposts-pagination .cposts-page-prev svg,
.cposts-pagination .cposts-page-next svg {
    stroke: #333333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cposts-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .cposts-sidebar {
        width: 100%;
    }
    
    .cposts-category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .cposts-category-item {
        padding: 8px 15px;
    }
    
    .cposts-category-title {
        font-size: 22px;
    }
    
    .cposts-post-title {
        font-size: 16px;
    }
}
