/* news 模块：list / category / search */
.news-page--list,
.news-page--category,
.news-page--list.container,
.news-page--category.container {
    position: relative;
    background: #fff;
}

.news-page--list .main,
.news-page--category .main {
    padding-top: 18px;
    padding-bottom: 32px;
}

.news-page--list .content,
.news-page--category .content {
    display: grid;
    gap: 14px;
}

.news-topic-hero-box > .mcon,
.news-topic-list-box > .mcon,
.news-channel-hero-box > .mcon,
.news-channel-list-box > .mcon,
.news-page--category .box > .mcon {
    padding: 14px 12px;
}

.news-topic-hero,
.news-channel-hero {
    display: grid;
    gap: 12px;
}

.news-topic-hero-main,
.news-channel-hero-main {
    display: grid;
    gap: 10px;
}

.news-topic-kicker,
.news-channel-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding-left: 4px;
    border-left: 3px solid var(--m-primary);
    border-radius: 6px;
    background: transparent;
    color: var(--m-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.news-topic-desc,
.news-channel-desc {
    font-size: 14px;
}

.news-topic-tags,
.news-channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-topic-tags span,
.news-channel-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--m-border);
    border-radius: 6px;
    background: #fff;
    color: var(--m-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.news-topic-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.news-topic-entry-card {
    display: grid;
    gap: 6px;
    padding: 12px 11px;
    border: 1px solid var(--m-border);
    border-radius: 6px;
    background: #fff;
}

.news-topic-entry-card strong,
.news-topic-panel-head h3,
.news-topic-section-head h2,
.news-channel-section-head h2,
.news-channel-section-head h3 {
    font-size: 16px;
}

.news-topic-entry-card span,
.news-topic-section-head p,
.news-channel-section-head p {
    color: var(--m-text-soft);
    font-size: 13px;
}

.news-topic-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.news-topic-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.news-topic-panel-head,
.news-topic-section-head,
.news-channel-section-head,
.news-channel-card-top,
.news-channel-article-meta,
.news-channel-simple-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
}

.news-topic-article-list {
    display: grid;
    gap: 0;
    margin-top: 12px;
    border-top: 1px solid var(--m-border);
}

.w6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-topic-article-list li {
    border-bottom: 1px solid var(--m-border);
}

.news-topic-article-list li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.news-topic-article-text {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--m-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
}

.news-channel-article-title a,
.news-channel-simple-title a {
    color: var(--m-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.news-channel-card-badge {
    color: var(--m-primary);
    font-size: 12px;
    font-weight: 700;
}

.news-channel-card-date,
.news-channel-article-meta span,
.news-channel-simple-meta span,
.news-topic-pagination,
.news-channel-pagination {
    color: var(--m-text-faint);
    font-size: 12px;
    line-height: 1.55;
}

.news-channel-side {
    padding: 12px;
    border: 1px solid var(--m-border);
    border-radius: 6px;
    background: #fff;
}

.news-topic-pagination a,
.news-channel-pagination a,
.news-channel-more-link {
    color: var(--m-primary);
}

.news-channel-article-list,
.news-channel-simple-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.news-channel-article-card,
.news-channel-simple-item {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--m-border);
    border-radius: 6px;
    background: #fff;
}

.news-channel-article-cover {
    overflow: hidden;
    border-radius: 6px;
    background: var(--m-surface);
}

.news-channel-article-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-channel-empty-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: var(--m-text-faint);
    font-size: 13px;
    background: var(--m-surface);
}

.news-channel-article-info,
.news-channel-simple-info {
    display: grid;
    gap: 8px;
}

.news-channel-cate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.news-channel-cate-item a {
    display: grid;
    gap: 8px;
    min-height: 100%;
    padding: 12px 11px;
    border: 1px solid var(--m-border);
    border-radius: 6px;
    background: #fff;
}

.news-channel-cate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--m-border);
    border-radius: 6px;
    background: var(--m-surface);
    color: var(--m-primary);
    font-size: 16px;
    font-weight: 800;
}

