:root {
    --ink: #101b2a;
    --paper: #f7f3ea;
    --surface: #fffdf8;
    --muted: #647184;
    --line: #d9d6ce;
    --accent: #d7f33f;
    --accent-2: #ff674d;
    --radius: 0;
    --max-width: 1180px;
    --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
    --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 999; left: 12px; top: -60px; padding: 10px 16px; color: #fff; background: #000; }
.skip-link:focus { top: 12px; }
.news-container { width: min(var(--max-width), calc(100% - 48px)); margin-inline: auto; }
.news-site { min-height: 100vh; overflow: hidden; }

.site-topline { color: var(--topline-text, var(--ink)); background: var(--accent); border-bottom: 1px solid var(--ink); }
.site-topline .news-container { min-height: 34px; display: flex; align-items: center; gap: 14px; font-size: 12px; }
.site-topline strong { letter-spacing: .12em; }
.site-topline span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.site-header { color: var(--header-text, var(--ink)); background: var(--header, var(--surface)); border-bottom: 1px solid var(--ink); }
.masthead { min-height: 100px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--brand-radius, 50%); color: var(--brand-mark-text, #fff); background: var(--ink); font: 800 22px/1 var(--serif); }
.site-brand > span:last-child { display: flex; flex-direction: column; }
.site-brand b { font: 800 23px/1.1 var(--serif); letter-spacing: .05em; }
.site-brand small { margin-top: 5px; font-size: 8px; letter-spacing: .2em; opacity: .65; }
.masthead-date { margin: 0; color: var(--muted); font: 13px/1.5 var(--serif); }
.masthead-note { justify-self: end; max-width: 240px; margin: 0; text-align: right; color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-nav { border-top: 1px solid var(--line); }
.site-nav .news-container { min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 40px; white-space: nowrap; overflow-x: auto; font-size: 14px; font-weight: 700; }
.site-nav a { position: relative; padding: 15px 0; }
.site-nav a:first-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent-2); }

.home-main { padding-bottom: 72px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr); gap: 30px; padding-block: 34px 62px; }
.hero-primary { min-width: 0; }
.hero-media { position: relative; min-height: 390px; overflow: hidden; border-radius: var(--radius); background: var(--media-bg, #d8d2c8); }
.hero-media img { width: 100%; height: 390px; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay, linear-gradient(100deg, rgba(11,20,33,.15), transparent 60%)); pointer-events: none; }
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: inherit; color: color-mix(in srgb, var(--ink), transparent 60%); background: var(--placeholder, linear-gradient(135deg, color-mix(in srgb, var(--accent), #fff 55%), color-mix(in srgb, var(--accent-2), #fff 60%))); font: italic 72px/1 Georgia, serif; }
.hero-copy { position: relative; z-index: 2; width: 92%; margin-top: -78px; padding: 26px 34px 0 0; background: var(--paper); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text, #d74832); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.kicker::before { content: ""; width: 24px; height: 3px; background: currentColor; }
.hero-copy h1 { margin: 13px 0 12px; font: 800 clamp(35px, 4.3vw, 58px)/1.16 var(--serif); letter-spacing: -.035em; }
.hero-copy p { max-width: 760px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.story-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.story-meta > * + * { padding-left: 14px; border-left: 1px solid var(--line); }
.hero-side { padding-top: 4px; border-top: 5px solid var(--ink); }
.side-heading { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.side-heading b { font-size: 14px; }
.side-heading span { color: var(--accent-text, #d74832); font: italic 16px/1 Georgia, serif; }
.side-story { display: block; padding: 19px 0; border-bottom: 1px solid var(--line); }
.side-story time { color: var(--accent-text, #d74832); font-size: 11px; }
.side-story h2 { margin: 8px 0; font: 700 20px/1.5 var(--serif); }
.side-story p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.empty-state { grid-column: 1 / -1; padding: 90px 20px; text-align: center; border: 1px solid var(--line); background: var(--surface); }
.empty-state h1 { margin: 0 0 10px; font: 800 34px/1.3 var(--serif); }
.empty-state p { color: var(--muted); }

.news-section { padding-block: 62px; }
.section-title { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; padding-bottom: 22px; border-bottom: 3px solid var(--ink); }
.section-title span { color: var(--accent-text, #d74832); font: italic 16px/1 Georgia, serif; }
.section-title h2 { margin: 6px 0 0; font: 800 36px/1.2 var(--serif); }
.section-title p { max-width: 480px; justify-self: end; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.story-grid { counter-reset: story-card; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 26px; }
.story-card { counter-increment: story-card; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 270px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.story-card::before { content: ""; display: block; width: 100%; height: 6px; background: var(--accent); }
.story-card::after { content: counter(story-card, decimal-leading-zero); position: absolute; right: 21px; bottom: 18px; color: color-mix(in srgb, var(--ink), transparent 88%); font: italic 48px/1 Georgia, serif; }
.story-card-body { display: flex; flex: 1; flex-direction: column; padding: 26px 21px 23px; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.card-meta time { white-space: nowrap; }
.card-meta b { color: var(--accent-text, #d74832); }
.story-card h3 { margin: 13px 0 10px; font: 700 21px/1.48 var(--serif); }
.story-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.story-card .read-more { margin-top: auto; padding-top: 18px; font-size: 12px; font-weight: 800; }

.topic-band { color: var(--band-text, #fff); background: var(--band, var(--ink)); }
.topic-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding-block: 58px; }
.topic-band h2 { margin: 12px 0; font: 800 35px/1.35 var(--serif); }
.topic-band p { margin: 0; color: var(--band-muted, #b6c0cf); font-size: 13px; line-height: 1.85; }
.recommend-list { margin: 0; padding: 0; list-style: none; counter-reset: item; }
.recommend-list li { counter-increment: item; display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, currentColor, transparent 70%); font: 700 15px/1.55 var(--serif); }
.recommend-list li::before { content: "0" counter(item); color: var(--accent); font: italic 15px/1.5 Georgia, serif; }
.pagination-wrap { padding-top: 40px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination li a, .pagination li span { display: block; min-width: 38px; padding: 9px 12px; text-align: center; border: 1px solid var(--line); background: var(--surface); }
.pagination li.active span { color: var(--active-text, var(--ink)); background: var(--accent); border-color: var(--ink); }
.pagination li.disabled span { opacity: .45; }

.site-footer { padding: 48px 0 20px; color: var(--footer-text, #d9e0e9); background: var(--footer, #0a1320); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; }
.footer-grid h2 { margin: 0 0 12px; color: #fff; font: 800 24px/1.2 var(--serif); }
.footer-grid p { max-width: 590px; margin: 0; color: var(--footer-muted, #8996a7); font-size: 12px; line-height: 1.8; }
.footer-links { display: flex; justify-content: flex-end; align-items: flex-start; gap: 26px; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 17px; border-top: 1px solid color-mix(in srgb, currentColor, transparent 80%); color: var(--footer-muted, #768396); font-size: 11px; }

/* Article pages */
.article-page { background: var(--surface); }
.article-page .site-header { position: relative; }
.article-masthead { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.article-masthead nav { display: flex; gap: 26px; font-size: 13px; font-weight: 700; }
.article-hero { max-width: 930px; padding-block: 42px 44px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; color: var(--muted); font-size: 12px; }
.article-hero h1 { margin: 15px 0 18px; font: 800 clamp(40px, 5.2vw, 68px)/1.18 var(--serif); letter-spacing: -.035em; }
.article-summary { max-width: 780px; margin: 0; color: var(--muted); font: 18px/1.85 var(--serif); }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-byline strong { color: var(--ink); }
.article-cover { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; }
.article-cover img { width: 100%; height: min(550px, 50vw); object-fit: cover; border-radius: var(--radius); }
.article-cover .image-placeholder { min-height: 430px; }
.article-cover figcaption { padding-top: 9px; color: var(--muted); font-size: 11px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 680px) 250px; justify-content: center; gap: 60px; padding-block: 55px 85px; }
.article-content { min-width: 0; color: var(--article-text, #293545); font: 17px/2 var(--serif); word-break: break-word; }
.article-content > p:first-child { margin-top: 0; font-size: 20px; line-height: 1.9; }
.article-content h2 { margin: 44px 0 14px; color: var(--ink); font-size: 27px; line-height: 1.45; }
.article-content h3 { margin: 32px 0 10px; color: var(--ink); font-size: 22px; }
.article-content img { height: auto; margin: 28px auto; }
.article-content blockquote { margin: 32px 0; padding: 20px 26px; border-left: 6px solid var(--accent); background: var(--paper); font-size: 19px; }
.article-content a { color: var(--link, #2f62c9); text-decoration: underline; text-underline-offset: 3px; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-content th, .article-content td { padding: 9px 12px; border: 1px solid var(--line); }
.article-aside { align-self: start; position: sticky; top: 22px; }
.aside-box { margin-bottom: 24px; padding: 20px; border-top: 5px solid var(--accent-2); background: var(--paper); }
.aside-box h2 { margin: 0 0 12px; font-size: 14px; }
.aside-box p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.related-list { display: flex; flex-direction: column; }
.related-list a { padding: 13px 0; border-bottom: 1px solid var(--line); font: 700 13px/1.55 var(--serif); }
.back-home { display: inline-block; margin-top: 18px; color: var(--accent-text, #d74832); font-size: 12px; font-weight: 800; }

/* Ten distinct themes */
.theme-a001 { --accent: #d7f33f; --accent-2: #ff674d; --accent-text: #d74832; --ink: #101b2a; --paper: #f7f3ea; --surface: #fffdf8; }

.theme-a002 { --accent: #e5242a; --accent-2: #111; --accent-text: #c9161d; --ink: #111; --paper: #f5f2ec; --surface: #fff; --header: #fff; --band: #e5242a; --band-muted: #ffe2e2; --brand-radius: 0; }
.theme-a002 .site-topline { color: #fff; background: #111; }
.theme-a002 .masthead { grid-template-columns: auto 1fr auto; }
.theme-a002 .site-brand b { font-size: 30px; }
.theme-a002 .home-hero { grid-template-columns: 1fr; }
.theme-a002 .hero-primary { display: grid; grid-template-columns: 1.3fr 1fr; background: #111; }
.theme-a002 .hero-media, .theme-a002 .hero-media img { height: 470px; }
.theme-a002 .hero-copy { width: auto; margin: 0; padding: 46px; color: #fff; background: #111; }
.theme-a002 .hero-copy p, .theme-a002 .hero-copy .story-meta { color: #c7c7c7; }
.theme-a002 .hero-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; border-top-color: #e5242a; }
.theme-a002 .side-heading { grid-column: 1 / -1; }

.theme-a003 { --accent: #42e8e0; --accent-2: #7c5cff; --accent-text: #4d3bd1; --ink: #0b1735; --paper: #eef4ff; --surface: #fff; --line: #c9d5ea; --radius: 14px; --band: #0b1735; --brand-radius: 12px; }
.theme-a003 .site-header { box-shadow: 0 8px 30px rgba(23,54,100,.08); border-bottom: 0; }
.theme-a003 .hero-copy { width: 88%; margin: -58px auto 0; padding: 28px; border-radius: 14px; box-shadow: 0 16px 40px rgba(32,54,88,.12); background: #fff; }
.theme-a003 .story-card { box-shadow: 0 12px 32px rgba(43,70,112,.08); border: 0; }

.theme-a004 { --accent: #b7df55; --accent-2: #176b4d; --accent-text: #176b4d; --ink: #18382c; --paper: #eff3e8; --surface: #fbfdf7; --line: #cbd7c5; --radius: 22px; --band: #18382c; --brand-radius: 50% 50% 8px 50%; }
.theme-a004 .hero-media { min-height: 470px; }
.theme-a004 .hero-media img { height: 470px; }
.theme-a004 .hero-copy { width: 86%; margin: -100px auto 0; padding: 30px; border-radius: 22px; }

.theme-a005 { --accent: #d8b35d; --accent-2: #d8b35d; --accent-text: #9a6c14; --ink: #171717; --paper: #efece5; --surface: #fbfaf6; --line: #cfc9bb; --band: #171717; --brand-radius: 0; }
.theme-a005 .site-topline { color: #111; background: #d8b35d; }
.theme-a005 .site-header { color: #f5eedf; background: #171717; }
.theme-a005 .site-header .masthead-note, .theme-a005 .site-header .masthead-date { color: #a9a292; }
.theme-a005 .site-header .brand-symbol { color: #111; background: #d8b35d; }
.theme-a005 .site-header .site-nav { border-color: #4a463e; }
.theme-a005 .home-hero { grid-template-columns: 1.25fr .75fr; }
.theme-a005 .hero-copy { width: 100%; margin: 0; padding: 26px 0 0; }
.theme-a005 .story-grid { grid-template-columns: 1.2fr .9fr .9fr; }

.theme-a006 { --accent: #ffca3a; --accent-2: #f45b37; --accent-text: #d84627; --ink: #24304a; --paper: #fff5df; --surface: #fffdf8; --line: #e4d4b6; --radius: 10px; --band: #f45b37; --band-muted: #ffe9df; --brand-radius: 10px 10px 10px 2px; }
.theme-a006 .site-topline { background: #ffca3a; }
.theme-a006 .hero-media { transform: rotate(-.5deg); }
.theme-a006 .hero-copy { transform: rotate(.4deg); width: 88%; margin-left: auto; padding: 28px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent); }
.theme-a006 .story-card { border: 2px solid var(--ink); box-shadow: 5px 5px 0 #f4c75b; }

.theme-a007 { --accent: #c7a8ff; --accent-2: #6e3fd1; --accent-text: #6e3fd1; --ink: #2a183e; --paper: #f7f0fb; --surface: #fffafd; --line: #ddcfe5; --radius: 4px; --band: #2a183e; --brand-radius: 50%; }
.theme-a007 .site-brand b, .theme-a007 .hero-copy h1, .theme-a007 .section-title h2 { font-weight: 500; }
.theme-a007 .home-hero { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 50px; }
.theme-a007 .hero-copy { width: 100%; margin: 0; padding-top: 28px; }
.theme-a007 .hero-media, .theme-a007 .hero-media img { height: 500px; }
.theme-a007 .side-story h2 { font-size: 24px; }

.theme-a008 { --accent: #fff; --accent-2: #111; --accent-text: #111; --ink: #111; --paper: #fff; --surface: #fff; --line: #aaa; --band: #111; --brand-radius: 0; }
.theme-a008 .site-topline { color: #fff; background: #111; }
.theme-a008 .masthead { min-height: 120px; border-bottom: 8px solid #111; }
.theme-a008 .site-brand b { font-size: 36px; text-transform: uppercase; }
.theme-a008 .home-hero { grid-template-columns: 2fr 1fr; }
.theme-a008 .hero-copy { width: 100%; margin: 0; padding: 22px 0 0; }
.theme-a008 .hero-media, .theme-a008 .hero-media img { height: 520px; filter: grayscale(1); }
.theme-a008 .story-card { border: 0; border-top: 6px solid #111; }

.theme-a009 { --accent: #00e5c2; --accent-2: #0a60ff; --accent-text: #005be0; --ink: #082541; --paper: #edf9f8; --surface: #fff; --line: #bcdad8; --radius: 2px; --band: #082541; --brand-radius: 2px; }
.theme-a009 .site-topline { background: #00e5c2; }
.theme-a009 .hero-primary { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); background: #fff; }
.theme-a009 .hero-media, .theme-a009 .hero-media img { height: 480px; }
.theme-a009 .hero-copy { width: auto; margin: 0; padding: 38px; }
.theme-a009 .story-grid { gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.theme-a009 .story-card { border: 0; }

.theme-a010 { --accent: #efc98e; --accent-2: #bd5c45; --accent-text: #a84934; --ink: #43372f; --paper: #f8f0e5; --surface: #fffaf3; --line: #ddcdbb; --radius: 28px 8px 28px 8px; --band: #7b4f3c; --brand-radius: 50% 50% 50% 8px; }
.theme-a010 .masthead { min-height: 116px; }
.theme-a010 .home-hero { gap: 44px; padding-top: 48px; }
.theme-a010 .hero-copy { width: 88%; margin: -65px auto 0; padding: 30px; border-radius: 28px 8px 28px 8px; }
.theme-a010 .story-card { padding: 10px; }

@media (max-width: 900px) {
    .masthead { grid-template-columns: 1fr auto; min-height: 86px; }
    .masthead-date { display: none; }
    .site-nav .news-container { justify-content: flex-start; gap: 28px; }
    .home-hero, .theme-a002 .home-hero, .theme-a004 .home-hero, .theme-a005 .home-hero, .theme-a007 .home-hero, .theme-a008 .home-hero, .theme-a009 .home-hero { grid-template-columns: 1fr; }
    .theme-a002 .hero-primary, .theme-a009 .hero-primary { grid-template-columns: 1fr; }
    .theme-a002 .hero-copy { padding: 32px; }
    .theme-a002 .hero-side { grid-template-columns: 1fr 1fr; }
    .story-grid, .theme-a005 .story-grid { grid-template-columns: 1fr 1fr; }
    .topic-band-inner { grid-template-columns: 1fr; gap: 30px; }
    .article-layout { grid-template-columns: minmax(0, 680px); }
    .article-aside { position: static; }
}

@media (max-width: 620px) {
    .news-container, .article-cover { width: min(var(--max-width), calc(100% - 28px)); }
    .site-topline .news-container { gap: 8px; }
    .masthead { min-height: 74px; }
    .masthead-note { display: none; }
    .brand-symbol { width: 36px; height: 36px; font-size: 18px; }
    .site-brand b { font-size: 19px; }
    .site-nav { margin-inline: -14px; }
    .home-hero { padding-block: 20px 42px; }
    .hero-media, .hero-media img, .theme-a002 .hero-media, .theme-a002 .hero-media img, .theme-a004 .hero-media, .theme-a004 .hero-media img, .theme-a007 .hero-media, .theme-a007 .hero-media img, .theme-a008 .hero-media, .theme-a008 .hero-media img, .theme-a009 .hero-media, .theme-a009 .hero-media img { min-height: 280px; height: 300px; }
    .hero-copy, .theme-a003 .hero-copy, .theme-a004 .hero-copy, .theme-a006 .hero-copy, .theme-a010 .hero-copy { width: calc(100% - 18px); margin: -44px 0 0; padding: 22px 20px 0 0; border-radius: 0; box-shadow: none; transform: none; }
    .theme-a002 .hero-copy, .theme-a009 .hero-copy { width: auto; margin: 0; padding: 26px 22px; }
    .hero-copy h1 { font-size: 35px; }
    .theme-a002 .hero-side { grid-template-columns: 1fr; }
    .section-title { grid-template-columns: 1fr; gap: 12px; }
    .section-title p { justify-self: start; }
    .news-section { padding-block: 48px; }
    .story-grid, .theme-a005 .story-grid { grid-template-columns: 1fr; }
    .topic-band-inner { padding-block: 46px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-links { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; }
    .article-masthead nav { gap: 14px; }
    .article-masthead nav a:first-child { display: none; }
    .article-hero { padding-block: 28px 34px; }
    .article-hero h1 { font-size: 37px; }
    .article-summary { font-size: 16px; }
    .article-cover img { height: 260px; }
    .article-cover .image-placeholder { min-height: 260px; }
    .article-layout { padding-block: 38px 62px; }
    .article-content { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
