/* ============================================================
   新闻中心 · 博客板块
   布局照搬海外站 sections/custom-blogs-dom.liquid：
     标题 → 标签导航 → 头条（65/35）→ 三图拼贴（左大 + 右二）
     → 左大右三（blog_item）
   数值按 1:1 换算（原站 1.33vw / 2.67vw / 22vw 等直接沿用）
   ============================================================ */

.news-blog {
    padding: 5vw 0 6vw;
    background: #f5f6f8;
    scroll-margin-top: 90px;
}

/* ---------- 标题 ---------- */
.news-blogs__title {
    margin-bottom: 1.4vw;
    font-size: 2.2vw;
    font-weight: 900;
    line-height: 1.2;
    color: #0e497d;
}

/* ---------- 标签导航（原站 .blog_nav_arr） ---------- */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6vw;
    margin-bottom: 3vw;
}

.news-tags__item {
    padding: 0.55vw 1.1vw;
    border: 1px solid #0e497d;
    border-radius: 0.6vw;
    font-size: 0.92vw;
    line-height: 1.5;
    color: #0e497d;
    transition: all 0.25s ease;
}

.news-tags__item:hover,
.news-tags__item.is-active {
    background: #0e497d;
    color: #fff;
}

/* ---------- 头条（原站 .custom-blog-banner） ---------- */
.news-feature {
    display: flex;
    align-items: stretch;
    margin-bottom: 3.4vw;
    background: #fff;
    overflow: hidden;
}

.news-feature__img {
    width: 65%;
    min-height: 21vw;
    overflow: hidden;
    background: #e9ecf1;
}

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

.news-feature:hover .news-feature__img img {
    transform: scale(1.04);
}

.news-feature__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.6vw 1.8vw;
}

.news-feature__tag {
    align-self: flex-start;
    margin-bottom: 1.6vw;
    padding: 0.2vw 1vw;
    border: 1px solid #008a60;
    border-radius: 1vw;
    font-size: 0.8vw;
    line-height: 1.6;
    color: #008a60;
    transition: all 0.25s ease;
}

.news-feature__tag:hover {
    background: #008a60;
    color: #fff;
}

.news-feature__title h3 {
    margin-bottom: 1.2vw;
    font-size: 1.4vw;
    font-weight: 600;
    line-height: 1.35;
    color: #262626;
    transition: color 0.25s ease;
}

.news-feature__title:hover h3 {
    color: #0e497d;
}

.news-feature__date {
    margin-bottom: 1.2vw;
    font-size: 0.85vw;
    color: #595959;
}

.news-feature__desc {
    flex: 1;
    font-size: 0.9vw;
    line-height: 1.6;
    color: #595959;
}

.news-feature__btn {
    margin-top: 1.4vw;
    font-size: 0.9vw;
    color: #0e497d;
    transition: color 0.25s ease;
}

.news-feature__btn:hover {
    color: #008a60;
}

/* ---------- 三图拼贴（原站 presentation_item） ---------- */
.news-spot {
    margin-bottom: 3.4vw;
}

.news-spot__head,
.news-split__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6vw;
}

.news-spot__head h3,
.news-split__head h3 {
    font-size: 2.2vw;
    font-weight: 600;
    line-height: 1.2;
    color: #262626;
}

.news-spot__more,
.news-split__more {
    padding: 0.5vw 1vw;
    border-radius: 0.5vw;
    background: #0e497d;
    font-size: 0.85vw;
    line-height: 1.6;
    color: #fff;
    transition: background 0.25s ease;
}

.news-spot__more:hover,
.news-split__more:hover {
    background: #008a60;
    color: #fff;
}

.news-spot__body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.7vw;
    height: 22vw;
}

.news-spot__item {
    position: relative;
    display: block;
    grid-column: span 2;
    overflow: hidden;
}

.news-spot__item.is-first {
    grid-row: span 2;
}

.news-spot__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: transform 0.5s ease;
}

.news-spot__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-spot__item:hover .news-spot__bg {
    transform: scale(1.06);
}

.news-spot__cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.62) 100%);
}

.news-spot__dom {
    width: 100%;
    padding: 1.2vw;
}

.news-spot__dom h4 {
    margin-bottom: 0.5vw;
    font-size: 1.15vw;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}

