/* 新闻列表 / 详情（seemb4） */

/* 列表主区：与制造商 / 分类页一致，居中 content-container 宽度 */
.news-page--list .news-list-body-inner {
    max-width: 100%;
    width: var(--cat-max, 1320px);
    margin: 20px auto;
    padding: 0 10px 40px;
    box-sizing: border-box;
}

/* —— 列表：面包屑（对齐 manufacturers 的 cat-body__breadcrumb） —— */
.news-page--list .news-list-breadcrumb {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--cat-text, #333);
    line-height: 1.5;
}

.news-page--list .news-list-breadcrumb a {
    color: var(--cat-primary, #4267b2);
    text-decoration: none;
}

.news-page--list .news-list-breadcrumb a:hover {
    text-decoration: underline;
}

.news-page--list .news-list-breadcrumb [aria-current="page"] {
    color: var(--cat-text, #333);
    font-weight: 600;
}

.news-page--list .news-list-breadcrumb .cat-body__breadcrumb-sep {
    margin: 0 6px;
    color: #999;
}

/* —— 列表：横幅（限制在 cat-body__inner 内；背景图 + 轻遮罩保证标题可读） —— */
.news-hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 180px;
    margin: 0 0 28px;
    border: none;
    border-radius: 8px;
    box-shadow: none;
    box-sizing: border-box;
    background: transparent;
    overflow: hidden;
}

/* 与参考站一致的 cover / fixed；独立层避免影响标题布局 */
.news-hero-banner__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    outline: 0;
    box-shadow: none;
    background-color: transparent;
    background-image: url("/vendor/seemb4/images/blog/news_bg.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    background-attachment: fixed;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .news-hero-banner__bg {
        background-attachment: scroll;
    }
}

.news-hero-banner__waves {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.28));
}

.news-hero-banner__title {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 24px 20px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* —— 列表：文章 —— */
.news-list--styled {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

.news-list--styled .news-list__item + .news-list__item {
    margin-top: 0;
    padding-top: 28px;
    border-top: 1px solid #eee;
}

.news-list--styled .news-list__item:first-child .news-card--list {
    padding-top: 0;
}

.news-card--list {
    padding: 0 0 8px;
    background: #fff;
    border-radius: 0;
}

.news-card--list .news-card__title-link {
    text-decoration: none;
    color: #222;
}

.news-card--list .news-card__title-link:hover .news-card__title {
    color: #1a237e;
}

.news-card--list .news-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.35;
    color: #222;
}

/* 左文右图：Grid 第一列正文，第二列配图 */
.news-card--list .news-card__body--lr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    gap: 20px;
    align-items: start;
}

.news-card--list .news-card__thumb {
    width: 100%;
    max-width: 220px;
    margin: 0;
    justify-self: end;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    background: #f7f7f7;
    line-height: 0;
}

.news-card__thumb-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

/* 列表缩略图高度与左侧 4 行摘要（14px × 1.65 × 4）对齐，避免右图过高 */
.news-card--list .news-card__thumb-img {
    aspect-ratio: auto;
    height: calc(14px * 1.65 * 4);
    max-height: calc(14px * 1.65 * 4);
    width: 100%;
    object-fit: cover;
}

.news-card--list .news-card__excerpt--clamp {
    min-width: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #666;
}

/* 每条摘要固定最多 4 行，超出省略 */
.news-card--list .news-card__excerpt--clamp p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    word-break: break-word;
}

.news-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 18px;
}

.news-card--list .news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0;
    font-size: 0.8125rem;
    color: #888;
}

.news-card__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #f39c12;
}

.news-card__views-ico {
    flex-shrink: 0;
    color: #f39c12;
}

.news-card__views-num {
    color: #666;
    font-variant-numeric: tabular-nums;
}

.news-card__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.news-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b5998;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.news-share__btn svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.news-share__btn:hover {
    opacity: 0.92;
    transform: scale(1.05);
}

.news-share__btn:nth-child(2) {
    background: #0077b5;
}

.news-share__btn:nth-child(3) {
    background: #14171a;
}

.news-share__btn:nth-child(4) {
    background: #3b5998;
}

.news-empty {
    padding: 48px 20px;
    text-align: center;
    color: #666;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    margin-top: 40px;
    padding: 20px 16px;
}

