/* ============ Newsroom Page Styles ============ */
.newsroom-page {
    background: #f7f9fc;
}

.newsroom-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 30px 0 20px;
}

/* 筛选标签: 不换行 */
.news-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a2238;
    margin: 0 10px 0 0;
    white-space: nowrap;
}

/* 复用 project-list 的下拉样式, 调整 label + select 间距 */
.newsroom-toolbar .proj-filter-item {
    gap: 0;
}
.newsroom-toolbar .proj-filter-select {
    min-width: 140px;
}

@media (max-width: 767px) {
    .newsroom-toolbar {
        padding: 20px 0 16px;
    }
    .newsroom-toolbar .proj-filter-bar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .newsroom-toolbar .proj-filter-select {
        width: 100%;
        min-width: 0;
    }
    .news-filter-label {
        margin-bottom: 6px;
    }
}

.media-type-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.media-type-filter label {
    font-size: 14px;
    font-weight: 600;
    color: #1a2238;
    margin: 0;
}

.media-type-filter select {
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    color: #1a2238;
    background: #fff;
    border: 1px solid #d4dae4;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667089' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color .2s;
}

.media-type-filter select:hover,
.media-type-filter select:focus {
    border-color: #2563eb;
    outline: none;
}

/* News Card Grid */
.newsroom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 10px 0 50px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(26, 34, 56, .06);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 34, 56, .12);
    color: inherit;
}

.news-card-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    background: #eef1f6;
    overflow: hidden;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-card:hover .news-card-thumb img {
    transform: scale(1.06);
}

.news-card-thumb .news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8c0d0;
    font-size: 40px;
}

.news-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-insight { background: #2563eb; }
.badge-gallery { background: #16a34a; }
.badge-newsletter { background: #f59e0b; }
.badge-default { background: #64748b; }

.news-card-body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 12px;
    color: #8a94a6;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2238;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    font-size: 13px;
    color: #5a6478;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-tag {
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
}

/* Pagination */
.newsroom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 0 60px;
}

.newsroom-pagination a,
.newsroom-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1a2238;
    background: #fff;
    border: 1px solid #d4dae4;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
}

.newsroom-pagination a:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.newsroom-pagination .current {
    background: #1a2238;
    border-color: #1a2238;
    color: #fff;
}

.newsroom-pagination .disabled {
    color: #c4cbd8;
    cursor: not-allowed;
    pointer-events: none;
}

.newsroom-empty {
    text-align: center;
    padding: 80px 20px;
    color: #8a94a6;
    font-size: 16px;
}

@media (max-width: 1199px) {
    .newsroom-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .newsroom-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 479px) {
    .newsroom-grid { grid-template-columns: 1fr; }
}
