/******************************************************************************/
/*导航上的搜索 xx 2025-7-24
*/
/******************************************************************************/

.Header-search{float: right;}


.Header-search-click{width: 26px;height: 80px;cursor: pointer;background: url('/template/jiaoyu_yuanshan_2025/svg/search.svg') no-repeat center /26px auto;position: relative;z-index: 999;}
.Header-search-click.active{background: url('/template/jiaoyu_yuanshan_2025/svg/close.svg') no-repeat center/20px auto;}



/* 自定义导航栏样式 */

/* 搜索按钮样式 */
/*.search-btn {
    color: #2c3e50;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.search-btn:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}*/

/* 搜索窗口样式 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-input {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 30px;
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #3498db;
    transform: rotate(90deg);
}

.search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3498db;background-color: #a40002;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background-color: #2980b9;background-color: #ff0000;
    transform: translateY(-50%) scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-container {
        max-width: 90%;
    }
}