.sidebar {
  position: fixed;
  top: 0;
  left: -333px; /* 初始位置在视口外 */
  width: 333px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  /* box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); */
  transition: left 0.5s ease; /* 动画效果 */
  z-index: 1500;
}

.sidebar.show {
  left: 0; /* 显示在视口内 */
}

.sidebar-content {
  padding: 16px;
  box-sizing: border-box;
}

.sidebar-link .link-tab {
  position: relative;
  width: 100%;
  border-bottom: 1px solid #8d8787;
}

.sidebar-link .link-tab .link-icon {
  position: absolute;
  top: 12px;
  right: 0;
  color: #8d8787;
  font-size: 20px;
  transition: transform 0.5s ease; /* 平滑过渡透明度和缩放 */
  -ms-transition: transform 0.5s ease; /* IE10 */
}
.sidebar-link .link-tab .link-icon.fade-out {
  transform: rotate(0deg);
}

.sidebar-link .link-tab .link-icon.fade-in {
  transform: rotate(90deg);
}

.sidebar-link .link-tab .link-collapse .child-link {
  display: -ms-flexbox;
  -ms-flex-direction: column;
  display: flex;
  flex-direction: column;
  color: #fff;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-color: #0B4479 transparent; /* 滚动条颜色 */
  scrollbar-width: thin; /* 滚动条宽度 */
}

.sidebar-link .link-tab .link-collapse .child-link a {
  box-sizing: border-box;
  padding-left: 10px;
}

.sidebar .closebtn {
  font-size: 30px;
  color: #303841;
  border: none;
  background: none;
  cursor: pointer;
  position: absolute;
  top: 4px;
  right: 15px;
}

.sidebar-header {
  width: 100%;
  /* height: 72px; */
  height: 8%;
  display: -ms-flexbox;
  -ms-flex-align: center;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #fff;
}

.sidebar-header img {
  width: 108px;
  height: 50px;
}

@media (max-width: 992px) {
  /* .sidebar-header {
    height: 55px;
  } */

  .sidebar-header img {
    width: 63px;
    height: 29px;
  }
}

.sidebar-content {
  height: 92%;
  overflow-y: auto;
  scrollbar-color: #0B4479 transparent; /* 滚动条颜色 */
  scrollbar-width: thin; /* 滚动条宽度 */
}

.sidebar-content div a {
  width: 100%;
  color: #fff;
  line-height: 55px;
  transition: color 0.2s ease-in-out;
}

.sidebar-content div a:hover {
  color: #0B4479;
}

.sidebar-content div .active {
  color: #0B4479;
  font-weight: bold;
}
