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

body.news-page {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: #f4f7fb;
    line-height: 1.7;
}

body.news-page a {
    color: inherit;
    text-decoration: none;
}

.news-main {
    padding-bottom: 48px;
}

.news-page-main {
    padding-top: 0;
}

.news-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.news-left {
    position: sticky;
    top: 102px;
    align-self: start;
}

.news-panel {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 13px;
}

.news-breadcrumb a:hover {
    color: #16a34a;
}

.news-breadcrumb .cur {
    color: #111827;
}

/* 左侧分类 */
.news-side-nav {
    padding: 8px 0 12px;
}

.news-side-nav h2 {
    margin: 0;
    padding: 12px 16px 10px;
    font-size: 16px;
}

.news-cate-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-cate-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: #374151;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.news-cate-item a:hover,
.news-cate-item.is-active a {
    background: #f0fdf4;
    color: #16a34a;
    border-left-color: #16a34a;
}

.news-cate-icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.news-mini-card {
    margin-top: 12px;
    padding: 16px;
    text-align: center;
}

.news-mini-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.news-mini-card p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.news-mini-card img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* 中间列表 */
.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
}

.news-tabs {
    display: flex;
    gap: 18px;
}

.news-tab {
    position: relative;
    padding: 4px 0 10px;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

.news-tab.is-active {
    color: #16a34a;
}

.news-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: #16a34a;
}

.news-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-select {
    min-width: 120px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 13px;
}

.news-list {
    padding: 4px 0 8px;
}

.news-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.news-card:last-child {
    border-bottom: 0;
}

.news-card-media {
    position: relative;
    width: 168px;
    height: 126px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.news-card-cover-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.news-card-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
}

.news-card-cover-badge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 8px 6px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.72) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    pointer-events: none;
}

.news-card-media.has-error .news-card-cover-link {
    display: none;
}

.news-card-fallback.is-error-fallback {
    display: none;
    position: absolute;
    inset: 0;
}

.news-card-media.has-error .news-card-fallback.is-error-fallback {
    display: flex;
}

.news-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    color: #fff;
}

.news-card-fallback.tone-1 { background: linear-gradient(135deg, #34d399, #059669); }
.news-card-fallback.tone-2 { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.news-card-fallback.tone-3 { background: linear-gradient(135deg, #fb923c, #ea580c); }
.news-card-fallback.tone-4 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.news-card-fallback.tone-5 { background: linear-gradient(135deg, #f472b6, #db2777); }

.news-card-cate {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.news-card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.45;
}

.news-card-body h3 a:hover {
    color: #16a34a;
}

.news-badges {
    display: inline-flex;
    gap: 6px;
    margin-right: 8px;
    vertical-align: middle;
}

.news-badges:empty {
    display: none;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.news-badge-top {
    background: #ecfdf5;
    color: #16a34a;
}

.news-badge-hot {
    background: #fef2f2;
    color: #ef4444;
}

.news-card-desc {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.news-card-tag {
    padding: 2px 8px;
    border-radius: 4px;
    background: #ecfdf5;
    color: #16a34a;
    font-size: 12px;
}

.news-card-meta {
    display: flex;
    gap: 16px;
    color: #94a3b8;
    font-size: 13px;
}

.news-empty {
    padding: 48px 16px;
    text-align: center;
    color: #64748b;
}

.news-static-tip {
    margin: 0;
    padding: 10px 16px;
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
}

.news-pager,
.news-page .pager {
    margin-top: 0;
    padding: 14px 16px 18px;
    border-top: 1px solid #eef2f7;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    color: #64748b;
    font-size: 13px;
}

.news-page .pager-summary {
    margin: 0;
    color: #64748b;
}

.news-page .pager-summary b {
    color: #111827;
    font-weight: 700;
}

.news-page .pager-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 auto;
}

.news-pager a,
.news-pager span,
.news-page .pager-btn,
.news-page .pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.news-pager a:hover,
.news-page .pager-btn:hover {
    border-color: #16a34a;
    color: #16a34a;
}

.news-pager .cur,
.news-page .pager-btn.cur {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    font-weight: 700;
}

.news-pager .disabled,
.news-page .pager-btn.disabled,
.news-page .pager-btn.disabled:hover {
    color: #cbd5e1;
    border-color: #e8edf3;
    background: #f8fafc;
    cursor: not-allowed;
}

.news-page .pager-ellipsis {
    border-color: transparent;
    background: transparent;
    min-width: 24px;
    padding: 0 4px;
    color: #94a3b8;
}

/* 右侧 */
.news-widget {
    padding: 14px 16px 16px;
}

.news-widget + .news-widget {
    margin-top: 12px;
}

.news-widget h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.news-hot-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px dashed #eef2f7;
}

.news-hot-item:last-child {
    border-bottom: 0;
}

.news-hot-no {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}

.news-hot-item:nth-child(-n+3) .news-hot-no {
    background: #ffedd5;
    color: #ea580c;
}

.news-hot-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.news-hot-title:hover {
    color: #16a34a;
}

.news-hot-meta {
    color: #94a3b8;
    font-size: 12px;
}

.news-subscribe {
    padding: 18px 16px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    text-align: center;
}

.news-subscribe p {
    margin: 0 0 12px;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.news-subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.news-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-tag-cloud a {
    padding: 5px 10px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 12px;
}

.news-tag-cloud a:hover {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #16a34a;
}

/* 资讯详情 */
.news-detail-wrap {
    padding-bottom: 48px;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    align-items: start;
}

.news-detail-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    padding: 28px 32px 36px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.news-detail-cover {
    max-width: 720px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.news-detail-cover img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    background: #f8fafc;
}

.news-detail-card h1 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.35;
}

.news-detail-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
    color: #94a3b8;
    font-size: 14px;
}

.news-detail-content {
    color: #374151;
    font-size: 16px;
    line-height: 1.85;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
}

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

.news-detail-nav-item {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
}

.news-detail-nav-label {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.news-detail-nav-item a,
.news-detail-nav-empty {
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
    font-size: 14px;
    line-height: 1.55;
}

.news-detail-nav-item a:hover {
    color: #16a34a;
}

.news-detail-nav-next {
    text-align: right;
}

.news-detail-nav-empty {
    color: #cbd5e1;
}

.news-detail-side .news-widget + .news-widget {
    margin-top: 12px;
}

.news-detail-side {
    position: sticky;
    top: 102px;
    align-self: start;
}

.news-related-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eef2f7;
}

.news-related-item:last-child {
    border-bottom: 0;
}

.news-related-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.55;
}

.news-related-title:hover {
    color: #16a34a;
}

.news-related-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.news-side-empty {
    margin: 0;
    padding: 8px 0 4px;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .news-layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .news-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-detail-side {
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .news-detail-side .news-widget + .news-widget {
        margin-top: 0;
    }

    .news-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .news-widget + .news-widget {
        margin-top: 0;
    }
}

@media (max-width: 980px) {
    .news-left {
        display: none;
    }
}

@media (max-width: 820px) {
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-left {
        position: static;
    }

    .news-detail-nav {
        grid-template-columns: 1fr;
    }

    .news-detail-nav-next {
        text-align: left;
    }

    .news-detail-side {
        grid-template-columns: 1fr;
    }

    .news-right {
        grid-template-columns: 1fr;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card-media {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 220px;
    }

    .news-page .pager {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .news-page .pager-summary {
        text-align: center;
    }

    .news-page .pager-nav {
        justify-content: center;
    }
}
