:root {
  --paper: #fff;
  --surface: #f6f6f6;
  --ink: #202124;
  --muted: #747474;
  --secondary: #606060;
  --line: #e5e5e5;
  --accent: #a9322a;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #181818;
  --surface: #232323;
  --ink: #e4e4e4;
  --muted: #999;
  --secondary: #aaa;
  --line: #343434;
  --accent: #e2968c;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 22px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button {
  border: 0;
  background: none;
  cursor: pointer;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
svg.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
span[data-icon] {
  display: inline-flex;
  align-items: center;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.header {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1160px;
  margin: auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 0 28px;
}
.brand {
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-name {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}
.icon-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  border-radius: 3px;
}
.icon-button:hover {
  background: var(--surface);
}
.saved-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}
.saved-link b {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
}
.page {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px;
}
.update-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
#update-status {
  margin-left: auto;
}
.update-bar button {
  font-size: 11px;
  color: var(--secondary);
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 44px;
  margin-top: 25px;
  margin-bottom: 40px;
}
.news-section {
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.section-heading h1 {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.5;
  margin: 0;
}
.result-count {
  font-size: 12px;
  color: var(--muted);
}
.filter-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}
.filter-tabs button,
.filter-tabs a {
  font-size: 13px;
  white-space: nowrap;
  padding: 0 0 10px;
  color: var(--secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.filter-tabs button.selected,
.filter-tabs a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.filter-tabs button:hover,
.filter-tabs a:hover {
  color: var(--ink);
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  border: 1px solid var(--line);
  padding: 0 9px;
  max-width: 350px;
  flex: 1;
  min-width: 0;
  color: var(--muted);
}
.search-box:focus-within {
  border-color: var(--muted);
}
.search-box input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  font-size: 12px;
}
.search-box svg {
  width: 14px;
  height: 14px;
}
.search-box kbd {
  font: 11px monospace;
  color: var(--muted);
}
.source-select select {
  border: 0;
  background: transparent;
  padding: 5px 0;
  font-size: 12px;
  max-width: 108px;
  color: var(--secondary);
}
.date-button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--secondary);
  padding: 6px 0;
}
.date-button svg {
  width: 14px;
  height: 14px;
}
.date-button.active {
  color: var(--accent);
}
.date-panel {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--secondary);
}
.date-panel input {
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 7px;
}
.text-button {
  font-size: 12px;
  color: var(--secondary);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button svg {
  width: 13px;
}
.view-note {
  font-size: 12px;
  color: var(--secondary);
  padding: 10px 12px;
  background: var(--surface);
  line-height: 1.8;
  margin: 12px 0 0;
}
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 12px;
  padding: 17px 0 16px;
  border-bottom: 1px solid var(--line);
}
.article h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.article h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article p {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 9px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 2px;
  font-size: 11px;
  color: var(--muted);
}
.category-label {
  color: var(--secondary);
}
.save-button {
  width: 28px;
  height: 28px;
  padding: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  border-radius: 3px;
}
.save-button svg {
  width: 16px;
  height: 16px;
}
.save-button:hover {
  background: var(--surface);
}
.save-button.saved {
  color: var(--accent);
}
.save-button.saved svg {
  fill: var(--surface);
}
.article-number {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.load-more {
  border: 1px solid var(--line);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px auto 0;
  min-width: 150px;
  font-size: 12px;
  color: var(--secondary);
}
.load-more:hover {
  background: var(--surface);
}
.load-more svg {
  width: 14px;
  height: 14px;
}
.list-end {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 20px 0;
}
.sidebar {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.sidebar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--ink);
}
.sidebar-heading h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.sidebar-heading > span,
.sidebar-heading > a {
  font-size: 11px;
  color: var(--muted);
}
.sidebar ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.sidebar li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sidebar li a {
  font-size: 13px;
  line-height: 1.7;
  display: block;
  overflow-wrap: anywhere;
}
.sidebar li p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.sidebar-section,
.source-card {
  margin-top: 27px;
}
.source-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
  margin: 15px 0 18px;
  font-size: 12px;
  color: var(--secondary);
}
.footer {
  max-width: 1104px;
  margin: 0 auto;
  padding: 20px 0 25px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}
