:root {
  --primary: #176ead;
  --primary-dark: #0d5689;
  --primary-deep: #103f65;
  --accent: #f2a000;
  --accent-dark: #d88700;
  --ink: #25313d;
  --heading: #183247;
  --muted: #6b7885;
  --line: #e3e9ee;
  --line-strong: #d4dde5;
  --soft: #f5f7f9;
  --blue-soft: #eef6fb;
  --warning-soft: #fff8e8;
  --paper: #fff;
  --danger: #c5483e;
  --container: 1180px;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(30, 63, 88, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1200; padding: 8px 14px; color: #fff; background: var(--primary-deep); }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; min-height: 70px; align-items: center; gap: 20px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 18px; }
.site-logo { display: block; width: 132px; height: 42px; object-fit: contain; }
.brand-slogan { padding-left: 18px; color: #7c8792; border-left: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.site-search { display: flex; width: 340px; height: 38px; margin-left: auto; overflow: hidden; border: 1px solid #ccd7df; border-radius: 4px; background: #fff; }
.site-search input[type="search"] { min-width: 0; flex: 1; padding: 7px 12px; color: var(--ink); border: 0; outline: 0; }
.site-search input[type="search"]:focus { box-shadow: inset 0 0 0 1px var(--primary); }
.site-search button { width: 68px; padding: 0; color: #fff; border: 0; background: var(--primary); cursor: pointer; }
.site-search button:hover { background: var(--primary-dark); }
.nav-shell { color: #fff; background: var(--primary); }
.nav-row { min-height: 44px; }
.primary-nav { display: flex; min-height: 44px; align-items: stretch; }
.primary-nav a { position: relative; display: flex; padding: 0 22px; align-items: center; color: #fff; font-size: 15px; }
.primary-nav a:first-child { padding-left: 18px; }
.primary-nav a:hover { color: #fff; background: rgba(0,0,0,.1); }
.primary-nav a::after { position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; content: ""; background: transparent; }
.primary-nav a:hover::after { background: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 9px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--primary-deep); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

/* Advertising */
.ad-slot { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.ad-slot::before { position: absolute; top: 3px; right: 4px; z-index: 2; padding: 0 4px; content: "广告"; color: rgba(255,255,255,.95); border-radius: 2px; background: rgba(24,50,71,.58); font-size: 10px; line-height: 18px; pointer-events: none; }
.ad-slot a { display: block; line-height: 0; }
.ad-slot img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
.top-ad-shell { width: min(calc(100% - 40px), var(--container)); margin: 12px auto 0; }
.top-ad-shell img, .content-banner img { aspect-ratio: 1183/100; object-fit: cover; }
.content-banner { margin: 26px 0 32px; }
.sidebar-ad { width: 100%; }
.sidebar-ad + .side-panel, .side-panel + .sidebar-ad { margin-top: 20px; }
.couplet-ads { position: fixed; inset: 190px 0 auto; z-index: 38; pointer-events: none; }
.couplet-ad { position: absolute; width: 90px; height: 270px; pointer-events: auto; }
.couplet-ad:first-child { left: max(8px, calc(50% - 760px)); }
.couplet-ad:last-child { right: max(8px, calc(50% - 760px)); }
.couplet-ad img { width: 90px; height: 270px; object-fit: cover; }
.popup-ad[hidden] { display: none; }
.popup-ad { position: fixed; inset: 0; z-index: 1000; display: grid; padding: 22px; place-items: center; background: rgba(15,35,51,.72); }
.popup-ad-dialog { position: relative; width: min(720px, calc(100vw - 44px)); max-height: calc(100vh - 44px); }
.popup-ad-media { overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.popup-ad-media a { display: block; line-height: 0; }
.popup-ad-media img { display: block; width: 100%; height: auto; max-height: calc(100vh - 44px); object-fit: contain; }
.popup-ad-close { position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; color: #fff; border: 0; border-radius: 50%; background: rgba(15,35,51,.8); font-size: 25px; cursor: pointer; }
.popup-ad-countdown { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 9px; color: #fff; border-radius: 3px; background: rgba(15,35,51,.72); font-size: 12px; }
body.has-popup-ad { overflow: hidden; }

/* Home search and entries */
.home-hero { padding: 32px 0; border-bottom: 1px solid var(--line); background: var(--blue-soft); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 42px; align-items: center; }
.home-query { min-width: 0; padding: 14px 0; }
.hero-label { margin: 0 0 6px; color: var(--primary); font-size: 15px; font-weight: 700; }
.home-query h1 { max-width: 760px; margin: 0; color: var(--heading); font-size: clamp(30px, 4vw, 42px); line-height: 1.3; letter-spacing: -.02em; }
.hero-intro { margin: 10px 0 22px; color: #607383; font-size: 16px; }
.lookup-form { display: flex; width: min(100%, 720px); height: 48px; overflow: hidden; border: 2px solid var(--primary); border-radius: 5px; background: #fff; }
.lookup-form input[type="search"] { min-width: 0; flex: 1; padding: 10px 15px; color: var(--ink); border: 0; outline: 0; }
.lookup-form button { width: 110px; padding: 0; color: #fff; border: 0; background: var(--primary); font-weight: 700; cursor: pointer; }
.lookup-form button:hover { background: var(--primary-dark); }
.query-links { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.query-links a { color: var(--primary); }
.verify-guide { padding: 22px 24px; border-top: 3px solid var(--accent); border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.verify-guide h2 { margin: 0 0 15px; color: var(--heading); font-size: 20px; }
.verify-guide ol { margin: 0; padding: 0; list-style: none; counter-reset: verify; }
.verify-guide li { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.verify-guide li strong { color: var(--primary); font-size: 14px; }
.verify-guide li span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.verify-guide > p { margin: 12px 0 0; padding-top: 12px; color: #8b6b25; border-top: 1px dashed #e8d6a8; font-size: 12px; }
.quick-entry { border-bottom: 1px solid var(--line); background: #fff; }
.quick-entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-entry-grid a { display: flex; min-width: 0; gap: 12px; padding: 18px 20px; align-items: center; border-left: 1px solid var(--line); }
.quick-entry-grid a:last-child { border-right: 1px solid var(--line); }
.quick-entry-grid a:hover { color: inherit; background: #fafcfd; }
.entry-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: #fff; border-radius: 50%; background: var(--primary); font-size: 15px; font-weight: 700; }
.quick-entry-grid a:nth-child(3) .entry-icon { background: var(--danger); }
.quick-entry-grid a:nth-child(4) .entry-icon { background: var(--accent-dark); }
.quick-entry-grid strong, .quick-entry-grid small { display: block; }
.quick-entry-grid strong { color: var(--heading); font-size: 16px; }
.quick-entry-grid small { margin-top: 1px; color: var(--muted); font-size: 12px; }

/* Home content */
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; padding-top: 38px; padding-bottom: 60px; }
.home-main, .home-aside, .archive-aside, .article-aside { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding-bottom: 11px; border-bottom: 2px solid var(--primary); }
.section-heading > div { min-width: 0; }
.section-heading h1, .section-heading h2 { margin: 0; color: var(--heading); font-size: 24px; line-height: 1.35; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.section-heading > a { flex: 0 0 auto; color: var(--primary); font-size: 13px; }
.section-heading.compact { align-items: center; margin-bottom: 12px; padding-bottom: 9px; border-bottom-width: 1px; }
.section-heading.compact h2 { font-size: 19px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 18px; }
.lead-story { display: flex; min-height: 330px; color: #fff; border-radius: var(--radius); background: var(--primary-deep); }
.lead-copy { display: flex; width: 100%; padding: 30px; flex-direction: column; justify-content: center; }
.lead-copy .story-kicker { color: #ffd16a; }
.lead-copy h2 { margin: 12px 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.4; }
.lead-copy h2 a:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 5px; }
.lead-copy p { margin: 0 0 22px; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.75; }
.lead-action { display: flex; padding-top: 15px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.18); }
.lead-action time { color: rgba(255,255,255,.62); font-size: 12px; }
.lead-action a { color: #fff; font-size: 13px; font-weight: 700; }
.hero-list { display: grid; grid-template-rows: repeat(4, 1fr); border-top: 1px solid var(--line); }
.brief-card { display: flex; min-height: 0; padding: 13px 4px; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.brief-card h3 { display: -webkit-box; margin: 3px 0 5px; overflow: hidden; color: var(--heading); font-size: 16px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.brief-card > span, .brief-card time { color: var(--muted); font-size: 12px; }
.brief-card > span { color: var(--primary); }
.latest { margin-top: 36px; }
.story-feed { border-top: 1px solid var(--line); }
.story-card { display: grid; min-width: 0; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.story-thumb { display: block; overflow: hidden; aspect-ratio: 16/9; border-radius: 4px; background: var(--soft); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.story-card:hover .story-thumb img { transform: scale(1.025); }
.story-card > div { min-width: 0; }
.story-card > div:only-child { grid-column: 1 / -1; }
.story-meta { display: flex; gap: 16px; align-items: center; }
.story-kicker { color: var(--primary); font-size: 12px; font-weight: 700; }
.story-meta time { color: #8b97a1; font-size: 12px; }
.story-card h2, .story-card h3 { margin: 5px 0 7px; color: var(--heading); font-size: 20px; line-height: 1.5; }
.story-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-aside { align-self: start; }
.side-panel { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.side-panel + .side-panel { margin-top: 20px; }
.live-panel { border-top: 3px solid var(--accent); }
.ranking-list { margin: 0; padding: 0; list-style: none; }
.ranking-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ranking-list li:last-child { border-bottom: 0; }
.ranking-list a { display: -webkit-box; overflow: hidden; color: var(--heading); font-size: 14px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ranking-list time { padding-top: 2px; color: #9a7a32; font-size: 11px; }
.risk-checklist { background: var(--warning-soft); border-color: #f0dfb8; }
.risk-checklist h2 { margin: 0 0 10px; color: #79581b; font-size: 18px; }
.risk-checklist ul { margin: 0; padding: 0; list-style: none; }
.risk-checklist li { position: relative; padding: 5px 0 5px 16px; color: #6e6250; font-size: 13px; }
.risk-checklist li::before { position: absolute; left: 0; top: 14px; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--accent-dark); }
.risk-checklist > a { display: inline-block; margin-top: 10px; color: var(--primary); font-size: 13px; font-weight: 700; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list a { color: var(--heading); line-height: 1.55; }
.plain-list time { display: block; margin-top: 3px; color: #98a2ab; font-size: 11px; }

/* Search */
.search-header { margin-bottom: 15px; padding: 18px 20px; border-left: 4px solid var(--primary); background: var(--soft); }
.search-header h1 { margin: 0; color: var(--heading); font-size: 28px; }
.search-header p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.search-header strong, .search-header b { color: var(--primary); }
.search-form { display: flex; height: 44px; margin-bottom: 22px; overflow: hidden; border: 1px solid var(--primary); border-radius: 4px; }
.search-form input[type="search"] { min-width: 0; padding: 8px 12px; flex: 1; color: var(--ink); border: 0; outline: 0; }
.search-form button { width: 92px; padding: 0; color: #fff; border: 0; background: var(--primary); cursor: pointer; }
.search-form button:hover { background: var(--primary-dark); }
.search-card:first-child { border-top: 0; }

/* Archives and topic pages */
.page-shell { padding-top: 20px; padding-bottom: 58px; }
.breadcrumbs { margin-bottom: 18px; overflow: hidden; color: #7b8893; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.breadcrumbs a { color: var(--primary); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; }
.archive-header { margin-bottom: 20px; padding: 20px 22px; border-left: 4px solid var(--primary); background: var(--soft); }
.archive-header h1 { margin: 0; color: var(--heading); font-size: 30px; line-height: 1.35; }
.archive-header p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.archive-aside { align-self: start; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 5px 9px; color: #526778; border: 1px solid var(--line-strong); border-radius: 3px; background: #fafbfc; font-size: 12px; }
.tag-cloud a:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 36px; }
.topic-grid a { position: relative; display: block; padding: 20px 20px 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.topic-grid a::before { position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; content: ""; background: var(--primary); }
.topic-grid a:hover { color: inherit; border-color: #b9ccd9; box-shadow: var(--shadow); }
.topic-grid strong, .topic-grid span { display: block; }
.topic-grid strong { color: var(--heading); font-size: 17px; }
.topic-grid span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.cover-latest { margin-top: 10px; }
.live-item { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.live-item > time { color: var(--accent-dark); font-size: 15px; font-weight: 700; }
.live-item h2 { margin: 0 0 5px; color: var(--heading); font-size: 20px; line-height: 1.5; }
.live-item p { margin: 0; color: var(--muted); font-size: 14px; }
.pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.pagination a, .pagination b { min-width: 34px; padding: 5px 9px; text-align: center; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; font-size: 13px; }
.pagination b { color: #fff; border-color: var(--primary); background: var(--primary); }

/* Articles */
.reading-progress { position: fixed; top: 0; left: 0; z-index: 100; width: 0; height: 3px; background: var(--accent); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.article-page { min-width: 0; }
.article-header { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 860px; margin: 8px 0 12px; color: var(--heading); font-size: clamp(30px, 4vw, 40px); line-height: 1.35; letter-spacing: -.02em; }
.article-deck { margin: 0 0 14px; color: #61717f; font-size: 16px; line-height: 1.75; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #8a959f; font-size: 12px; }
.article-cover { margin: 24px 0; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.article-cover img { display: block; width: 100%; height: auto; }
.article-body { color: #2c3843; font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.article-body p { margin: 1.15em 0; }
.article-body h2, .article-body h3 { margin: 1.65em 0 .65em; color: var(--heading); line-height: 1.5; }
.article-body h2 { padding-left: 12px; border-left: 4px solid var(--primary); font-size: 23px; }
.article-body h3 { font-size: 20px; }
.article-body img { display: block; max-width: 100%; height: auto !important; margin: 20px auto; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 24px 0; padding: 16px 20px; color: #506270; border-left: 4px solid var(--primary); background: var(--blue-soft); }
.article-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-body th, .article-body td { padding: 9px 11px; border: 1px solid var(--line-strong); }
.article-body th { background: var(--soft); }
.article-pages { margin-top: 20px; }
.risk-box { margin-top: 28px; padding: 17px 19px; border: 1px solid #ead7aa; border-radius: var(--radius); background: var(--warning-soft); }
.risk-box strong { color: #7b5817; }
.risk-box p { margin: 4px 0 0; color: #6f6350; font-size: 13px; }
.article-footer { display: flex; margin-top: 24px; padding-top: 18px; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.article-tags { color: var(--muted); font-size: 12px; }
.share-tools { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: flex-end; }
.share-label { color: var(--muted); font-size: 12px; }
.share-option { display: inline-flex; min-height: 32px; padding: 4px 9px 4px 5px; align-items: center; gap: 5px; color: #475967; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; font-size: 12px; cursor: pointer; }
.share-option:hover { border-color: #9fb6c6; }
.share-option > span { display: grid; width: 21px; height: 21px; place-items: center; color: #fff; border-radius: 2px; font-size: 10px; }
.share-weibo > span { background: #e6162d; }
.share-copy > span { background: var(--primary); }
.share-feedback { flex-basis: 100%; min-height: 16px; color: var(--primary); font-size: 11px; text-align: right; }
.sticky-panel { position: sticky; top: 140px; }

/* Entity and agent pages */
.entity-hero { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 30px; padding: 26px; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); background: #fff; }
.entity-logo { display: grid; width: 96px; height: 96px; overflow: hidden; place-items: center; color: #fff; border-radius: 8px; background: var(--primary); font-size: 23px; font-weight: 700; }
.entity-logo img { width: 100%; height: 100%; padding: 7px; object-fit: contain; background: #fff; }
.entity-hero h1 { margin: 5px 0 8px; color: var(--heading); font-size: clamp(28px, 4vw, 38px); line-height: 1.35; }
.entity-hero p { max-width: 850px; margin: 0; color: var(--muted); font-size: 15px; }
.entity-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 13px; align-items: center; color: #88939d; font-size: 12px; }
.entity-actions a { padding: 6px 12px; color: #fff; border-radius: 3px; background: var(--primary); font-weight: 700; }
.entity-facts { margin-bottom: 34px; }
.entity-facts dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.entity-facts dl > div { min-width: 0; padding: 13px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entity-facts dt { color: var(--muted); font-size: 12px; }
.entity-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--heading); font-size: 14px; font-weight: 600; }
.entity-content-grid { margin-top: 6px; }

/* Footer */
.site-footer { color: #bdc9d3; background: var(--primary-deep); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr 1.35fr; gap: 50px; padding-top: 36px; padding-bottom: 28px; }
.footer-logo { display: block; width: 132px; height: 42px; padding: 4px 7px; border-radius: 3px; background: #fff; object-fit: contain; }
.site-footer h2 { margin: 0 0 10px; color: #fff; font-size: 15px; }
.site-footer p { margin: 10px 0 0; font-size: 13px; line-height: 1.75; }
.footer-links { display: flex; flex-wrap: wrap; gap: 7px 14px; align-content: start; }
.footer-links h2 { flex-basis: 100%; }
.footer-links a { color: #d2dae1; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; padding-top: 15px; padding-bottom: 18px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.13); }
.footer-bottom p { margin: 0; font-size: 12px; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 40px; height: 40px; color: #fff; border: 0; border-radius: 4px; background: var(--primary); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; cursor: pointer; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Optional infinite feed states */
.infinite-feed-status { display: flex; min-height: 68px; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; }
.infinite-feed-status[data-state="loading"]::before { width: 16px; height: 16px; content: ""; border: 2px solid #d9e2e8; border-top-color: var(--primary); border-radius: 50%; animation: feed-spin .7s linear infinite; }
.infinite-feed-status button { padding: 6px 11px; color: #fff; border: 0; border-radius: 3px; background: var(--primary); cursor: pointer; }
.infinite-feed-sentinel { height: 1px; }
@keyframes feed-spin { to { transform: rotate(360deg); } }

@media (max-width: 1220px) {
  .primary-nav a { padding-inline: 16px; }
  .couplet-ads { display: none; }
}

@media (max-width: 980px) {
  .brand-slogan { display: none; }
  .primary-nav a { padding-inline: 13px; font-size: 14px; }
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .quick-entry-grid a { padding-inline: 13px; }
  .home-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 26px; }
  .content-grid, .article-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
  .story-card { grid-template-columns: 165px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .site-header { position: relative; }
  .header-row { min-height: 62px; }
  .site-logo { width: 124px; height: 39px; }
  .site-search { width: min(300px, 45vw); }
  .nav-toggle { display: block; }
  .nav-shell { position: relative; min-height: 0; background: #fff; }
  .nav-row { min-height: 0; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 0; z-index: 50; display: none; padding: 8px 15px 14px; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a, .primary-nav a:first-child { min-height: 42px; padding: 7px 8px; justify-content: center; color: var(--heading); border-bottom: 1px solid #edf1f4; font-size: 14px; }
  .primary-nav a:hover { color: var(--primary); background: var(--soft); }
  .primary-nav a::after { display: none; }
  .home-hero { padding: 25px 0; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .verify-guide { display: none; }
  .quick-entry-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-entry-grid a:nth-child(2) { border-right: 1px solid var(--line); }
  .quick-entry-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .home-layout, .content-grid, .article-grid { grid-template-columns: 1fr; }
  .home-aside, .archive-aside, .article-aside { margin-top: 6px; }
  .sticky-panel { position: static; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-risk { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .header-row { min-height: 58px; gap: 8px; }
  .site-logo { width: 118px; height: 38px; }
  .site-search { display: none; }
  .primary-nav { grid-template-columns: repeat(2, 1fr); }
  .home-query { padding-block: 4px; }
  .home-query h1 { font-size: 27px; line-height: 1.35; }
  .hero-intro { margin: 8px 0 17px; font-size: 14px; }
  .lookup-form { height: auto; flex-wrap: wrap; border-width: 1px; }
  .lookup-form input[type="search"] { width: 100%; flex: 1 0 100%; min-height: 44px; }
  .lookup-form button { width: 100%; height: 42px; }
  .query-links { gap: 4px 10px; }
  .quick-entry-grid a { gap: 9px; padding: 13px 10px; }
  .entry-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .quick-entry-grid strong { font-size: 14px; }
  .quick-entry-grid small { display: none; }
  .home-layout { gap: 30px; padding-top: 28px; padding-bottom: 42px; }
  .section-heading { align-items: center; margin-bottom: 14px; }
  .section-heading h1, .section-heading h2 { font-size: 21px; }
  .section-heading p { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .lead-story { min-height: 255px; }
  .lead-copy { padding: 22px; }
  .lead-copy h2 { margin: 9px 0; font-size: 24px; line-height: 1.45; }
  .lead-copy p { display: -webkit-box; margin-bottom: 16px; overflow: hidden; font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .hero-list { display: block; border-top: 0; }
  .brief-card { padding: 12px 2px; }
  .latest { margin-top: 30px; }
  .story-card { grid-template-columns: 116px minmax(0, 1fr); gap: 13px; padding: 16px 0; }
  .story-card h2, .story-card h3 { margin: 3px 0 5px; font-size: 17px; line-height: 1.5; }
  .story-card p { font-size: 13px; -webkit-line-clamp: 2; }
  .story-meta { gap: 9px; }
  .story-meta time { font-size: 11px; }
  .story-card > div:only-child { grid-column: 1 / -1; }
  .side-panel { padding: 16px; }
  .page-shell { padding-top: 14px; padding-bottom: 42px; }
  .breadcrumbs { margin-bottom: 13px; }
  .archive-header { margin-bottom: 15px; padding: 16px 17px; }
  .archive-header h1 { font-size: 25px; }
  .archive-header p { font-size: 13px; }
  .search-header { padding: 16px 17px; }
  .search-header h1 { font-size: 24px; }
  .search-form { height: 42px; }
  .topic-grid { grid-template-columns: 1fr; gap: 10px; }
  .topic-grid a { padding: 16px 18px 16px 21px; }
  .live-item { grid-template-columns: 76px minmax(0, 1fr); gap: 13px; padding: 17px 0; }
  .live-item > time { font-size: 13px; }
  .live-item h2 { font-size: 17px; }
  .article-header { padding-bottom: 16px; }
  .article-header h1 { margin-top: 5px; font-size: 27px; line-height: 1.42; }
  .article-deck { font-size: 15px; }
  .article-body { font-size: 16px; line-height: 1.95; }
  .article-body h2 { font-size: 21px; }
  .article-footer { align-items: flex-start; flex-direction: column; }
  .share-tools { justify-content: flex-start; }
  .entity-hero { grid-template-columns: 72px minmax(0, 1fr); gap: 15px; padding: 18px; }
  .entity-logo { width: 68px; height: 68px; font-size: 16px; }
  .entity-hero h1 { font-size: 24px; }
  .entity-hero p { display: -webkit-box; overflow: hidden; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .entity-actions { grid-column: 1 / -1; }
  .entity-facts dl { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; padding-top: 30px; }
  .footer-risk { grid-column: auto; }
  .footer-bottom { gap: 4px; align-items: flex-start; flex-direction: column; }
  .back-to-top { right: 14px; bottom: 14px; }
  .popup-ad { padding: 14px; }
  .popup-ad-dialog { width: calc(100vw - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
