/* 自定义样式 */
.navbar {
  /* position: fixed; */
  top: 0;
  right: 0;
  left: 0;
  background-color: #fff !important; /* Navbar 颜色 */
  z-index: 1030; /* 使 Navbar 显示在 Sidebar 之上 */
  border-bottom: 0.5px solid;
  border-color: #e5e5e5;
  height: 10vh;
}
.navbar-logo {
  display: block;
  padding: 1rem;
  text-align: center;
}
.navbar-toggler {
  display: block;
  margin-right: 1rem;
}
.sidebar {
  width: 35%;
  height: 100vh;
  padding: 20px;
  background-color: #fff; /* Sidebar 颜色 */
  position: fixed;
  top: 10%;
  left: -35%;
  overflow-y: auto;
  transition: left 0.3s;
  transition-duration: 0.5s;
  z-index: 998; /* 覆蓋content */
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3),
    0 2px 6px 2px rgba(60, 64, 67, 0.15);
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}

/* 修改滚动条滑块的样式 */
.sidebar::-webkit-scrollbar-thumb {
  background-color: gainsboro;
  border-radius: 5px;
}

/* 修改滚动条滑块在 hover 状态时的样式 */
.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: gainsboro;
}

.content {
  position: relative;
  margin-left: 0;
  /* margin-top: 90px; 与 Navbar 高度相同，避免遮挡 */
  padding: 20px;
  transition: margin 0.6s;
  transition: 0.6s;
  width: 100%;
  height: 90vh;
  overflow-y: clip;
}

#search-section {
  position: absolute;
  left: 3%;
  top: 13%; /* 设置 div1 距离顶部的距离 */
  width: 30%;
}
.search-btn {
  border: none;
  border-radius: 15px 15px 0px 0px;
}
.search-container {
  border: 1px solid #e5e5e5;
  border-radius: 15px;
}
.search-bar {
  border: none;
  border-radius: 15px 15px 15px 15px;
}

.search-submit-btn {
  border-radius: 15px;
  border: 0.8px solid;
  border-color: #e5e5e5;
}

.search-submit-btn:hover {
  border-radius: 15px;
  border: 0.5px solid;
  border-color: #e5e5e5;
  background-color: #e5e5e5;
}
.clean-flex {
  /* display: flex;
  align-items: center;
  justify-content: center; */
  /* margin-bottom: 10%; */
  position: sticky;
  display: block;
  width: 100%;
  height: 15%;
  left: 50%;
  bottom: 0%; 
  padding: 10px 10px;
  transform: translate(0%, 0%);
  background-color: #fff;
  border-top: 1px solid #e5e5e5;
  z-index: 998;
  
}

#btn-back-to-top {
  position: sticky;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  z-index: 999;
}

#btn-back-to-top:hover {
  background-color: #e5e5e5;
}

@media (max-width: 767px) {
  .navbar-toggler {
    display: block;
  }
  .navbar {
    padding-left: 0; /* 在小屏幕下取消 Navbar 的左内边距 */
  }
  .sidebar {
    width: 85%;
    left: -85%;
  }
  .active-sidebar {
    left: 0;
  }
  .navbar-expanded .sidebar {
    left: 0;
  }
  .content {
    margin-left: 0; /* 在小屏幕下取消 Sidebar 的 margin */
    transition: margin 0.6s;
    transition: 0.6s;
  }

  #search-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 13%; /* 设置 div1 距离顶部的距离 */
    width: 85%;
  }
  .clean-flex {
    margin-bottom: 25%;
  }
  /* .sidebar > #btn-back-to-top {
    position: fixed;
    left: 20%;
    bottom: 15%;
    transform: translateX(-50%, -50%);
  } */
}
