/* lists-article-news.css - 顶级作用域前缀 .lists-article-news */
.lists-article-news main {
    padding: 0;
}

/* 统一容器宽度，匹配 Figma 1440 稿中的 998px 内容区 */
.lists-article-news .jing-container {
    max-width: 998px;
    margin: 0 auto;
    padding: 0;
}

/* ==========================================================================
   默认布局 (Desktop-1440) - 基础样式
   适用于屏幕宽度 > 1279px 的所有桌面端
   ========================================================================== */
.lists-article-news .jing-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 66px;
    row-gap: 34px;
    margin-top: 50px;
}

/* 列表标题样式 (Figma: news-cube -> title) */
.lists-article-news .news-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 168px;
    padding: 35px 0;
}

.lists-article-news .news-list-title::before {
    content: "";
    display: block;
    width: 81px;
    height: 2px;
    background-color: #000;
}

.lists-article-news .news-list-title-text {
    font-family: 'Open Sans Condensed', 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 35px;
    color: #000;
    padding: 0 27px;
}

/* 卡片整体链接，覆盖包裹全卡的 a 标签的默认样式 */
.lists-article-news .jing-card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 移除鼠标悬浮在卡片上时的默认下划线与颜色变更 */
.lists-article-news .jing-card-link:hover .jing-card-title,
.lists-article-news .jing-card-link:hover .jing-card-category {
    text-decoration: none;
}

/* 卡片样式适配 (Figma: Generated Design) */
.lists-article-news .jing-card-item {
    background-color: #fff;
    border-bottom: 1px solid #000;
    height: 410px;
    width: 100%; /* 由 grid 控制宽度 */
    position: relative;
    display: flex;
    flex-direction: column;
}

.lists-article-news .jing-card-image-container {
    height: 195px;
    width: 100%;
    overflow: hidden; /* 防止图片溢出 */
    flex-shrink: 0;
}

/* 图片铺满容器且剪裁多余部分 */
.lists-article-news .jing-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lists-article-news .jing-card-body {
    padding: 25px 29px; /* Figma: left[29px], top[220px] 对应卡片内 padding-top: 25px (220-195) */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.lists-article-news .jing-card-category {
    font-family: 'Cormorant Garamond', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #e7581a;
    line-height: normal;
    margin: 0 0 5px 0;
}

.lists-article-news .jing-card-title {
    font-family: 'Open Sans Condensed', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #00437a;
    line-height: 1.4;
    margin: 0;
}

/* Pagination Styling Adjustment to match layout visually */
.lists-article-news .pagination {
    background-color: #fff;
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    justify-content: center;
}

.lists-article-news .pagination a, 
.lists-article-news .pagination span {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 24px;
    line-height: 40px;
    color: #00437a;
    border: none;
    padding: 0;
    margin: 0;
    font-weight: 300;
}

.lists-article-news .pagination .active,
.lists-article-news .pagination .current {
    color: #e7581a;
    font-weight: 700;
    background: none;
}

.lists-article-news .pagination .next {
    width: 35px;
    height: 15px;
    background: url('../images/right-arrow.png') no-repeat center; /* 假设有此资源 */
    background-size: contain;
    text-indent: -9999px;
}

/* ==========================================================================
   响应式断点 (Figma Breakpoints)
   ========================================================================== */

/* 1. 平板/小屏断点 (Pad-1280)
   当窗口宽度 <= 1279px 时生效
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
    /* Main 内容区适配 */
    .lists-article-news .jing-container {
        max-width: 599px; /* Figma 1280 稿中 list 的宽度为 599px */
        margin: 0 auto;
        padding: 0;
    }

    .lists-article-news .news-list-title {
        width: 599px;
        margin: 0 auto;
    }

    .lists-article-news .jing-news-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 1280 稿下为 2 列 */
        column-gap: 27px; /* 599 - 286*2 = 27 */
        row-gap: 34px;
        margin-top: 0;
        justify-content: center;
    }

    .lists-article-news .pagination {
        max-width: 599px;
        margin: 20px auto 0;
    }
}

/* 2. 手机断点 (Phone-768)
   当窗口宽度 <= 767px 时生效
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* 移动端新闻列表适配 */
    .lists-article-news .jing-container {
        padding: 0 30px;
        max-width: 704px; /* Figma 767 稿中 list 的宽度为 599px */
    }

    .lists-article-news .news-list-title {
        height: 168px;
        width: 100%; 
        padding: 35px 0px;
        justify-content: flex-start;
        align-items: center;
        display: flex;
        gap: 10px;
    }

    .lists-article-news .news-list-title::before {
        width: 81px;
        height: 2px;
        background-color: #000;
        content: '';
        display: block;
    }

    .lists-article-news .news-list-title-text {
        font-size: 35px;
        font-family: 'Open Sans Condensed', sans-serif;
        font-weight: 300;
        padding: 0 27px;
    }

    .lists-article-news .jing-news-grid {
        display: flex;
        flex-direction: column;
        gap: 47px;
        align-items: center;
        width: 100%;
    }

    .lists-article-news .jing-card-item {
        width: 100%;
        height: auto;
        border: 1px solid #a6a6a6;
        padding-bottom: 30px;
        display: flex;
        flex-direction: column;
    }

    .lists-article-news .jing-card-image-container {
        height: 260px;
        width: 100%;
        overflow: hidden;
        flex-shrink: 0;
    }

    .lists-article-news .jing-card-body {
        height: auto;
        padding: 20px 20px 0; /* 移动端给文字内容添加边距 */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .lists-article-news .jing-card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .lists-article-news .pagination {
        gap: 30px;
        padding: 20px 0;
    }

    .lists-article-news .pagination a, 
    .lists-article-news .pagination span {
        font-size: 24px;
        font-family: 'Open Sans Condensed', sans-serif;
    }
}
