* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6c5ce7;
  --accent: #00cec9;
  --text: #2d3436;
  --text-light: #8592a6;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --border: #eef0f6;
  --shadow-hover: 0 6px 20px rgba(108, 92, 231, 0.12);
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}
.logo-icon { font-size: 20px; }
.logo-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 13px;
  transition: color .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
  padding: 60px 0 50px;
  background: linear-gradient(135deg, #f0edff 0%, #e6fffb 100%);
  text-align: center;
}
.hero h1 {
  font-size: 38px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-slogan {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 28px;
}
.hero-search { max-width: 520px; margin: 0 auto; }
.search-form {
  display: flex;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.1);
  overflow: hidden;
  border: 1px solid var(--border);
}
.search-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}
.search-form button {
  padding: 0 26px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, #5649c0));
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .15s;
}
.search-form button:hover { opacity: 0.9; }

/* Blocks */
.main { padding: 40px 0 60px; }
.block { margin-bottom: 36px; }
.block h2 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

/* Grid of sites */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.site:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #d0c9ff;
}
.site-favicon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}
.site-info { min-width: 0; }
.site-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-desc {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
.footer {
  background: #2d3436;
  color: #b2bec3;
  padding: 26px 0;
  text-align: center;
  font-size: 13px;
}
.footer p { margin: 4px 0; }
.footer .beian a {
  color: #b2bec3;
  text-decoration: none;
  transition: color .15s;
}
.footer .beian a:hover { color: #fff; text-decoration: underline; }

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 28px; }
  .hero-slogan { font-size: 14px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .site { padding: 10px; }
  .site-favicon { width: 30px; height: 30px; font-size: 12px; border-radius: 6px; }
}
