.search-container {
    position: relative;
    margin-left: auto;
    margin-right: 0;
}

.search-box {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 250px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    width: 300px;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border-radius: 15px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 1rem;
}

.result-info {
    flex: 1;
}

.result-info h4 {
    margin: 0 0 0.25rem 0;
    color: #fff;
    font-size: 1.1rem;
}

.result-info .category {
    font-size: 0.9rem;
    color: #c8a2ff;
    background: rgba(200, 162, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

/* 滚动条样式 */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(200, 162, 255, 0.3);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 162, 255, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-container {
        margin: 1rem 0;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box:focus {
        width: 100%;
    }
} 