.footer-links {
  display: flex;
  gap: 23px;
  align-items: center;
}
.footer-links button {
  font-size: 11px;
  color: inherit;
  padding: 0;
}
.empty-state,
.loading-state {
  text-align: center;
  padding: 50px 12px;
  color: var(--secondary);
  border-bottom: 1px solid var(--line);
}
.empty-state > .icon {
  width: 25px;
  height: 25px;
  color: var(--muted);
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 13px 0 8px;
}
.empty-state p,
.loading-state p {
  font-size: 12px;
}
.empty-state button {
  padding: 8px 15px;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
}
.loading-ring {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 24px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 85vh;
}
dialog::backdrop {
  background: #0006;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 17px;
}
.dialog-heading h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 600;
}
#dialog-content > p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.9;
}
#dialog-content h3 {
  font-size: 14px;
  margin: 20px 0 7px;
}
#dialog-content a:hover {
  text-decoration: underline;
}
.source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.source-row small {
  font-size: 11px;
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.source-status {
  font-size: 11px;
  color: var(--secondary);
  white-space: nowrap;
}
.source-status.unavailable {
  color: var(--accent);
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 17px;
  font-size: 12px;
  z-index: 30;
  max-width: 90vw;
  text-align: center;
}
.noscript {
  padding: 20px;
  text-align: center;
  background: var(--surface);
}
@media (max-width: 1000px) {
  .header-inner {
    gap: 28px;
  }
  .header-actions {
    gap: 6px;
  }
  .main-layout {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .sidebar {
    padding-left: 20px;
  }
  .footer {
    margin: 0 28px;
  }
  .brand-name {
    font-size: 23px;
  }
  .filter-row {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  .header-inner {
    gap: 16px;
    min-height: 60px;
  }
  .brand-name {
    font-size: 23px;
  }
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
  .main-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
  }
  .update-bar {
    flex-wrap: wrap;
    gap: 2px 15px;
    padding: 10px 0;
    line-height: 1.9;
  }
  #edition-date {
    width: 100%;
  }
  #update-status {
    margin-left: 0;
  }
  .update-bar button {
    margin-left: auto;
  }
  .main-layout {
    margin-top: 20px;
  }
  .section-heading h1 {
    font-size: 19px;
  }
  .section-heading {
    margin-bottom: 15px;
  }
  .article {
    padding: 15px 0;
  }
  .article p {
    -webkit-line-clamp: 2;
  }
  .filter-tabs {
    gap: 25px;
  }
  .footer {
    font-size: 10px;
  }
  .footer-links {
    gap: 17px;
  }
  .footer-links button {
    font-size: 10px;
  }
}
@media (max-width: 450px) {
  .header-inner,
  .page {
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer {
    margin-left: 18px;
    margin-right: 18px;
  }
  .brand-name {
    font-size: 22px;
  }
  .saved-link > span:not([data-icon]) {
    display: none;
  }
  .saved-link {
    gap: 3px;
  }
  .header-actions {
    gap: 6px;
  }
  .filter-tabs {
    justify-content: space-between;
    gap: 8px;
  }
  .filter-tabs button,
  .filter-tabs a {
    font-size: 12px;
  }
  .filter-row {
    gap: 9px;
  }
  .search-box {
    padding: 0 7px;
    gap: 5px;
  }
  .search-box input {
    font-size: 11px;
  }
  .search-box kbd {
    display: none;
  }
  .source-select select {
    max-width: 84px;
    font-size: 11px;
  }
  .date-button {
    font-size: 11px;
  }
  .article {
    gap: 6px;
  }
  .article h3 {
    font-size: 16px;
  }
  .article p {
    font-size: 12px;
  }
  .article-meta {
    column-gap: 11px;
    font-size: 10px;
  }
  .footer {
    gap: 12px;
  }
  .footer-links {
    gap: 13px;
  }
  .date-panel label {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
