/* 搜索表单样式 */
.search-form {
    display: none;
    position: absolute;
    right: -135px;
    top: 45px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    min-width: 280px;
    animation: fadeInDown 0.3s ease-out;
    transform-origin: top right;
}

.search-form-inline {
    display: flex;
    overflow: hidden;
}

.search-form-inline::after {
    content: "";
    display: table;
    clear: both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form input[type="text"],
.search-form .search-input {
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 6px 0 0 6px;
    width: calc(100% - 80px);
    margin-bottom: 0;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    float: left;
    height: 42px;
}

.search-form input[type="text"]:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    outline: none;
}

.search-form button[type="submit"],
.search-form .search-button {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 80px;
    box-sizing: border-box;
    float: left;
    height: 42px;
}

.search-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #357abd, #2968a8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 搜索图标样式优化 */
.navto-search .search-show {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navto-search .search-show:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-form {
        right: 10px;
        left: 10px;
        width: auto;
        min-width: auto;
    }
}