/* 复刻版补充样式（不修改原主题样式，仅追加自身需要的部分） */

/* 回到顶部 */
.sb-backtop {
  position: fixed;
  right: 26px;
  bottom: 40px;
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  border-radius: 50%;
  background: var(--theme-color, #f1404b);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: .25s;
  z-index: 999;
}
.sb-backtop.show { opacity: 1; visibility: visible; transform: none; }
.sb-backtop:hover { color: #fff; filter: brightness(1.06); }

/* 卡片图标兜底尺寸 */
.sites-item .item-image img.sites-icon { width: 100%; height: 100%; object-fit: contain; }

/* 离线搜索浮层 */
.sb-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, .55);
  backdrop-filter: blur(3px);
  display: none;
  z-index: 2000;
  padding: 8vh 16px;
  overflow: auto;
}
.sb-search-overlay.show { display: block; }
.sb-search-panel {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.sb-search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f3;
}
.sb-search-head i { color: var(--theme-color, #f1404b); font-size: 18px; }
.sb-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
  background: transparent;
  color: #2b2f36;
}
.sb-search-close {
  font-size: 26px;
  line-height: 1;
  color: #9aa0a6;
  text-decoration: none;
}
.sb-search-close:hover { color: var(--theme-color, #f1404b); }
.sb-search-body { max-height: 64vh; overflow: auto; padding: 14px 18px 20px; }
.sb-search-hint { color: #9aa0a6; font-size: 14px; padding: 26px 4px; text-align: center; }
.sb-search-count { color: #868e96; font-size: 13px; padding: 4px 2px 10px; }
.sb-search-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.sb-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background .16s;
}
.sb-search-item:hover { background: #f5f7fa; }
.sb-search-item img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: #f1f3f6; flex: 0 0 auto; }
.sb-search-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sb-search-info b { font-size: 14px; color: #22262b; font-weight: 600; }
.sb-search-info span { font-size: 12px; color: #8a9098; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-search-info em { font-size: 11px; color: #b0b6bd; font-style: normal; }
