:root {
  --ink: #102033;
  --muted: #65758b;
  --line: #e4e9f1;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --page: #f4f7fb;
  --navy: #101827;
  --blue: #2563eb;
  --cyan: #0ea5a6;
  --violet: #7c3aed;
  --amber: #d97706;
  --red: #dc2626;
  --shadow: 0 18px 60px rgba(16, 24, 39, 0.10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.10), transparent 28rem),
    radial-gradient(circle at 100% 10%, rgba(14, 165, 166, 0.10), transparent 26rem),
    var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
button, input, select { font: inherit; }

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.42), transparent 70%);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 166, .35), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(124, 58, 237, .35), transparent 24rem),
    var(--navy);
}
.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255,255,255,.025), 0 0 0 8rem rgba(255,255,255,.02);
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 28px 48px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.brand { display: flex; gap: 18px; align-items: center; }
.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #39d0c7, #4f7cff 58%, #9c6cff);
  font-weight: 900;
  letter-spacing: -.06em;
  font-size: 24px;
  box-shadow: 0 14px 40px rgba(57, 208, 199, .28);
}
.eyebrow, .section-kicker {
  margin: 0 0 4px;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
  color: #7dd3fc;
}
.hero h1 { margin: 0; font-size: clamp(28px, 5vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.hero-sub { margin: 10px 0 0; color: rgba(255,255,255,.70); font-size: 14px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  font-size: 13px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px rgba(52,211,153,.14); }

.shell { max-width: 1280px; margin: 0 auto; padding: 26px 28px 64px; position: relative; z-index: 2; }
.toolbar {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr .8fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.field label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.field input, .field select, .ghost-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}
.field input:focus, .field select:focus { border-color: #7da2ff; box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.ghost-button { cursor: pointer; font-weight: 700; background: #f8fafc; }
.ghost-button:hover { border-color: #94a3b8; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 30px; }
.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: 0 10px 30px rgba(16,24,39,.05);
}
.stat-value { font-size: 30px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.stat-label { margin-top: 7px; color: var(--muted); font-size: 12px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.count-pill, .tag, .platform, .score-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.count-pill { padding: 7px 11px; color: var(--blue); background: #eaf1ff; }
.topic-list { display: grid; gap: 16px; }
.topic-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 10px 32px rgba(16,24,39,.055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.topic-card:hover { transform: translateY(-2px); border-color: #c9d7ef; box-shadow: 0 18px 46px rgba(16,24,39,.10); }
.topic-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.platform { padding: 5px 9px; color: #075985; background: #e0f2fe; }
.score-pill { padding: 5px 9px; color: #92400e; background: #fef3c7; }
.tag { padding: 5px 9px; color: #5b21b6; background: #f3e8ff; }
.topic-card h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.topic-link { color: var(--blue); text-decoration: none; }
.topic-link:hover { text-decoration: underline; }
.meta-line { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.topic-section { margin-top: 15px; padding-top: 14px; border-top: 1px solid #eef2f7; }
.topic-section h4 { margin: 0 0 7px; font-size: 13px; color: #334155; }
.topic-section p { margin: 0; color: #475569; font-size: 14px; }
.topic-section ul { margin: 0; padding-left: 18px; color: #475569; font-size: 14px; }
.topic-section li + li { margin-top: 4px; }
.title-candidates { display: grid; gap: 7px; }
.title-candidate { padding: 9px 11px; background: #f8fafc; border-radius: 10px; color: #334155; font-size: 13px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.side-column { display: grid; gap: 16px; position: sticky; top: 20px; }
.side-card { padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-strong); box-shadow: 0 10px 30px rgba(16,24,39,.05); }
.side-card h3 { margin: 0 0 12px; font-size: 17px; }
.source-health { display: grid; gap: 9px; }
.health-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #f8fafc; font-size: 12px; }
.health-ok { color: #047857; font-weight: 800; }
.health-warn { color: #b45309; font-weight: 800; }
.primary-link { display: inline-flex; margin-top: 8px; color: var(--blue); text-decoration: none; font-weight: 800; }
.how-list { margin: 0; padding-left: 18px; color: #475569; font-size: 13px; }
.how-list li + li { margin-top: 7px; }
.empty-state { padding: 46px 24px; border: 1px dashed #cbd5e1; border-radius: var(--radius); background: rgba(255,255,255,.72); text-align: center; }
.empty-icon { font-size: 40px; color: #94a3b8; }
.empty-state h3 { margin: 8px 0; }
.empty-state p { margin: 0 auto; max-width: 540px; color: var(--muted); }
footer { padding: 0 28px 36px; text-align: center; color: #8593a8; font-size: 12px; }

@media (max-width: 980px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .side-column { position: static; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 30px 20px 36px; align-items: flex-start; flex-direction: column; }
  .shell { padding: 18px 16px 48px; }
  .toolbar { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .topic-card { padding: 18px; }
  .topic-card h3 { font-size: 18px; }
}
