/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Aug 05 2026 | 13:12:52 */

#searchContainer {
    position: relative;
    width: 610px;
    box-sizing: border-box;
	 z-index: 9999 !important;
}

#searchInput {
    width: 100%;
    padding: 15px 15px 15px 40px;
    font-size: 16px;
    box-sizing: border-box;
    background-image: url('https://xn--hoqs02dpjc.cn/wp-content/uploads/2024/08/loupe.png');
    background-size: 15px 15px;
    background-position: 10px center;
    background-repeat: no-repeat;
    border-radius: 0;
    border: none; 
    outline: none; /* 移除默认聚焦边框 */
    box-shadow: none; /* 移除任何可能的阴影 */
}

#searchInput:focus {
    outline: none; /* 移除聚焦时的默认边框 */
    box-shadow: none; /* 移除任何可能的阴影 */
}

#loadingIndicator {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 3px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#searchResults {
    background-color: #fff;
    border: 1px solid #ccc;
    margin-top: 5px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 0;
    z-index: 9999999 !important; 
    display: none;
    border-radius: 0; 
}

.search-result-item {
    margin-bottom: 3px; /* 外边距 */
    padding: 3px 0; /* 内边距 */
    border-bottom: 1px solid #DCDCDC; /* 保留底部边框 */
}

.search-result-item:last-child {
    border-bottom: none; /* 最后一项去掉底部边框 */
}


.search-result-item a {
    text-decoration: none;
    color: #2a5496;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0; 
}

.search-result-item p {
    margin: 5px 0 0;
    color: #666;
    font-size: 12px;
    border-radius: 0; 
}


.search-result-item a:hover {
    text-decoration: underline;
}

.no-results {
    color: #666;
	 font-size: 14px;
}

/* 媒体查询：针对宽度小于768px的设备 */
@media (max-width: 768px) {
    #searchContainer {
        width: 90%;
        margin: 0 auto;
    }

    #searchInput {
        font-size: 14px;
        padding: 12px 12px 12px 35px;
        border-radius: 0; 
    }

    #loadingIndicator {
        right: 8px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
    }

    #searchResults {
        padding: 8px;
        border-radius: 0; 
		   z-index: 9999;
    }
}

@media (max-width: 480px) {
    #searchContainer {
        width: 100%;
    }

    #searchInput {
        font-size: 16px;
        padding: 10px 10px 10px 30px;
        border-radius: 0;
        height: 50px; 
    }

    #loadingIndicator {
        right: 6px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
    }

    #searchResults {
        padding: 5px;
        border-radius: 0; 
        z-index: 9999;
    }
}





