:root {
    --header-height: "60px"
}


header {
    width: 100%;
}

.header-left img {
    height: var(--header-height);
    width: 100%;
}

.search h1 {
    color: #fff;
}

.header-logo {
    height: var(--header-height);
}

@media (max-width:768px) {
    .search {
        padding-top: 0;
    }

    .site-header {
        padding: 10px;
        box-sizing: border-box;
    }

}

.header {
    width: 100%;
    height: var(--header-height);

    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.header-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    height: var(--header-height);
    padding: 0 10px;
    background-color: #f8f8fa;
    border-bottom: 1px solid #e4dcdc;

}

.header-left {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    position: relative;
}

.NavMenu {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 999;
}

.NavMenu a {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    padding: 12px;
    text-decoration: none;
}

.NavMenu li {
    margin: 0 20px;
}

.NavMenu a:hover {
    color: #000 !important;
}

.search {
    display: flex;
    align-items: center;
    margin-left: 20px;
    background-color: #fff;
    border-radius: 15px;

}

.search input {
    width: 75%;
    height: 40px;
    border: none;
    border-radius: 15px;
    outline: none;
    padding-left: 10px
}

.search button {
    height: 100%;
    border: none;
    border-radius: 15px;
    background-color: #fff;
}


.caidan {
    display: none;
}

.NavMenuLi {
    display: flex;
    align-items: center;
}

#search-btn {
    border-radius: 5px;
    transition: all 0.3s ease;
    outline: none;
    height: 100%;
}

/* 基础输入框样式 */
.search {
    width: 300px;
    font-size: 16px;
    color: #333;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

/* 输入框聚焦时的样式 */
.search:focus {
    border-color: #007bff;
    /* 聚焦时边框颜色 */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    /* 聚焦时的阴影 */
}

/* 动画效果 */
@keyframes glowing {

    0%,
    100% {
        border-color: #007bff;
        box-shadow: 0 0 3px #007bff;
    }

    50% {
        border-color: #ffdd57;
        box-shadow: 0 0 5px #ffdd57;
    }
}

/* 应用动画效果 */
.search:not(:placeholder-shown) {
    animation: glowing 1.5s ease-in-out infinite alternate;
}

/* 占位符样式 */
input::placeholder {
    color: #aaa;
    /* 占位符颜色 */
    font-style: italic;
    /* 斜体 */
}

/* 响应式设计 */
@media (max-width: 600px) {

    .search {
        width: 100%;
        /* 在小屏幕上占满宽度 */
    }
}

@media (max-width:768px) {


    .caidan {
        padding-left: 10px;
        display: block !important;
    }

    .NavMenu {
        position: absolute;
        flex-direction: column;
        width: 100%;
        margin: 0;
        left: 0px;
        padding: 0;
        top: -800px;
        background-color: #fff;
        box-sizing: border-box;
    }

    .NavMenu a:hover {
        color: #fff !important;
    }

    .search {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .search button {
        width: 50px;
    }
}