/* ============================================================
   Category Page Styles - Optimized for Sogou SEO
   天均安洁家政服务 - 分类列表页专用样式
   ============================================================ */

/* 页面容器 */
.category-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 面包屑导航 */
.category-breadcrumb {
    background: linear-gradient(to right, #fff8f3, #fafafa);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 13px;
}

.category-breadcrumb a {
    color: #e8783a;
    text-decoration: none;
}

.category-breadcrumb a:hover {
    text-decoration: underline;
}

/* 分类头部 */
.category-header {
    background: linear-gradient(135deg, #fff8f3, #fff0e6);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    border: 1px solid #f5dcc8;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(232, 120, 58, 0.06), transparent);
    border-radius: 50%;
}

.category-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    position: relative;
}

.category-header .category-desc {
    font-size: 15px;
    color: #6a7a8a;
    line-height: 1.8;
    margin-bottom: 0;
    position: relative;
}

.category-header .category-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e8d5c4;
    font-size: 13px;
    color: #9aa8b8;
}

.category-header .category-meta span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.category-header .category-meta i {
    margin-right: 5px;
    color: #e8783a;
}

/* 文章列表项 */
.article-item {
    background: white;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.article-item:hover {
    border-color: #f5dcc8;
    box-shadow: 0 4px 20px rgba(232, 120, 58, 0.08);
    transform: translateY(-2px);
}

.article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: #e8783a;
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.article-item:hover::before {
    height: 60%;
}

.article-item-date {
    color: #b0b8c4;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.article-item-title a:hover {
    color: #e8783a;
}

.article-item-summary {
    color: #7a8a9a;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-item-author {
    color: #9aa8b8;
    font-size: 13px;
}

.article-item-author i {
    margin-right: 4px;
}

.article-item-link {
    color: #e8783a;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.article-item-link:hover {
    color: #d5683a;
    text-decoration: none;
}

.article-item-link i {
    margin-left: 4px;
    transition: transform 0.2s;
}

.article-item-link:hover i {
    transform: translateX(3px);
}

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

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #e0e0e0;
}

/* 分页 */
.category-pagination {
    margin-top: 32px;
}

.category-pagination .pagination {
    gap: 6px;
}

.category-pagination .page-link {
    border: 1px solid #f0f0f0;
    color: #4a5568;
    border-radius: 8px !important;
    padding: 8px 14px;
    font-size: 14px;
    transition: all 0.2s;
}

.category-pagination .page-link:hover {
    background: #fff5ed;
    border-color: #f5dcc8;
    color: #e8783a;
}

.category-pagination .page-item.active .page-link {
    background: #e8783a;
    border-color: #e8783a;
    color: white;
}

.category-pagination .page-item.disabled .page-link {
    color: #d0d0d0;
    background: #fafafa;
}

.category-pagination-info {
    text-align: center;
    color: #b0b8c4;
    font-size: 13px;
    margin-top: 12px;
}

/* 侧边栏卡片 */
.sidebar-card {
    border: none;
    border-radius: 14px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.sidebar-card .card-title {
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 5px solid #e8783a;
    font-size: 16px;
    color: #2c3e50;
}

/* 侧边栏链接hover效果 */
.hover-primary {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.hover-primary:hover {
    color: #e8783a !important;
    text-decoration: none;
    padding-left: 4px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-header {
        padding: 20px;
    }

    .category-header h1 {
        font-size: 22px;
    }

    .article-item {
        padding: 16px;
    }

    .article-item-title {
        font-size: 16px;
    }

    .sidebar-card {
        margin-bottom: 16px;
    }
}
