#search-panel { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: none; z-index: 999; }
#search-panel.active { display: block; }
.search-panel-body { position: absolute; top: 0; right: 0; width: min(100%, 520px); height: 100%; background: #f7f3ea; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,0.12); }
.search-panel-header { display: flex; align-items: center; gap: 10px; padding: 16px 14px; border-bottom: 1px solid rgba(0,0,0,0.06); background: #f7f3ea; position: sticky; top: 0; z-index: 2; }
.search-panel-back, .search-panel-close { font-size: 28px; line-height: 1; cursor: pointer; color: #666; width: 28px; text-align: center; flex: 0 0 28px; }
.search-panel-title { font-size: 18px; font-weight: 700; color: #222; flex: 1; text-align: center; }
.search-form { display: flex; gap: 10px; padding: 16px 18px; }
.search-input { flex: 1; height: 44px; border: 1px solid #ddd; border-radius: 12px; padding: 0 14px; font-size: 15px; outline: none; }
.search-btn { width: 88px; border: none; border-radius: 12px; background: #6b6258; color: #fff; font-size: 15px; font-weight: 700; }
.debug-panel { padding: 10px 18px; color: #0b6; font-size: 12px; background: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(0,0,0,0.06); }
.search-result-box { flex: 1; overflow-y: auto; padding: 0 18px 18px; }
.search-empty { color: #999; text-align: center; padding: 30px 0; }
.search-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06); cursor: pointer; }
.search-item img { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; background: #eee; flex-shrink: 0; }
.search-meta { flex: 1; min-width: 0; }
.search-title { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 6px; }
.search-author { font-size: 13px; color: #666; margin-bottom: 8px; }
.search-desc { font-size: 13px; color: #777; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }