/* AI Research Brief - Stylesheet
   Typography: sans-serif body, serif headings.
   Optimized for comfortable long-form reading of mixed Chinese/English content.
   English pages: Source Serif 4 body + Inter headings. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Noto Serif SC Subset";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("/fonts/noto-serif-sc-subset.woff2") format("woff2");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

body {
    font-family: system-ui, -apple-system, "PingFang SC", "Noto Sans SC",
                 "Source Han Sans SC", "Helvetica Neue", sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
    background: #f7f6f1;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-break: strict;
    text-autospace: normal;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
}

/* ── Navigation ────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #d8d6cf;
    font-size: 0.95rem;
}

.site-nav .nav-title {
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.site-nav .nav-title:hover {
    color: #555;
}

.site-nav .nav-title:active {
    opacity: 0.6;
    transition: opacity 0.05s;
}

.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .nav-links li {
    display: flex;
    align-items: center;
}

.site-nav .nav-links a {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
    color: #1a1a1a;
}

.site-nav .nav-links a svg {
    flex-shrink: 0;
    margin-right: 0.35em;
}

.nav-lang {
    transition: color 0.15s;
}

/* ── Article Header ────────────────────── */
header {
    text-align: center;
    padding: 2rem 0 0.5rem;
    margin-bottom: 0;
}

header h1 {
    font-family: "Songti SC", "Noto Serif SC Subset", "Noto Serif SC", "Source Han Serif SC",
                 Georgia, serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.header-date {
    margin-right: 0.5rem;
}

.title-en {
    letter-spacing: 0.02em;
}

.article-meta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: #9a9488;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.article-meta a {
    color: #9a9488;
    text-decoration: underline;
    text-decoration-color: rgba(154, 148, 136, 0.35);
    text-underline-offset: 2px;
}

.article-meta a:hover {
    text-decoration-color: #9a9488;
}


/* ── Article Cover Image ──────────────── */
.article-cover {
    margin: 1.2rem 0;
}
.article-cover img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* ── Main Content ──────────────────────── */
main {
    overflow-wrap: break-word;
}

/* Each h2-section is a separate card */
.article-section {
    background: #fffffe;
    padding: 2.5rem 3rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.2rem;
}

/* Overview — subtitle feel, no card */
.section-overview {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 3rem 1.8rem;
    margin-bottom: 0;
}

.section-overview h2,
.section-featured h2,
.section-notable h2 {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section-overview ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #999;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    cursor: pointer;
}

.section-overview ul.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.section-overview li {
    display: inline;
}

.section-overview li::before {
    content: " ｜ ";
}

.section-overview li:first-child::before {
    content: none;
}

.section-overview li strong {
    color: inherit;
    font-weight: inherit;
}

.section-overview p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #999;
}

/* Red divider after overview */
.section-overview::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #c23028;
    margin: 1.8rem auto 0;
}

/* Spacing before first content card */
.section-overview + .article-section {
    margin-top: 1.8rem;
}

/* Section headings — spacing only, no border */
main h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    letter-spacing: 0.03em;
}

/* Paper titles */
main h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #b82a22;
    margin: 2.5rem 0 0.6rem;
    line-height: 1.55;
}

main h3:first-child {
    margin-top: 0;
}

main p {
    margin: 1.2em 0;
    line-height: 1.85;
    text-align: justify;
}

main strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Links */
main a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
    transition: border-color 0.15s;
}

main a:hover {
    border-bottom-color: #2563eb;
}

/* Blockquotes */
main blockquote {
    border-left: 4px solid #d4c5a9;
    padding: 0.8rem 1.4rem;
    margin: 1.5em 0;
    color: #5a5a5a;
    font-size: 0.95em;
    background: #faf9f5;
    border-radius: 0 4px 4px 0;
}

/* Lists */
main ul, main ol {
    padding-left: 1.5rem;
    margin: 1em 0;
}

main li {
    margin: 0.7rem 0;
    line-height: 1.9;
}

main li strong {
    color: #1a1a1a;
}

/* ── Featured Section (重点关注) ───── */

.section-featured h3 {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: #1a1a1a;
}

.section-featured .paper-num {
    font-size: 2.4rem;
    margin-top: 0.15rem;
}

.paper-title-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.paper-title-col .paper-tag {
    order: 1;
    margin-top: 0.25rem;
}

.section-featured h3:first-of-type {
    margin-top: 0;
}