.news-pagination__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 0.9375rem;
    text-decoration: none;
    color: #1a237e;
    border: 1px solid #d0d5e8;
    background: #fff;
}

.news-pagination__link:hover:not(.is-disabled) {
    border-color: #1a237e;
    background: #f4f6fc;
}

.news-pagination__link.is-disabled {
    color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #eee;
}

.news-pagination__info {
    font-size: 0.875rem;
    color: #666;
}

@media (max-width: 640px) {
    .news-card--list .news-card__body--lr {
        grid-template-columns: 1fr;
    }

    .news-card--list .news-card__thumb {
        max-width: 100%;
        justify-self: stretch;
    }

    .news-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-card__share {
        justify-content: flex-start;
    }
}

/* —— 详情页：与分类筛选页同 outer 宽度，面包屑在内容白底块之上 —— */
.news-page--detail .news-main {
    background: var(--cat-bg, #f5f5f5);
}

.news-detail-body-wrap {
    max-width: 100%;
    width: var(--cat-max, 1320px);
    margin: 20px auto;
    padding: 0 10px 40px;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
}

/* 对齐 category_filter 面包屑（详情页未引入 category_filter_page.css） */
.news-detail-page-breadcrumb .filter-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 40px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.news-detail-page-breadcrumb .filter-breadcrumb__item {
    display: flex;
    align-items: center;
    min-width: 0;
}

.news-detail-page-breadcrumb .filter-breadcrumb__item a {
    color: #333;
    text-decoration: none;
}

.news-detail-page-breadcrumb .filter-breadcrumb__item a:hover {
    text-decoration: underline;
}

.news-detail-page-breadcrumb .filter-breadcrumb__sep {
    color: #666;
    font-size: 12px;
    margin: 0 6px;
}

.news-detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 24px;
    align-items: start;
}

