/* ═══════════════════════════════════════════
   文章列表页样式
   ═══════════════════════════════════════════ */

.article-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    text-align: center;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30,159,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.article-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.article-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
}

.article-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* ── Article List ── */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: grid;
    grid-template-columns: 260px 1fr;
}

.article-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.article-item-cover {
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

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

.article-item:hover .article-item-cover img {
    transform: scale(1.08);
}

.article-item-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.5;
    transition: var(--transition);
}

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

.article-item-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.article-item-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.article-item-meta i {
    margin-right: 4px;
    font-size: 13px;
}

.article-item.no-cover {
    grid-template-columns: 1fr;
}

.article-item.no-cover .article-item-body {
    padding: 28px;
}

/* ── Sidebar ── */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: var(--text-light);
    font-size: 14px;
    border-radius: 6px;
    transition: var(--transition);
}

.category-list li a:hover,
.category-list li a.active {
    background: rgba(30,159,255,0.08);
    color: var(--primary);
}

.category-list li a::after {
    content: '›';
    font-size: 16px;
    color: var(--text-muted);
}

.hot-article-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hot-article-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    font-size: 13px;
    transition: var(--transition);
}

.hot-article-list li:last-child a {
    border-bottom: none;
}

.hot-article-list li a:hover {
    color: var(--primary);
}

.hot-article-list .hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--text-muted);
}

.hot-article-list li:nth-child(1) .hot-rank { background: #ff4757; color: #fff; }
.hot-article-list li:nth-child(2) .hot-rank { background: #ff6348; color: #fff; }
.hot-article-list li:nth-child(3) .hot-rank { background: #ffa502; color: #fff; }

.hot-article-list .hot-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Pagination ── */
.article-pagination {
    text-align: center;
    padding: 40px 0 10px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .article-page {
        grid-template-columns: 1fr;
    }

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

    .article-item {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 600px) {
    .article-item {
        grid-template-columns: 1fr;
    }

    .article-item-cover {
        max-height: 200px;
    }

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

    .article-hero { padding: 80px 0 50px; }
    .article-hero h1 { font-size: 28px; }
}
