/* Article List Page Styles - 参考 article_detail.html 样式 */
.article-list-header {
    background: #f8f9fa;
    padding: 2rem 0 1rem;
    margin-bottom: 0;
}

.article-list-title {
    color: #333;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.article-divider {
    height: 3px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border: none;
    margin: 1rem 0;
}

.breadcrumb {
    font-size: 0.8rem;
    background: transparent;
    padding: 0;
    margin: 0.5rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* 文章卡片样式 - 左右分列布局 */
.article-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.article-card-body {
    display: flex;
    align-items: stretch;
    min-height: 200px;
}

.article-image {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1; /* Ensure images are visible by default */
}

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

.article-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.article-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.article-summary {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.article-badges {
    display: flex;
    gap: 0.5rem;
}

.badge-top {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Read More 按钮样式 */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    color: white;
}

.read-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.read-more-icon {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.read-more-btn:hover .read-more-icon {
    transform: translateX(3px);
}

.read-more-text {
    font-weight: 500;
}

/* 侧边栏样式 - 参考 article_detail.html */
.sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    color: #007bff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.sidebar-item {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.sidebar-item:hover {
    color: #007bff;
    text-decoration: none;
}

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

.sidebar-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-category-item:hover {
    color: #007bff;
    text-decoration: none;
}

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

.category-count {
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* 联系信息样式 */
.contact-info {
    padding: 0;
}


/* 分页样式 */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    margin: 0;
}

.page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #007bff;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
}

.page-link:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #0056b3;
}

.page-item.active .page-link {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-state-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    color: #6c757d;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state-text {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-list-title {
        font-size: 1.5rem;
    }

    .article-card-body {
        flex-direction: column;
    }

    .article-image {
        flex: none;
        height: 200px;
    }

    .article-content {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .article-list-header {
        padding: 1.5rem 0 1rem;
    }

    .article-list-title {
        font-size: 1.3rem;
    }

    .sidebar {
        margin-top: 2rem;
    }
}
