/* ============================================
   Article List Page Styles - Tailwind CSS Compatible
   ============================================ */

/* 文章列表头部区域 */
.article-list-header {
    padding: 2rem 0 1rem;
    margin-bottom: 0;
}

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

/* 文章分割线 */
.article-divider {
    height: 3px;
    background: linear-gradient(90deg, #1565c0 0%, #0d47a1 100%);
    border: none;
    margin: 1rem 0;
}

/* 面包屑导航 - 使用 Tailwind 后主要通过 HTML 类控制 */
.breadcrumb {
    font-size: 0.8rem;
    background: transparent;
    padding: 0;
    margin: 0.5rem 0;
}

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

/* ============================================
   Article Card Styles - Horizontal Layout
   ============================================ */

.article-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.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;
}

/* Image Container */
.article-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Image overlay gradient */
.article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.05) 0%, transparent 30%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-image::after {
    opacity: 1;
}

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

/* Content Area */
.article-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: #1565c0;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: #f1f5f9;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.article-card:hover .article-meta-item {
    background: #e2e8f0;
}

.article-meta-item svg {
    width: 14px;
    height: 14px;
}

.article-summary {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    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 #e2e8f0;
}

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

.badge-top {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ============================================
   Read More Button Styles
   ============================================ */

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #0a3d91 100%);
    transform: translateY(-2px) translateX(4px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
    color: white;
}

.read-more-btn:active {
    transform: translateY(0) translateX(0);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

.read-more-icon {
    transition: transform 0.3s ease;
}

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

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

/* ============================================
   Sidebar Styles -配合 Tailwind
   ============================================ */

.sidebar {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    color: #1565c0;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1565c0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title::before {
    content: '';
    width: 4px;
    height: 1.1rem;
    background: #1565c0;
    border-radius: 2px;
}

.sidebar-item {
    display: block;
    color: #334155;
    text-decoration: none;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1rem;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #1565c0;
    transition: width 0.3s ease;
}

.sidebar-item:hover {
    color: #1565c0;
    text-decoration: none;
    padding-left: 1.25rem;
}

.sidebar-item:hover::before {
    width: 6px;
}

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

/* Category sidebar items */
.sidebar-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-category-item:hover {
    color: #1565c0;
    text-decoration: none;
    padding-left: 0.5rem;
}

.category-count {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Contact info styles */
.contact-info {
    padding: 0;
}

/* ============================================
   Pagination Styles
   ============================================ */

.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pagination {
    margin: 0;
    gap: 0.5rem;
}

.page-link {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 1rem;
    font-weight: 500;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-link:hover {
    background-color: #f8fafc;
    border-color: #1565c0;
    color: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    border-color: #1565c0;
    color: white;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.page-item.disabled .page-link {
    color: #94a3b8;
    pointer-events: none;
    background-color: #fff;
    border-color: #e2e8f0;
}

/* ============================================
   Empty State Styles
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state-title {
    color: #475569;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.empty-state-text {
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .article-card-body {
        flex-direction: column;
    }

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

    .article-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .article-list-title {
        font-size: 1.5rem;
    }

    .article-content {
        padding: 1.25rem;
    }

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

    .article-meta-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

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

    .article-summary {
        -webkit-line-clamp: 2;
    }

    .read-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

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

    .sidebar-title {
        font-size: 1rem;
    }

    .pagination-wrapper {
        margin-top: 2rem;
    }

    .page-link {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
    }
}

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

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

    .article-image {
        height: 180px;
    }

    .article-content {
        padding: 1rem;
    }

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

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .empty-state-icon {
        font-size: 3rem;
    }

    .empty-state-title {
        font-size: 1.25rem;
    }
}