.news-channel-cate-name {
    color: var(--m-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.news-channel-cate-desc,
.news-channel-article-desc,
.news-channel-simple-desc {
    color: var(--m-text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.news-search-page {
    margin: 10px 0;
    background: #fff;
}

.news-search-header {
    margin: 0;
    background: #fff;
}

.news-search-info {
    padding: 32px 20px 28px;
    text-align: center;
    background: linear-gradient(180deg, #f2f7fc 0%, #ffffff 100%);
    border-bottom: 8px solid var(--m-surface, #f5f7fa);
}

.news-search-title {
    font-size: 26px;
    color: var(--m-primary, #0056cc);
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.news-search-meta {
    margin: 0;
    color: var(--m-text-soft, #888);
    font-size: 13px;
}

.news-search-meta span {
    color: var(--m-text, #222);
    font-weight: 700;
    font-family: Arial, sans-serif;
    font-size: 15px;
    margin: 0 4px;
}

.news-search-results {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.news-search-item {
    display: grid;
    gap: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #fff;
    border: 1px solid var(--m-border, #eee);
}

.news-search-result-title {
    margin-bottom: 8px;
    width: 100%;
    overflow: hidden;
}

.news-search-result-title a {
    color: #222;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-search-result-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    /* margin-bottom: 12px; */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-search-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 12px;
    /* margin-top: 10px; */
    padding-top: 6px;
    border-top: 1px dashed #f0f0f0;
}

.news-search-result-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-search-result-meta .meta-item.date {
    color: #aaa;
}



.news-search-empty {
    padding: 40px 15px;
    text-align: center;
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--m-border, #eee);
}

.news-search-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.news-search-empty h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.news-search-empty p {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
    margin-top: 0;
}

.news-search-empty p span {
    color: #ff5e5e;
}

.news-search-empty .empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.news-search-empty .btn-home {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    background: var(--m-primary, #0056cc);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.news-search-empty .btn-back {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    border: 1px solid #ccc;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.news-search-page .news-search-highlight {
    padding: 0 2px;
    background: #fff2a8;
    color: inherit;
}

.news-topic-pagination,
.news-channel-pagination,
.news-search-pagination {
    padding: 14px 0;
}

.news-topic-pagination .pagination,
.news-channel-pagination .pagination,
.news-search-pagination .pagination,
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-topic-pagination .pagination a,
.news-topic-pagination .pagination span,
.news-channel-pagination .pagination a,
.news-channel-pagination .pagination span,
.news-search-pagination .pagination a,
.news-search-pagination .pagination span,
.pagination a,
.pagination span,
.pagination .current {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    /* padding: 0 10px; */
    border-radius: 999px;
    background: #fff;
    color: var(--m-text-soft);
    font-size: 12px;
}

.news-topic-pagination .pagination .active a,
.news-topic-pagination .pagination .active span,
.news-channel-pagination .pagination .active a,
.news-channel-pagination .pagination .active span,
.news-search-pagination .pagination .active a,
.news-search-pagination .pagination .active span,
.pagination .active a,
.pagination .active span,
.pagination .current {
    background: var(--m-primary);
    color: #fff;
}

.news-topic-pagination a,
.news-channel-pagination a,
.news-search-pagination a,
.news-channel-more-link {
    color: var(--m-primary);
}

.news-topic-kicker,
.news-channel-kicker {
    min-height: 0;
    padding-left: 4px;
    border-left-width: 3px;
    line-height: 1.2;
}

.news-topic-panel-head,
.news-topic-section-head,
.news-channel-section-head {
    align-items: center;
}

.news-topic-panel-head > div,
.news-topic-section-head > div,
.news-channel-section-head > div {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.news-topic-panel-head h3,
.news-topic-section-head h2,
.news-channel-section-head h2,
.news-channel-section-head h3 {
    position: relative;
    min-width: 0;
    padding-left: 12px;
    font-size: 18px;
    line-height: 1.4;
}

.news-topic-panel-head h3::before,
.news-topic-section-head h2::before,
.news-channel-section-head h2::before,
.news-channel-section-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 16px;
    background: var(--m-primary);
    transform: translateY(-50%);
}

.news-topic-section-head p,
.news-channel-section-head p {
    margin-left: auto;
    color: var(--m-text-faint);
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
}

.news-topic-hero-box > .mcon,
.news-channel-hero-box > .mcon {
    padding-top: 18px;
    padding-bottom: 14px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 58%);
}

.news-topic-list-box > .mcon,
.news-channel-list-box > .mcon,
.news-page--category .box > .mcon {
    padding: 16px 14px;
}

.news-topic-entry-grid,
.news-channel-cate-grid,
.news-channel-article-list,
.news-channel-simple-list,
.news-search-results {
    gap: 8px;
}

.news-topic-entry-card,
.news-channel-article-card,
.news-channel-simple-item,
.news-channel-cate-item a,
.news-search-item {
    border-radius: var(--m-card-inner-radius);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}

.news-topic-entry-card,
.news-channel-cate-item a {
    padding: 10px;
}

.news-topic-article-list {
    margin-top: 10px;
    border-top: 0;
    gap: 8px;
}

.news-topic-article-list li {
    border-bottom: 0;
}

.news-topic-article-list li a {
    padding: 10px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-card-inner-radius);
    background: #fff;
}

.news-channel-article-card,
.news-channel-simple-item,
.news-search-item {
    padding: 12px;
}

.news-channel-article-info,
.news-channel-simple-info,
.news-search-item {
    gap: 6px;
}

.news-channel-article-title a,
.news-channel-simple-title a,
.news-topic-article-text,
.news-search-result-title a {
    font-size: 15px;
    line-height: 1.6;
}

.news-channel-article-desc,
.news-channel-simple-desc,
.news-search-result-summary {
    color: var(--m-text-soft);
    font-size: 13px;
    line-height: 1.75;
}





/* news 子页面改为通栏，列表结构跟随首页的块级节奏 */
.news-page--list .content,
.news-page--category .content,
.news-search-page > .site-shell,
.news-page--show.news-article-shell,
.news-page--show.container.news-article-shell {
    width: 100%;
    margin: 0;
}

.news-search-page > .site-shell > .m-breadcrumb {
    margin-right: 14px;
    margin-left: 14px;
}

.news-topic-hero-box,
.news-topic-list-box,
.news-channel-hero-box,
.news-channel-list-box,
.news-page--category .box,
.news-search-header,
.news-search-results {
    margin-top: 0;
    border: 0;
    border-radius: 0;
}

.news-topic-hero-box > .mcon,
.news-topic-list-box > .mcon,
.news-channel-hero-box > .mcon,
.news-channel-list-box > .mcon,
.news-page--category .box > .mcon,
.news-search-info,
.news-search-results {
    padding-left: 12px;
    padding-right: 12px;
}

@media (max-width: 350px) {
    .news-topic-entry-grid,
    .news-channel-cate-grid {
        grid-template-columns: 1fr;
    }
}
