.search-sticky-wrap {
    --search-accent: #2563eb;
    --search-accent-hover: #1d4ed8;
    --search-border: #e2e8f0;
    --search-bg: #f8fafc;
    --search-text: #0f172a;
    --search-muted: #64748b;
    --search-radius: 12px;
    --search-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);

    width: 100%;
    position: sticky;
    top: 46px;
    z-index: 15;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eef2f7;
}

.search-bar-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 20px;
    box-sizing: border-box;
}

.focusBox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 48px;
    background: var(--search-bg);
    border: 1px solid var(--search-border);
    border-radius: var(--search-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.focusBox:focus-within {
    background: #fff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    color: var(--search-muted);
    font-size: 15px;
    pointer-events: none;
}

.focusBox > input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--search-text);
    font-size: 16px;
    line-height: 1.4;
}

.focusBox > input::placeholder {
    color: #94a3b8;
}

.focusBox > input:focus {
    outline: none;
}

.focusBox > input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    margin-right: 4px;
    background:
        linear-gradient(45deg, transparent 43%, #94a3b8 45%, #94a3b8 55%, transparent 57%),
        linear-gradient(-45deg, transparent 43%, #94a3b8 45%, #94a3b8 55%, transparent 57%);
    cursor: pointer;
}

.focusBox .seachBtn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 40px;
    margin: 4px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--search-accent);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.focusBox .seachBtn:hover {
    background: var(--search-accent-hover);
}

.focusBox .seachBtn:active {
    transform: scale(0.96);
}

.focusBox .seachBtn i {
    margin: 0;
}

.focusContent {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 100;
    display: none;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--search-border);
    border-radius: 12px;
    box-shadow: var(--search-shadow);
}

#searchHistoryList {
    width: 100%;
}

.searchList {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 320px;
    overflow-y: auto;
}

.searchList li {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--search-text);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.searchList li:hover,
.searchList li:focus {
    background: #eff6ff;
    color: var(--search-accent);
}

.searchList li + li {
    margin-top: 2px;
}

@media (max-width: 768px) {
    .search-bar-wrap {
        padding: 12px 12px;
    }

    .focusBox {
        min-height: 44px;
    }

    .search-input-icon {
        width: 38px;
        font-size: 14px;
    }

    .focusBox > input {
        height: 42px;
        font-size: 16px;
    }

    .focusBox .seachBtn {
        width: 44px;
        height: 36px;
        margin: 4px;
        font-size: 15px;
    }

    .searchList {
        max-height: 50vh;
    }
}
