/* Search composition follows demo/91-搜索页.html and the shared catalog. */
.search-layout .search-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    max-width: 520px;
    margin-bottom: 24px;
    padding: 8px 16px;
    border: 1px solid var(--home-line);
    border-radius: 24px;
    background: rgba(255,255,255,.05);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.search-layout .search-bar:focus-within {
    border-color: rgba(139,92,255,.7);
    background: rgba(255,255,255,.07);
    box-shadow: 0 0 0 3px rgba(139,92,255,.16);
}
/* The rounded form supplies the focus indicator instead of the shared input outline. */
.search-layout .search-bar input:focus,
.search-layout .search-bar input:focus-visible {
    outline: none;
    box-shadow: none;
}
.search-bar input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: none;
    color: var(--home-text);
    font: inherit;
    font-size: 14px;
    caret-color: #b5a1ff;
}
.search-bar input::placeholder { color: var(--home-muted); }
.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: #8b5cff;
    cursor: pointer;
}
.search-layout .search-submit svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.search-submit:hover { color: #d0bfff; }
.search-layout .search-current { max-width: min(56vw,420px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-tags { margin-bottom: 22px; }
.search-tags > span { align-self: center; margin-right: 6px; color: var(--home-muted); }
.search-tags a:hover { background: var(--home-gradient); color: #fff; border-color: transparent; }
.search-grid { margin-top: 20px; }
.search-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 768px) {
    .search-submit { width: 28px; height: 28px; }
    .search-bar input { font-size: 16px; }
}
