:root {
  color-scheme: light;
  --ink: #1b2634;
  --muted: #637083;
  --line: #d9e1ea;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --accent: #1d8a8a;
  --accent-strong: #0f6b79;
  --warm: #d56b45;
  --violet: #635bff;
  --shadow: 0 18px 48px rgba(30, 43, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: #eef4f6;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
}

.brand,
.nav-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 13px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-actions a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.icon-button {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  transition: border-color 180ms ease, transform 180ms ease;
  width: 40px;
}

.icon-button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.icon-button.is-loading span {
  animation: rotate 900ms linear infinite;
}

.hero {
  min-height: min(72vh, 760px);
  overflow: hidden;
  position: relative;
}

.hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(247, 249, 251, 0.96) 0%, rgba(247, 249, 251, 0.78) 44%, rgba(247, 249, 251, 0.14) 100%),
    linear-gradient(0deg, rgba(247, 249, 251, 0.88) 0%, rgba(247, 249, 251, 0) 34%);
  inset: 0;
  position: absolute;
}

.hero-content {
  max-width: 720px;
  padding: 84px 32px 104px;
  position: relative;
}

.eyebrow,
.section-kicker {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
}

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

h1 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.96;
  margin-bottom: 24px;
  max-width: 680px;
}

.hero-copy {
  color: #354456;
  font-size: 19px;
  line-height: 1.75;
  max-width: 620px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-meta span,
.story-category,
.source-pill {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344255;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 11px;
}

main {
  margin: -56px auto 0;
  max-width: 1180px;
  padding: 0 24px 64px;
  position: relative;
}

.control-panel {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-bottom: 22px;
  padding: 18px;
}

.search-box {
  align-items: center;
  background: #f3f6f8;
  border: 1px solid transparent;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 0 14px;
}

.search-box:focus-within {
  border-color: var(--accent);
  background: white;
}

.search-box label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  min-width: 0;
  outline: 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-tab {
  background: #f2f5f7;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #465569;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 40px;
  padding: 0 14px;
}

.filter-tab.is-active {
  background: var(--ink);
  color: white;
}

.briefing-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 1.08fr) minmax(320px, 1.5fr);
}

.lead-story,
.story-card,
.source-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lead-story {
  box-shadow: var(--shadow);
  min-height: 470px;
  overflow: hidden;
  padding: 28px;
}

.lead-story::before {
  background: linear-gradient(135deg, rgba(29, 138, 138, 0.22), rgba(213, 107, 69, 0.16));
  border-radius: 8px;
  content: "";
  display: block;
  height: 146px;
  margin-bottom: 26px;
}

.lead-story h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
  margin-bottom: 18px;
}

.lead-story p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.lead-link {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 16px;
}

.story-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card {
  display: flex;
  flex-direction: column;
  min-height: 254px;
  padding: 20px;
}

.story-topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.story-source {
  color: var(--accent-strong);
}

.story-card h3 {
  font-size: 19px;
  line-height: 1.24;
  margin-bottom: 12px;
}

.story-card p {
  color: var(--muted);
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.story-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
}

.story-footer a {
  color: var(--warm);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.story-category {
  background: #f4f7f8;
  padding: 7px 10px;
}

.source-strip {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.4fr);
  margin-top: 24px;
  padding: 26px;
}

.source-strip h2 {
  font-size: 24px;
  margin-bottom: 0;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.source-pill {
  background: #f4f7f8;
}

.empty-state {
  color: var(--muted);
  grid-column: 1 / -1;
  line-height: 1.7;
  padding: 32px;
  text-align: center;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .topbar {
    padding: 0 20px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(247, 249, 251, 0.98) 0%, rgba(247, 249, 251, 0.82) 56%, rgba(247, 249, 251, 0.32) 100%),
      linear-gradient(0deg, rgba(247, 249, 251, 0.95), rgba(247, 249, 251, 0));
  }

  .hero-content {
    padding: 62px 22px 120px;
  }

  main {
    padding-inline: 16px;
  }

  .control-panel,
  .briefing-grid,
  .source-strip {
    grid-template-columns: 1fr;
  }

  .filter-tabs,
  .source-list {
    justify-content: flex-start;
  }
}

@media (max-width: 660px) {
  .topbar {
    min-height: 66px;
  }

  .nav-actions a {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  h1 {
    font-size: 46px;
  }

  .story-list {
    grid-template-columns: 1fr;
  }

  .lead-story {
    min-height: auto;
  }

  .lead-story::before {
    height: 110px;
  }

  .search-box {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 14px;
  }

  .search-box input {
    min-height: 36px;
  }
}
