/*
CaspiaSupply Homepage News
独立首页新闻资讯组件
*/

.hnews-section {
    width: calc(100% - 40px);
    max-width: 1420px;
    margin: 64px auto 80px;
    color: #12141a;
    background: #ffffff;
}

.hnews-section *,
.hnews-section *::before,
.hnews-section *::after {
    box-sizing: border-box;
}

.hnews-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.hnews-title {
    margin: 0;
    color: #05070d;
    font-size: clamp(25px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.hnews-description {
    max-width: 520px;
    margin: 0;
    color: #6f6a7b;
    font-size: 14px;
    line-height: 1.75;
    text-align: right;
}

.hnews-grid {
    width: 100%;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.hnews-card {
    min-width: 0;
    transition:
        opacity .45s ease,
        transform .45s ease;
}

.hnews-section.is-enhanced
.hnews-card:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
}

.hnews-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hnews-image {
    width: 100%;
    height: 250px;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f2f7;
}

.hnews-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.hnews-card:hover
.hnews-image img {
    transform: scale(1.035);
}

.hnews-category {
    margin-top: 20px;
    color: #6f6a7b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.hnews-card-title {
    margin: 18px 0;
    color: #05070d;
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -.025em;
}

.hnews-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}

.hnews-card-title a:hover {
    color: #13c7b7;
}

.hnews-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #6f6a7b;
    font-size: 12px;
    line-height: 1.4;
}

.hnews-author {
    color: #05070d;
    font-weight: 700;
}

.hnews-clock {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hnews-meta time {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .hnews-grid {
        gap: 22px;
    }

    .hnews-image {
        height: 220px;
    }
}

@media (max-width: 860px) {
    .hnews-head {
        flex-direction: column;
        margin-bottom: 26px;
    }

    .hnews-description {
        text-align: left;
    }

    .hnews-grid {
        grid-template-columns: 1fr;
    }

    .hnews-image {
        height: 260px;
    }
}

@media (max-width: 560px) {
    .hnews-section {
        margin: 44px 0 56px;
    }

    .hnews-image {
        height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hnews-card,
    .hnews-image img {
        transition: none;
    }

    .hnews-section.is-enhanced
    .hnews-card:not(.is-visible) {
        opacity: 1;
        transform: none;
    }
}


/* HOMEPAGE-NEWS-CONTAINER-V3 */

@media (max-width: 560px) {
    .hnews-section {
        width: calc(100% - 24px);
    }
}
