:root {
  --accent: #7c6cff;
  --glass-opacity: 0.18;
  --glass-blur: 18px;
  --bg-blur: 16px;
}

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

html, body { min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f0f0ff;
  overflow-x: hidden;
  position: relative;
}

/* ---------- 背景层 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  filter: blur(var(--bg-blur));
  transform: scale(1.08);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgba(10, 12, 30, 0.35);
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: float 16s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; background: #7c6cff; top: -80px; left: -60px; }
.orb-2 { width: 380px; height: 380px; background: #21d4fd; bottom: -60px; right: -40px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #ff7eb3; top: 40%; left: 60%; animation-delay: -10s; opacity: 0.3; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* ---------- 布局 ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 20%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.hero p {
  margin-top: 12px;
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* ---------- 搜索框 ---------- */
.search-box {
  margin: 28px auto 0;
  max-width: 460px;
}

.search-box input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all .3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.search-box input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 8px 40px rgba(124,108,255,0.35);
}

/* ---------- 导航分组 ---------- */
.groups { display: flex; flex-direction: column; gap: 36px; }

.group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.group-head .gicon {
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.group-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* ---------- 液态玻璃卡片 ---------- */
.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255, var(--glass-opacity));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.25);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.28), transparent 45%);
  opacity: 0;
  transition: opacity .28s ease;
}

.card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255, calc(var(--glass-opacity) + 0.10));
  box-shadow: 0 20px 48px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 1px rgba(124,108,255,0.25);
}

.card:hover::before { opacity: 1; }

.card .c-icon {
  font-size: 30px;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.card .c-body { min-width: 0; }

.card .c-name {
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .c-desc {
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card.empty {
  pointer-events: none;
  opacity: 0.6;
}

/* ---------- 页脚 ---------- */
.foot {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
}

.foot a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all .25s;
}

.foot a:hover {
  color: #fff;
  background: rgba(255,255,255,0.16);
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .container { padding: 40px 16px 90px; }
  .cards { grid-template-columns: 1fr; }
}
