/* 全站搜索页 */
.fe-search-main {
    max-width: 880px;
    margin: 0 auto 48px;
    padding: 0 20px;
}

.fe-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.fe-search-form input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 10px;
    font-size: 15px;
    background: var(--bg-secondary, #fff);
    color: var(--text-primary);
}

.fe-search-form input:focus {
    outline: none;
    border-color: var(--primary-color, #0288d1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #0288d1) 16%, transparent);
}

.fe-search-form button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: var(--gradient-primary, linear-gradient(135deg, #0288d1, #0277bd));
    color: var(--fe-btn-solid-text, #fff);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color, #0288d1) 28%, transparent);
}

.fe-search-form button:hover {
    filter: brightness(1.05);
}

.fe-search-results .fe-search-item {
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: var(--bg-secondary, #fafafa);
}

.fe-search-results .fe-search-item:hover {
    border-color: var(--primary-color, #0288d1);
}

.fe-search-item__type {
    font-size: 12px;
    color: var(--text-secondary, #666);
}

.fe-search-item__title {
    font-weight: 600;
    margin: 4px 0;
}

/* ── Navbar 内嵌搜索（主色导航条上的玻璃态） ── */
.fe-navbar-search {
    flex: 0 1 240px;
    min-width: 0;
    max-width: 280px;
    margin-right: 4px;
}

.fe-navbar-search__field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.fe-navbar-search__icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    pointer-events: none;
    opacity: 0.72;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.fe-navbar-search input[type="search"] {
    width: 100%;
    padding: 8px 40px 8px 34px;
    border: 1px solid var(--fe-nav-search-border, rgba(255, 255, 255, 0.28));
    border-radius: 999px;
    background: var(--fe-nav-search-bg, rgba(255, 255, 255, 0.14));
    color: var(--fe-btn-solid-text, #fff);
    font-size: 13px;
    font-family: inherit;
    line-height: 1.3;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.fe-navbar-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.fe-navbar-search input[type="search"]:hover {
    background: color-mix(in srgb, var(--fe-nav-search-bg, rgba(255, 255, 255, 0.14)) 80%, #fff 20%);
    border-color: rgba(255, 255, 255, 0.38);
}

.fe-navbar-search input[type="search"]:focus {
    outline: none;
    background: var(--fe-nav-search-focus-bg, rgba(255, 255, 255, 0.22));
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.06),
        0 0 0 3px rgba(255, 255, 255, 0.14);
}

.fe-navbar-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.fe-navbar-search__btn {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color, #0288d1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.fe-navbar-search__btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.fe-navbar-search__btn:active {
    transform: translateY(-50%) scale(0.98);
}

.fe-navbar-search__btn-icon {
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230288d1' stroke-width='2.4' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

[data-theme="fashion"] .fe-navbar-search__btn-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.4' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}

@media (max-width: 960px) {
    .fe-navbar-search {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-navbar-search input[type="search"],
    .fe-navbar-search__btn {
        transition: none;
    }

    .fe-navbar-search__btn:hover {
        transform: translateY(-50%);
    }
}
