:root{
  /* ✅ 浅色偏深：雾灰蓝底 */
  --bg: #eef1f7;
  --bg2:#e7ebf4;

  --card: rgba(255,255,255,.68);
  --card2: rgba(255,255,255,.55);

  /* ✅ 边线/文字加深一点 */
  --stroke: rgba(15,23,42,.12);
  --text: #0b1224;
  --muted: rgba(11,18,36,.62);

  --shadow: 0 18px 50px rgba(2,6,23,.12);
  --radius: 18px;
  --radius2: 14px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(900px 520px at 20% 0%, #dfe6fb 0%, transparent 55%),
              radial-gradient(860px 520px at 85% 20%, #f2dde8 0%, transparent 55%),
              linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
}

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

#logo {
   cursor: pointer !important;
  user-select: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

#logo:hover {
  transform: scale(1.03);
  opacity: 0.85;
}



/* ===== background blobs ===== */
.bg{
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob{
  position:absolute;
  width: 520px;
  height: 520px;
  filter: blur(42px);
  opacity: .28;              /* ✅ 比之前更“深一点”但不花 */
  border-radius: 999px;
}
.blob.b1{ top:-160px; left:-160px; background: #8aa0ff; }
.blob.b2{ top:80px; right:-200px; background: #ff8fb0; }
.blob.b3{ bottom:-220px; left:120px; background: #60d6ff; }
.noise{
  position:absolute;
  inset:0;
  background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity:.06;
}

/* ===== header ===== */
.header{
  padding: 26px 0 18px;
  position: relative;
  z-index: 1;
}

.hero{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* brand */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(76,86,255,.92), rgba(255,77,132,.88));
  box-shadow: 0 18px 40px rgba(76,86,255,.22);
}
.brandTitle{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
}
.brandSub{
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* search */
.searchBox{
  flex: 1;
  min-width: min(640px, 100%);
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.searchRow{
  display:flex;
  gap: 10px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.searchRow input#q{
  flex: 1;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.55);
  padding: 11px 12px;
  border-radius: 12px;
  outline:none;
  color: var(--text);
}
.searchRow input#q:focus{
  border-color: rgba(76,86,255,.35);
  background: rgba(255,255,255,.78);
}

.searchRow select#engineSelect{
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.62);
  color: var(--text);
  outline: none;
  cursor: pointer;
  min-width: 160px;
}
.searchRow select#engineSelect:focus{
  border-color: rgba(76,86,255,.35);
  background: rgba(255,255,255,.80);
}

.searchRow button#go{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(11,18,36,.92);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}
.searchRow button#go:hover{
  filter: brightness(1.05);
}

.hint{
  padding-left: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* tabs */
.tabsCard{
  margin-top: 14px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

#nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
#nav button{
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.62);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
#nav button:hover{ background: rgba(255,255,255,.78); }
#nav button.active{
  background: rgba(76,86,255,.14);
  border-color: rgba(76,86,255,.26);
  font-weight: 900;
}

/* grid */
.gridCard{
  margin-top: 16px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
  .searchRow{ flex-wrap: wrap; }
  .searchRow select#engineSelect{ min-width: 0; width: 100%; }
  .searchRow button#go{ width: 100%; }
}

.card{
  display:block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: var(--radius2);
  padding: 12px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(2,6,23,.12);
}

.cardTop{ display:flex; gap: 10px; align-items: flex-start; }
.fav{
  width: 36px; height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.10);
  display:flex; align-items:center; justify-content:center;
  flex: 0 0 auto;
  overflow:hidden;
}
.fav img{ width: 20px; height: 20px; display:block; }

.cardBody h3{ margin:0; font-size: 14px; font-weight: 900; }
.cardBody p{ margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.35; }

.meta{ margin-top: 10px; display:flex; gap: 8px; flex-wrap: wrap; }
.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.62);
  color: rgba(11,18,36,.72);
}

/* footer */
.footer{ padding: 18px 0 26px; color: var(--muted); }
.footerInner{ display:flex; gap: 10px; align-items:center; justify-content:center; flex-wrap: wrap; }
.sep{ opacity:.55; }

kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(15,23,42,.12);
  border-bottom-width: 2px;
  padding: 2px 6px;
  border-radius: 8px;
  color: rgba(11,18,36,.80);
}