/* 新闻列表页 — 统一设计语言，全部使用 rem */

.news-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 0.0625rem solid var(--page-divider, #e2e8f0);
    margin-bottom: 1.5rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    color: var(--text-main, #475569);
    text-decoration: none;
    border-radius: 999rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    border: 0.0625rem solid transparent;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: var(--hover-bg, #f1f5f9);
    color: var(--text-strong, #0f172a);
}

.category-link.active {
    background: var(--primary-soft, #eff6ff);
    border-color: var(--primary-light, #bfdbfe);
    color: var(--primary, #2563eb);
    font-weight: 600;
}

/* 主列表 */
.news-list {
    background: #fff;
    border: 0.0625rem solid var(--page-divider, #e2e8f0);
    border-radius: 0.75rem;
    overflow: hidden;
}

.news-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 0.0625rem solid var(--page-divider, #e2e8f0);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

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

.news-list-item:hover {
    background: var(--hover-bg, #f8fafc);
}

.news-title {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-strong, #1e293b);
}

.news-title::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999rem;
    background: var(--primary, #2563eb);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.news-list-item:hover .news-title {
    color: var(--primary, #2563eb);
}

.news-date {
    flex-shrink: 0;
    color: var(--text-soft, #94a3b8);
    font-size: 0.8rem;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
}

/* 侧边栏 */
.sidebar-block {
    background: #fff;
    border: 0.0625rem solid var(--page-divider, #e2e8f0);
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.sidebar-header {
    padding: 0.85rem 1rem;
    border-bottom: 0.0625rem solid var(--page-divider, #e2e8f0);
    background: var(--panel-head-bg, #f8fafc);
}

.sidebar-header h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-strong, #0f172a);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-header h5 i {
    color: var(--primary, #2563eb);
}

.sidebar-content {
    padding: 0.5rem 0;
}

.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    border-bottom: 0.0625rem solid var(--page-divider, #e2e8f0);
    transition: background 0.15s ease;
}

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

.hot-item:hover {
    background: var(--hover-bg, #f8fafc);
}

.hot-rank {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 999rem;
    background: var(--primary-soft, #eff6ff);
    color: var(--primary, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.hot-content {
    min-width: 0;
}

.hot-title {
    font-size: 0.875rem;
    color: var(--text-strong, #1e293b);
    line-height: 1.45;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-item:hover .hot-title {
    color: var(--primary, #2563eb);
}

.hot-meta {
    color: var(--text-soft, #94a3b8);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 47.9988rem) {
    .news-category-nav {
        gap: 0.375rem;
        padding-bottom: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .category-link {
        padding: 0.35rem 0.7rem;
        font-size: 0.82rem;
    }

    .news-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem 0.9rem;
    }

    .news-title {
        font-size: 0.9rem;
    }

    .news-date {
        font-size: 0.75rem;
        padding-left: 0.9rem;
    }
}