.section-featured h3:not(:first-of-type) {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #f0eeea;
}

.section-featured hr {
    display: none;
}

.paper-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: #c23028;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Paper Tags (domain labels) ───────── */
.paper-tag {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #9a8d7a;
    background: #f0ece4;
    padding: 0.18em 0.55em 0.22em;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    vertical-align: baseline;
    line-height: 1;
    text-decoration: none;
    border-bottom: none;
}

a.paper-tag:hover {
    background: #e8e3d9;
    color: #7a6f5e;
}

.notable-body .paper-tag {
    font-size: 0.6rem;
    vertical-align: middle;
    position: relative;
    top: -0.08em;
}

/* ── Key Point Tags ──────────────────── */
.key-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.2rem;
}

.key-tag {
    display: inline-block;
    background: #f5f3ee;
    border: 1px solid #e8e5dc;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
}

/* ── Notable Section (也值得关注) ────── */
/* Visually merge with featured as one continuous card */
.section-featured {
    border-radius: 6px;
}

.section-notable {
    border-radius: 6px;
}


.notable-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
}

.notable-item .paper-num {
    font-size: 1.8rem;
    color: #ddd;
    line-height: 1;
    margin-top: 0.25rem;
}

.notable-body strong {
    color: #555;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.7;
}

.notable-desc {
    display: block;
    font-size: 0.95rem;
    color: #888;
    line-height: 1.8;
    margin-top: 0.2rem;
}

.notable-desc a {
    color: #aaa;
    font-size: 0.88rem;
    border-bottom-color: rgba(170, 170, 170, 0.25);
}

.notable-desc a:hover {
    color: #666;
    border-bottom-color: #aaa;
}

.notable-desc a::before {
    content: "↗";
    font-size: 0.75em;
    margin-right: 0.15em;
}

/* ── Observation Section (今日观察) ──── */
.section-observation {
    background: #f0f4f7 !important;
    border-left: 4px solid #7ba3be;
    border-radius: 0 6px 6px 0 !important;
}

.section-observation h2 {
    font-size: 1rem;
    color: #5a7a8f;
}

.section-observation p {
    color: #4a6575;
}

.section-observation strong {
    color: #2c4a5c;
}

/* Paper links — subdued style */
.paper-link {
    font-size: 0.82rem;
    color: #aaa;
    margin-top: 0.6rem !important;
    margin-bottom: 0.2rem !important;
}

.paper-link a {
    color: #999;
    border-bottom-color: rgba(153, 153, 153, 0.25);
}

.paper-link a:hover {
    color: #666;
    border-bottom-color: #999;
}

/* Horizontal rules — between papers */
main hr {
    border: none;
    border-top: 1px solid #eae8e1;
    margin: 2.8rem 0;
}

/* Inline code */
main code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85em;
    background: #f5f4ef;
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

/* ── Index Page: Article Cards ─────────── */
.article-list {
    list-style: none;
    padding: 0;
}

