/**
 * 分类页面样式
 */

/* 分类区域 */
.category-section {
    padding: 30px 0 50px;
    background: #f9f9f9;
    min-height: 500px;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #0066CC;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #0052A3;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #999;
}

.breadcrumb .current {
    color: #333;
}

/* 分类头部 */
.category-header {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0066CC;
}

.category-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.category-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 文章列表 */
.article-list-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-list {
    list-style: none;
}

.article-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.article-item:hover {
    background: #f9f9f9;
    margin: 0 -15px;
    padding: 25px 15px;
    border-radius: 6px;
}

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

.article-info {
    flex: 1;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #0066CC;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
    margin-right: 8px;
    vertical-align: middle;
}

.badge-top {
    background: #f44336;
    color: #fff;
}

.badge-recommend {
    background: #ff9800;
    color: #fff;
}

.article-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    font-style: normal;
}

.article-thumb {
    width: 150px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-thumb:hover img {
    transform: scale(1.05);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    background: #fff;
    transition: all 0.3s;
}

.page-link:hover:not(.disabled) {
    background: #0066CC;
    color: #fff;
    border-color: #0066CC;
}

.page-link.page-current {
    background: #0066CC;
    color: #fff;
    border-color: #0066CC;
}

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

.page-ellipsis {
    color: #999;
    padding: 0 5px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.empty-state p {
    color: #999;
    font-size: 16px;
}

/* 错误页面 */
.category-error {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.error-icon {
    font-size: 80px;
    font-weight: bold;
    color: #ddd;
    margin-bottom: 20px;
}

.category-error h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.category-error p {
    color: #666;
    margin-bottom: 30px;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* 响应式 */
@media (max-width: 768px) {
    .category-header {
        padding: 20px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .article-list-container {
        padding: 20px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-thumb {
        width: 100%;
        height: 180px;
    }
    
    .article-title {
        font-size: 16px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}