.header__icon--menu {
  display: flex;
  position: initial;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.header__icon--menu i.close-ico,
.menu-opening .header__icon--menu i.open-ico {
  display: none;
}

.menu-opening .header__icon--menu i.close-ico {
  display: inline-block;
}

/* 关键动画样式 - 开始 */
.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 320px;
  max-width: 90%;
  background: #fff;
  z-index: 1000;
  box-shadow: 5px 0 15px rgba(0,0,0,0.1);
  
  /* 初始状态：完全隐藏在左侧 */
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

/* 菜单打开时的状态 */
.menu-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

/* 遮罩层 */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* 关闭按钮样式 */
.menu-drawer__close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* 内容区域 */
.menu-drawer__inner-container {
  padding: 60px 30px 30px;
  height: 100%;
  overflow-y: auto;
}

.menu-drawer__menu-item {
  display: block;
  padding: 15px 0;
  font-size: 18px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.menu-drawer__menu-item:hover {
  color: #007bff;
  padding-left: 10px;
}
/* 关键动画样式 - 结束 */

/* 响应式调整 */
@media screen and (min-width: 750px) {
  .menu-drawer {
    width: 400px;
  }
}

/* 确保页面内容不会被菜单推挤 */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}