.navbar0 {
    width: 100%;
    height: 70px;
    background-color: #ffffff;
}

.navbar {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    height: 70px;
    background-color: #ffffff;
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    justify-content: center;
    padding: 0 20px;
    /*position: relative;*/
    /*position: fixed;*/
    /*top: 0;*/
    /*left: 0;*/
    /*width: 100%;*/
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    /*font-weight: bold;*/
    color: #0080ff;
    margin-right: 100px;
}

.logo span {
    /*margin-left: 10px;*/
    font-size: 36px;
    color: #5e91a4;
    font-family: 'Microsoft YaHei', sans-serif;
}

.logo-div0 {
    color: #5e91a4;
    font-size: 32px;
    padding: 10px;
}


.logo-div1 {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;

}

.logo-div2 {
    font-size: 16px;
    color: #1e1e1e;
    /*font-family: '新宋体', sans-serif;*/
    /*font-family: 'Microsoft YaHei', sans-serif;*/
    font-family: "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-item {
    display: flex;
    padding: 0 20px;
    text-align: center;
    height: 100%;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.nav-item:hover {
    /*background-color: #0080ff; !* 悬停时的背景色， *!*/
    background-color: #5e91a4; /* 悬停时的背景色， */

}



.nav-link {
    display: block;
    color: #333;
    text-decoration: none;
    /*font-size: 14px;*/
    /*font-size: 16px;*/
    font-size: 18px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #0080ff;
}

.nav-link span {
    display: block;
    /*font-size: 16px;*/
    font-size: 18px;
    /*font-weight: bold;*/
    letter-spacing: 3px;
    /*Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif*/
    font-family: "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
    color: #0C0C0C;
}

.nav-link small {
    display: block;
    font-size: 12px;
    /*color: #666;*/
    font-weight: normal;
}

.nav-item.active .nav-link {
    color: #fff;
    background-color: #5e91a4!important;;
    height: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/*.search-icon {*/
/*    width: 30px;*/
/*    height: 30px;*/
/*    color: #5e91a4;*/
/*    cursor: pointer;*/
/*}*/
/* 搜索图标容器 */
.search-icon {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

/*!* 搜索框样式 *!*/
/*.search-box {*/
/*    display: none; !* 默认隐藏 *!*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    right: 20px;*/
/*    transform: translateY(-50%);*/
/*    background-color: white;*/
/*    border: 1px solid #ddd;*/
/*    border-radius: 4px;*/
/*    padding: 5px;*/
/*    box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
/*    z-index: 1000;*/
/*}*/

/* 搜索框容器：绝对定位，与图标同高 */
.search-box {
    display: none;
    position: absolute;
    top: 50%;
    right: 0; /* 紧贴图标右侧 */
    transform: translateY(-50%);
    background-color: white;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
    width: 0;
    /*display: flex;*/
    align-items: center;
    gap: 8px;
    min-width: 300px; /* 防止宽度过小 */
}

/*#search-input {*/
/*    width: 200px;*/
/*    padding: 8px;*/
/*    border: none;*/
/*    border-radius: 4px;*/
/*    outline: none;*/
/*}*/

/* 输入框样式 */
#search-input {
    width: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background-color: #f8f9fa;
    transition: width 0.4s ease, background-color 0.3s ease;
    color: #333;
}

#search-input:focus {
    background-color: white;
    width: 200px;
}

/*#search-btn {*/
/*    margin-left: 8px;*/
/*    padding: 8px 16px;*/
/*    background-color: #f1132d;*/
/*    color: white;*/
/*    border: none;*/
/*    border-radius: 4px;*/
/*    cursor: pointer;*/
/*}*/
/* 搜索按钮 */
#search-btn {
    margin-left: 8px;
    padding: 8px 16px;
    background-color: #f1132d;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/*#search-btn:hover {*/
/*    background-color: #d30e1c;*/
/*}*/

#search-btn:hover {
    background-color: #d30e1c;
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .navbar {
        padding: 0 10px;
    }

    .nav-item {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
    }

    .logo {
        margin-bottom: 10px;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-item {
        padding: 0 10px;
        margin-bottom: 10px;
    }
}


/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #c9a769;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #b08c4f;
    transform: translateY(-50%) scale(1.1);
}

.back-to-top img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover img {
    transform: translateY(-3px);
}