.article-card {
    position: relative;
    background: #fffffe;
    padding: 1.6rem 2rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.article-card:active {
    transform: translateY(0) scale(0.985);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.1s, transform 0.1s;
}

.article-card .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card .card-header {
    margin-bottom: 0.8rem;
}

.article-card .card-date {
    font-size: 0.88rem;
    color: #999;
}

.article-card .card-stat {
    position: absolute;
    top: 1.6rem;
    right: 2rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: #bbb;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.15em 0.5em;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
    z-index: 1;
}

.article-card .card-stat:hover {
    color: #666;
    background: #f0ece4;
}

.article-card .card-numbered {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-card .card-numbered li {
    display: flex;
    gap: 0.8rem;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    color: #888;
    line-height: 1.7;
    align-items: baseline;
    transition: color 0.3s ease;
}

.article-card .card-numbered li .num {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ddd;
    flex-shrink: 0;
    width: 1.8rem;
    text-align: right;
}

.article-card .card-numbered li.lead {
    font-size: 1.13rem;
    color: #333;
    line-height: 1.6;
    padding-bottom: 0.45rem;
    margin-bottom: 0.15rem;
}

.article-card .card-numbered li.lead .num {
    color: #c23028;
}

.article-card .card-numbered li.lead strong {
    color: #b33a2e;
}

.article-card .card-numbered strong {
    font-weight: 650;
    color: #1a1a1a;
}

.article-card:hover .card-numbered li {
    color: #666;
}

.article-card:hover .card-numbered li.lead {
    color: #1a1a1a;
}

.view-all {
    text-align: center;
    margin-top: 1.5rem;
}
.view-all a {
    color: #666;
    font-size: 0.9rem;
}

/* ── Archive Page ──────────────────────── */
.archive-section {
    margin-bottom: 2.5rem;
}

.archive-section h2 {
    font-family: "Songti SC", "Noto Serif SC Subset", "Noto Serif SC", "Source Han Serif SC",
                 Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #eee;
}

.archive-list {
    list-style: none;
    padding: 0;
}

.archive-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.archive-list a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
}

.archive-list a:hover {
    border-bottom-color: #2563eb;
}

.archive-list .type-tag {
    font-family: "JetBrains Mono", monospace;
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.type-tag.daily {
    background: #e8f4f8;
    color: #1a7fa0;
}

.type-tag.weekly {
    background: #fdf2e9;
    color: #b85c1f;
}

/* ── Topics Hub ────────────────────────── */
.topics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.topic-card {
    background: #fffffe;
    padding: 1.35rem 1.6rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.topic-card h2 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.35;
}

.topic-card h2 a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.topic-card h2 a:hover {
    border-bottom-color: #ddd;
}

.topic-count {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #999;
    font-family: "JetBrains Mono", monospace;
}

.topic-preview {
    list-style: none;
    padding: 0;
    margin: 0.65rem 0 0;
}

.topic-preview li {
    margin: 0.35rem 0;
    font-size: 0.9rem;
}

.topic-preview a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 102, 102, 0.18);
}

.topic-preview a:hover {
    border-bottom-color: #666;
}

.topic-more {
    margin-top: 0.7rem;
    font-size: 0.88rem;
}

.topic-more a {
    color: #666;
}

.topic-page-main {
    background: #fffffe;
    padding: 2rem 2.4rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.topic-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-article-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid #f0eeea;
    font-size: 0.95rem;
}

.topic-article-list li:last-child {
    border-bottom: none;
}

.topic-article-date {
    display: inline-block;
    min-width: 7.8rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #999;
    margin-right: 0.55rem;
}

.topic-article-list a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
}

.topic-article-list a:hover {
    border-bottom-color: #2563eb;
}

/* ── Subscribe Form ────────────────────── */
.subscribe-box {
    background: #fffffe;
    padding: 1.8rem 2.2rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    border-top: 1px solid #e8e6df;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    text-align: center;
}

.subscribe-box h3 {
    font-family: "Songti SC", "Noto Serif SC Subset", "Noto Serif SC", "Source Han Serif SC",
                 Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #1a1a1a;
}

.subscribe-box p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.subscribe-box form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.subscribe-box input[type="email"] {
    flex: 1;
    padding: 0.55rem 0.9rem;
    border: 1px solid #d8d6cf;
    border-radius: 3px;
    font-size: 0.92rem;
    font-family: inherit;
}

.subscribe-box input[type="email"]:focus {
    outline: none;
    border-color: #2563eb;
}

.subscribe-box button {
    padding: 0.55rem 1.3rem;
    background: #c23028;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.subscribe-box button:hover {
    background: #a32520;
}

.subscribe-box button:disabled {
    opacity: 0.6;
    cursor: default;
}

.subscribe-msg {
    font-size: 0.92rem;
    margin-top: 0.8rem;
    margin-bottom: 0;
}

.subscribe-ok {
    color: #16753d;
}

.subscribe-err {
    color: #c23028;
}

/* ── Page Title (index/archive) ────────── */
.page-header {
    text-align: center;
    padding: 2.5rem 0 1.8rem;
}

