a {
    text-decoration: none !important;
}
/** 按钮与特效 */
a.btn {
    color: #e9a6b2;
    border: 1px solid #e9a6b2;
    border-radius: 0.375rem;
}
a.btn:focus-visible, a.btn:hover{
    color: #fff;
    background-color: #e9a6b2;
}


.navbar-custom {
    background-color: white; /* 设置导航栏背景色为白色 */
    border-bottom: 2px solid #e0e0e0; /* 导航栏底部横杆 */
}
.nav-link.active, .nav-link:hover {
    color: #e9a6b2 !important; /* 激活和鼠标悬停链接颜色为粉色 */
    border-bottom: 3px solid #e9a6b2; /* 激活链接下方边框为粉色 */
}
.form-control::placeholder {
    color: #e9a6b2; /* 设置搜索框提示词颜色为粉色 */
}
.form-control {
    color: #e9a6b2; /* 设置搜索框内文本颜色为粉色 */
    box-shadow: none; /* 移除搜索框的阴影 */
    border-radius: 20px 0 0 20px; /* 搜索框左侧圆角 */
    border: 1px solid #e9a6b2; /* 搜索框边框颜色 */
    width: 180px; /* 设置搜索框的固定宽度 */
    position: relative; /* 确保伪元素定位正确 */
}
.form-control:focus {
    box-shadow: none; /* 移除聚焦时的阴影 */
    border-color: #e9a6b2; /* 聚焦时边框颜色 */
}
.form-control::-webkit-search-cancel-button {
    -webkit-appearance: none; /* 移除输入框中的清空按钮 */
}
.form-control::-ms-clear {
    display: none; /* 移除输入框中的清空按钮（适用于IE） */
}
.input-group-text {
    background: #e9a6b2;
    border: none;
    border-radius: 0 20px 20px 0 !important;
    color: white;
    cursor: pointer;
}
.input-group {
    width: 220px;
}
.btn-outline-primary {
    border-color: #e9a6b2 !important;
    color: #e9a6b2;
}
.btn-outline-primary:hover {
    background-color: #e9a6b2 !important; /* 鼠标悬停时按钮背景色为粉色 */
    color: white; /* 鼠标悬停时按钮文字颜色为白色 */
}
.input-group .form-control,
.input-group .input-group-text {
    border-color: #e9a6b2;
}
.dropdown-menu {
    width: 100%;
    padding: 0;
    border-radius: 0 0 10px 10px;
}
.dropdown-item {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
    cursor: pointer;
}
.dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: none;
}
.dropdown-item .title {
    font-weight: bold;
    margin-right: 10px;
}
.dropdown-item .description {
    color: #666;
    white-space: nowrap; /* 避免简介超出 */
    overflow: hidden;
    text-overflow: ellipsis; /* 显示省略号 */
}
.dropdown-item:first-child img {
    display: block; /* 仅显示第一个搜索结果的图片 */
}
.dropdown-item:hover img {
    display: block; /* 鼠标悬停时显示图片 */
}
.dropdown-item:hover .title,
.dropdown-item:hover .description {
    color: white; /* 鼠标悬停时的文字颜色 */
}
.dropdown-item:hover {
    background-color: #e9a6b2; /* 鼠标悬停时的背景颜色 */
}
.nav-item{
    width: 60px;
    text-align: center;
}

/** 底部 */
footer {
    background: #e9a6b2;
    height: auto;
    /*min-width: 1184px;*/
    width: 100%;
}
footer a {
    color: #fff;
    text-decoration: none;
}

.mt-4{
    padding-bottom: 120px;
}
footer p {
    text-align: center;
    font-size: 12px;
    color: #fff;
    margin-bottom: 5px;
    margin-top: 0;
}

footer .row{
    padding-top: 30px;
}
/* 顶部头像 */
.user-box{
    width: 50px;
    height: 50px;
    margin-left: 20px;
}
.user-box .avatar{
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
}
.user-box-body{
    top: 100%;
    left: -150%;
    margin-top:0.125rem;
    width: 220px;
    height: 180px;
    background-color: #fff;
    z-index: 999;
    opacity: 0;
    transition: opacity 1s;
    pointer-events: none;
    border: 1px solid #e9a6b2;
    border-radius: 25px;
}
.user-box-body.show{
    opacity: 1;
    pointer-events: auto;
}
.user-box-body .username{
    text-align: center;
    margin-top: 20px;
    color: #e9a6b2;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.user-box-body .username .grade{
    width: 40px;
    height: 30px;
}
.user-box-body .finance {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 20px;
}
.user-box-body .finance p {
    font-size: 12px;
    color: #e9a6b2;
}
.user-box-body .finance img{
    width: 20px;
}
.user-box-body .go-user{
    text-align: center;
    margin: 20px;
    box-sizing: border-box;
    background: #e9a6b2;
    padding: 5px;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
}
li {
    list-style: none;
}
body img {
    transition: transform 0.5s ease;
}
body a:hover{
    color: #e9a6b2;
}
body img:hover{
    transform: scale(1.1);
    transform-origin: center center;
}
.text-hidden {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}