.search-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
}
.search-hero-title {
  font-size: 20px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 20px;
}
.search-hero-title strong {
  color: var(--brand);
  font-weight: 700;
}

/* 搜索框组合 */
.search-bar-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.search-form {
  display: flex;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .15s;
}
.search-form:focus-within {
  box-shadow: 0 0 0 4px var(--brand-050);
}
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 16px;
  background: #fff;
}
.search-input-wrap i {
  color: var(--muted);
  font-size: 18px;
}
.search-input {
  width: 100%;
  height: 48px;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}
.search-btn {
  padding: 0 32px;
  height: 48px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.search-btn:hover {
  background: var(--brand-600);
}

/* 相关搜索/推荐词 */
.related-searches {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.related-searches span { color: var(--ink-2); }
.related-searches a {
  color: var(--muted);
}
.related-searches a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ---------- 搜索结果主区域 ---------- */
.search-content {
  padding: 24px 0 48px;
}
.search-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}
.search-toolbar .stats b {
  color: var(--brand);
  font-size: 16px;
  margin: 0 4px;
}
.sort-options a {
  color: var(--ink-2);
  margin-left: 16px;
  cursor: pointer;
}
.sort-options a:hover, .sort-options a.active {
  color: var(--brand);
  font-weight: 600;
}

/* 结果列表 */
.result-list{display:flex; flex-direction:column; gap:12px;}
.result-item{
  display:flex; gap:20px; padding:20px;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  transition:border-color .15s, box-shadow .15s;
}
.result-item:hover{border-color:var(--brand); box-shadow:0 4px 12px rgba(0,0,0,.03);}

.item-thumb{
  width:220px; height:140px; border-radius:var(--radius-sm); flex-shrink:0;
  background:var(--bg-soft); overflow:hidden;
}
.item-thumb img{width:100%; height:100%; object-fit:cover;}

.item-body{flex:1; min-width:0; display:flex; flex-direction:column;}
.item-title{font-size:16px; margin-bottom:8px; line-height:1.4;}
.item-title a{color:var(--ink);}
.item-title a:hover{color:var(--brand);}
/* 搜索词高亮 */
.highlight { color: #e11d48; font-weight: 600; }
.item-desc{
  font-size:13px; color:var(--ink-2); margin-bottom:12px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.item-meta{display:flex; align-items:center; gap:12px; font-size:12px; color:var(--muted); margin-top:auto;}
.tag{padding:2px 8px; border-radius:4px; background:var(--brand-050); color:var(--brand); font-weight:600;}
.tag-type{background:var(--accent-soft); color:#b45309;}

/* 分页 */
.pagination{display:flex; justify-content:center; align-items:center; gap:6px; margin-top:24px;}
.pagination a, .pagination span{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:32px; height:32px; padding:0 10px; border-radius:6px;
  border:1px solid var(--line); font-size:13px; color:var(--ink-2); background:#fff;
}
.pagination a:hover{border-color:var(--brand); color:var(--brand);}
.pagination .active{background:var(--brand); border-color:var(--brand); color:#fff;}

/* ---------- 空状态 (无搜索结果) ---------- */
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 60px 20px;
  text-align: center;
}
.empty-icon {
  font-size: 48px;
  color: var(--line);
  margin-bottom: 16px;
}
.empty-title {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.empty-recommend {
  display: inline-block;
  background: var(--bg-soft);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  text-align: left;
}
.empty-recommend p {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 12px;
  font-weight: 600;
}
.empty-recommend ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.empty-recommend a {
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}
.empty-recommend a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ============================================================
   响应式布局
   ============================================================ */
@media (max-width:860px){
  .primary-nav{display:none;}
  .nav-toggle{display:block; margin-left:auto;}
  .header-actions .btn-text{display:none;}
  .header-actions .btn{width:36px; height:36px; padding:0; border-radius:50%;}
  
  .search-hero { padding: 24px 0; }
  .search-hero-title { font-size: 18px; }
  .search-btn { padding: 0 20px; }
  
  .result-item{flex-direction:column; gap:12px; padding:16px;}
  .item-thumb{width:100%; height:140px;}
  .item-title{font-size:15px;}
}

@media (max-width:560px){
  .search-form { flex-direction: column; border-radius: var(--radius-sm); }
  .search-input-wrap { padding-left: 12px; }
  .search-input { height: 44px; font-size: 15px; }
  .search-btn { height: 44px; width: 100%; border-radius: 0; }
  
  .search-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .item-desc{-webkit-line-clamp:3;}
  .empty-recommend { width: 100%; padding: 16px; }
}