:root {
    --bg: #f5f6f8;
    --paper: #ffffff;
    --ink: #1f2933;
    --muted: #858b96;
    --line: #eceff3;
    --red: #e4393c;
    --deep-red: #c91f25;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(1200px, calc(100% - 28px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(20, 30, 50, .04);
}

.utility {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    color: #9aa1ab;
    font-size: 12px;
}

.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 13px 0 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    font-size: 23px;
    font-weight: 800;
}

.brand strong {
    display: block;
    font-size: 25px;
    line-height: 1;
    color: #d71920;
    font-weight: 800;
    letter-spacing: 0;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: #9aa1ab;
    font-size: 12px;
}

.search {
    display: flex;
    width: min(455px, 48vw);
    height: 38px;
    border: 2px solid var(--red);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 12px;
    font: inherit;
}

.search button {
    width: 78px;
    border: 0;
    background: var(--red);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 0;
    border-top: 1px solid #f2f3f5;
}

.nav a {
    flex: 0 0 auto;
    padding: 12px 15px;
    color: #333b47;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

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

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

.channel-rail,
.content,
.panel {
    background: var(--paper);
    border: 1px solid var(--line);
}

.channel-rail {
    position: sticky;
    top: 116px;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    padding: 10px 0;
}

.channel-rail strong {
    display: block;
    padding: 0 18px 9px;
    color: #9aa1ab;
    font-size: 13px;
}

.channel-rail a {
    display: block;
    padding: 11px 18px;
    color: #303846;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.channel-rail a.active,
.channel-rail a:hover {
    color: var(--red);
    background: #fff4f4;
    border-left-color: var(--red);
}

.content {
    min-width: 0;
}

.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.lead-main {
    display: grid;
    align-content: end;
    min-height: 230px;
    padding: 24px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(20, 23, 32, .06), rgba(20, 23, 32, .78)),
        linear-gradient(135deg, #d71920, #f2994a);
}

.lead-main span {
    width: max-content;
    padding: 4px 9px;
    background: var(--red);
    font-weight: 700;
}

.lead-main strong {
    display: block;
    margin-top: 13px;
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: 0;
}

.lead-main em {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, .84);
    font-style: normal;
    line-height: 1.7;
}

.lead-stack {
    display: grid;
    gap: 10px;
}

.lead-stack a {
    display: grid;
    align-content: center;
    min-height: 70px;
    padding: 13px 16px;
    border: 1px solid #f0f1f4;
    background: #fafbfc;
}

.lead-stack b {
    color: var(--red);
    font-size: 12px;
}

.lead-stack span {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 0;
}

.feed-head h2,
.panel h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1;
}

.feed-head h2::before,
.panel h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 17px;
    margin-right: 8px;
    vertical-align: -3px;
    background: var(--red);
}

.feed-head span {
    color: var(--muted);
    font-size: 12px;
}

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

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

.news:hover {
    background: #fffafa;
}

.news:hover strong {
    color: var(--red);
}

.thumb {
    display: grid;
    min-height: 86px;
    place-items: center;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent), #fff 18%), var(--accent));
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.news-body strong {
    display: block;
    margin: 1px 0 7px;
    font-size: 20px;
    line-height: 1.34;
    letter-spacing: 0;
}

.news-body em {
    display: block;
    color: #68717d;
    font-style: normal;
    line-height: 1.65;
}

.news-body small,
.meta,
.crumb {
    display: block;
    margin-top: 11px;
    color: var(--muted);
    font-size: 12px;
}

.side {
    display: grid;
    gap: 14px;
}

.panel {
    padding: 17px;
}

.rank {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}

.rank:last-child {
    border-bottom: 0;
}

.rank:first-of-type {
    margin-top: 9px;
}

.rank b {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    background: #f0f2f5;
    color: #9aa1ab;
    font-size: 13px;
}

.rank:nth-of-type(1) b,
.rank:nth-of-type(2) b,
.rank:nth-of-type(3) b {
    background: var(--red);
    color: #fff;
}

.rank span {
    line-height: 1.45;
}

.live p {
    position: relative;
    margin: 0;
    padding: 11px 0 11px 16px;
    color: #596272;
    line-height: 1.55;
    border-bottom: 1px dashed #edf0f4;
}

.live p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.live p:last-child {
    border-bottom: 0;
}

.tags p {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 14px 0 0;
}

.tags a {
    padding: 7px 11px;
    border: 1px solid #edf0f4;
    background: #fafafa;
    color: #4b5563;
}

.article {
    padding: 30px 34px;
}

.article h1 {
    margin: 16px 0 12px;
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.24;
    letter-spacing: 0;
}

.article .lead {
    margin: 26px 0;
    padding: 15px 18px;
    border-left: 4px solid var(--red);
    background: #fafbfc;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.article p {
    color: #273244;
    font-size: 17px;
    line-height: 2;
}

.footer {
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
}

.footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    font-size: 13px;
}

.footer span {
    margin: 0 8px;
}

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

    .channel-rail {
        position: static;
        display: flex;
        gap: 0;
        overflow-x: auto;
        padding: 0;
    }

    .channel-rail strong {
        display: none;
    }

    .channel-rail a {
        flex: 0 0 auto;
        border-left: 0;
        border-bottom: 2px solid transparent;
    }

    .channel-rail a.active,
    .channel-rail a:hover {
        border-bottom-color: var(--red);
    }
}

@media (max-width: 760px) {
    .head,
    .footer .wrap {
        align-items: stretch;
        flex-direction: column;
    }

    .search {
        width: 100%;
    }

    .lead-grid {
        grid-template-columns: 1fr;
    }

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

    .thumb {
        min-height: 76px;
    }
}
