:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #637083;
  --line: #d9e0e8;
  --paper: #f8faf8;
  --panel: #ffffff;
  --green: #146c5c;
  --blue: #275caa;
  --red: #b94343;
  --gold: #9b6b19;
  --violet: #6a4ca3;
  --shadow: 0 16px 40px rgba(31, 42, 55, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 24px;
  background: rgba(248, 250, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  padding: 52px 0 28px;
}

.hero-copy {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 4px solid var(--ink);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 8vw, 92px);
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.dek {
  max-width: 680px;
  margin: 18px 0 0;
  color: #405066;
  font-size: 19px;
}

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

.hero-meta span,
.chip,
.tag {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 8px 12px;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.brief-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 22px;
  background: #1d2a35;
  color: #f7fbff;
  box-shadow: var(--shadow);
}

.brief-panel span {
  color: #8fd5c4;
  font-weight: 800;
}

.brief-panel ol {
  margin: 28px 0 0;
  padding-left: 22px;
}

.brief-panel li + li {
  margin-top: 14px;
}

.controls {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0 22px;
}

.chip {
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.feed {
  display: grid;
  gap: 18px;
  padding-bottom: 42px;
}

.story {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.story-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-mark {
  width: 44px;
  height: 6px;
  background: var(--green);
}

.category-sports .category-mark {
  background: var(--blue);
}

.category-economy .category-mark {
  background: var(--gold);
}

.category-military .category-mark {
  background: var(--red);
}

.category-entertainment .category-mark {
  background: var(--violet);
}

.story h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.story p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #405066;
}

.why {
  padding-left: 14px;
  border-left: 3px solid var(--line);
}

.story-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.archive-band,
.sources-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 28px;
  padding: 44px 0;
  border-top: 4px solid var(--ink);
}

.archive-list {
  display: grid;
  gap: 10px;
}

.archive-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.archive-item strong {
  color: var(--ink);
}

.archive-item span {
  color: var(--muted);
}

.sources-band {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sources-band p:last-child {
  margin: 0;
  color: #405066;
  font-size: 19px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.wechat-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: center;
  padding: 56px 0;
}

.wechat-hero {
  border-bottom: 4px solid var(--ink);
  padding-bottom: 28px;
}

.wechat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.copy-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.qr-card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.qr-card img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto 18px;
}

.qr-card p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.qr-card strong {
  overflow-wrap: anywhere;
}

.empty {
  padding: 40px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

  .hero,
  .archive-band,
  .sources-band,
  .wechat-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy,
  .brief-panel {
    min-height: auto;
  }

  .brief-panel {
    padding: 18px;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .story-label {
    flex-direction: row;
    align-items: center;
  }

  .footer {
    flex-direction: column;
  }
}
