:root {
    color-scheme: light;
    --ink: #18263a;
    --muted: #526176;
    --navy: #101c30;
    --paper: #fff;
    --canvas: #f4f5f8;
    --line: #dce2eb;
    --accent: #a44727;
    --accent-soft: #faebe3;
    --display: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
    color: var(--ink);
    font: 1rem/1.65 "Inter", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; }

a:focus-visible {
    outline: 2px solid #b65a36;
    outline-offset: 4px;
}

a:hover { color: var(--accent); }

.news-skip {
    position: absolute;
    left: 16px;
    top: -120px;
    z-index: 2;
    padding: .6rem 1rem;
    background: var(--paper);
}

.news-skip:focus { top: .75rem; }

.news-shell {
    width: min(1160px, calc(100% - 72px));
    margin-inline: auto;
}

.news-masthead {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.news-masthead-inner, .news-site-nav {
    display: flex;
    align-items: center;
}

.news-masthead-inner {
    justify-content: space-between;
    gap: 12px 28px;
    min-height: 68px;
}

.news-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    color: var(--ink);
    font-size: 1.26rem;
    font-weight: 760;
    text-decoration: none;
}

.news-logo::before {
    content: "";
    width: 23px;
    height: 23px;
    border: 5px solid #b96542;
    border-right-color: var(--navy);
    border-radius: 50%;
    transform: rotate(-28deg);
}

.news-site-nav { gap: clamp(.9rem, 3vw, 2.2rem); }

.news-site-nav a {
    display: block;
    padding: 22px 0 19px;
    border-bottom: 3px solid transparent;
    font-size: .94rem;
    text-decoration: none;
    white-space: nowrap;
}

.news-site-nav a[aria-current] {
    border-bottom-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
}

.news-main {
    flex: 1;
    padding: 34px 0 56px;
}

.news-page-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.news-detail h1, .news-state h1 {
    margin: 0;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.news-tabs, .news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.news-tabs {
    margin: 0 0 22px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);
}

.news-tabs a, .news-pagination a {
    padding: 6px 14px;
    border-radius: 7px;
    color: var(--muted);
    font-size: .92rem;
    text-decoration: none;
}

.news-tabs a:hover, .news-pagination a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.news-tabs a[aria-current="page"] {
    background: var(--navy);
    color: #fff;
    font-weight: 660;
}

.news-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 29%);
    gap: 24px;
    align-items: start;
}

.news-side-card h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 750;
}

.news-articles, .news-empty, .news-side-card, .news-state, .news-detail {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

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

.news-item { padding: 19px 25px; }
.news-item + .news-item { border-top: 1px solid var(--line); }

.news-item.has-cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(80px, 16vw, 144px);
    align-items: start;
    gap: clamp(10px, 2.5vw, 22px);
}

.news-item-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    background: var(--canvas);
    object-fit: cover;
}

.news-item-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .45rem .8rem;
    color: var(--accent);
    font-size: .85rem;
}

.news-date {
    color: var(--muted);
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

.news-item h2 {
    margin: .35rem 0 0;
    font-size: 1.25rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.news-item h2 a { text-decoration: none; }
.news-item h2 a:hover { text-decoration: underline; }

.news-item p {
    margin: .4rem 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.news-empty {
    display: grid;
    align-content: center;
    justify-items: start;
    min-height: 156px;
    gap: 12px;
    padding: 24px;
}

.news-empty h2 { margin: 0; color: var(--muted); font-size: 1rem; }

.news-side-card { padding: 18px 21px 9px; }

.news-side-card h2 {
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.news-side-link {
    position: relative;
    display: grid;
    gap: 1px;
    padding: 10px 23px 10px 0;
    text-decoration: none;
}

.news-side-link + .news-side-link { border-top: 1px solid var(--line); }

.news-side-link::after {
    position: absolute;
    right: 2px;
    top: 15px;
    content: "↗";
    color: var(--accent);
    font-size: .91rem;
}

.news-side-link strong { font-size: .94rem; }
.news-side-link span { color: var(--muted); font-size: .8rem; }

.news-pagination { justify-content: center; margin-top: 1.4rem; }
.news-pagination a { border: 1px solid var(--line); background: var(--paper); }
.news-pagination span { padding-inline: .4rem; color: var(--muted); }

.news-crumb {
    width: min(100%, 820px);
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 0 auto .85rem;
    color: var(--muted);
    font-size: .92rem;
}

.news-detail {
    max-width: 820px;
    margin-inline: auto;
    padding: clamp(1.3rem, 5vw, 3.45rem);
}

.news-detail-header {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}

.news-detail h1, .news-state h1 {
    font-family: var(--display);
    font-size: clamp(1.75rem, 4.2vw, 2.7rem);
}

.news-detail .news-date { display: inline-block; margin-top: .75rem; }

.news-lead {
    margin: .9rem 0 0;
    color: var(--muted);
    font-size: 1.12rem;
    overflow-wrap: anywhere;
}

.news-prose { margin-top: 1.35rem; line-height: 1.9; overflow-wrap: anywhere; }
.news-prose p { margin: 0 0 1rem; }
.news-prose p:last-child { margin-bottom: 0; }
.news-prose h2 { margin: 1.75rem 0 .55rem; font-size: clamp(1.08rem, 2.3vw, 1.36rem); line-height: 1.45; }
.news-inline-image { margin: 1.4rem 0; }
.news-inline-image img { display: block; width: 100%; height: auto; border-radius: 9px; background: var(--canvas); }
.news-inline-image figcaption { margin: .45rem 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.news-back { display: table; margin: 1.4rem auto 0; color: var(--accent); }

.news-state { padding: 2rem; }
.news-state p { margin: .85rem 0 1.15rem; color: var(--muted); }

.news-action {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #edc5b2;
    border-radius: 7px;
    background: var(--accent-soft);
    color: #8a381e;
    font-size: .89rem;
    font-weight: 650;
    text-decoration: none;
}

.news-action:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.news-footer {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.news-footer .news-shell {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.25rem;
    padding: 1rem 0;
    color: var(--muted);
    font-size: .88rem;
}

.news-footer a { text-decoration: none; }
.news-footer a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .news-shell { width: calc(100% - 32px); }
    .news-main { padding-top: 19px; }
    .news-body-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-tabs { margin-bottom: 15px; }
}

@media (max-width: 480px) {
    .news-masthead-inner { flex-wrap: wrap; min-height: 0; gap: 0; }
    .news-logo { margin-top: 11px; }
    .news-site-nav { width: 100%; }
    .news-site-nav a { padding: 9px 0 7px; font-size: .83rem; }
    .news-tabs { gap: 5px; padding-block: 0 12px; }
    .news-tabs a { padding: 5px 9px; font-size: .86rem; }
    .news-item, .news-empty { padding: 17px; }
}
