:root {
  --bg: #070b17;
  --bg-soft: rgba(16, 24, 48, 0.72);
  --bg-card: rgba(11, 18, 36, 0.84);
  --text: #ecf3ff;
  --muted: #9fb0d0;
  --primary: #6ae3ff;
  --secondary: #8b5cf6;
  --accent: #2df4c4;
  --warning: #ffd166;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(106, 227, 255, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.16), transparent 26%),
    linear-gradient(180deg, #08101f 0%, #04070f 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.28;
  z-index: -3;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  top: 8%;
  left: -60px;
  background: #00d9ff;
}

.orb-2 {
  bottom: 10%;
  right: -80px;
  background: #8b5cf6;
  animation-delay: -4s;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
  z-index: -4;
}

.glass {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero {
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-badge {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #08101f;
  box-shadow: 0 10px 30px rgba(106, 227, 255, 0.35);
}

.nav-link,
.btn {
  text-decoration: none;
  color: inherit;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: stretch;
  padding: 64px 0 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  letter-spacing: 0.24em;
  font-size: 0.78rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  line-height: 0.98;
}

.subtitle {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    background 0.25s ease, opacity 0.25s ease;
  font-size: 0.96rem;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #06111d;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 30px rgba(45, 244, 196, 0.28);
}

.btn-secondary,
.btn-ghost,
.filter-chip {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover,
.btn-ghost:hover,
.nav-link:hover,
.filter-chip:hover {
  border-color: rgba(106, 227, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(106, 227, 255, 0.08);
}

.stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.stat {
  min-width: 140px;
  border-radius: 18px;
  padding: 18px 20px;
}

.stat strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  padding: 20px;
  border-radius: 24px;
}

.panel-header {
  display: flex;
  gap: 8px;
}

.panel-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.panel-header span:first-child {
  background: #ff5f57;
}

.panel-header span:nth-child(2) {
  background: #ffbd2f;
}

.panel-header span:nth-child(3) {
  background: #28c840;
}

.panel-body {
  padding-top: 22px;
}

.panel-tag {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(106, 227, 255, 0.12);
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.trend-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.trend-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trend-list strong {
  display: block;
  margin-bottom: 6px;
}

.trend-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 0 rgba(106, 227, 255, 0.45);
  animation: pulse 1.8s infinite;
}

.hero-spotlight {
  position: relative;
  margin-top: 18px;
  min-height: 180px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hero-spotlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.05), rgba(4, 7, 15, 0.88));
}

.hero-spotlight-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}

.hero-spotlight-content p {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.hero-spotlight-content h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.hero-spotlight-content span {
  color: #d7e6ff;
  font-size: 0.94rem;
}

main {
  padding-bottom: 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.toolbar {
  width: min(100%, 360px);
  padding: 12px;
  border-radius: 18px;
}

.toolbar input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
}

.toolbar input::placeholder {
  color: #7f90b2;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-chip.active {
  color: #06111d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 30px rgba(45, 244, 196, 0.22);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.results-text {
  color: #dce8ff;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.site-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 0;
  background: var(--bg-card);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-card:hover {
  transform: translateY(-8px);
  border-color: rgba(106, 227, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
}

.site-cover-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(106, 227, 255, 0.18), rgba(139, 92, 246, 0.16));
}

.site-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.site-card:hover .site-cover {
  transform: scale(1.06);
  transition: transform 0.6s ease;
}

.site-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 23, 0.04), rgba(7, 11, 23, 0.75));
}

.site-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 1;
}

.site-badges span,
.site-meta span {
  display: inline-flex;
  align-items: center;
}

.site-category,
.site-quality {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  background: rgba(8, 16, 31, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-quality {
  color: var(--warning);
}

.site-card-body {
  padding: 18px 18px 20px;
}

.site-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.site-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo {
  width: 54px;
  height: 54px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: contain;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-index {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.site-title {
  margin: 0;
  font-size: 1.35rem;
}

.site-domain {
  margin: 14px 0 8px;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.7;
}

.site-desc {
  margin: 0;
  color: #d8e4fb;
  line-height: 1.75;
  min-height: 52px;
}

.site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.site-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #bfd0ee;
  font-size: 0.8rem;
}

.site-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 20px;
}

.site-glow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(106, 227, 255, 0.9), rgba(139, 92, 246, 0.9));
  box-shadow: 0 0 32px rgba(106, 227, 255, 0.35);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 26px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(8, 16, 31, 0.92);
  border: 1px solid rgba(106, 227, 255, 0.24);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(24px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(106, 227, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(106, 227, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(106, 227, 255, 0);
  }
}

@media (max-width: 920px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .results-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 16px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-content {
    padding-top: 42px;
  }

  .site-actions {
    grid-template-columns: 1fr;
  }

  .stat {
    flex: 1 1 100%;
  }

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