/* ===== SHARED RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg0: #070714; --bg1: #0e0e20; --bg2: #161630; --bg3: #1e1e3f;
  --border: rgba(120,100,255,.15); --border-h: rgba(139,92,246,.5);
  --purple: #8b5cf6; --purple-d: rgba(139,92,246,.12); --purple-l: #a78bfa;
  --cyan: #22d3ee; --cyan-d: rgba(34,211,238,.1);
  --amber: #fbbf24; --amber-d: rgba(251,191,36,.12);
  --green: #34d399; --green-d: rgba(52,211,153,.1);
  --pink: #f472b6; --pink-d: rgba(244,114,182,.1);
  --cognitive: #8b5cf6; --cognitive-d: rgba(139,92,246,.12); --cognitive-l: #a78bfa;
  --action: #34d399; --action-d: rgba(52,211,153,.1); --action-l: #6ee7b7;
  --text: #e2e8f0; --muted: #7c8fa8; --dim: #4a5568; --r: 14px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg0); color: var(--text); overflow-x: hidden; line-height: 1.6;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 999; height: 60px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 2rem;
  background: rgba(7,7,20,.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { font-weight: 800; font-size: 1.05rem; background: linear-gradient(90deg,var(--purple-l),var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
  min-height: 45vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 1.5rem 4rem; position: relative; overflow: hidden;
}
.orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: drift 8s ease-in-out infinite; }
.o1 { width: 500px; height: 500px; top: -100px; left: -100px; background: rgba(139,92,246,.15); }
.o2 { width: 350px; height: 350px; top: 10%; right: -80px; background: rgba(34,211,238,.1); animation-delay: -3s; }
.o3 { width: 250px; height: 250px; bottom: 0; left: 40%; background: rgba(251,191,36,.07); animation-delay: -5s; }
@keyframes drift { 0%,100%{transform:translate(0,0)} 33%{transform:translate(20px,-15px)} 66%{transform:translate(-15px,20px)} }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(139,92,246,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(139,92,246,.04) 1px,transparent 1px); background-size: 60px 60px; }
.hc { position: relative; z-index: 1; max-width: 700px; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; border: 1px solid rgba(139,92,246,.4); background: rgba(139,92,246,.1); border-radius: 999px; font-size: .8rem; color: var(--purple-l); letter-spacing: .05em; margin-bottom: 1.5rem; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
h1 { font-size: clamp(2rem,6vw,3.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.g { background: linear-gradient(135deg,var(--purple-l) 0%,var(--cyan) 50%,var(--amber) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 520px; margin: 0 auto 2rem; line-height: 1.8; }

/* ===== STATS ===== */
.stats { background: var(--bg1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem 1.5rem; }
.stats-in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 1.5rem; }
.stat { text-align: center; padding: 1.25rem; }
.stat-n { font-size: 3.2rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg,var(--purple-l),var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: .4rem; }
.stat-l { font-size: .875rem; color: var(--muted); }

/* ===== CONTROL PANEL ===== */
.control-panel { background: var(--bg1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem; position: sticky; top: 60px; z-index: 90; }
.control-inner { max-width: 1100px; margin: 0 auto; }
.search-wrap { max-width: 500px; margin: 0 auto 1rem; }
.search-box {
  width: 100%; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text); font-size: .9rem; transition: all .2s;
}
.search-box::placeholder { color: var(--dim); }
.search-box:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-d); }

/* ===== FILTERS ===== */
.filters-wrap { }
.filters-inner { max-width: 1100px; margin: 0 auto; }
.filter-group { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { font-size: .75rem; color: var(--dim); font-weight: 600; margin-right: .5rem; display: flex; align-items: center; }
.fb { padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: .82rem; cursor: pointer; transition: all .2s; }
.fb:hover, .fb.on { background: var(--purple-d); border-color: var(--purple); color: var(--purple-l); }
.fb.type-cog { border-color: rgba(139,92,246,.3); }
.fb.type-cog.on { background: rgba(139,92,246,.15); color: var(--purple-l); }
.fb.type-act { border-color: rgba(52,211,153,.3); }
.fb.type-act.on { background: rgba(52,211,153,.15); color: var(--green); }

/* ===== CARDS GRID ===== */
.cards-section { padding: 3rem 1.5rem 6rem; }
.cards-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1.5rem; }
@media(max-width:640px){ .cards-grid { grid-template-columns: 1fr; } }

/* ===== CARD ===== */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color .3s; height: 100%; }
.card:hover { border-color: var(--border-h); }
.card-header { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.25rem .6rem; }
.card-type { font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.card-type.cog { background: var(--cognitive-d); color: var(--cognitive-l); }
.card-type.act { background: var(--action-d); color: var(--action-l); }
.card-source { font-size: .75rem; color: var(--dim); margin-left: auto; }
.card-date { font-size: .78rem; color: var(--dim); }
.card-body { padding: .5rem 1.25rem 1.25rem; }
.card-title { font-size: 1.05rem; font-weight: 800; margin-bottom: .6rem; line-height: 1.4; color: var(--text); }
.card-content { color: var(--muted); font-size: .88rem; line-height: 1.75; }
.card-tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1.25rem 1rem; }

/* ===== TAGS ===== */
.tag { padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.tp { background: var(--purple-d); color: var(--purple-l); }
.tc { background: var(--cyan-d); color: var(--cyan); }
.ta { background: var(--amber-d); color: var(--amber); }
.tg { background: var(--green-d); color: var(--green); }

/* ===== NO RESULTS ===== */
.no-results { text-align: center; padding: 60px 20px; color: var(--dim); font-size: 1rem; display: none; }
.no-results.show { display: block; }

/* ===== LOAD MORE ===== */
.load-more { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 2rem; color: var(--muted); font-size: .9rem; }
.loading-spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CTA ===== */
.cta { padding: 5rem 1.5rem; text-align: center; background: radial-gradient(ellipse at center, rgba(139,92,246,.08) 0%, transparent 70%); border-top: 1px solid var(--border); }
.cta-t { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 900; margin-bottom: 1rem; }
.cta-d { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 2rem; border-radius: .75rem; font-size: 1rem; font-weight: 700; text-decoration: none; color: #fff; background: linear-gradient(135deg,var(--purple),#6d28d9); box-shadow: 0 6px 24px rgba(139,92,246,.4); transition: all .25s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(139,92,246,.6); }

/* ===== FOOTER ===== */
footer { padding: 2rem 1.5rem; text-align: center; border-top: 1px solid var(--border); color: var(--dim); font-size: .82rem; }

/* ===== FADE IN ===== */
.fi { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fi.show { opacity: 1; transform: none; }