.news-spot__date {
    font-size: 0.8vw;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- 左大右三（原站 blog_item） ---------- */
.news-split {
    margin-bottom: 1vw;
}

.news-split__body {
    display: flex;
    align-items: stretch;
    gap: 0.7vw;
    /* 必须有确定高度：否则子项的 height:100% / flex-basis:55% 无法解析，
       图片会按自身原图比例把整块撑开 */
    height: 24vw;
}

.news-split__lead {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(50% - 0.35vw);
    min-width: 0;
    background: #fff;
    overflow: hidden;
}

.news-split__lead-img {
    position: relative;
    flex: 0 0 55%;
    min-height: 0;
    overflow: hidden;
    background: #e9ecf1;
}

.news-split__lead-img img,
.news-split__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-split__lead:hover .news-split__lead-img img,
.news-split__item:hover .news-split__item-img img {
    transform: scale(1.06);
}

.news-split__lead-txt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 0;
    padding: 1.2vw;
    overflow: hidden;
}

.news-split__lead-txt h4 {
    margin-bottom: 0.8vw;
    font-size: 1.4vw;
    font-weight: 600;
    line-height: 1.35;
    color: #262626;
    transition: color 0.25s ease;
}

.news-split__lead:hover .news-split__lead-txt h4 {
    color: #0e497d;
}

.news-split__date {
    margin-top: 0.8vw;
    font-size: 0.8vw;
    color: #7a828a;
}

.news-split__side {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 0.7vw;
    flex: 0 0 calc(50% - 0.35vw);
    min-width: 0;
}

.news-split__item {
    display: flex;
    background: #fff;
    overflow: hidden;
}

.news-split__item-img {
    position: relative;
    width: 45%;
    overflow: hidden;
    background: #e9ecf1;
}

.news-split__item-txt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 0.9vw;
}

.news-split__item-txt h4 {
    font-size: 1vw;
    font-weight: 600;
    line-height: 1.35;
    color: #262626;
    transition: color 0.25s ease;
}

.news-split__item:hover .news-split__item-txt h4 {
    color: #0e497d;
}

/* 图片上的「阅读全文」遮罩（原站 list-item-layer） */
.news-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.85vw;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

a:hover .news-veil {
    opacity: 1;
}

/* ============================================================
   标签视图（?tag=）与相关阅读共用的卡片
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 14px 34px rgba(14, 73, 125, 0.12);
}

.news-card__img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f4f7;
}

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

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

.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.4vw;
}

.news-card__tag {
    align-self: flex-start;
    margin-bottom: 0.8vw;
    padding: 0.16vw 0.7vw;
    border: 1px solid #008a60;
    border-radius: 999px;
    font-size: 0.72vw;
    line-height: 1.6;
    color: #008a60;
}

.news-card__title {
    margin-bottom: 0.7vw;
    font-size: 1.05vw;
    font-weight: 600;
    line-height: 1.45;
    color: #1f2327;
    transition: color 0.25s ease;
}

.news-card:hover .news-card__title {
    color: #0e497d;
}

.news-card__desc {
    flex: 1;
    font-size: 0.85vw;
    line-height: 1.7;
    color: #7a828a;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1vw;
    padding-top: 0.8vw;
    border-top: 1px solid #f0f2f5;
    font-size: 0.78vw;
    color: #a3abb3;
}

.news-empty {
    grid-column: 1 / -1;
    padding: 5vw 0;
    text-align: center;
    font-size: 1vw;
    color: #9aa4ae;
}

.news-empty a {
    color: #0e497d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 分页 */
.news-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6vw;
    margin-top: 3.5vw;
}

.news-pager a,
.news-pager span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4vw;
    height: 2.4vw;
    padding: 0 0.6vw;
    border: 1px solid #d8dee5;
    border-radius: 8px;
    font-size: 0.9vw;
    color: #5b6670;
    transition: all 0.25s ease;
}

.news-pager a:hover {
    border-color: #0e497d;
    color: #0e497d;
}

.news-pager .is-current {
    background: #0e497d;
    border-color: #0e497d;
    color: #fff;
}

.news-pager .is-disabled {
    color: #c9cfd6;
    cursor: default;
}

