body {
  font-family: 'Helvetica Neue', Helvetica, Arial, 'Microsoft Yahei', 'Hiragino Sans GB', 'Heiti SC',
    'WenQuanYi Micro Hei', sans-serif;
}
.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  z-index: 999;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.sidebar .logo {
  position: absolute;
  top: 30px;
  width: 40px;
  height: 40px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}
.sidebar .name {
  position: absolute;
  width: fit-content;
  z-index: 11;
  white-space: nowrap;
  font-weight: bold;
  font-size: 22px;
  color: #333;
  transform: rotate(-90deg);
  transition: all 0.5s;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.sidebar .item {
  word-break: break-all;
  text-align: center;
  font-size: 0.06rem;
  color: #333;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.5s;
  writing-mode: vertical-lr;
  letter-spacing: 1px;
  max-width: 0.1rem;
  width: fit-content;
  display: flex !important;
  position: relative;
  align-items: center;
  justify-content: center;
}
.sidebar .item.inactive {
  width: 0.04rem;
  height: 0.04rem;
  background: #e0e0e0;
}
.sidebar .btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 0.3rem;
  height: 0.3rem;
  transition: all 0.5s;
  cursor: pointer;
}
.sidebar .btn:active {
  transform-origin: 25% 25%;
}
.sidebar .btn:active .line1 {
  top: 40%;
}
.sidebar .btn:active .line2 {
  left: 60%;
}
.sidebar .btn:active .line3 {
  top: 60%;
}
.sidebar .btn:active .line4 {
  left: 40%;
}
.sidebar .btn .line {
  position: absolute;
  border-radius: 30px;
  background-color: #333;
  display: inline-block;
  transition: all 0.5s;
}
.sidebar .btn .line1 {
  width: 4px;
  height: 30px;
  top: 50%;
  left: 0.08rem;
  transform: translateY(-50%);
}
.sidebar .btn .line3 {
  width: 4px;
  height: 30px;
  right: 0;
  top: 50%;
  right: 0.08rem;
  transform: translateY(-50%);
}
.sidebar .btn .line2 {
  width: 30px;
  height: 4px;
  left: 50%;
  top: 0.08rem;
  transform: translateX(-50%);
}
.sidebar .btn .line4 {
  bottom: 0.08rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 4px;
}
.sidebar .btn.active {
  transform-origin: 25% 25%;
  transform: rotateZ(90deg);
}
.sidebar .btn.active .line1 {
  top: 40%;
}
.sidebar .btn.active .line2 {
  left: 60%;
}
.sidebar .btn.active .line3 {
  top: 60%;
}
.sidebar .btn.active .line4 {
  left: 40%;
}
.menu {
  position: fixed;
  top: 0;
  left: -100%;
  z-index: 998;
  width: calc(100vw - var(--sidebar-width));
  height: 100vh;
  background-color: #fff;
  display: flex;
  cursor: pointer;
  transition: all 0.7s;
}
.menu .item {
  flex: 1;
  writing-mode: vertical-lr;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.12rem;
  transition: all 1s;
  transition-delay: 0.7s;
  user-select: none;
  color: #333;
}
.menu .item .text {
  transition: all 0.5s;
  letter-spacing: 0.06rem;
  z-index: 10;
  pointer-events: none;
}
.menu .hover {
  position: absolute;
  z-index: 9;
  left: 0;
  width: 16%;
  height: 100%;
  background-color: var(--primary-color);
  transition: all 0.7s;
}
