:root { color-scheme: light; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f7f8fa;
  color: #333;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.wrap { width: 720px; max-width: 92vw; padding: 96px 0 40px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 40px; height: 40px; }
.brand h1 { font-size: 22px; font-weight: 700; }
.brand .sub { color: #999; font-size: 13px; margin-left: 2px; }
.search { display: flex; gap: 10px; margin-top: 26px; }
.search input {
  flex: 1; height: 46px; border: 1px solid #e8e8e8; border-radius: 8px;
  background: #fff; padding: 0 16px; font-size: 15px; outline: none;
}
.search input:focus { border-color: #589BFF; }
.search button {
  height: 46px; padding: 0 26px; border: 0; border-radius: 8px;
  background: #589BFF; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.search button:hover { opacity: .9; }
.grid {
  margin-top: 30px; display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 14px 10px;
}
.item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 10px; text-decoration: none; color: #333;
}
.item:hover { background: #f0f5ff; }
.item img { width: 28px; height: 28px; border-radius: 6px; }
.item .fallback {
  width: 28px; height: 28px; border-radius: 6px; background: #589BFF;
  color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.item span { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { margin-top: 34px; display: flex; justify-content: center; gap: 8px; font-size: 13px; }
.foot a { color: #589BFF; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot span { color: #ccc; }
