.sidebar {
  width: 300px;
  background-color: #fff;
  padding: 50px 42px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  border-right: 4px solid #E6E6E6;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  overflow: hidden;
}

.logo {
  font-size: 28px;
  font-weight: bolder;
  margin-bottom: 90px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo:hover {
  color: #00c2b3;
}

.logo:hover,
.nav-item:hover {
  cursor: pointer;
  transform: scale(1.05);
  transition: all 0.5s;
}

.nav-item {
  padding: 10px;
  cursor: pointer;
  display: flex;
  color: #888;
  margin: 5px 0 68px;
  align-self: flex-start;
  font-size: 22px;

}

.nav-item img {
  margin-right: 11px;
  width: 32px;
  height: auto;
}

.nav-item.active {
  color: #00c2b3;
  font-weight: bolder;
}

.nav-item i {
  margin-right: 10px;
  font-size: 20px;
}

.content {
  margin-left: 300px;
}

.page {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.page.active {
  display: block;
  opacity: 1;
}

/* 添加加载动画样式 */
.loading-container {
  position: fixed;
  left: 300px; /* 与侧边栏宽度相同 */
  right: 0;
  top: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #00c2b3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}