:root {
    --portal-green: #0b7a53;
    --portal-green-dark: #075d40;
    --portal-blue: #1677c8;
    --portal-red: #d32f2f;
    --portal-ink: #18212b;
    --portal-muted: #68727d;
    --portal-line: #dfe4e8;
    --portal-soft: #f5f7f8;
    --portal-white: #ffffff;
}

* { box-sizing: border-box; }
html { background: var(--portal-white); }
body {
    margin: 0;
    color: var(--portal-ink);
    background: var(--portal-white);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--portal-green); }
img { display: block; max-width: 100%; }
.portal-container { width: 1180px; margin: 0 auto; }
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-topbar { background: #202a34; color: #dbe2e8; font-size: 12px; }
.site-topbar__inner { height: 32px; display: flex; align-items: center; justify-content: space-between; }
.site-branding { height: 100px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: block; width: 250px; height: 88px; overflow: hidden; }
.site-logo img { width: 220px; height: 88px; object-fit: contain; object-position: left center; }
.site-search { display: flex; width: 390px; height: 38px; border: 1px solid #b9c3ca; border-radius: 4px; overflow: hidden; background: #fff; }
.site-search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 0 13px; color: var(--portal-ink); outline: none; font-size: 14px; }
.site-search button { width: 72px; border: 0; color: #fff; background: var(--portal-green); cursor: pointer; font-size: 14px; }
.site-search button:hover { background: var(--portal-green-dark); }
.site-nav { border-top: 1px solid var(--portal-line); border-bottom: 3px solid var(--portal-green); background: #fff; }
.site-nav__inner { display: flex; align-items: stretch; min-height: 44px; overflow: hidden; }
.site-nav__inner a { display: flex; align-items: center; justify-content: center; min-width: 96px; padding: 0 18px; font-size: 15px; font-weight: 600; border-right: 1px solid #edf0f2; }
.site-nav__inner a.active, .site-nav__inner a:hover { color: #fff; background: var(--portal-green); }

.portal-main { padding: 24px 0 42px; }
.home-layout { display: grid; grid-template-columns: 870px 290px; gap: 20px; align-items: start; }
.home-primary, .home-rail { min-width: 0; }
.portal-lead { display: grid; grid-template-columns: 420px 430px; gap: 20px; align-items: start; }
.lead-story { position: relative; height: 300px; overflow: hidden; border-radius: 4px; background: #111; }
.lead-story a, .lead-story img { display: block; width: 100%; height: 100%; }
.lead-story img { object-fit: cover; opacity: .82; }
.lead-story__label { position: absolute; top: 16px; left: 16px; padding: 4px 9px; color: #fff; background: var(--portal-red); font-size: 12px; font-weight: 700; }
.lead-story__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 17px 18px; color: #fff; background: rgba(0,0,0,.72); font-size: 22px; line-height: 1.45; font-weight: 700; }
.section-heading { min-height: 39px; display: flex; align-items: center; justify-content: space-between; border-top: 3px solid var(--portal-green); border-bottom: 1px solid var(--portal-line); }
.section-heading h2 { margin: 0; padding: 0 0 0 11px; border-left: 4px solid var(--portal-blue); font-size: 17px; line-height: 22px; font-weight: 700; }
.section-heading span { color: var(--portal-muted); font-size: 12px; }
.section-heading--red { border-top-color: var(--portal-red); }
.section-heading--red h2 { border-left-color: var(--portal-red); }
.headline-list { margin: 0; padding: 4px 0 0; }
.headline-list li { height: 23px; display: flex; align-items: center; gap: 12px; border-bottom: 1px dotted #e1e4e6; }
.headline-list a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.headline-list time { flex: 0 0 36px; color: #8a939b; text-align: right; font-size: 11px; }
.ranking-list { margin: 0; padding: 6px 0 0; counter-reset: rank; }
.ranking-list li { min-height: 25px; display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; border-bottom: 1px dotted #e1e4e6; }
.ranking-list li > span { flex: 0 0 20px; height: 20px; line-height: 20px; margin-top: 1px; color: #fff; background: #8b949c; text-align: center; font-size: 11px; border-radius: 2px; }
.ranking-list li:nth-child(-n+3) > span { background: var(--portal-red); }
.ranking-list a { flex: 1; line-height: 21px; }

.home-primary > .channel-grid { margin-top: 28px; }
.home-rail > .portal-sidebar { margin-top: 28px; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
.channel-block { min-width: 0; }
.channel-block__header { height: 40px; display: flex; align-items: center; justify-content: space-between; border-top: 3px solid var(--portal-green); border-bottom: 1px solid var(--portal-line); }
.channel-block__header h2 { margin: 0; padding-left: 11px; border-left: 4px solid var(--portal-blue); font-size: 17px; line-height: 22px; }
.channel-block__header > a { color: var(--portal-muted); font-size: 12px; }
.channel-block__list { margin: 0; padding: 6px 0 0; }
.channel-block__list li { height: 27px; display: flex; align-items: center; gap: 10px; border-bottom: 1px dotted #e3e6e8; }
.channel-block__list li::before { content: ""; flex: 0 0 4px; width: 4px; height: 4px; background: #94a0a8; }
.channel-block__list a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.channel-block__list time { flex: 0 0 36px; color: #90989e; font-size: 11px; text-align: right; }
.portal-sidebar { min-width: 0; }
.sidebar-section { margin-bottom: 28px; }
.category-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 10px; padding: 13px 0 0; }
.category-links a { padding: 7px 9px; border: 1px solid var(--portal-line); border-radius: 4px; background: var(--portal-soft); text-align: center; }
.category-links a:hover { border-color: var(--portal-green); background: #fff; }
.sidebar-news { margin: 0; padding: 10px 0 0; }
.sidebar-news li { padding: 9px 0; border-bottom: 1px solid var(--portal-line); }
.sidebar-news a { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 11px; align-items: center; }
.sidebar-news img { width: 96px; height: 64px; object-fit: cover; background: var(--portal-soft); }
.sidebar-news span { font-size: 13px; line-height: 1.5; }
.sidebar-note { padding: 15px 0; border-top: 3px solid var(--portal-blue); border-bottom: 1px solid var(--portal-line); }
.sidebar-note strong { font-size: 16px; }
.sidebar-note p { margin: 6px 0 0; color: var(--portal-muted); font-size: 13px; line-height: 1.75; }

.breadcrumbs { margin-bottom: 18px; padding: 9px 0; color: var(--portal-muted); border-bottom: 1px solid var(--portal-line); font-size: 13px; }
.breadcrumbs a { color: var(--portal-muted); }
.list-layout, .article-layout { display: grid; grid-template-columns: 850px 290px; gap: 40px; align-items: start; }
.page-heading { padding: 0 0 14px; border-bottom: 3px solid var(--portal-green); }
.page-heading h1 { margin: 0; font-size: 26px; line-height: 1.35; }
.page-heading p { margin: 7px 0 0; color: var(--portal-muted); }
.subchannel-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--portal-line); }
.subchannel-nav a { padding: 5px 10px; background: var(--portal-soft); border: 1px solid var(--portal-line); border-radius: 3px; }
.diycontent:empty { display: none; }
.article-feed__list { margin: 0; padding: 0; }
.article-feed__list > li { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 18px; min-height: 146px; padding: 17px 0; border-bottom: 1px solid var(--portal-line); }
.article-feed__image { width: 200px; height: 112px; overflow: hidden; background: var(--portal-soft); }
.article-feed__image img { width: 100%; height: 100%; object-fit: cover; }
.article-feed__content { min-width: 0; }
.article-feed__content h2 { margin: 0; font-size: 19px; line-height: 1.45; }
.article-feed__content p { margin: 8px 0 0; color: var(--portal-muted); line-height: 1.75; }
.article-feed__meta { display: flex; gap: 14px; margin-top: 9px; color: #8a939b; font-size: 12px; }
.sidebar-compact-list { margin: 0; padding: 7px 0 0; }
.sidebar-compact-list li { min-height: 33px; display: flex; align-items: center; gap: 10px; border-bottom: 1px dotted #dfe3e5; }
.sidebar-compact-list a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-compact-list time { color: #90989e; font-size: 11px; }
.jz_pages { padding: 24px 0 0; }
.jz_pages ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.jz_pages li, .jz_pages a, .jz_pages span { display: inline-flex; min-width: 34px; min-height: 34px; align-items: center; justify-content: center; padding: 0 9px; border: 1px solid var(--portal-line); background: #fff; }

.article-detail__header { padding: 4px 0 20px; border-bottom: 1px solid var(--portal-line); }
.article-detail__header h1 { margin: 0; font-size: 32px; line-height: 1.42; font-weight: 700; }
.article-detail__meta { display: flex; gap: 18px; margin-top: 12px; color: var(--portal-muted); font-size: 13px; }
.article-detail__body { padding: 22px 0 10px; font-size: 17px; line-height: 1.95; }
.article-detail__body p { margin: 0 0 18px; }
.article-detail__body img { width: auto; max-width: 100%; height: auto; margin: 18px auto; }
.article-detail__body video, .article-detail__body iframe { max-width: 100%; }
.source-notice { margin-top: 22px; padding: 14px 16px; border-left: 4px solid var(--portal-blue); background: var(--portal-soft); color: var(--portal-muted); }
.source-notice strong { color: var(--portal-ink); }
.source-notice p { margin: 3px 0 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px 0; border-bottom: 1px solid var(--portal-line); }
.article-tags a { padding: 4px 9px; border: 1px solid var(--portal-line); border-radius: 3px; background: var(--portal-soft); font-size: 12px; }
.article-prev-next { padding: 16px 0; }
.article-prev-next p { margin: 6px 0; }
.related-news { margin-top: 34px; }
.related-news > ul { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; padding: 14px 0 0; }
.related-news li { min-width: 0; }
.related-news img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--portal-soft); }
.related-news span { display: block; margin-top: 7px; line-height: 1.55; }

.site-footer { margin-top: 10px; color: #cdd5dc; background: #202a34; border-top: 4px solid var(--portal-green); }
.site-footer__inner { padding: 24px 0 26px; }
.site-footer__nav, .site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 0; border-bottom: 1px solid #39444e; }
.site-footer strong { color: #fff; }
.site-footer a { color: #dfe5e9; }
.site-footer a:hover { color: #fff; }
.site-footer__meta { padding-top: 12px; color: #aeb8c0; font-size: 12px; }
.site-footer__meta p { margin: 4px 0; }

@media (max-width: 1220px) {
    .portal-container { width: 1000px; }
    .home-layout { grid-template-columns: 740px 240px; }
    .portal-lead { grid-template-columns: 350px 370px; }
    .list-layout, .article-layout { grid-template-columns: 720px 250px; gap: 30px; }
}
