:root {
  --canvas: #fff;
  --ink: #111114;
  --muted: #6d6c7d;
  --line: #e8e8f2;
  --violet: #6e40ff;
  --violet-deep: #4b22d6;
  --sky: #0797ff;
  --sky-deep: #0069aa;
  --mint: #00b99a;
  --sunshine: #ffe045;
  --soft: #f5f5ff;
  --gutter: clamp(20px, 4vw, 64px);
  --header-height: 72px;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #fff; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(110,64,255,.28); outline-offset: 3px; }
.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; }
.news-shell { min-height: 100vh; display: flex; flex-direction: column; }

.site-header { min-height: var(--header-height); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 20; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.brand span { color: var(--violet); }
.site-nav { display: flex; justify-content: center; align-items: center; gap: 3px; }
.site-nav a { color: #44434f; text-decoration: none; font-size: .79rem; font-weight: 650; padding: 9px 10px; border-radius: 11px; white-space: nowrap; transition: color 180ms ease, background 180ms ease; }
.site-nav a:hover { color: var(--ink); background: var(--soft); }
.site-nav a[aria-current="page"] { color: var(--sky-deep); background: #e7f5ff; }
.account-button { min-width: 78px; min-height: 40px; border: 1px solid #cdccdc; border-radius: 13px; background: #fff; font-size: .8rem; font-weight: 700; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.account-button:hover { border-color: var(--violet); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(73,56,147,.12); }
.account-button .avatar { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: var(--violet); color: #fff; font-size: .7rem; }

.news-page { width: min(1390px, 100%); margin: 0 auto; padding: 44px var(--gutter) 40px; flex: 1; }
.news-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 410px); gap: 54px; align-items: end; }
.news-intro h1 { max-width: 720px; margin: 0; font-size: clamp(2.7rem, 5vw, 5.1rem); line-height: .98; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.news-intro p { max-width: 720px; margin: 21px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.75; }
.news-search { min-height: 50px; display: flex; align-items: center; gap: 11px; border: 1px solid #dcdbea; border-radius: 14px; padding: 0 15px; background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease; }
.news-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(110,64,255,.09); }
.news-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; }
.news-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .82rem; }
.news-search input::placeholder { color: #858396; }

.filter-bar { margin: 34px 0 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; }
.region-filter { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.filter-label { color: var(--muted); font-size: .68rem; font-weight: 700; }
.region-tabs { display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.region-button { min-width: 52px; min-height: 33px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 720; padding: 0 12px; cursor: pointer; transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.region-button:hover { color: var(--ink); }
.region-button.is-active { background: #fff; color: var(--violet-deep); box-shadow: 0 5px 16px rgba(42,32,98,.1); }
.channel-tabs { min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.channel-tabs::-webkit-scrollbar { display: none; }
.channel-button { min-height: 39px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #555463; font-size: .74rem; font-weight: 680; padding: 0 15px; cursor: pointer; transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.channel-button:hover { border-color: #cbc8df; color: var(--ink); }
.channel-button.is-active { border-color: var(--sky); background: #eaf6ff; color: var(--sky-deep); }

.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.news-feed { min-width: 0; }
.lead-story { min-height: 260px; border-radius: 23px; background: var(--sky); color: #fff; padding: clamp(24px, 4vw, 42px); display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; align-items: end; position: relative; overflow: hidden; }
.lead-story::after { content: ""; width: 260px; height: 260px; border: 2px solid rgba(255,255,255,.36); border-radius: 50%; position: absolute; right: -68px; top: -85px; box-shadow: 0 0 0 42px rgba(255,255,255,.07), 0 0 0 88px rgba(255,255,255,.05); }
.lead-copy { position: relative; z-index: 1; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: rgba(255,255,255,.8); font-size: .7rem; font-weight: 650; }
.region-badge { min-height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #f0edff; color: var(--violet-deep); font-size: .61rem; font-weight: 800; line-height: 1; padding: 0 7px; }
.story-meta .region-badge { border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.18); color: #fff; }
.lead-story h2 { max-width: 720px; margin: 15px 0 11px; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -.03em; }
.lead-story p { max-width: 720px; margin: 0; color: rgba(255,255,255,.83); font-size: .85rem; line-height: 1.65; }
.lead-action { align-self: end; justify-self: end; position: relative; z-index: 1; min-height: 46px; border: 1px solid rgba(255,255,255,.64); border-radius: 13px; background: #fff; color: #005d98; font-size: .76rem; font-weight: 750; padding: 0 17px; cursor: pointer; }
.lead-action:hover { background: #eef8ff; }

.feed-heading { margin: 30px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.feed-heading h2 { margin: 0; font-size: 1.1rem; }
.feed-heading span { color: var(--muted); font-size: .7rem; }
.article-list { border-top: 1px solid var(--line); }
.article-row { width: 100%; min-height: 128px; display: grid; grid-template-columns: 112px minmax(0, 1fr) 38px; gap: 22px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 18px 4px; text-align: left; cursor: pointer; transition: background 180ms ease; }
.article-row:hover { background: #fbfbff; }
.article-date { align-self: start; padding-top: 4px; }
.article-date strong { display: block; font-size: .82rem; }
.article-date span { display: block; margin-top: 5px; color: var(--sky-deep); font-size: .67rem; font-weight: 700; }
.article-copy { min-width: 0; }
.article-copy h3 { margin: 0; font-size: 1rem; line-height: 1.45; letter-spacing: -.015em; }
.article-copy p { margin: 7px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.article-source { margin-top: 9px; display: flex; align-items: center; gap: 7px; color: #666477; font-size: .65rem; font-weight: 680; }
.article-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.article-tag { color: #605d74; font-size: .63rem; font-weight: 650; }
.article-arrow { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 11px; display: grid; place-items: center; color: var(--violet); }
.article-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.editorial-rail { display: grid; gap: 15px; position: sticky; top: calc(var(--header-height) + 20px); }
.editorial-rail section { border: 1px solid var(--line); border-radius: 17px; padding: 19px; }
.editorial-rail h2 { margin: 0; font-size: .9rem; }
.editorial-rail p { margin: 8px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.65; }
.source-ledger dl { margin: 17px 0 0; }
.source-ledger dl div { display: grid; grid-template-columns: 55px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.source-ledger dt { color: var(--sky-deep); font-size: .67rem; font-weight: 750; }
.source-ledger dd { margin: 0; color: #555463; font-size: .67rem; }
.boundary-note { background: var(--soft); border-color: transparent !important; }
.boundary-note a { display: inline-block; margin-top: 13px; color: var(--violet-deep); font-size: .7rem; font-weight: 750; text-decoration: none; border-bottom: 1px solid currentColor; }
.update-note span { color: var(--muted); font-size: .66rem; }
.update-note strong { display: block; margin-top: 5px; font-size: .86rem; }

.empty-state { padding: 60px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.empty-state h2 { margin: 0; font-size: 1rem; }
.empty-state p { margin: 7px 0 0; color: var(--muted); font-size: .75rem; }
.empty-state button { min-height: 38px; margin-top: 16px; border: 1px solid #d6d4e5; border-radius: 11px; background: #fff; color: var(--violet-deep); font-size: .72rem; font-weight: 750; padding: 0 14px; cursor: pointer; }
.empty-state button:hover { border-color: var(--violet); background: var(--soft); }

.site-footer { min-height: 54px; border-top: 1px solid var(--line); padding: 14px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: .69rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--violet-deep); }

.detail-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(17,17,20,.26); }
.article-drawer { width: min(540px, 100vw); position: fixed; inset: 0 0 0 auto; z-index: 50; background: #fff; border-left: 1px solid var(--line); box-shadow: -24px 0 70px rgba(32,25,72,.16); padding: 58px 36px 36px; overflow-y: auto; transform: translateX(104%); transition: transform 240ms cubic-bezier(.22,1,.36,1); }
.article-drawer.is-open { transform: translateX(0); }
.drawer-close { position: absolute; top: 18px; right: 20px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.drawer-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-meta { color: var(--sky-deep); font-size: .7rem; font-weight: 750; }
.drawer-title { margin: 10px 0 12px; font-size: clamp(1.6rem, 4vw, 2.35rem); line-height: 1.12; letter-spacing: -.03em; }
.drawer-deck { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.drawer-section { margin-top: 26px; padding-top: 21px; border-top: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 10px; font-size: .84rem; }
.drawer-section p { margin: 0; color: #555463; font-size: .77rem; line-height: 1.75; }
.source-block { margin-top: 22px; padding: 15px; border-radius: 14px; background: #eaf6ff; }
.source-block span { color: var(--sky-deep); font-size: .66rem; font-weight: 750; }
.source-name-line { margin-top: 5px; display: flex; align-items: center; gap: 8px; }
.source-block strong { display: block; font-size: .8rem; }
.source-link { min-height: 43px; margin-top: 13px; border-radius: 12px; background: var(--sky); color: #fff; text-decoration: none; font-size: .74rem; font-weight: 750; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; }
.source-link:hover { background: var(--sky-deep); }
.source-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.related-links { display: grid; gap: 8px; }
.related-links a { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .72rem; font-weight: 700; padding: 0 13px; }
.related-links a:hover { border-color: var(--violet); color: var(--violet-deep); }

.auth-notice { position: fixed; left: 50%; bottom: 24px; z-index: 80; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 13px; background: #24232d; color: #fff; font-size: .78rem; opacity: 0; transform: translate(-50%,14px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.auth-notice.is-visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1120px) {
  .site-header { gap: 14px; }
  .site-nav a { padding-inline: 7px; font-size: .74rem; }
  .news-grid { grid-template-columns: minmax(0, 1fr) 245px; gap: 24px; }
}

@media (max-width: 860px) {
  :root { --header-height: 122px; }
  .site-header { grid-template-columns: 1fr auto; grid-template-rows: 67px 55px; padding-inline: 20px; position: relative; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 3px 20px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; min-height: 43px; display: inline-flex; align-items: center; }
  .news-page { padding-inline: 20px; }
  .news-intro { grid-template-columns: 1fr; gap: 24px; }
  .news-intro h1 { font-size: clamp(2.7rem, 11vw, 4.5rem); }
  .filter-bar { grid-template-columns: 1fr; gap: 12px; }
  .region-filter { justify-content: space-between; }
  .news-grid { grid-template-columns: 1fr; }
  .editorial-rail { position: static; grid-template-columns: repeat(2, 1fr); }
  .update-note { display: none; }
}

@media (max-width: 620px) {
  .brand { font-size: 1.35rem; }
  .account-button { min-width: 70px; padding-inline: 11px; }
  .news-page { padding-top: 32px; }
  .news-intro h1 { font-size: 2.65rem; }
  .filter-label { display: none; }
  .region-filter { justify-content: flex-start; }
  .lead-story { min-height: 310px; grid-template-columns: 1fr; align-items: end; }
  .lead-action { justify-self: start; }
  .article-row { grid-template-columns: 72px minmax(0,1fr); gap: 13px; }
  .article-arrow { display: none; }
  .editorial-rail { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .article-drawer { padding-inline: 22px; }
}

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