/* 导航栏容器样式 */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 导航栏右侧容器 */
.nav-right {
    display: flex;
    align-items: center;
}

/* 搜索按钮样式 */
.search-trigger {
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 15px;
    color: #fff;
    transition: all 0.3s ease;
    align-self: center;
}

.search-trigger:hover {
    color: #f0f0f0;
    transform: scale(1.1);
}

/* 搜索框样式 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container {
    width: 90%;
    max-width: 700px;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

#search-input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #eee;
    border-radius: 5px;
    outline: none;
}

.search-close-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    padding: 5px;
}

.search-close-btn:hover {
    color: #333;
}

.search-results {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

/* 移动端搜索按钮样式调整 */
.mobile-menus .search-modal-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menus .search-modal-btn:hover {
    color: #f0f0f0;
    transform: scale(1.1);
}