:root {
    --ne-red: #d71920;
    --ne-red-dark: #a90f15;
    --ne-green: #2bb79a;
    --ne-coral: #f46f61;
    --ne-ink: #222;
    --ne-muted: #666;
    --ne-subtle: #999;
    --ne-line: #e6e6e6;
    --ne-soft-line: #f1f1f1;
    --ne-bg: #fff;
    --ne-panel: #fff;
    --ne-soft: #f7f8fa;
}

* {
    box-sizing: border-box;
}

.ne-body {
    margin: 0;
    background: var(--ne-bg);
    color: var(--ne-ink);
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    overflow-x: hidden;
}

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

.ne-main {
    min-height: 60vh;
    background: var(--ne-bg);
}

.ne-shell {
    width: min(1200px, calc(100vw - 40px));
    margin: 0 auto;
}

.ne-globalbar {
    background: #2b2b2b;
    color: #d6d6d6;
    font-size: 12px;
}

.ne-globalbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: 16px;
}

.ne-globalbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ne-globalbar a:hover {
    color: #fff;
}

.ne-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--ne-line);
    background: rgba(255, 255, 255, .97);
}

.ne-header-row {
    display: flex;
    align-items: center;
    min-height: 72px;
    gap: 24px;
}

.ne-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    min-width: 180px;
    color: var(--ne-ink);
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

.ne-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 34px;
    border-radius: 4px;
    background: var(--ne-red);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.ne-topnav {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 18px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.ne-topnav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 72px;
    border-bottom: 3px solid transparent;
}

.ne-topnav a:hover,
.ne-topnav a.is-active {
    color: var(--ne-red);
    border-bottom-color: var(--ne-red);
}

.ne-search {
    display: flex;
    align-items: center;
    width: 260px;
    margin-left: auto;
    border: 1px solid var(--ne-line);
    border-radius: 4px;
    background: #f7f7f7;
    overflow: hidden;
}

.ne-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    padding: 9px 10px;
    color: var(--ne-ink);
    font-size: 13px;
    outline: none;
}

.ne-search button {
    flex: 0 0 auto;
    border: 0;
    background: var(--ne-red);
    padding: 9px 13px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.ne-mobile-menu {
    display: none;
    margin-left: auto;
    color: var(--ne-ink);
}

.ne-channel-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 16px;
    background: #fff;
}

.ne-channel {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--ne-line);
    border-radius: 4px;
    padding: 0 12px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.ne-channel:hover,
.ne-channel.is-active {
    border-color: var(--ne-red);
    background: var(--ne-red);
    color: #fff;
}

.ne-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) 320px;
    gap: 36px;
    align-items: start;
    padding: 26px 0 44px;
}

.ne-feed {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.ne-home-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 26px;
    border-bottom: 2px solid #222;
    padding: 6px 0 24px;
}

.ne-home-lead-main h1 {
    margin: 8px 0 0;
    color: var(--ne-ink);
    font-size: 34px;
    line-height: 1.28;
    font-weight: 800;
}

.ne-home-lead-main,
.ne-home-headlines,
.ne-article-card > div,
.ne-post-column {
    min-width: 0;
}

.ne-home-lead-main h1,
.ne-home-headlines a,
.ne-home-headlines span,
.ne-page-title,
.ne-article-title,
.ne-article-h1,
.ne-hot-item,
.ne-related-card,
.ne-prose {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ne-home-lead-main h1 a:hover {
    color: var(--ne-red);
}

.ne-home-lead-main p {
    margin: 13px 0 0;
    color: var(--ne-muted);
    font-size: 15px;
    line-height: 1.75;
}

.ne-home-headlines {
    display: grid;
    align-content: start;
    gap: 10px;
    border-left: 1px solid var(--ne-line);
    padding-left: 22px;
}

.ne-home-headlines a,
.ne-home-headlines span {
    display: block;
    color: #333;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.ne-home-headlines a:hover {
    color: var(--ne-red);
}

.ne-mini-title,
.ne-page-kicker {
    color: var(--ne-subtle);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.ne-hot-carousel {
    display: grid;
    gap: 8px;
    border: 1px solid var(--ne-line);
    border-radius: 4px;
    background: #fff;
    padding: 0 14px 10px;
}

.ne-breaking {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.ne-breaking.is-active {
    display: flex;
}

.ne-breaking strong {
    flex: 0 0 auto;
    border-radius: 3px;
    background: var(--ne-red);
    padding: 2px 7px;
    color: #fff;
    font-size: 12px;
}

.ne-hot-dots {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.ne-hot-dots button {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: #d8d8d8;
}

.ne-hot-dots button.is-active {
    width: 18px;
    background: var(--ne-red);
}

.ne-page-head {
    border-bottom: 2px solid #222;
    padding: 8px 0 22px;
}

.ne-page-title {
    margin: 8px 0 0;
    color: var(--ne-ink);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 800;
}

.ne-page-desc {
    margin: 10px 0 0;
    color: var(--ne-muted);
    font-size: 15px;
    line-height: 1.7;
}

.ne-category-head {
    border-bottom-color: var(--ne-green);
}

.ne-category-head .ne-page-kicker,
.ne-category-head .ne-page-title {
    color: var(--ne-green);
}

.ne-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.ne-category-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #d9eee9;
    border-radius: 4px;
    background: #f5fffc;
    padding: 0 13px;
    color: #168970;
    font-size: 14px;
    font-weight: 700;
}

.ne-category-tabs a:hover,
.ne-category-tabs a.is-active {
    border-color: var(--ne-coral);
    background: var(--ne-coral);
    color: #fff;
}

.ne-feed-card {
    display: grid;
    gap: 0;
}

.ne-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid var(--ne-line);
    padding: 0 0 12px;
    color: var(--ne-ink);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.ne-section-title::before {
    content: "";
    flex: 0 0 auto;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--ne-red);
}

.ne-title-row {
    min-width: 0;
}

.ne-article-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 18px;
    border-bottom: 1px solid var(--ne-soft-line);
    padding: 18px 0;
}

.ne-article-card:hover {
    background: #fafafa;
}

.ne-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--ne-subtle);
    font-size: 13px;
    line-height: 1.45;
}

