:root {
  color-scheme: dark;
  --base: #141413;
  --panel: #1a1917;
  --ink: #eae7e0;
  --muted: #aaa49a;
  --secondary: #b8b1a6;
  --timestamp: #938d84;
  --accent: #bca484;
  --rule: rgba(188, 164, 132, .17);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body.newsroom { --footer-height: 60px; display: block; font-size: 14px; margin: 0; background: var(--base); color: var(--ink); position: relative; }
/* Sparse vector particles over a low-intensity warm wash. */
.newsroom::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 520px; pointer-events: none;
  background:
    url(./img/news-particles.svg?v=3) center top / max(100%, 780px) auto no-repeat,
    radial-gradient(ellipse 56% 80% at 50% 0%, rgba(182,151,108,.095), transparent 100%);
}
@media (max-width: 720px) { .newsroom::before { height: 380px; background-position: center 72px, center top; } }
#news { position: relative; padding-top: 64px; padding-bottom: calc(var(--footer-height) + 24px + env(safe-area-inset-bottom)); }
.newsroom #lang_toggle { border: 1px solid transparent; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(clamp(1040px, 67vw, 1280px), calc(100% - 96px)); margin-inline: auto; }
.site-footer {
  position: fixed; z-index: 2; inset: auto 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--rule); background: var(--base); color: var(--muted);
}
.footer-inner {
  height: var(--footer-height); display: grid; gap: 16px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  font-size: 12px;
}
.footer-inner > .pagination { grid-column: 2; }
.footer-inner > a { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: #8d867c; }
.footer-inner > a:hover, .footer-inner > a:focus-visible { color: var(--ink); }
.footer-inner > a svg { flex: none; }
.footer-inner { padding-inline: var(--news-right-gutter); }
.newsroom { --news-right-gutter: max(60px, calc((100% - 1920px) / 2 + 60px)); }
@media (max-width: 899px) { .newsroom { --news-right-gutter: 20px; } }
@media (max-width: 599px) { .newsroom { --news-right-gutter: 12px; } }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 18px; }
.intro-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.intro h1 { margin: 0; font-size: 23px; line-height: 1.2; }
.eyebrow { color: var(--accent); font-size: 10px; line-height: 20px; font-weight: 600; letter-spacing: .16em; }
h1 { margin: 12px 0 14px; font-size: 44px; line-height: 1.2; letter-spacing: -.035em; font-weight: 500; }
.result-count { color: var(--muted); }
.news-search {
  display: flex; width: min(300px, 100%); min-width: 0; min-height: 38px;
  padding: 2px; border: 1px solid var(--rule); border-radius: 6px;
  background: rgba(34, 30, 26, .45); font-size: 14px;
}
.news-search > svg { flex: none; align-self: center; margin-left: 7px; color: #938d84; }
.news-search input { flex: 1; width: 100%; min-width: 0; border: 0; padding: 0 8px 0 6px; background: transparent; }
.news-search input::placeholder { color: #938d84; opacity: 1; }
.news-search button {
  padding: 0 12px; border: 0; border-radius: 4px; white-space: nowrap;
  background: rgba(198, 173, 134, .08); color: var(--accent);
}
.news-search button:hover { background: rgba(198, 173, 134, .14); }
time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-index { margin-top: 6px; }
.index-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.related h2 { font-size: 21px; font-weight: 500; letter-spacing: -.04em; }
.index-header h2 { font-size: 16px; font-weight: 500; }
.index-header > a { color: var(--accent); }
.filters { position: relative; display: flex; gap: 4px 12px; flex-wrap: wrap; }
.filters a { position: relative; display: grid; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); font-size: 16px; }
.filters a[aria-current], .filters a:hover { color: var(--ink); }
.filter-indicator {
  position: absolute; bottom: 0; left: calc(100% / 6); width: calc(200% / 3);
  height: 2px; border-radius: 2px; background: var(--accent); pointer-events: none;
}
.result-count { margin: 6px 0 12px; font-size: 11px; overflow-wrap: anywhere; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.news-list li + li { border-top: 1px solid var(--rule); }
.news-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 17px 0; }
.row-date { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: -.02em; text-align: right; }
.row-date time, .article-meta time { color: var(--timestamp); }
.tag {
  display: inline-flex; align-items: center; min-height: 20px; padding: 3px;
  border: 1px solid rgba(188,164,132,.24); border-radius: 4px;
  background: rgba(188,164,132,.06); color: var(--accent); font-size: 12px; line-height: 16px;
}
.row-heading { display: flex; align-items: center; gap: 6px; }
.row-heading > :not(h3) { flex-shrink: 0; }
.row-copy h3 { min-width: 0; color: #f3f0ea; font-size: 16px; font-weight: 500; line-height: 1.35; }
.news-row:hover h3, .news-row:focus-visible h3 { color: #fff; }
.row-copy { min-width: 0; overflow-wrap: anywhere; }
.row-copy p {
  color: var(--muted); font-size: 14px; line-height: 1.6;
  margin-top: 3px;
}
.row-copy h3, .row-copy p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-row > img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.news-cover-placeholder { display: grid; place-items: center; aspect-ratio: 16/9; border-radius: 6px; background: #20201e; }
.news-cover-placeholder img { width: 54%; height: auto; opacity: .32; }
.pagination { display: flex; justify-content: safe center; gap: 6px; overflow-x: auto; padding: 6px; }
.pagination a, .pagination button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 5px; background: rgba(198, 173, 134, .045); font-size: 12px; }
.pagination a, .pagination button { flex-shrink: 0; white-space: nowrap; min-width: 32px; min-height: 34px; padding: 0 9px; }
.pagination-step { flex: 0 0 72px; }
.pagination-step > * { width: 100%; }
.pagination button:disabled { color: #777168; background: transparent; cursor: default; }
.pagination a[aria-current], .pagination a:hover, .share:hover { border-color: rgba(198, 173, 134, .5); color: var(--accent); }
.empty { padding: 32px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.article-page { max-width: 900px; margin-inline: auto; padding-top: 24px; }
.article-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border: 1px solid rgba(188,164,132,.3); border-radius: 6px;
  background: rgba(188,164,132,.055); color: var(--ink); font-size: 11px;
}
.back-link svg { color: var(--accent); }
.back-link:hover { border-color: rgba(188,164,132,.56); background: rgba(188,164,132,.1); }
.article-header { margin-top: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.article-header h1 { margin: 7px 0 5px; font-size: 34px; overflow-wrap: anywhere; }
.article-meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 12px; }
.share {
  display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 8px;
  border: 1px solid var(--rule); border-radius: 5px;
  background: rgba(198, 173, 134, .035); color: var(--muted); font-size: 11px;
}
.share svg { flex: none; }
.share-status:not(:empty) { margin-top: 12px; color: var(--accent); font-size: 12px; }
.share-fallback { margin-top: 14px; }
.share-fallback input { width: 100%; margin-top: 8px; padding: 10px; background: var(--panel); border: 1px solid var(--rule); }
.article-body { padding-top: 14px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.article-body > * + * { margin-top: 16px; }
.article-body img, .article-body video { width: 100%; background: #080808; border-radius: 8px; }
.article-body figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; }
.related { max-width: 900px; margin: 28px auto 0; }
.related h2 { margin-bottom: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .shell { width: calc(100% - 40px); }
  .intro { align-items: stretch; flex-direction: column; gap: 12px; padding: 18px 0 14px; }
  .intro h1 { font-size: 20px; }
  .news-search { min-height: 38px; font-size: 14px; }
  h1 { font-size: 32px; }
  .article-header h1 { font-size: 25px; }
  .index-header { gap: 6px; }
  .news-row { grid-template-columns: min(19%, 80px) minmax(0, 1fr) auto; gap: 8px; padding: 16px 0; }
  .row-heading { gap: 4px; flex-wrap: wrap; }
  .row-heading h3 { flex-basis: 100%; }
  .row-heading > :not(h3) { max-width: 100%; }
  .article-page { padding-top: 14px; }
  .article-tools .back-link { min-height: 40px; }
  .article-tools .share { min-height: 32px; }
  .article-meta { font-size: 11px; }
  .article-body { font-size: 13px; }
  body.newsroom { --footer-height: 48px; }
  body.newsroom:has(.pagination) { --footer-height: 84px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
  .footer-inner .pagination { grid-area: 1 / 1 / 2 / -1; }
  .footer-inner > a { grid-column: 2; }
}
@media (max-width: 480px) {
  .news-row { grid-template-columns: minmax(0, 1fr) auto; }
  .news-row > img, .news-cover-placeholder { display: none; }
  .filters { gap: 4px 8px; }
  .filters a { padding-inline: 4px; font-size: 14px; }
  .newsroom .site-nav-link { padding-inline: 8px; white-space: nowrap; }
}
.video-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fullscreen { min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 5px; background: var(--panel); white-space: nowrap; }
.fullscreen:hover { border-color: var(--accent); }

@media (max-width: 899px) { #news { padding-top: 108px; } }
@media (min-width: 600px) and (max-width: 899px) { #news { padding-top: 72px; } }
.intro > div { flex: 1; min-width: 0; }
.news-search { flex-shrink: 1; }
.video-caption span { flex: 1; min-width: 0; }

.media-type { white-space: nowrap; color: var(--muted); font-size: 10px; }
.media-type svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 4px; }


.news-search { transition: border-color .15s ease; }
.news-search:focus-within { border-color: rgba(188,164,132,.43); }
.news-search input:focus-visible, .news-search button:focus-visible { outline: none; }
.news-search button:focus-visible { background: rgba(188,164,132,.15); }

@media (prefers-reduced-motion: reduce) { .news-search { transition: none; } }
