:root {
  --bg: #080b10;
  --bg-soft: #0e141c;
  --card: #121a24;
  --line: #22303f;
  --txt: #e8eef6;
  --dim: #8fa3b8;
  --accent: #4cc2ff;
  --accent-2: #a47cff;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(76, 194, 255, .16), transparent 60%),
    radial-gradient(700px 460px at 92% 0%, rgba(164, 124, 255, .14), transparent 62%),
    var(--bg);
  color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 16, .72);
  border-bottom: 1px solid rgba(34, 48, 63, .6);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06121c;
  font-weight: 900;
}

.brand-text .dim { color: var(--dim); font-weight: 500; }

.nav { display: flex; gap: clamp(12px, 2vw, 26px); font-size: 14px; color: var(--dim); }
.nav a:hover { color: var(--txt); }

/* ---------------- 首屏 ---------------- */
main { padding: 0 clamp(18px, 5vw, 56px) 72px; }

.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(24px, 4vw, 40px); max-width: 780px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.18;
  letter-spacing: -.5px;
}

.lede { margin: 0 0 28px; color: var(--dim); font-size: clamp(15px, 2vw, 17px); }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 26, 36, .8);
  max-width: 460px;
  transition: border-color .2s, box-shadow .2s;
}

.search:focus-within {
  border-color: rgba(76, 194, 255, .6);
  box-shadow: 0 0 0 4px rgba(76, 194, 255, .1);
}

.search svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; }

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--txt);
  font-size: 15px;
}

.search input::placeholder { color: #6d7f93; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.chip {
  border: 1px solid var(--line);
  background: rgba(18, 26, 36, .6);
  color: var(--dim);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: .18s;
}

.chip:hover, .chip.on { color: var(--txt); border-color: rgba(76, 194, 255, .55); background: rgba(76, 194, 255, .1); }

/* ---------------- 卡片 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 26, 36, .92), rgba(12, 18, 25, .92));
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 194, 255, .5);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(76, 194, 255, .12);
}

.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(34, 48, 63, .8);
}

.cover .glyph {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  z-index: 2;
}

.cover .grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .55;
  z-index: 1;
}

.cover .badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .9);
}

.body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.title { display: flex; align-items: baseline; gap: 8px; }
.title h3 { margin: 0; font-size: 17px; letter-spacing: -.2px; }
.title .en { color: var(--dim); font-size: 12px; font-weight: 500; }

.desc { margin: 0; color: var(--dim); font-size: 13.5px; flex: 1; }

.meta { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 11.5px;
  color: #9fb4c9;
  background: rgba(76, 194, 255, .08);
  border: 1px solid rgba(76, 194, 255, .18);
  padding: 2px 8px;
  border-radius: 6px;
}

.enter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent);
}

.card:hover .enter { gap: 10px; }
.enter span { transition: transform .2s; }
.card:hover .enter span { transform: translateX(2px); }

.empty { color: var(--dim); padding: 40px 0; text-align: center; }

/* ---------------- 关于 / 页脚 ---------------- */
.about {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 720px;
  color: var(--dim);
  font-size: 14px;
}

.about h2 { color: var(--txt); font-size: 18px; margin: 0 0 10px; }

.footer {
  padding: 28px clamp(18px, 5vw, 56px) 40px;
  border-top: 1px solid rgba(34, 48, 63, .5);
  color: #6d7f93;
  font-size: 12.5px;
}

/* ---------------- 手机 ---------------- */
@media (max-width: 640px) {
  .nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .search { max-width: none; }
}