.ne-pill {
    color: var(--ne-red);
    font-weight: 700;
}

.ne-article-title {
    margin: 7px 0 0;
    color: var(--ne-ink);
    font-size: 21px;
    line-height: 1.38;
    font-weight: 800;
}

.ne-article-title a:hover {
    color: var(--ne-red);
}

.ne-article-summary {
    margin: 8px 0 0;
    color: var(--ne-muted);
    font-size: 14px;
    line-height: 1.72;
}

.ne-card-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--ne-subtle);
    font-size: 13px;
    font-weight: 700;
}

.ne-card-action:hover {
    color: var(--ne-red);
}

.ne-thumb {
    display: grid;
    place-items: center;
    min-height: 90px;
    border-radius: 4px;
    background: #f5f5f5;
    color: var(--ne-red);
    font-size: 32px;
    font-weight: 900;
}

.ne-sidebar,
.ne-post-aside {
    position: sticky;
    top: 128px;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.ne-panel {
    border-top: 2px solid #222;
    background: var(--ne-panel);
    padding-top: 12px;
}

.ne-panel .ne-section-title {
    border-bottom: 0;
    padding-bottom: 8px;
}

.ne-hot-list {
    display: grid;
    gap: 0;
}

.ne-hot-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--ne-soft-line);
    padding: 10px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.ne-hot-item:hover {
    color: var(--ne-red);
}

.ne-hot-index {
    color: var(--ne-subtle);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
}

.ne-hot-item:nth-child(1) .ne-hot-index {
    color: var(--ne-red);
}

.ne-hot-item:nth-child(2) .ne-hot-index {
    color: var(--ne-coral);
}

.ne-hot-item:nth-child(3) .ne-hot-index {
    color: #d79b00;
}

.ne-feed-panel-title {
    margin: 8px 0 0;
    color: var(--ne-ink);
    font-size: 23px;
    line-height: 1.25;
    font-weight: 800;
}

.ne-feed-panel-desc {
    margin: 10px 0 0;
    color: var(--ne-muted);
    font-size: 14px;
    line-height: 1.7;
}

.ne-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) 320px;
    gap: 36px;
    align-items: start;
    padding: 30px 0 54px;
}

.ne-post-column {
    min-width: 0;
}

.ne-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--ne-subtle);
    font-size: 13px;
    line-height: 1.6;
}

.ne-breadcrumb a {
    color: #555;
    font-weight: 700;
}

.ne-breadcrumb a:hover {
    color: var(--ne-red);
}

.ne-breadcrumb span:last-child {
    min-width: 0;
    max-width: 100%;
}

.ne-article-main {
    border-bottom: 1px solid var(--ne-line);
    padding-bottom: 34px;
}

.ne-article-h1 {
    margin: 0;
    color: var(--ne-ink);
    font-size: 36px;
    line-height: 1.28;
    font-weight: 800;
}

.ne-post-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: var(--ne-subtle);
    font-size: 13px;
    line-height: 1.5;
}

.ne-post-info a {
    color: var(--ne-red);
    font-weight: 700;
}

.ne-article-excerpt {
    border-left: 4px solid var(--ne-line);
    margin: 26px 0 0;
    padding: 0 0 0 16px;
    color: #555;
    font-size: 17px;
    line-height: 1.8;
}

