/* ========================================
    Article List Page Styles - 文章列表页
    ======================================== */

/* Page Header */
.article-list-header {
    background: linear-gradient(135deg, var(--primary-color), #1a252f);
    color: white;
    padding: 4rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-list-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.article-list-header .header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-list-header .page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.article-list-header .page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.article-list-header .page-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.article-list-header .page-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Article List Container */
.article-list-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.article-list-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

/* Main Content Area */
.article-list-main {
    min-width: 0;
}

/* Top Article Section */
.section-top-article {
    margin-bottom: 2.5rem;
}

.top-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.top-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.top-article-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.top-article-image {
    width: 280px;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.top-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-article-image.default-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.top-article-content {
    padding: 1.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top-article-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.top-article-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.top-article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.top-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Section Headers */
.article-section {
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.35rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    color: var(--secondary-color);
}

/* Article Cards Grid */
.article-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card-image {
    height: 160px;
    overflow: hidden;
}

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

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

.article-card-image.default-cover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.article-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.article-topic-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.article-date {
    color: var(--text-light);
}

.article-card-title {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.article-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.article-tag {
    background: var(--light-bg);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-light);
}

.article-views {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), #1a252f);
}

.sidebar-title {
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sidebar-title i {
    color: var(--secondary-color);
}

/* Hot Articles */
.hot-articles-list {
    padding: 0.5rem 0;
}

.hot-article-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

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

.hot-article-item:hover {
    background: var(--light-bg);
}

.hot-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--border-color);
    color: var(--text-light);
    flex-shrink: 0;
}

.hot-rank.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #fff;
}

.hot-rank.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #fff;
}

.hot-rank.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    color: #fff;
}

.hot-article-info {
    flex: 1;
    min-width: 0;
}

.hot-article-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.hot-article-item:hover .hot-article-title {
    color: var(--secondary-color);
}

.hot-article-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Topic Navigation */
.topic-nav-list {
    padding: 0.5rem 0;
}

.topic-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.topic-nav-item:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

.topic-nav-item.active {
    background: rgba(var(--secondary-color-rgb), 0.1);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    font-weight: 500;
}

.topic-nav-item .topic-icon {
    font-size: 1.1rem;
}

.topic-nav-item .topic-name {
    flex: 1;
}

.topic-nav-item .topic-count {
    background: var(--light-bg);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Latest Articles Sidebar */
.latest-articles-list {
    padding: 0.5rem 0;
}

.latest-article-item {
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

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

.latest-article-item:hover {
    background: var(--light-bg);
}

.latest-article-item:hover .latest-article-title {
    color: var(--secondary-color);
}

.latest-article-info {
    width: 100%;
}

.latest-article-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.latest-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.latest-article-date {
    color: var(--secondary-color);
    font-weight: 500;
}

.latest-article-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Empty & Error Messages */
.empty-message,
.error-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-message i,
.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loading-placeholder {
    text-align: center;
    padding: 1rem;
    color: var(--text-light);
}

.loading-placeholder i {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-list-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .sidebar-section {
        margin-bottom: 0;
    }
}

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

    .article-list-header .page-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .top-article-link {
        flex-direction: column;
    }

    .top-article-image {
        width: 100%;
        height: 200px;
    }

    .top-article-content {
        padding: 1.25rem;
    }

    .top-article-title {
        font-size: 1.25rem;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-cards {
        grid-template-columns: 1fr;
    }

    .hot-article-item {
        padding: 0.75rem 1rem;
    }
}
