/* 文章模板样式 */
.article_tpl {
    padding: 30px 0;
}

.article_tpl .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.category-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.category-header h1 {
    font-size: 28px;
    color: #333;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

/* 简单分类侧边栏样式 */
.category-sidebar {
    flex: 0 0 250px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.category-list {
    padding: 15px;
}

.category-list .sub-category {
    padding-left: 15px;
    margin-top: 5px;
}

.category-list .sub-category li {
    padding: 5px 0;
    border-bottom: none;
}

.category-list .sub-category li a {
    font-size: 13px;
    color: #777;
}

.category-list .sub-category li.active a {
    color: var(--primary-color);
}

.category-list h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.category-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.category-list li a:hover {
    color: var(--primary-color);
}

.category-list li.active a {
    color: var(--primary-color);
    font-weight: 500;
}

/* 文章列表样式 */
.article-list {
    width: 890px;
}

.article-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.article-item:hover{
    background-color: #f9f9f9;
}

.article-info {
    flex: 1;
}

.article-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.article-info h3 a:hover {
    color: var(--primary-color);
}

.article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.article-meta .time {
    margin-right: 15px;
}

.view-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../../images/view-icon.png) no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 5px;
}

.article-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
    border-color: #ccc;
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 空数据提示 */
.empty-data {
    padding: 50px 0;
    text-align: center;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .category-sidebar {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-image {
        flex: none;
        width: 100%;
        height: 180px;
        margin-bottom: 15px;
    }
}
