:root {
  --bg: #070910;
  --text: #eaf0fb;
  --dim: rgba(203,213,235,.55);
  --line: rgba(255,255,255,.1);
  --cyan: #22d3ee;
  --violet: #a78bfa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  color: var(--text); background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* 背景氛围 */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-a { width: 480px; height: 480px; top: -180px; left: -120px; background: rgba(34,211,238,.35); }
.orb-b { width: 520px; height: 520px; top: 120px; right: -200px; background: rgba(167,139,250,.3); }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 20%, #000, transparent 75%);
}

/* 顶栏 */
.topbar {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.brand img { width: 30px; height: 30px; }
.topnav { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.topnav a { padding: 8px 14px; color: var(--dim); transition: color .2s; }
.topnav a:hover { color: #fff; }
.topnav .ghost { border: 1px solid var(--line); border-radius: 8px; }

/* 主体 */
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 40px 32px 80px; }
.hero { text-align: center; padding: 34px 0 50px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: 10px; letter-spacing: .18em; color: var(--dim);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 {
  margin: 22px 0 14px; font-size: clamp(34px, 6vw, 58px);
  font-weight: 650; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 35%, rgba(255,255,255,.55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 620px; margin: 0 auto; font-size: 14px; line-height: 1.9; color: var(--dim); }

.stats { display: flex; justify-content: center; gap: 48px; margin: 34px 0 36px; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span { font-size: 11px; color: var(--dim); letter-spacing: .06em; }

.searchbar {
  display: flex; align-items: center; gap: 12px;
  width: min(560px, 100%); margin: 0 auto; padding: 0 16px;
  height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.searchbar:focus-within { border-color: rgba(34,211,238,.55); box-shadow: 0 0 30px -12px rgba(34,211,238,.6); }
.searchbar img { width: 18px; height: 18px; opacity: .55; }
.searchbar input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0;
  background: transparent; color: var(--text); font: inherit; font-size: 14px;
}
.searchbar input::placeholder { color: rgba(203,213,235,.35); }
.searchbar kbd {
  padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line);
  font: inherit; font-size: 11px; color: var(--dim);
}

.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
.section-head h2 span {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 999px; background: rgba(34,211,238,.14); color: var(--cyan);
  font-size: 11px;
}
.section-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section-head small { font-size: 10px; letter-spacing: .18em; color: rgba(203,213,235,.3); }

/* 资源卡片 */
.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 22px;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.9,.3,1), border-color .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 100% 0%, rgba(34,211,238,.1), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(34,211,238,.4); box-shadow: 0 30px 60px -35px rgba(0,0,0,.95); }
.card:hover::before { opacity: 1; }
.card h3 { position: relative; margin: 4px 0 10px; font-size: 17px; font-weight: 600; }
.desc { position: relative; margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--dim); }
.meta { position: relative; display: flex; gap: 16px; margin: 18px 0 14px; font-size: 11px; color: rgba(203,213,235,.5); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta img { width: 13px; height: 13px; opacity: .7; }
.dl {
  position: relative; display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 14px; border-radius: 9px;
  background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3);
  color: #a5f3fc; font-size: 12.5px; font-weight: 600;
  transition: background .2s, transform .2s;
}
.dl img { width: 16px; height: 16px; }
.dl b { margin-left: auto; font-size: 14px; font-weight: 400; }
.dl:hover { background: rgba(34,211,238,.22); transform: translateX(2px); }

.empty { padding: 70px 20px; text-align: center; color: var(--dim); font-size: 13px; grid-column: 1 / -1; }
.hidden { display: none !important; }

.footer {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto; padding: 24px 32px 40px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 11px; color: rgba(203,213,235,.4);
}
.footer a:hover { color: var(--cyan); }
.beian-links{display:inline-flex;gap:14px;flex-wrap:wrap;justify-content:center}
.beian-links a{color:rgba(203,213,235,.5)}
.beian-links a:hover{color:var(--cyan)}
.beian-links .copyright{margin-right:2px}
.beian-links .police{display:inline-flex;align-items:center;gap:5px}
.beian-links .beian-ico{flex:none;width:16px;height:16px;border-radius:2px}

@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .topbar { padding: 18px 16px; }
  .wrap { padding: 24px 16px 60px; }
  .footer { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: 1fr; }
  .stats { gap: 20px; }
  .stats b { font-size: 20px; }
  .topnav .ghost { display: none; }
  .footer { flex-direction: column; gap: 6px; }
  .hero { padding: 20px 0 34px; }
  .hero h1 { font-size: clamp(30px, 11vw, 42px); margin: 16px 0 10px; }
  .lead { font-size: 13px; }
  .searchbar { height: 48px; }
  .card { padding: 18px; }
}
