:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-strong: #111827;
  --text: #1f2937;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #c83f2d;
  --accent-soft: #fff1ee;
  --blue: #1c66d1;
  --green: #0f8b6f;
  --shadow: 0 18px 45px rgba(30, 41, 59, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.eyebrow,
.date-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.topbar button,
.filters button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.topbar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
}

.topbar button:disabled {
  cursor: wait;
  opacity: 0.65;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 52px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  min-height: 260px;
  padding: clamp(24px, 5vw, 52px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, 0.92), rgba(29, 78, 216, 0.7)),
    url("https://images.unsplash.com/photo-1552519507-da3b142c6e3d?auto=format&fit=crop&w=1800&q=80") center/cover;
  border-radius: 8px;
  align-items: end;
  box-shadow: var(--shadow);
}

.hero h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.7;
}

.meta-panel {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.meta-panel span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.meta-panel strong {
  margin-bottom: 8px;
  font-size: 16px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filters button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-weight: 700;
}

.filters button.active {
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  color: #fff;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 330px);
  padding: 0 14px;
  min-height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search span {
  color: var(--muted);
  font-size: 13px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.grid-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.highlights,
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.highlights {
  position: sticky;
  top: 104px;
  padding: 20px;
}

.highlights h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.highlight-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.highlight-item {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.story-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.story-gallery figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe6ee;
}

.story-gallery.compact {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2px;
}

.story-gallery.compact figure {
  aspect-ratio: 1 / 1;
}

.story-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.highlight-item a,
.news-card a {
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.highlight-item a:hover,
.news-card a:hover {
  color: var(--blue);
}

.subcopy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tag-row,
.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.topic {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#itemCount {
  color: var(--muted);
  font-size: 14px;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.news-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.source {
  color: var(--green);
  font-weight: 800;
}

.empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .hero,
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .highlights {
    position: static;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar button {
    width: 100%;
    justify-content: center;
  }

  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding: 24px;
  }

  .news-card {
    padding: 14px;
  }

  .story-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .story-gallery figure {
    aspect-ratio: 1 / 1;
  }
}