.page-header h1 {
    font-family: "Songti SC", "Noto Serif SC Subset", "Noto Serif SC", "Source Han Serif SC",
                 Georgia, serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.page-header p {
    font-size: 0.92rem;
    color: #999;
}

/* ── Page Subtitle (index) ────────────── */
.page-subtitle {
    font-size: 0.95rem;
    color: #888;
    font-weight: 400;
}

html[lang="en"] .page-subtitle {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Content Pages (methodology, whatsnew, etc.) ── */
/* Shared card style for all content pages.
   Typography inherits from main h2/h3/p — do NOT add font-size overrides here. */
.whatsnew-content,
.methodology-content {
    background: #fffffe;
    padding: 2.5rem 3rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.methodology-content h2 {
    margin-top: 2.2rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.45rem;
}

.methodology-content h2:first-child {
    margin-top: 0;
}

.methodology-content h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.35rem;
    color: #333;
}

.methodology-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.5rem 0;
}

.methodology-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.methodology-content th,
.methodology-content td {
    text-align: left;
    border-bottom: 1px solid #eee;
    padding: 0.45rem 0.4rem;
}

.methodology-content th {
    color: #666;
    font-weight: 600;
}

/* Timeline entry — date left, dot center, content right */
.wn-entry {
    position: relative;
    padding-left: 9rem;
    padding-bottom: 2.5rem;
}

.wn-entry:last-child {
    padding-bottom: 0;
}

/* Date — left column, vertically centered with h2 first line
   h2: 1.15rem * 1.2 line-height → center at 0.69rem */
.wn-date {
    position: absolute;
    left: 0;
    top: calc(0.69rem - 0.39rem);
    width: 6.8rem;
    text-align: right;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #999;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Dot — vertically centered with h2 first line (center at 0.69rem) */
.wn-entry::before {
    content: '';
    position: absolute;
    left: 7.5rem;
    top: calc(0.69rem - 5px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c23028;
    z-index: 1;
}

.wn-entry:not(:first-child)::before {
    width: 8px;
    height: 8px;
    left: calc(7.5rem - 1px);
    top: calc(0.69rem - 6px);
    background: #f7f6f1;
    border: 2px solid #d8d6cf;
}

/* Connecting line — horizontally centered with dot (7.5rem + 5px - 1px) */
.wn-entry::after {
    content: '';
    position: absolute;
    left: calc(7.5rem + 4px);
    top: calc(0.69rem + 5px);
    bottom: calc(-0.69rem + 4px);
    width: 2px;
    background: #e8e6df;
}

.wn-entry:not(:first-child)::after {
    top: calc(0.69rem + 4px);
}

.wn-entry:last-child::after {
    display: none;
}

/* Content — right column */
.wn-entry p {
    font-size: 0.95rem;
    color: #444;
    margin: 0.4em 0;
}

.wn-entry h2 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    line-height: 1.2;
}

/* ── Share Bar ────────────────────────── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid #e8e6df;
}

.share-label {
    font-size: 0.82rem;
    color: #bbb;
    margin-right: 0.2rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #999;
    text-decoration: none;
    padding: 0.3rem 0.85rem;
    border: 1px solid #e8e6df;
    border-radius: 100px;
    background: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.5;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.share-btn:hover {
    color: #666;
    border-color: #d8d6cf;
    background: #f5f3ee;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-copy.copied {
    color: #5a9a6a;
    border-color: #5a9a6a;
}

/* WeChat QR popover */
.share-wechat {
    position: relative;
}

.wechat-qr-popover {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: #fff;
    border: 1px solid #e8e6df;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: popIn 0.12s ease;
}

.wechat-qr-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #fff;
}

.wechat-qr-popover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #e8e6df;
}

@keyframes popIn { from { opacity: 0; transform: translateX(-50%) translateY(4px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.wechat-qr-title {
    font-size: 0.8rem;
    color: #999;
    margin: 0 0 0.8rem;
    white-space: nowrap;
}

.wechat-qr-canvas {
    display: block;
    margin: 0 auto;
    border-radius: 3px;
}

/* ── WeChat OA QR trigger & popover ───── */
.oa-qr-trigger {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: color 0.15s;
}

.site-nav .nav-links .oa-qr-trigger {
    color: #666;
}

.site-nav .nav-links .oa-qr-trigger:hover {
    color: #1a1a1a;
}

.footer-links .oa-qr-trigger {
    color: #999;
    text-decoration: none;
}

.footer-links .oa-qr-trigger:hover {
    color: #666;
}

.oa-qr-popover {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    animation: popIn 0.12s ease;
}

.oa-qr-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #fff;
}

.oa-qr-popover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #e5e7eb;
}

.oa-qr-popover.below {
    bottom: auto;
    top: calc(100% + 10px);
}

.oa-qr-popover.below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #fff;
}

.oa-qr-popover.below::before {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #e5e7eb;
}

.oa-qr-title {
    font-size: 0.8rem;
    color: #999;
    margin: 0 0 0.8rem;
    white-space: nowrap;
}

.oa-qr-img {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 3px;
}

