.find-page {
  padding-bottom: 110px;
}

body.font-awesome .jumbotron {
  padding-top: 28px;
  padding-bottom: 20px;
  margin-bottom: 18px;
}

body.font-awesome .jumbotron h1 {
  margin-top: 0;
  font-size: 36px;
}

.find-bar,
.find-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.find-bar[hidden] {
  display: none !important;
}

.find-bar {
  margin-bottom: 12px;
}

.find-label {
  color: #777;
  min-width: 32px;
}

.find-ver.active,
.find-style.active {
  background: #1d9d74;
  border-color: #1d9d74;
  color: #fff;
}

.find-ver.active:hover,
.find-style.active:hover,
.find-ver.active:focus,
.find-style.active:focus {
  background: #188a66;
  border-color: #188a66;
  color: #fff;
}

.find-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 4px 0 14px;
}

.find-search {
  position: relative;
  flex: 1;
}

.find-search > i {
  position: absolute;
  left: 14px;
  top: 50%;
  margin-top: -7px;
  color: #999;
  pointer-events: none;
}

.find-search input {
  height: 42px;
  border-radius: 23px;
  padding-left: 40px;
  padding-right: 40px;
}

.find-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aaa;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s;
}

.find-clear:hover,
.find-clear:focus {
  color: #1d9d74;
  outline: none;
}

.find-clear[hidden] {
  display: none;
}

.find-cdn {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.find-cdn input {
  flex: 1;
}

.find-cdn .find-label {
  flex: none;
  align-self: center;
}

.find-picked {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(750px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid #b8e3d3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(29, 157, 116, .22);
  animation: find-pick-in .28s cubic-bezier(.22, 1.2, .36, 1);
}

.find-picked-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

@keyframes find-pick-in {
  from {
    transform: translate(-50%, 24px) scale(.96);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}

.find-picked.out {
  animation: find-pick-out .18s ease forwards;
}

@keyframes find-pick-out {
  from {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 14px) scale(.98);
    opacity: 0;
  }
}

.find-picked[hidden] {
  display: none !important;
}

.find-picked-icon {
  width: 60px;
  height: 60px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1d9d74;
  background: #f0faf6;
  border-radius: 9px;
}

.find-picked-text {
  flex: 1;
  min-width: 0;
}

.find-picked-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.find-alias {
  margin-left: 6px;
  color: #888;
  font-size: 12px;
}

.find-picked-meta {
  margin-top: 2px;
  color: #666;
  font-family: Menlo, Consolas, monospace;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.find-picked .find-actions {
  flex: none;
  margin-top: 0;
}

.find-picked .find-actions button {
  flex: none;
  white-space: nowrap;
  padding: 7px 12px;
}

.find-count {
  color: #777;
  margin: 0 0 8px;
}

.find-empty {
  display: none;
  padding: 36px 0;
  color: #777;
}

.find-empty.show {
  display: block;
}

.find-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

#grid {
  display: block;
}

.find-cell {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 12px 4px 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s, color .15s;
}

.find-cell i {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1;
  transition: color .15s, transform .15s, font-size .15s;
}

.find-cell span {
  display: block; 
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  word-wrap: anywhere;
}

.find-cell:hover,
.find-cell:focus {
  color: #1d9d74;
  border-color: #1d9d74;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 157, 116, .18);
  outline: none;
}

.find-cell:hover i,
.find-cell:focus i {
  color: #1d9d74;
  transform: scale(1.18);
}

.find-cell.is-on {
  color: #1d9d74;
  border-color: #1d9d74;
  box-shadow: inset 0 0 0 2px #1d9d74;
}

.find-actions {
  display: flex;
  gap: 4px;
}

.find-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #1d9d74;
  background: #fff;
  border-radius: 6px;
  color: #1d9d74;
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.find-actions button:hover,
.find-actions button:focus {
  background: #1d9d74;
  color: #fff;
  outline: none;
}

.find-picked-close {
  position: absolute;
  top: -10px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #b8e3d3;
  border-radius: 50%;
  background: #fff;
  color: #888;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: background .15s, color .15s;
}

.find-picked-close i {
  display: block;
  line-height: 1;
  font-size: 13px;
}

.find-picked-close:hover,
.find-picked-close:focus {
  background: #1d9d74;
  border-color: #1d9d74;
  color: #fff;
  outline: none;
}

.find-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(600px, calc(100vw - 32px));
  background: #1d9d74;
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  display: none;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  word-break: break-all;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  z-index: 60;
}

.find-toast.show {
  display: block;
}

@media (max-width: 767px) {
  .find-filters,
  .find-cdn {
    flex-direction: column;
    align-items: stretch;
  }

  .find-cdn .btn {
    width: 100%;
  }

  .find-picked {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 10px 12px;
  }

  .find-picked .find-actions {
    width: 100%;
  }

  .find-picked .find-actions button {
    flex: 1;
  }

  .find-page {
    padding-bottom: 160px;
  }
}

/* 分类快捷导航（吸顶胶囊条） */
.find-cats {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}

.find-cats[hidden] {
  display: none;
}

.find-cats::-webkit-scrollbar {
  height: 6px;
}

.find-cats::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.find-cats-label {
  flex: none;
  margin-right: 2px;
  color: #888;
  font-size: 13px;
}

.find-cat-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e2e2e2;
  background: #f8f8f8;
  color: #444;
  border-radius: 15px;
  padding: 4px 11px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}

.find-cat-chip:hover,
.find-cat-chip:focus {
  color: #1d9d74;
  border-color: #1d9d74;
  background: #f0faf6;
  outline: none;
}

.find-cat-chip.is-on {
  background: #1d9d74;
  border-color: #1d9d74;
  color: #fff;
}

.find-cat-chip.is-off {
  opacity: .45;
  cursor: not-allowed;
}

.find-cats-n {
  font-size: 11px;
  line-height: 16px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .07);
  color: inherit;
}

.find-cat-chip.is-on .find-cats-n {
  background: rgba(255, 255, 255, .3);
}

/* 分类分组 */
.find-group {
  margin-bottom: 22px;
}

.find-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 4px 0 4px 10px;
  border-left: 4px solid #1d9d74;
  font-size: 17px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  scroll-margin-top: 120px;
}

.find-group-count {
  font-size: 12px;
  font-weight: 400;
  color: #888;
  background: #f2f2f2;
  border-radius: 10px;
  padding: 1px 8px;
}

/* 回到顶部 */
.find-back-top {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #1d9d74;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(29, 157, 116, .35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s, background .2s;
  z-index: 40;
}

.find-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.find-back-top:hover,
.find-back-top:focus {
  background: #188a66;
  outline: none;
}

@media (max-width: 767px) {
  .find-cats {
    margin-right: -15px;
    margin-left: -15px;
    border-radius: 0;
  }

  .find-back-top {
    right: 14px;
    bottom: 142px;
    width: 42px;
    height: 42px;
  }
  
  .find-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  }
  .find-cell span {
    display: none;
  }
}