.ne-prose {
    margin-top: 28px;
    color: #222;
    font-size: 17px;
    line-height: 1.95;
}

.ne-prose p,
.ne-prose ul,
.ne-prose ol,
.ne-prose blockquote,
.ne-prose table {
    margin: 1.1em 0;
}

.ne-prose h2 {
    margin: 2em 0 .75em;
    border-left: 4px solid var(--ne-red);
    padding-left: 12px;
    color: var(--ne-ink);
    font-size: 24px;
    line-height: 1.35;
    font-weight: 800;
}

.ne-prose h3 {
    margin: 1.7em 0 .65em;
    color: var(--ne-ink);
    font-size: 20px;
    line-height: 1.4;
    font-weight: 800;
}

.ne-prose a {
    color: var(--ne-red);
    font-weight: 700;
}

.ne-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 24px auto;
}

.ne-prose figcaption {
    display: none;
}

.ne-prose blockquote {
    border-left: 4px solid var(--ne-line);
    padding-left: 16px;
    color: #555;
}

.ne-prose .article-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--ne-line);
    border-radius: 4px;
}

.ne-prose table,
.ne-prose .article-table {
    width: max(680px, 100%);
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.7;
}

.ne-prose th,
.ne-prose td {
    border: 1px solid var(--ne-line);
    padding: 12px 14px;
    vertical-align: top;
}

.ne-prose th {
    background: var(--ne-soft);
    font-weight: 800;
}

.ne-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.ne-tag-list span {
    border: 1px solid var(--ne-line);
    border-radius: 4px;
    padding: 5px 10px;
    color: #555;
    font-size: 13px;
    font-weight: 700;
}

.ne-related-block {
    margin-top: 26px;
}

.ne-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.ne-related-card {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--ne-soft-line);
    padding: 12px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.ne-related-card:hover {
    color: var(--ne-red);
}

.ne-related-index {
    color: var(--ne-red);
    font-weight: 800;
    text-align: center;
}

.ne-ad-slot {
    margin-top: 30px;
    border: 1px solid var(--ne-line);
    border-radius: 4px;
    background: #fafafa;
    padding: 16px;
}

.ne-ad-slot h2 {
    margin: 0 0 8px;
    color: var(--ne-ink);
    font-size: 16px;
    line-height: 1.4;
}

.ne-footer {
    border-top: 1px solid var(--ne-line);
    background: #f8f8f8;
}

.ne-footer-inner {
    padding: 26px 0;
    color: var(--ne-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.ne-feed nav[role="navigation"] {
    margin-top: 14px;
}

@media (max-width: 1080px) {
    .ne-shell {
        width: min(100% - 32px, 960px);
    }

    .ne-header-row {
        gap: 18px;
    }

    .ne-brand {
        min-width: auto;
    }

    .ne-search {
        display: none;
    }

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

    .ne-sidebar,
    .ne-post-aside {
        position: static;
        display: none;
    }
}

@media (max-width: 820px) {
    .ne-shell {
        width: min(100% - 20px, 960px);
    }

    .ne-globalbar {
        display: none;
    }

    .ne-header-row {
        min-height: 58px;
    }

    .ne-brand {
        font-size: 20px;
    }

    .ne-brand-mark {
        width: 34px;
        height: 30px;
        font-size: 18px;
    }

    .ne-topnav {
        display: none;
    }

    .ne-mobile-menu {
        display: inline-flex;
    }

    .ne-layout,
    .ne-article-layout {
        gap: 20px;
        padding: 18px 0 34px;
    }

    .ne-home-lead {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ne-home-lead-main h1,
    .ne-page-title,
    .ne-article-h1 {
        font-size: 28px;
        line-height: 1.28;
    }

    .ne-home-headlines {
        border-left: 0;
        border-top: 1px solid var(--ne-line);
        padding: 14px 0 0;
    }

    .ne-article-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ne-thumb {
        display: none;
    }

    .ne-related-grid {
        grid-template-columns: 1fr;
    }

    .ne-prose {
        font-size: 16px;
        line-height: 1.85;
    }

    .ne-prose h2 {
        font-size: 22px;
    }
}

/*
 * Mobile-first guardrails sit last so long Chinese/English mixed headlines
 * cannot keep the homepage lead in the desktop two-column shape.
 */
.ne-home-lead {
    grid-template-columns: minmax(0, 1fr);
}

.ne-home-headlines {
    border-left: 0;
    border-top: 1px solid var(--ne-line);
    padding: 14px 0 0;
}

@media (min-width: 821px) {
    .ne-home-lead {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

    .ne-home-headlines {
        border-left: 1px solid var(--ne-line);
        border-top: 0;
        padding: 0 0 0 22px;
    }
}
