:root {
  --bg: #030711;
  --bg-soft: #070b18;
  --panel: rgba(10, 16, 32, 0.68);
  --panel-strong: rgba(13, 20, 38, 0.86);
  --line: rgba(148, 163, 184, 0.17);
  --line-bright: rgba(96, 165, 250, 0.5);
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.72);
  --faint: rgba(226, 232, 240, 0.5);
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --green: #86efac;
  --warning: #fbbf24;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% -16%, rgba(96, 165, 250, 0.08), transparent 30%),
    linear-gradient(180deg, #000000 0%, #02030a 48%, #000000 100%);
  color: var(--text);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.24;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 35%, rgba(148, 163, 184, 0.5) 0 1px, transparent 1px);
  background-size: 140px 140px, 210px 210px;
}

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

button,
input,
select {
  font: inherit;
}

.ambient {
  pointer-events: none;
  position: fixed;
  z-index: -2;
  width: 430px;
  height: 430px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.16;
}

.ambient-one {
  top: 80px;
  left: -160px;
  background: rgba(37, 99, 235, 0.36);
}

.ambient-two {
  right: -190px;
  bottom: 8vh;
  background: rgba(34, 211, 238, 0.18);
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
  background: rgba(3, 7, 17, 0.42);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  background: rgba(8, 13, 26, 0.58);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.nav-brand,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-brand {
  gap: 10px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 22px rgba(96, 165, 250, 0.82);
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
}

.hero {
  display: grid;
  justify-items: center;
  padding: 64px 0 48px;
  text-align: center;
}

.avatar-ring {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin-bottom: 18px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.16), rgba(15, 23, 42, 0.82));
  box-shadow: 0 0 60px rgba(96, 165, 250, 0.22);
}

.avatar-ring img {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
}

.hero-kicker,
.section-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.9;
  font-weight: 790;
  letter-spacing: 0;
}

.hero-line {
  margin: 0;
  color: rgba(226, 232, 240, 0.68);
  font-size: clamp(10px, 0.95vw, 14px);
  line-height: 1.35;
  font-weight: 600;
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
  width: min(560px, 100%);
  margin-top: 28px;
}

.stats-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 26, 0.58);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.stats-grid strong {
  display: block;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toolbar {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 13, 26, 0.7), rgba(3, 7, 17, 0.62));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(130%);
}

.filter-console,
.results-meta,
.card-heading,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-console {
  align-items: center;
}

.utility-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-items: stretch;
  flex: 0 0 260px;
  width: 260px;
}

.about-strip h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.search-shell,
.sort-shell {
  display: grid;
  gap: 6px;
}

.search-shell {
  min-width: 0;
  width: 100%;
}

.search-shell label,
.sort-shell label {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-shell input,
.sort-shell select {
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  color: rgba(203, 213, 225, 0.74);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.42);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-shell input {
  width: 100%;
  padding: 0 14px;
}

.sort-shell select {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
}

.search-shell input::placeholder {
  color: rgba(148, 163, 184, 0.46);
}

.search-shell input:focus,
.sort-shell select:focus {
  border-color: var(--line-bright);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
  background: rgba(0, 0, 0, 0.72);
}

.tag-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.filter-button,
#clear-filters {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.44);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 15px 0 9px;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.032));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 30px rgba(0, 0, 0, 0.24);
  color: rgba(248, 250, 252, 0.9);
  font-size: 13px;
  font-weight: 820;
}

.filter-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 36%),
    linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(34, 211, 238, 0.74));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 18px rgba(99, 102, 241, 0.16);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.filter-button[data-filter="全部"] .filter-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.38), transparent 36%),
    linear-gradient(135deg, #475569, #0f172a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 18px rgba(148, 163, 184, 0.12);
}

.filter-button[data-filter="精选"] .filter-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.42), transparent 36%),
    linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.17), 0 0 20px rgba(236, 72, 153, 0.2);
}

.filter-button[data-filter="游戏"] .filter-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 36%),
    linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 18px rgba(249, 115, 22, 0.18);
}

.filter-button[data-filter="炫酷"] .filter-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.38), transparent 36%),
    linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 18px rgba(34, 211, 238, 0.18);
}

.filter-button[data-filter="技能"] .filter-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 36%),
    linear-gradient(135deg, #34d399, #0f766e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 18px rgba(52, 211, 153, 0.17);
}

.filter-button[data-filter="工具"] .filter-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.38), transparent 36%),
    linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 18px rgba(20, 184, 166, 0.17);
}

.filter-button[data-filter="模拟"] .filter-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 36%),
    linear-gradient(135deg, #818cf8, #4338ca);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 18px rgba(129, 140, 248, 0.18);
}

.filter-button[data-filter="其他"] .filter-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.32), transparent 36%),
    linear-gradient(135deg, #94a3b8, #334155);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 18px rgba(148, 163, 184, 0.1);
}

.filter-button:hover,
#clear-filters:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.048));
  transform: translateY(-1px);
}

.filter-button.is-active {
  color: #eff6ff;
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.058));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 38px rgba(0, 0, 0, 0.28);
}

.tag-filter-list::-webkit-scrollbar {
  height: 6px;
}

.tag-filter-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.35);
}

.tag-filter-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.42);
}

.projects-section {
  padding: 28px 0 76px;
}

.results-meta {
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 760;
}

#clear-filters {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 820;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(8, 13, 26, 0.62));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 480ms ease, transform 480ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(96, 165, 250, 0.08);
  transform: translateY(-4px);
}

.project-link {
  display: grid;
  height: 100%;
}

.cover-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.92);
}

.cover-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 500ms ease, filter 500ms ease;
}

.project-card:hover .cover-frame img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.055);
}

.status-pill,
.category-pill,
.featured-pill,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-pill {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ecfeff;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(12px);
}

.status-online {
  color: var(--green);
}

.status-building {
  color: var(--warning);
}

.status-archived {
  color: rgba(226, 232, 240, 0.7);
}

.card-body {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.category-pill {
  padding: 5px 9px;
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.featured-pill {
  padding: 5px 9px;
  color: #f5f3ff;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.22);
}

.featured-pill[hidden] {
  display: none;
}

.project-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0;
}

.card-description {
  min-height: 46px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span {
  padding: 5px 8px;
  color: rgba(226, 232, 240, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(2, 6, 23, 0.38);
}

.card-footer {
  padding-top: 3px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.open-indicator {
  color: var(--cyan);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 26, 0.5);
  text-align: center;
}

.empty-state p {
  margin: 0;
  font-size: 22px;
  font-weight: 760;
}

.empty-state span {
  color: var(--muted);
}

.about-strip {
  margin-bottom: 78px;
  padding: 8px 0 40px;
  border: 0;
  background: transparent;
}

.about-strip h2 {
  max-width: 780px;
  color: rgba(226, 232, 240, 0.46);
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 560;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-console {
    align-items: stretch;
    flex-direction: column;
  }

  .utility-controls {
    flex: none;
    width: 100%;
  }

  .search-shell {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .section-shell,
  .nav-shell {
    width: min(100% - 32px, 1180px);
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 8px 7px;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    padding: 18px;
  }

  .utility-controls {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