.news-detail-sheet {
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.news-detail-rfq-banner {
    margin: 0 0 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
    border: none;
}

.news-detail-rfq-banner__link {
    display: block;
    line-height: 0;
    text-decoration: none;
    outline-offset: 2px;
    transition: opacity 0.2s ease;
}

.news-detail-rfq-banner__link:hover {
    opacity: 0.92;
}

.news-detail-rfq-banner__link:focus-visible {
    outline: 2px solid #1a5fb4;
    outline-offset: 2px;
}

.news-detail-rfq-banner__img {
    display: block;
    width: 100%;
    height: auto;
}

.news-sidebar-card {
    background: #fff;
    padding: 20px 18px;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 1px solid #eee;
    border-radius: 4px;
}

.news-sidebar-card:last-child {
    margin-bottom: 0;
}

.news-sidebar-card__title {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: var(--cat-text, #333);
}

.news-sidebar-card__title--with-ico {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.news-sidebar-card__ico {
    display: inline-block;
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--cat-primary, #4267b2);
    flex-shrink: 0;
}

/* 侧栏订阅：与页脚 site-footer__subscribe 同构（单行邮箱 + 按钮），配色适配浅色卡片 */
.news-sidebar-subscribe--inline {
    margin: 0;
}

.news-sidebar-subscribe__bar {
    display: flex;
    align-items: stretch;
    height: 36px;
    max-width: 100%;
    padding: 2px;
    border: 1px solid var(--cat-primary, #4267b2);
    border-radius: 18px;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
}

.news-sidebar-subscribe__bar-input {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--cat-text, #333);
    font-size: 14px;
    outline: none;
}

.news-sidebar-subscribe__bar-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.news-sidebar-subscribe__submit--bar {
    flex-shrink: 0;
    display: block;
    width: auto;
    margin-top: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 17px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--cat-primary, #4267b2);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    height: -webkit-fill-available;
}

.news-sidebar-subscribe__submit--bar:hover {
    filter: brightness(0.92);
}

.news-sidebar-subscribe__submit--bar:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.news-sidebar-subscribe__msg {
    margin: 0 0 12px;
    padding: 8px 10px;
    font-size: 0.8125rem;
    line-height: 1.45;
    border-radius: 4px;
    box-sizing: border-box;
}

.news-sidebar-subscribe__msg.is-success {
    color: #0d5c2e;
    background: rgba(13, 92, 46, 0.08);
    border: 1px solid rgba(13, 92, 46, 0.2);
}

.news-sidebar-subscribe__msg.is-error {
    color: #a30f0f;
    background: rgba(196, 18, 48, 0.06);
    border: 1px solid rgba(196, 18, 48, 0.2);
}

.news-sidebar-hot-list {
    margin: 0;
    padding: 0 0 0 1.1em;
    list-style: disc;
}

.news-sidebar-hot-list__item {
    margin-bottom: 10px;
    line-height: 1.45;
}

.news-sidebar-hot-list__item:last-child {
    margin-bottom: 0;
}

.news-sidebar-hot-list__link {
    color: var(--cat-text, #333);
    text-decoration: none;
    font-size: 0.875rem;
}

.news-sidebar-hot-list__link:hover {
    color: var(--cat-primary, #4267b2);
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .news-detail-columns {
        grid-template-columns: 1fr;
    }

    .news-detail-columns__aside {
        order: 2;
    }

    .news-detail-columns__primary {
        order: 1;
    }
}

/* —— 详情正文 —— */
.news-breadcrumb__current {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.news-detail__head {
    margin-bottom: 20px;
}

.news-detail__head--center {
    text-align: center;
}

.news-detail__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
    color: var(--djq-text, #1a1a1a);
}

.news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.875rem;
    color: #666;
}

.news-detail__meta--center {
    justify-content: center;
}

.news-detail__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-detail__meta-item--views {
    color: #f39c12;
}

.news-detail__meta-item--views span:last-child {
    color: #666;
    font-variant-numeric: tabular-nums;
}

.news-detail__meta-ico {
    flex-shrink: 0;
    opacity: 0.85;
}

.news-detail__meta-ico--eye {
    color: #f39c12;
}

.news-detail__cover {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-detail__cover-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 480px;
    margin: 0 auto;
}

.news-detail__body {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
}

.news-detail__body img {
    max-width: 100%;
    height: auto;
}

/* —— 相关文章 —— */
.news-detail-related {
    margin-top: 36px;
    padding-top: 0;
    border-top: 0;
    box-shadow: none;
}

.news-detail + .news-detail-related {
    border-top: 0;
}

.news-detail-related__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
}

.news-detail-related__head-ico {
    position: relative;
    width: 18px;
    height: 16px;
    flex-shrink: 0;
}

.news-detail-related__head-ico::before,
.news-detail-related__head-ico::after {
    content: "";
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--cat-primary, #4267b2);
    border-radius: 1px;
    transform: skewX(-14deg);
}

.news-detail-related__head-ico::before {
    left: 1px;
}

.news-detail-related__head-ico::after {
    left: 9px;
}

.news-detail-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-detail-related__item {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: none;
}

.news-detail-related__item:first-child {
    padding-top: 12px;
}

.news-detail-related__item:last-child {
    padding-bottom: 0;
}

.news-detail-related__thumb {
    display: block;
    flex: 0 0 200px;
    width: 200px;
    max-width: 100%;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f2f5;
}

.news-detail-related__thumb-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 200 / 140;
    object-fit: cover;
}

.news-detail-related__main {
    flex: 1 1 220px;
    min-width: 0;
}

.news-detail-related__title-link {
    display: block;
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: #1a1a2e;
    text-decoration: none;
}

.news-detail-related__title-link:hover {
    color: var(--cat-primary, #4267b2);
    text-decoration: underline;
}

.news-detail-related__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-bottom: 10px;
    font-size: 0.8125rem;
    color: #888;
}

.news-detail-related__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-detail-related__meta-ico {
    flex-shrink: 0;
    opacity: 0.85;
}

.news-detail-related__excerpt-wrap {
    margin-bottom: 8px;
}

.news-detail-related__excerpt {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #666;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.news-detail-related__more {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #888;
    text-decoration: none;
}

.news-detail-related__more:hover {
    color: var(--cat-primary, #4267b2);
    text-decoration: underline;
}

.news-detail-related__more-arrow {
    font-weight: 400;
}

@media (max-width: 600px) {
    .news-detail-related__thumb {
        flex: 1 1 100%;
        width: 100%;
    }

    .news-detail-related__thumb-img {
        aspect-ratio: 16 / 10;
    }
}