/* ================= 移动端 ================= */
@media screen and (max-width: 960px) {
    .news-blog {
        padding: 8vw 0 10vw;
    }

    .news-blogs__title {
        margin-bottom: 3vw;
        font-size: 5.2vw;
    }

    .news-tags {
        gap: 2vw;
        margin-bottom: 6vw;
    }

    .news-tags__item {
        padding: 1.2vw 3.4vw;
        border-radius: 2vw;
        font-size: 3.2vw;
    }

    /* 头条：上下堆叠（原站 flex-direction: column-reverse） */
    .news-feature {
        flex-direction: column;
        margin-bottom: 8vw;
    }

    .news-feature__img {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .news-feature__body {
        padding: 4vw;
    }

    .news-feature__tag {
        margin-bottom: 3vw;
        padding: 0.6vw 2.4vw;
        border-radius: 3vw;
        font-size: 2.8vw;
    }

    .news-feature__title h3 {
        margin-bottom: 2.4vw;
        font-size: 4.4vw;
    }

    .news-feature__date {
        margin-bottom: 2.4vw;
        font-size: 2.8vw;
    }

    .news-feature__desc {
        font-size: 3.2vw;
    }

    .news-feature__btn {
        margin-top: 3vw;
        font-size: 3.2vw;
    }

    /* 拼贴：改为纵向卡片（原站移动端为横向白底卡） */
    .news-spot,
    .news-split {
        margin-bottom: 8vw;
    }

    .news-spot__head,
    .news-split__head {
        margin-bottom: 4vw;
    }

    .news-spot__head h3,
    .news-split__head h3 {
        font-size: 4.6vw;
    }

    .news-spot__more,
    .news-split__more {
        padding: 1.4vw 3vw;
        border-radius: 2vw;
        font-size: 3vw;
    }

    .news-spot__body {
        display: flex;
        flex-direction: column;
        gap: 3vw;
        height: auto;
    }

    .news-spot__item {
        display: flex;
        flex-direction: row-reverse;
        height: 30vw;
        background: #fff;
    }

    .news-spot__bg {
        position: relative;
        width: 45%;
        height: 100%;
    }

    .news-spot__cover {
        position: relative;
        align-items: center;
        flex: 1;
        background: #fff;
    }

    .news-spot__dom {
        padding: 3vw;
    }

    .news-spot__dom h4 {
        margin-bottom: 1.6vw;
        font-size: 3.6vw;
        color: #262626;
    }

    .news-spot__date {
        font-size: 2.8vw;
        color: #7a828a;
    }

    /* 左大右三：纵向 */
    .news-split__body {
        flex-direction: column;
        gap: 3vw;
        height: auto;   /* 覆盖桌面端的固定高度 */
    }

    .news-split__lead,
    .news-split__side {
        flex: 0 0 auto;
        width: 100%;
    }

    .news-split__lead-img {
        flex: 0 0 auto;
        aspect-ratio: 16 / 9;
    }

    .news-split__lead-txt {
        padding: 4vw;
    }

    .news-split__lead-txt h4 {
        margin-bottom: 2vw;
        font-size: 4.2vw;
    }

    .news-split__date {
        margin-top: 2vw;
        font-size: 2.8vw;
    }

    .news-split__side {
        grid-auto-rows: auto;
        gap: 3vw;
    }

    .news-split__item {
        height: 26vw;
    }

    .news-split__item-txt {
        padding: 2.4vw 3vw;
    }

    .news-split__item-txt h4 {
        font-size: 3.4vw;
    }

    .news-veil {
        font-size: 3vw;
    }

    /* 标签视图卡片 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 5vw;
    }

    .news-card__body {
        padding: 4vw;
    }

    .news-card__tag {
        margin-bottom: 2.4vw;
        padding: 0.6vw 2.4vw;
        font-size: 2.6vw;
    }

    .news-card__title {
        margin-bottom: 2vw;
        font-size: 4vw;
    }

    .news-card__desc {
        font-size: 3.2vw;
    }

    .news-card__meta {
        margin-top: 3vw;
        padding-top: 2.4vw;
        font-size: 2.8vw;
    }

    .news-empty {
        padding: 12vw 0;
        font-size: 3.4vw;
    }

    .news-pager {
        gap: 2vw;
        margin-top: 8vw;
    }

    .news-pager a,
    .news-pager span {
        min-width: 8vw;
        height: 8vw;
        padding: 0 2vw;
        font-size: 3.2vw;
    }
}
