:root {
    --rg-blue: #3159ad;
    --rg-blue-dark: #24478f;
    --rg-blue-soft: #edf3ff;
    --rg-ink: #142542;
    --rg-muted: #748298;
    --rg-line: #e2e8f1;
    --rg-bg: #f3f6fa;
    --rg-card: #ffffff;
    --rg-green: #1c9b70;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
    color: var(--rg-ink);
    background: var(--rg-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", Arial, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.headline-topbar {
    height: 58px;
    background: #fff;
    border-bottom: 1px solid var(--rg-line);
}
.headline-topbar-inner {
    width: min(1380px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}
.headline-account {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 650;
}
.headline-auth {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    font-size: 13px;
}
.headline-auth button {
    padding: 4px 2px;
    color: #26364f;
    background: transparent;
    border: 0;
}
.headline-auth button:hover { color: var(--rg-blue); }
.headline-account img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border: 1px solid var(--rg-line);
    border-radius: 50%;
}
.headline-nav {
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
    flex: 1;
    gap: 2px;
}
.headline-nav a {
    position: relative;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 650;
}
.headline-nav a:hover { color: var(--rg-blue); }
.headline-nav a.active::after {
    position: absolute;
    right: 11px;
    bottom: 0;
    left: 11px;
    height: 3px;
    content: "";
    background: #3975ff;
    border-radius: 3px 3px 0 0;
}
.headline-language {
    padding: 3px;
    display: flex;
    flex: 0 0 auto;
    border: 1px solid #cbd9f2;
    border-radius: 999px;
    background: #fff;
}
.headline-language button {
    min-width: 54px;
    height: 34px;
    color: #5c6b80;
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
}
.headline-language button.active {
    color: #fff;
    background: #3975ff;
}

.headline-brandbar { background: var(--rg-blue); }
.headline-brandbar-inner {
    width: min(1380px, calc(100% - 40px));
    min-height: 92px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(360px, 720px) auto;
    align-items: center;
    gap: 36px;
}
.headline-brand {
    display: flex;
    align-items: center;
    gap: 17px;
}
.headline-brand img { width: 115px; }
.headline-brand > span { width: 1px; height: 48px; background: rgba(255,255,255,.32); }
.headline-brand strong { color: #fff; line-height: 1.35; white-space: nowrap; }
.headline-search {
    height: 46px;
    display: flex;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
}
.headline-search input {
    min-width: 0;
    padding: 0 18px;
    flex: 1;
    color: var(--rg-ink);
    border: 0;
    outline: 0;
}
.headline-search button {
    width: 120px;
    color: #fff;
    background: var(--rg-blue-dark);
    border: 2px solid #fff;
    border-radius: 6px;
    font-weight: 700;
}
.headline-updated {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}
.headline-live-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    background: #6ce6b7;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(108,230,183,.15);
}

.headline-shell {
    width: min(1380px, calc(100% - 40px));
    margin: 22px auto 54px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}
.headline-filter,
.headline-results {
    background: var(--rg-card);
    border: 1px solid var(--rg-line);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(29, 53, 93, .04);
}
.headline-filter {
    position: sticky;
    top: 14px;
    overflow: hidden;
}
.headline-filter section {
    padding: 20px;
    border-bottom: 1px solid var(--rg-line);
}
.headline-filter section:last-child { border-bottom: 0; }
.headline-filter h2 {
    margin: 0 0 15px;
    font-size: 15px;
}
.headline-filter-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}
.headline-filter-options button {
    min-height: 36px;
    padding: 7px 9px;
    color: #59687c;
    background: #fff;
    border: 1px solid #dce3ed;
    border-radius: 6px;
}
.headline-filter-options button.active {
    color: var(--rg-blue);
    background: var(--rg-blue-soft);
    border-color: #9ab8f5;
    font-weight: 700;
}
.headline-filter-options-stack { grid-template-columns: 1fr; }
.headline-filter-options-stack button { text-align: left; }
.headline-clean-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #5e6c80;
    background: #f8fbff;
    font-size: 12px;
    line-height: 1.6;
}
.headline-clean-note > span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: var(--rg-green);
    border-radius: 50%;
    font-weight: 800;
}
.headline-clean-note p { margin: 0; }
.headline-clean-note strong { color: #34445c; }

.headline-results { min-width: 0; overflow: hidden; }
.headline-results-head {
    padding: 24px 26px 21px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--rg-line);
}
.headline-eyebrow {
    margin: 0 0 5px;
    color: var(--rg-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}
.headline-results-head h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
}
.headline-results-head p:last-child {
    margin: 6px 0 0;
    color: var(--rg-muted);
    font-size: 13px;
}
.headline-sort {
    padding: 3px;
    display: flex;
    flex: 0 0 auto;
    background: #f2f5fa;
    border-radius: 7px;
}
.headline-sort button {
    min-width: 62px;
    height: 34px;
    color: #65748a;
    background: transparent;
    border: 0;
    border-radius: 6px;
}
.headline-sort button.active {
    color: var(--rg-blue);
    background: #fff;
    box-shadow: 0 2px 8px rgba(30,56,101,.08);
    font-weight: 750;
}
.headline-day {
    padding: 0 26px;
}
.headline-day-label {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #536177;
    border-bottom: 1px solid var(--rg-line);
    font-size: 13px;
    font-weight: 750;
}
.headline-day-label span:first-child {
    color: var(--rg-blue);
    font-size: 18px;
}
.headline-item {
    padding: 22px 0;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    border-bottom: 1px solid var(--rg-line);
    cursor: pointer;
    transition: background-color .16s ease, box-shadow .16s ease;
}
.headline-item:hover {
    background: #f9fbff;
    box-shadow: 18px 0 #f9fbff, -18px 0 #f9fbff;
}
.headline-item:focus-visible {
    outline: 2px solid #3975ff;
    outline-offset: 4px;
    border-radius: 4px;
}
.headline-item:last-child { border-bottom: 0; }
.headline-time {
    padding-top: 3px;
    color: #8491a4;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.headline-item-main { min-width: 0; }
.headline-category {
    width: fit-content;
    margin-bottom: 7px;
    padding: 3px 8px;
    color: #315dae;
    background: #edf3ff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 750;
}
.headline-category.company { color: #9b5a1a; background: #fff3e7; }
.headline-category.macro { color: #7c4aac; background: #f7efff; }
.headline-category.technology { color: #147f78; background: #e9faf7; }
.headline-item h2 {
    margin: 0;
    color: #142746;
    cursor: pointer;
    font-size: 18px;
    line-height: 1.5;
}
.headline-item h2:hover,
.headline-item h2:focus-visible,
.headline-open-hint:hover,
.headline-open-hint:focus-visible {
    color: var(--rg-blue);
    text-decoration: underline;
    outline: none;
}
.headline-summary {
    margin: 8px 0 10px;
    display: -webkit-box;
    overflow: hidden;
    color: #647287;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.headline-attachments {
    margin: -1px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.headline-attachments span,
.headline-attachments a {
    max-width: min(100%, 360px);
    padding: 4px 8px;
    display: inline-block;
    overflow: hidden;
    color: #52647d;
    background: #f4f7fb;
    border: 1px solid #e1e7f0;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.25;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.headline-attachments a.available {
    color: var(--rg-blue);
    background: #f7faff;
    border-color: #b9caea;
    cursor: pointer;
}
.headline-attachments a.available:hover,
.headline-attachments a.available:focus-visible {
    background: #eaf1ff;
    border-color: var(--rg-blue);
    outline: none;
}
.headline-attachments span.unavailable {
    color: #8995a7;
    background: #f7f8fa;
    border-style: dashed;
    cursor: not-allowed;
}
.headline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    color: #98a3b3;
    font-size: 12px;
}
.headline-open-hint {
    color: var(--rg-blue);
    cursor: pointer;
    font-weight: 750;
}
.headline-bilingual-button {
    min-width: 104px;
    height: 38px;
    margin-top: 24px;
    color: var(--rg-blue);
    background: #fff;
    border: 1px solid #b9caea;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.headline-bilingual-button:hover {
    color: #fff;
    background: var(--rg-blue);
    border-color: var(--rg-blue);
}
.headline-bilingual-button:disabled {
    color: #9aa6b7;
    background: #f4f6f9;
    border-color: #e1e6ee;
    cursor: default;
}
.headline-compare {
    grid-column: 2 / 4;
    padding: 17px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #f8faff;
    border: 1px solid #e0e8f6;
    border-radius: 8px;
}
.headline-item.expanded .headline-compare { display: grid; }
.headline-compare section {
    min-width: 0;
    padding-right: 4px;
}
.headline-compare section + section {
    padding-left: 16px;
    border-left: 1px solid #dfe7f4;
}
.headline-compare h3 {
    margin: 0 0 8px;
    color: var(--rg-blue);
    font-size: 12px;
    letter-spacing: .08em;
}
.headline-compare p {
    margin: 0;
    color: #45546a;
    line-height: 1.75;
    white-space: pre-line;
}
.headline-empty {
    min-height: 420px;
    padding: 80px 24px;
    color: var(--rg-muted);
    text-align: center;
}
.headline-error strong { color: #c24444; }
.headline-error p { margin: 9px 0 18px; }
.headline-error button,
.headline-pagination button {
    min-width: 88px;
    height: 36px;
    color: var(--rg-blue);
    background: #fff;
    border: 1px solid #b9caea;
    border-radius: 7px;
    font-weight: 700;
}
.headline-pagination {
    padding: 22px 26px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #66758b;
    border-top: 1px solid var(--rg-line);
    font-size: 13px;
}
.headline-pagination[hidden] { display: none; }
.headline-pagination button:disabled {
    color: #aab3c0;
    background: #f4f6f9;
    border-color: #e4e8ee;
    cursor: default;
}

body.headline-modal-open { overflow: hidden; }
.headline-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    padding: 28px;
    display: grid;
    place-items: center;
}
.headline-detail-modal[hidden] { display: none; }
.headline-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 29, 52, .62);
    backdrop-filter: blur(3px);
}
.headline-detail-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    background: #fff;
    border: 1px solid #dce5f3;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 29, 52, .28);
}
.headline-detail-close {
    position: sticky;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    margin: 14px 14px -54px auto;
    display: grid;
    place-items: center;
    color: #52647d;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #dce5f3;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}
.headline-detail-close:hover {
    color: #fff;
    background: var(--rg-blue);
    border-color: var(--rg-blue);
}
.headline-detail-content { padding: 42px 52px 58px; }
.headline-detail-content h2 {
    max-width: calc(100% - 42px);
    margin: 10px 0 13px;
    color: var(--rg-ink);
    font-size: 28px;
    line-height: 1.45;
}
.headline-detail-meta {
    margin-bottom: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #8793a5;
    font-size: 13px;
}
.headline-detail-summary {
    margin: 0 0 22px;
    padding: 17px 19px;
    background: #f4f7fd;
    border-left: 4px solid var(--rg-blue);
    border-radius: 0 8px 8px 0;
}
.headline-detail-summary h3 {
    margin: 0 0 8px;
    color: var(--rg-blue);
    font-size: 11px;
    letter-spacing: .08em;
}
.headline-detail-summary p,
.headline-detail-note { margin: 0; line-height: 1.75; }
.headline-detail-note {
    margin-bottom: 18px;
    padding: 10px 13px;
    color: #6f5a2c;
    background: #fff8df;
    border: 1px solid #f1df9c;
    border-radius: 7px;
    font-size: 13px;
}
.headline-detail-body {
    color: #34445c;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.headline-detail-loading {
    min-height: 360px;
    display: grid;
    place-items: center;
    color: var(--rg-muted);
    text-align: center;
}
.headline-detail-loading p { margin: 8px 0 0; }

@media (max-width: 1100px) {
    .headline-topbar-inner { overflow-x: auto; }
    .headline-brandbar-inner { grid-template-columns: 260px minmax(320px, 1fr); }
    .headline-updated { display: none; }
    .headline-nav a { padding: 0 9px; font-size: 14px; }
}
@media (max-width: 760px) {
    .headline-topbar { height: auto; }
    .headline-topbar-inner {
        width: 100%;
        padding: 10px 14px 0;
        display: block;
    }
    .headline-account { display: none; }
    .headline-auth { display: none !important; }
    .headline-nav {
        height: 46px;
        overflow-x: auto;
    }
    .headline-language { position: absolute; top: 10px; right: 12px; }
    .headline-brandbar-inner {
        width: calc(100% - 28px);
        padding: 16px 0;
        display: block;
    }
    .headline-brand { display: none; }
    .headline-search { width: 100%; }
    .headline-shell {
        width: calc(100% - 24px);
        margin-top: 12px;
        display: block;
    }
    .headline-filter { position: static; margin-bottom: 12px; }
    .headline-filter section:nth-child(2),
    .headline-clean-note { display: none; }
    .headline-filter-options { grid-template-columns: repeat(3, 1fr); }
    .headline-results-head { padding: 19px 17px; }
    .headline-results-head h1 { font-size: 24px; }
    .headline-day { padding: 0 17px; }
    .headline-item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
    .headline-attachments span,
    .headline-attachments a { max-width: 100%; }
    .headline-bilingual-button { grid-column: 2; margin-top: 2px; width: fit-content; }
    .headline-compare { grid-column: 1 / 3; grid-template-columns: 1fr; }
    .headline-compare section + section {
        padding: 15px 0 0;
        border-top: 1px solid #dfe7f4;
        border-left: 0;
    }
    .headline-detail-modal { padding: 0; }
    .headline-detail-panel {
        width: 100%;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
    }
    .headline-detail-content { padding: 32px 20px 48px; }
    .headline-detail-content h2 { font-size: 22px; }
}
