/* ============================================================
 * 搜索 / 发现
 * ============================================================ */
.search-page { min-height: 100vh; background: var(--paper); }
.search-nav {
  display: flex; align-items: center; gap: 20px; padding: 16px max(24px, calc((100vw - 1180px)/2));
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 50;
}
.search-box { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; height: 42px; border: 1px solid var(--line); border-radius: 99px; padding: 0 6px 0 14px; background: #fff; color: var(--faint); }
.search-box input { flex: 1; border: 0; outline: none; font-size: 13px; background: transparent; color: var(--ink); }
.search-box button { height: 32px; padding: 0 15px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; }
.search-hero { text-align: center; padding: 56px 20px 34px; }
.search-hero h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -1.6px; margin: 0 0 12px; }
.search-hero p { color: var(--muted); font-size: 13.5px; max-width: 560px; margin: 0 auto 22px; line-height: 1.8; }
.hot-tags { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--faint); }
.hot-tags button { border: 1px solid var(--line); background: #fff; border-radius: 99px; height: 26px; padding: 0 11px; font-size: 11.5px; color: var(--muted); }
.hot-tags button:hover { border-color: #cbb2ff; color: var(--violet-deep); background: #faf7ff; }

.search-main { max-width: 1180px; margin: 0 auto; padding: 10px 24px 40px; }
.search-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 16px; }
.search-head h2 { font-size: 17px; margin: 0; letter-spacing: -.4px; }
.search-head span { font-size: 11.5px; color: var(--faint); }
.search-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.s-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: all .22s var(--ease); }
.s-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.s-cover { height: 100px; position: relative; }
.s-feat { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 3px; background: rgba(255,255,255,.9); color: #b45309; font-size: 9.5px; padding: 3px 7px; border-radius: 5px; font-weight: 600; }
.s-body { display: flex; gap: 10px; padding: 0 14px 14px; margin-top: -22px; position: relative; }
.s-ava { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background: #fff; box-shadow: 0 0 0 3px #fff; }
.s-ava img { width: 100%; height: 100%; object-fit: cover; }
.s-ava span { width: 100%; height: 100%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-deep); font-weight: 700; }
.s-info { min-width: 0; padding-top: 24px; }
.s-info b { font-size: 13.5px; display: block; }
.s-user { font-size: 10.5px; color: var(--violet); }
.s-info p { font-size: 11.5px; color: var(--faint); line-height: 1.6; margin: 5px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.s-meta { display: flex; gap: 10px; font-size: 10.5px; color: var(--faint); }
.search-empty { text-align: center; padding: 60px 0; color: var(--faint); font-size: 12.5px; }
.rec-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.rec-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px; text-align: center; cursor: pointer; transition: all .2s; }
.rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-s); }
.rec-card img, .rec-ava { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin: 0 auto; display: block; }
.rec-ava { background: var(--violet-soft); color: var(--violet-deep); display: grid; place-items: center; font-weight: 700; }
.rec-card b { display: block; font-size: 12px; margin-top: 8px; }
.rec-card span { font-size: 10px; color: var(--faint); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1000px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .rec-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .search-nav { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .search-box { order: 3; flex-basis: 100%; }
  .search-grid { grid-template-columns: 1fr; }
  .search-main { padding: 0 16px 30px; }
}
