/* 在专题列表模板的 body 上添加 topic-news-page。 */
/* 新闻列表的日期、标题、详情箭头三列布局 */
.topic-news-page #main .news-list {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: max(90px, 0.9rem);
    padding: 12px 0.6rem 12px 0.3rem;
    margin-bottom: 0.2rem;
    border-radius: 12px;
    background-color: #fafafa;
    transition: background-color 0.4s;
}

.topic-news-page #main .news-list .date {
    flex: 0 0 max(52px, 0.52rem);
    color: #c2c4c7;
    font-weight: 700;
}

.topic-news-page #main .news-list .date p {
    font-size: 0.2rem;
}

.topic-news-page #main .news-list .date span {
    font-size: 0.16rem;
}

.topic-news-page #main .news-list .title {
    flex: 1;
    min-width: 0;

}

.topic-news-page #main .news-list .title a {
    display: block;
    align-content: center;
    box-sizing: border-box;
    min-height: max(56px, 0.56rem);
    padding: 6px 0.2rem 6px 0.3rem;
    color: #333;
    font-size: 0.2rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.topic-news-page #main .news-list .icon {
    flex: 0 0 max(50px, 0.5rem);
}

.topic-news-page #main .news-list .icon a {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: url(/thdk/lib/public/images/news_gd.svg) center / contain no-repeat;
}

.topic-news-page #main .news-list:is(:hover, :focus-within) {
    background-color: #e8f1f8;
}

.topic-news-page #main .news-list:is(:hover, :focus-within) .date {
    color: #7a8b99;
}

.topic-news-page #main .news-list:is(:hover, :focus-within) .title a {
    color: #1363aa;
    font-weight: 700;
}

.topic-news-page #main .news-list:is(:hover, :focus-within) .icon a {
    background-image: url(/thdk/lib/public/images/news_gd_h.svg);
}

/* 使用 CMS 分页原有配色，扩大分页链接的可点击区域。 */
.topic-news-page .xpage-pagination-pager .t {
    text-align: center;
}

.topic-news-page .xpage-pagination-pager .btn {
    cursor: pointer;
}

.topic-news-page .xpage-pagination-pre .fenyea,
.topic-news-page .xpage-pagination-next .fenyea,
.topic-news-page .xpage-pagination-pre a,
.topic-news-page .xpage-pagination-next a,
.topic-news-page .xpage-pagination-num a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

@media screen and (max-width: 750px) {
    .topic-news-page #main .news-list {
        padding: 12px;
        margin-bottom: 12px;
    }

    .topic-news-page #main .news-list .date p {
        font-size: 20px;
    }

    .topic-news-page #main .news-list .date span,
    .topic-news-page #main .news-list .title a {
        font-size: 16px;
    }

    .topic-news-page #main .news-list .title {
        margin-left: 10px;
    }

    .topic-news-page #main .news-list .title a {
        min-height: 0;
        padding-left: 12px;
    }

    .topic-news-page #main .news-list .icon {
        display: none;
    }

    .topic-news-page .xpage-pagination {
        gap: 8px;
        margin: 16px 0 32px;
    }

    .topic-news-page .xpage-pagination span,
    .topic-news-page .xpage-pagination-num li,
    .topic-news-page .xpage-pagination-pager input {
        height: 36px;
        margin: 0;
        font-size: 14px;
    }

    .topic-news-page .xpage-pagination-pre,
    .topic-news-page .xpage-pagination-next {
        width: auto;
        min-width: 54px;
    }

    .topic-news-page .xpage-pagination-num .fenyea,
    .topic-news-page .xpage-pagination-pager .fenyea {
        gap: 8px;
        margin: 0;
        font-size: 14px;
    }

    .topic-news-page .xpage-pagination-num li {
        width: 36px;
    }
}
