/* 全站搜索页（search_page.temp.shoutu48 + search_list_var.temp.shoutu48）— 与 st48 顶栏/色板一致 */

body.st48.st48-search {
  min-width: 0;
}

body.st48.st48-search .st48-wrap {
  max-width: min(100%, var(--st48-shell-max, 58rem));
  margin: 0 auto;
  padding: 1rem clamp(0.65rem, 2.2vw, 1rem) 2.5rem;
}

/* 面包屑 */
body.st48.st48-search .st48-search-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
  color: #5c5c61;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--st48-radius-md, 0.5rem);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.st48.st48-search .st48-search-crumb a {
  color: var(--st48-ink-muted, #636366) !important;
}

body.st48.st48-search .st48-search-crumb a:hover {
  color: var(--st48-accent, #00a85c) !important;
}

body.st48.st48-search .st48-search-crumb-sep {
  opacity: 0.45;
  user-select: none;
}

body.st48.st48-search .st48-search-crumb strong {
  font-weight: 600;
  color: var(--st48-ink, #1c1c1e);
}

/* 主区块 */
body.st48.st48-search .st48-search-page {
  margin: 0;
}

body.st48.st48-search .st48-search-hero {
  margin: 0 0 1.25rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  background: var(--st48-surface, #fff);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--st48-radius-lg, 0.75rem);
  box-shadow: var(--st48-elev, 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 10px 28px -8px rgba(15, 23, 42, 0.08));
}

body.st48.st48-search .st48-search-hero__h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--st48-ink, #1c1c1e);
}

body.st48.st48-search .st48-search-hero__lead {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #6e6e73;
}

body.st48.st48-search .st48-search-hero__stats {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--st48-ink-muted, #636366);
}

body.st48.st48-search .st48-search-hero__stats strong {
  color: var(--st48-accent, #00a85c);
  font-weight: 700;
}

/* 页内二次搜索 */
body.st48.st48-search .st48-inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 32rem;
  padding: 0.35rem 0.45rem 0.35rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f3f5f8);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.st48.st48-search .st48-inline-form:focus-within {
  border-color: rgba(0, 168, 92, 0.38);
  box-shadow: 0 0 0 3px rgba(0, 168, 92, 0.18), 0 2px 10px rgba(15, 23, 42, 0.06);
}

body.st48.st48-search .st48-inline-form__ico {
  flex-shrink: 0;
  display: inline-flex;
  color: rgba(0, 0, 0, 0.28);
}

body.st48.st48-search .st48-inline-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  outline: none;
  color: var(--st48-ink, #1c1c1e);
}

body.st48.st48-search .st48-inline-form input[type="search"]::placeholder {
  color: #9a9aa3;
}

body.st48.st48-search .st48-inline-form__submit {
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #14e078, var(--st48-accent, #00a85c) 55%, #008f52);
  box-shadow: 0 2px 12px rgba(0, 140, 80, 0.28);
  transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

body.st48.st48-search .st48-inline-form__submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 16px rgba(0, 140, 80, 0.32);
}

body.st48.st48-search .st48-inline-form__submit:active {
  transform: scale(0.98);
}

/* 结果网格 */
body.st48.st48-search ul.st48-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 36rem) {
  body.st48.st48-search ul.st48-search-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 0.55rem;
  }
}

@media (min-width: 52rem) {
  body.st48.st48-search ul.st48-search-results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem 0.65rem;
  }
}

@media (min-width: 64rem) {
  body.st48.st48-search ul.st48-search-results {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* 单张结果卡片（search_list_var） */
body.st48.st48-search .st48-srcard {
  margin: 0;
  min-width: 0;
  background: var(--st48-surface, #fff);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--st48-radius-md, 0.5rem);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease;
}

body.st48.st48-search .st48-srcard:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 92, 0.2);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(0, 168, 92, 0.08);
}

body.st48.st48-search .st48-srcard__pic {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #eceef2, #dfe3ea);
}

body.st48.st48-search .st48-srcard__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

body.st48.st48-search .st48-srcard:hover .st48-srcard__pic img {
  transform: scale(1.04);
}

body.st48.st48-search .st48-srcard__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.45));
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

body.st48.st48-search .st48-srcard:hover .st48-srcard__play {
  opacity: 1;
}

body.st48.st48-search .st48-srcard__play svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

body.st48.st48-search .st48-srcard__tag {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  max-width: calc(100% - 0.7rem);
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  line-height: 1.2;
  text-align: right;
}

body.st48.st48-search .st48-srcard__tag:empty {
  display: none;
}

body.st48.st48-search .st48-srcard__body {
  padding: 0.45rem 0.5rem 0.55rem;
}

body.st48.st48-search .st48-srcard__title {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--st48-ink, #1c1c1e);
}

body.st48.st48-search .st48-srcard__title a {
  color: inherit !important;
  text-decoration: none !important;
}

body.st48.st48-search .st48-srcard__title a:hover {
  color: var(--st48-accent, #00a85c) !important;
}

body.st48.st48-search .st48-srcard__cast {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--st48-ink-muted, #636366);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分页区 meta */
body.st48.st48-search .st48-pager__meta {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: var(--st48-ink-muted, #636366);
}

body.st48.st48-search .st48-pager__meta .nj-pager__meta-hint {
  opacity: 0.75;
  font-size: 0.75rem;
}
