/* ========== 资讯区块 | 2026-09-17 ==========
 * 模板：template-parts/block/news.php（查询仍走 n / cat，分类空则 blog）
 * 作用：浅底、左大图叠字 + 右侧列表；询盘表单在下方
 */

/**
 * 文件作用：文章列表区块：定义展示样式。主题覆盖版，保持当前布局。
 */

.news-block {
    padding: 5.5rem 0;
    background: #f6f8fb;
    color: #1c334f;
    scroll-margin-top: 96px;
}
.news-block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.news-block-heading {
    min-width: 0;
}
.news-block-title {
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #1c334f;
}
.news-block-lead {
    max-width: 36rem;
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #5f738a;
}
.news-block-lead p {
    margin-bottom: 0.5rem;
}
.news-block-lead p:last-child {
    margin-bottom: 0;
}
.news-block-more {
    flex-shrink: 0;
    color: var(--bs-primary);
    font-size: 0.9375rem;
    white-space: nowrap;
    text-decoration: none;
}
.news-block-more::after {
    content: " →";
}
.news-block-more:hover,
.news-block-more:focus {
    color: var(--bs-warning);
}
.news-block-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
}
.news-block-feature {
    position: relative;
    display: block;
    min-height: 280px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--bs-primary);
}
.news-block-feature picture,
.news-block-feature .news-block-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.news-block-feature .news-block-image {
    object-fit: cover;
    object-position: center;
}
.news-block-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.08) 20%, rgba(var(--bs-primary-rgb), 0.78) 100%);
}
.news-block-feature-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.75rem 1.5rem;
}
.news-block-feature .news-block-meta {
    display: block;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
}
.news-block-name {
    margin: 0.75rem 0 0;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}
.news-block-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}
.news-block-side {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.news-block-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    color: inherit;
    text-decoration: none;
}
.news-block-item-media {
    display: block;
    overflow: hidden;
    height: 180px;
    background: #d9e4f0;
}
.news-block-item-media picture,
.news-block-item-media .news-block-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-block-item-media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f738a;
    font-size: 0.875rem;
}
.news-block-item-copy {
    min-width: 0;
}
.news-block-item .news-block-meta {
    display: block;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: #5f738a;
}
.news-block-item-name {
    margin: 0.5rem 0 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1c334f;
}
.news-block-excerpt {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #5f738a;
}
.news-block-feature:hover,
.news-block-item:hover {
    color: inherit;
}
.news-block-item:hover .news-block-item-name {
    color: var(--bs-primary);
}
.news-block-empty {
    padding: 2rem 0;
    color: #5f738a;
}
@media (min-width: 768px) {
    .news-block-item {
        grid-template-columns: 240px 1fr;
        gap: 1.35rem;
    }
}
@media (min-width: 992px) {
    .news-block-grid.has-side {
        grid-template-columns: 1.35fr 1fr;
        gap: 1.75rem;
    }
    .news-block-feature {
        min-height: 560px;
        height: 100%;
    }
    .news-block-feature-body {
        padding: 2.5rem;
    }
}
@media (max-width: 991.98px) {
    .news-block {
        padding: 3.5rem 0;
    }
    .news-block-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }
}

/* 归档：原资讯列表 hover */
.news-block li a:hover h3 {
  color:var(--bs-blue)!important;
}