/* ── Related Briefings ─────────────────── */
.related-section {
    margin-top: 2rem;
}

.related-section h2 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.8rem;
}

.related-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-card {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    background: #fffffe;
    padding: 1rem 1.4rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.related-card-date {
    flex-shrink: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: #bbb;
}

.related-card-title {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.related-card:hover .related-card-title {
    color: #1a1a1a;
}

.related-archive {
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

.related-archive a {
    color: #999;
    text-decoration: none;
    transition: color 0.15s;
}

.related-archive a:hover {
    color: #666;
}

/* ── Footer ────────────────────────────── */
footer {
    text-align: center;
    padding: 3.5rem 0 1.5rem;
    font-size: 0.8rem;
    color: #999;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    padding-top: 2rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #666;
}

.footer-dot {
    color: #ccc;
}

.footer-copyright {
    color: #999;
}

/* ── Sources Page ─────────────────────── */
.sources-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    font-size: 0.88rem;
    color: #999;
    margin-top: 0.5rem;
}

.sources-meta a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
    transition: border-color 0.15s;
}

.sources-meta a:hover {
    border-bottom-color: #2563eb;
}

.sources-count {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
}

.sources-content {
    background: #fffffe;
    padding: 2.5rem 3rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.sources-content h2 {
    font-family: "Songti SC", "Noto Serif SC Subset", "Noto Serif SC", "Source Han Serif SC",
                 Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #eee;
}

.sources-content h2:not(:first-child) {
    margin-top: 2.5rem;
}

.source-list {
    list-style: none;
    padding: 0;
}

.source-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0eeea;
}

.source-item:last-child {
    border-bottom: none;
}

.source-title {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
    transition: border-color 0.15s;
}

.source-title:hover {
    border-bottom-color: #2563eb;
}

.source-score {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: #999;
    margin-left: 0.6rem;
}

.source-reasons {
    font-size: 0.82rem;
    color: #999;
    margin-top: 0.3rem;
    line-height: 1.6;
}

/* ── Responsive ────────────────────────── */
@media (max-width: 1024px) {
    .container { padding: 2rem; }
}

@media (max-width: 740px) {
    body { font-size: 1.1rem; }
    .container { padding: 1.25rem; }
    .article-section { padding: 2rem 1.5rem; }
    .section-overview { padding: 0 0 1.5rem; }
    header { padding: 1.5rem 0 0.5rem; }
    header h1 { font-size: 1.25rem; }
    main h2 { margin-top: 3rem; font-size: 1.2rem; }
    main h3 { margin-top: 2rem; }
    .article-card { padding: 1.4rem 1.5rem; }
    .subscribe-box { padding: 1.5rem; }
    .subscribe-box form { flex-direction: column; }
    .whatsnew-content, .methodology-content { padding: 2rem 1.5rem; }
    .wn-entry { padding-left: 1.8rem; }
    .wn-date { position: static; width: auto; text-align: left; margin-bottom: 0.4rem; }
    .wn-entry::before { left: 0; }
    .wn-entry:not(:first-child)::before { left: 1px; }
    .wn-entry::after { left: 4px; }
    .sources-content { padding: 2rem 1.5rem; }
    .share-bar { gap: 0.4rem; flex-wrap: wrap; }
    .share-btn { font-size: 0.78rem; padding: 0.25rem 0.7rem; }
    .share-bar.has-native .share-btn:not(.share-native):not(.share-copy) { display: none; }
    .wechat-qr-popover { left: 0; transform: none; }
    .wechat-qr-popover::after, .wechat-qr-popover::before { left: 1.5rem; transform: none; }
    .oa-qr-popover { left: 0; transform: none; }
    .oa-qr-popover.below { left: 0; transform: none; }
    .oa-qr-popover::after, .oa-qr-popover::before { left: 1.5rem; transform: none; }
    .oa-qr-popover.below::after, .oa-qr-popover.below::before { left: 1.5rem; transform: none; }
    .topic-page-main { padding: 1.5rem; }
    .topic-article-date { min-width: 0; display: block; margin: 0 0 0.2rem; }
    .related-card { flex-direction: column; gap: 0.2rem; padding: 0.8rem 1rem; }
    .paper-num { font-size: 1.4rem; }
    .key-tags { gap: 0.4rem; }
    .key-tag { font-size: 0.78rem; padding: 0.25rem 0.7rem; }
    .site-nav { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .site-nav .nav-links { gap: 1rem; }
    .hide-mobile { display: none; }
    .article-card .card-stat { position: static; display: block; margin-top: 0.3rem; }
    .page-header h1 { font-size: 1.45rem; }
}

/* ── Scroll Reveal ─────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children slightly */
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }

/* ── English overrides ─────────────────── */
html[lang="en"] body {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    line-height: 1.7;
}

html[lang="en"] header h1 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
}

