:root {
  --ink: #191627;
  --muted: #6d687c;
  --purple: #5b35c9;
  --purple-dark: #291363;
  --lavender: #eee9fb;
  --cream: #fbfaf7;
  --line: #e3dfeb;
  --orange: #ef7b45;
  --green: #1d8b67;
  --shadow: 0 18px 50px rgba(40, 24, 83, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; }
.topbar { height: 72px; padding: 0 max(24px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); background: var(--purple-dark); color: #fff; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: var(--purple-dark); background: #ffdc75; font-size: 24px; transform: rotate(-4deg); }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .08em; font-size: 15px; }
.brand small { color: #cfc3f6; margin-top: 2px; font-size: 11px; }
.freshness { display: flex; align-items: center; gap: 8px; color: #d8cff7; font-size: 12px; }
.freshness span { width: 8px; height: 8px; border-radius: 50%; background: #70e4b6; box-shadow: 0 0 0 5px rgba(112,228,182,.12); }
.freshness.stale span { background: #ffc36d; box-shadow: 0 0 0 5px rgba(255,195,109,.13); }

.hero { padding: 58px max(24px, calc((100% - 1180px) / 2)) 84px; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(320px,.6fr); gap: 70px; align-items: center; background: radial-gradient(circle at 73% 30%, rgba(143,109,255,.28), transparent 23%), linear-gradient(135deg, #25115d, #38217b 65%, #4b2d9b); color: white; }
.eyebrow { margin: 0 0 10px; color: #7a57db; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.hero .eyebrow { color: #cdbdff; }
.hero h1 { margin: 0; max-width: 700px; font-size: clamp(42px, 6vw, 74px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 em { color: #ffd46c; font-style: normal; }
.intro { max-width: 650px; margin: 25px 0 0; color: #dcd5f5; font-size: 16px; line-height: 1.9; }
.pulse-card { display: flex; align-items: center; gap: 20px; padding: 25px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.pulse-card small, .pulse-card strong, .pulse-card p { display: block; margin: 0; }
.pulse-card small { color: #bfb2e5; font-size: 11px; }
.pulse-card strong { margin-top: 5px; font-size: 18px; }
.pulse-card p { margin-top: 6px; color: #bfb2e5; font-size: 12px; }
.radar { position: relative; flex: 0 0 auto; width: 88px; height: 88px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.07) 0 1px, transparent 1px 20px); overflow: hidden; }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(255,255,255,.1); }
.radar::before { width: 100%; height: 1px; top: 50%; }
.radar::after { height: 100%; width: 1px; left: 50%; }
.radar i { position: absolute; inset: 50% 50% 0 0; transform-origin: bottom right; background: linear-gradient(35deg, transparent, rgba(112,228,182,.55)); animation: sweep 4s linear infinite; }
.radar b { position: absolute; width: 6px; height: 6px; left: 67%; top: 30%; border-radius: 50%; background: #70e4b6; box-shadow: 0 0 0 5px rgba(112,228,182,.14); }
.radar span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ffdc75; color: var(--purple-dark); }
@keyframes sweep { to { transform: rotate(360deg); } }

.stats { max-width: 1180px; margin: -36px auto 0; padding: 0 24px; position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; }
.stats article { padding: 25px 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stats article:first-child { border-radius: 18px 0 0 18px; }
.stats article:last-child { border-radius: 0 18px 18px 0; }
.stats span, .stats small { display: block; color: var(--muted); font-size: 12px; }
.stats strong { display: inline-block; margin: 6px 5px 4px 0; color: var(--purple-dark); font-size: 31px; }

.workspace { max-width: 1180px; margin: 0 auto; padding: 70px 24px 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(27px,4vw,40px); letter-spacing: -.03em; }
.search { display: flex; align-items: center; gap: 9px; width: min(320px,100%); padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--muted); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filter-row { display: flex; gap: 8px; margin: 28px 0; overflow-x: auto; scrollbar-width: none; }
.filter { flex: 0 0 auto; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #585264; cursor: pointer; }
.filter:hover, .filter:focus-visible { border-color: #8a71d4; }
.filter.active { border-color: var(--purple-dark); background: var(--purple-dark); color: #fff; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.result-meta { display: flex; justify-content: space-between; align-items: center; min-height: 36px; color: var(--muted); font-size: 12px; }
.result-meta select { border: 0; background: transparent; color: var(--muted); outline: 0; }
.feed { display: grid; gap: 13px; margin-top: 10px; }
.intel-card { position: relative; padding: 21px 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 7px 25px rgba(34,23,59,.035); transition: transform .18s ease, box-shadow .18s ease; }
.intel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-top { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.badge { padding: 4px 8px; border-radius: 7px; background: var(--lavender); color: #5d3caf; font-size: 11px; font-weight: 700; }
.badge.urgent { background: #fff0e7; color: #b84616; }
.grade { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #fff; font-size: 10px; }
.grade-a { background: var(--green); }.grade-b { background: #4777bd; }.grade-c { background: #8a7b97; }.grade-d { background: #a59cae; }
.source { color: var(--muted); font-size: 11px; }
.score { margin-left: auto; color: var(--muted); font-size: 11px; }
.intel-card h3 { margin: 13px 0 9px; font-size: 19px; line-height: 1.48; }
.intel-card h3 a { text-decoration: none; }
.intel-card h3 a:hover { color: var(--purple); }
.summary { margin: 0; color: #5e5968; font-size: 14px; line-height: 1.75; }
.opportunity { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 13px; padding: 11px 13px; border-radius: 10px; background: #fff9ed; color: #7c4a1f; font-size: 12px; }
.action { margin-top: 13px; padding-top: 13px; border-top: 1px solid #eeeaf2; color: #392c58; font-size: 13px; line-height: 1.65; }
.action strong { color: var(--purple); }
.card-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: #948e9d; font-size: 11px; }
.card-footer a { color: var(--purple); font-weight: 700; text-decoration: none; }
.load-more { width: 100%; margin-top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.side-panel { display: grid; gap: 14px; position: sticky; top: 18px; }
.side-panel section { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.side-panel h3 { margin: 0 0 15px; font-size: 18px; }
.deadline-item { display: grid; grid-template-columns: 45px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid #eeeaf2; }
.deadline-item:first-child { border-top: 0; }
.deadline-days { display: grid; place-items: center; align-content: center; height: 45px; border-radius: 11px; background: #fff0e7; color: #a84619; font-size: 10px; }
.deadline-days b { font-size: 16px; line-height: 1; }
.deadline-item a { font-size: 12px; line-height: 1.55; text-decoration: none; }
.deadline-item small { display: block; margin-top: 3px; color: var(--muted); }
.trust-panel p { display: flex; align-items: center; gap: 9px; margin: 10px 0; color: #5e5968; font-size: 12px; }
.trust-panel small, .muted { color: var(--muted); font-size: 11px; line-height: 1.6; }
.empty { padding: 60px 20px; text-align: center; border: 1px dashed #d5cede; border-radius: 17px; color: var(--muted); }
footer { padding: 28px max(24px, calc((100% - 1180px) / 2)); display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer span { color: var(--purple-dark); font-weight: 800; }
footer p { margin: 0; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 45px; padding-bottom: 70px; }
  .pulse-card { max-width: 430px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stats article:first-child { border-radius: 16px 0 0 0; }.stats article:nth-child(2) { border-radius: 0 16px 0 0; }.stats article:nth-child(3) { border-radius: 0 0 0 16px; }.stats article:last-child { border-radius: 0 0 16px 0; }
  .feed-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .topbar { height: 64px; padding-inline: 17px; }
  .freshness { font-size: 10px; }
  .hero { padding-inline: 19px; }
  .hero h1 { font-size: 44px; }
  .intro { font-size: 14px; }
  .pulse-card { padding: 18px; }
  .radar { width: 74px; height: 74px; }
  .stats { margin-top: -26px; padding-inline: 14px; }
  .stats article { padding: 18px; }
  .stats strong { font-size: 27px; }
  .workspace { padding: 54px 15px 70px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .intel-card { padding: 18px; }
  .intel-card h3 { font-size: 17px; }
  .score { width: 100%; margin-left: 0; }
  .side-panel { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

