/* SECTION: base */
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c1f23;
  --muted: #6b7280;
  --line: #e8eaee;
  --accent: #2f6bff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-h: 0 4px 10px rgba(16, 24, 40, .07), 0 12px 28px rgba(16, 24, 40, .10);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 92%;
  margin: 0 auto;
  padding: 0 20px;
}

/* SECTION: header — 吸顶跟随页面滚动，下滑后自动收拢 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 20px;
  transition: padding .22s ease, box-shadow .22s ease;
}

.site-header.is-compact {
  padding: 12px 0 11px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, .07);
}

.site-header.is-compact .brand-text p, .site-header.is-compact .hint-row {
  display: none;
}

.site-header.is-compact .search-bar {
  margin-top: 10px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), #7aa2ff);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: .2px;
}

.brand-text p {
  margin: 1px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.stat-chip {
  margin-left: auto;
  font-size: 12.5px;
  color: #ffffff;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  background-color: rgb(228 40 124);
}

/* SECTION: search */
.search-bar {
  margin-top: 18px;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px 0 14px;
  height: 52px;
  box-shadow: var(--shadow);
  transition: border-color .18s, box-shadow .18s;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .10);
}

.search-box svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  stroke: var(--muted);
}

#q {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  height: 100%;
}

#q::placeholder {
  color: #9aa2af;
}

.btn-clear {
  flex: 0 0 auto;
  border: 0;
  background: #f1f3f6;
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}

.btn-clear:hover {
  background: #e6e9ee;
  color: var(--text);
}

.search-box.has-value .btn-clear {
  display: grid;
}

.hint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--muted);
}

.hint-row .label {
  opacity: .85;
}

.sug {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 16px;
  color: #4b5563;
  cursor: pointer;
  font-family: inherit;
}

.sug:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sug[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* SECTION: results-bar */
.results-bar {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.results-bar.show {
  display: flex;
}

.results-bar b {
  color: var(--text);
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 13.5px;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* SECTION: category */
.cat {
  padding: 26px 0 4px;
}

.cat-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 13px;
}

.cat-icon {
  font-size: 16px;
  line-height: 1;
}

.cat-name {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .2px;
}

.cat-count {
  font-size: 12.5px;
  color: var(--muted);
}

.cat-rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  margin-left: 4px;
}

/* SECTION: grid — 桌面一排四个，卡片上下排列、固定 260px 高 */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-align: center;
  height: 310px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 18px 22px;
  min-width: 0;
  box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-h);
  border-color: #d9dee6;
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.logo {
  position: relative;
  flex: 0 0 auto;
  height: 120px;
  border-radius: 20px;
  aspect-ratio: 16 / 7;
  background: #f2f4f7;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 650;
  color: #5b6472;
}

.logo img {
  position: relative;
  display: block;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  /*  background: -webkit-linear-gradient(50deg, #a405e0 20%, #4c14ad 50%, #862cb1 20%, #9723d1 80%, #e200e1 30%);
  
     object-fit: cover;  */
}

.card-body {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-title {
  display: block;
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 12px 0 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  width: 100%;
}

.card-domain {
  margin-top: auto;
  font-size: 14px;
  color: #ffffff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  border: 1px solid #dadfec;
  width: 86%;
  height: 36px;
  line-height: 36px;
  background-color: rgb(228 40 124);
   font-weight: 700;
   border-radius: 0.5rem;
}

.card mark {
  background: #fff3bf;
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

/* SECTION: empty */
.empty {
  display: none;
  text-align: center;
  padding: 56px 20px 72px;
}

.empty.show {
  display: block;
}

.empty-face {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eef1f5;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #9aa2af;
}

.empty h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.empty p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.btn-primary {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 9px 20px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: #255ae0;
}

/* SECTION: footer */
.site-footer {
  margin-top: 30px;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* SECTION: responsive — 以一排四个为基准逐级降列 */
@media (max-width: 1120px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .stat-chip {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .site-header {
    padding: 22px 0 18px;
  }

  .site-header.is-compact {
    padding: 11px 0 10px;
  }

  .search-box {
    height: 48px;
  }

  .brand-text h1 {
    font-size: 18px;
  }
}

@media (max-width: 430px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid .card {
    height: 290px;
  }

  .wrap {
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  .card:hover {
    transform: none;
  }
}

 .footer{min-width:1000px; width:100%;height:auto;color:#999;display:flex; padding-top:20px;padding-bottom:20px;font-size:0.8rem;background-color:#111; position:fixed;bottom:0px;left: 0px;z-index:99; }
 .footer .z{margin-left:20px;}
 .footer .y{position:absolute;right:10px;}
 .footer .y a{margin-right:2px;color:#999;}
 
@media (max-width: 430px) {
  .footer {
    opacity: 0; pointer-events: none; ;
  }

 
}