html[lang="en"] main h2 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
}

html[lang="en"] main h3 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
}

html[lang="en"] main p {
    text-align: left;
    line-height: 1.7;
}

html[lang="en"] .page-header h1 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
}

html[lang="en"] .subscribe-box h3 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[lang="en"] .archive-section h2 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[lang="en"] .sources-content h2 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Keep sans-serif for UI elements that shouldn't inherit serif body */
html[lang="en"] .site-nav,
html[lang="en"] .nav-lang,
html[lang="en"] .article-card,
html[lang="en"] .card-date,
html[lang="en"] .card-stat,
html[lang="en"] .subscribe-box,
html[lang="en"] .subscribe-box input,
html[lang="en"] .subscribe-box button,
html[lang="en"] footer,
html[lang="en"] .related-section,
html[lang="en"] .section-overview,
html[lang="en"] .faq-section {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[lang="en"] .section-overview li::before {
    content: "; ";
}

html[lang="en"] .section-overview li:first-child::before {
    content: none;
}

html[lang="en"] .section-overview li:last-child::after {
    content: ".";
}

/* ── Error page (404) ─────────────────── */
.error-page {
    text-align: center;
    padding: 6rem 1rem 4rem;
}

.error-code {
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    color: #e8e8e8;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.error-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.75rem;
}

.error-desc {
    font-size: 1rem;
    color: #888;
    margin: 0 0 0.25rem;
}

.error-suggestion {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0 0 2.5rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.error-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid #ddd;
    color: #555;
    background: #fff;
}

.error-btn:hover {
    border-color: #bbb;
    color: #333;
}

.error-btn.primary {
    background: #333;
    color: #fff;
    border-color: #333;
}

.error-btn.primary:hover {
    background: #222;
    border-color: #222;
}

@media (max-width: 740px) {
    .error-page { padding: 4rem 1rem 3rem; }
    .error-code { font-size: 5rem; }
    .error-heading { font-size: 1.25rem; }
}

/* ── Search (Pagefind) ─────────────────── */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

/* Override Pagefind UI styles to match site design */
.pagefind-ui {
    --pagefind-ui-scale: 1;
    --pagefind-ui-primary: #8b0000;
    --pagefind-ui-text: #333;
    --pagefind-ui-background: #fff;
    --pagefind-ui-border: #e5e5e5;
    --pagefind-ui-tag: #f5f5f5;
    --pagefind-ui-border-width: 1px;
    --pagefind-ui-border-radius: 8px;
    --pagefind-ui-font: inherit;
}

.pagefind-ui .pagefind-ui__search-input {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.pagefind-ui .pagefind-ui__search-input::placeholder {
    font-family: inherit;
    font-weight: 400;
    color: #aaa;
}

.pagefind-ui .pagefind-ui__result-link {
    color: #8b0000;
    font-weight: 600;
}

.pagefind-ui .pagefind-ui__result-link:hover {
    text-decoration: underline;
}

.pagefind-ui .pagefind-ui__result-excerpt {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

.pagefind-ui mark {
    background: #fff3cd;
    color: inherit;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

/* Date for search indexing - hidden on article page, shows in search results */
.search-date {
    display: none;
}

/* ── Data notice ──────────────────────── */
.data-notice {
    font-size: 0.88rem;
    color: #9a9488;
    text-align: center;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px dashed #d8d6cf;
    border-radius: 4px;
}

/* ── Homepage FAQ ──────────────────────── */
.faq-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #eae8e1;
}
.faq-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
}
.faq-list {
    margin: 0;
}
.faq-item {
    margin-bottom: 1.5rem;
}
.faq-item dt {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.faq-item dd {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── Lightbox ─────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ── Print ─────────────────────────────── */
@media print {
    body { background: #fff; }
    .container { padding: 0; }
    .article-section { box-shadow: none; padding: 0; background: #fff; }
    .site-nav, .subscribe-box { display: none; }
}
