@media (min-width: 960px) {
  .popup {
    display: block;
    /* 确保它存在，但初始状态隐藏 */
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.45); */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .popup .popup_content {
    position: absolute;
    left: -300px;
    /* 初始隐藏在左侧 */
    top: 0;
    height: 100%;
    width: 250px;
    /* 侧边栏宽度 */
    background-color: #161920;
    padding: 20px;
    transition: left 0.3s ease-in-out;
  }

  /* 侧边栏内容 */
  .popup .popup_content .menu_list {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .popup .popup_content .menu_list .logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
    justify-content: center !important;
  }

  .popup .popup_content .menu_list .logo .logo_icon {
    width: 100px;
  }

  .popup .popup_content .menu_list .menu_item {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .popup .popup_content .menu_list .menu_item img {
    width: 24px;
    height: 24px;
    margin-right: 20px;
  }

  /* 关闭按钮 */
  .popup .popup_content .menu_list .close_btn {
    width: 90%;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(to bottom, #308ED7, #5860D3);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .popup .popup_content .close_icon img {
    width: 100%;
    height: 100%;
  }

  /* 当 `open-popup` 类被添加时，菜单滑入 */
  .popup.open-popup {
    opacity: 1;
    visibility: visible;
  }

  .popup.open-popup .popup_content {
    left: 0;
  }

  .NewGames {
    font-size: 12px;
    color: #bdbfce;
    margin-top: 10px;
  }

  .menu_item {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .menu_item img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }
}

@media (max-width: 960px) {

  body.popup-active {
    background: rgba(0, 0, 0, 0.5);
    transition: filter 0.3s ease-in-out;

  }

  body.popup-active .container {
    filter: blur(5px);
  }

  .popup {
    display: block;
    position: fixed;
    top: 0;
    left: -80vw;
    /* width: 260px; */
    height: 100vh;
    background: #fff;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 12;
    overflow-y: auto;
  }

  .popup.open-popup {
    left: 0;
  }

  .popup .popup_content {
    width: 100%;
    height: 100%;
    background-color: #fff;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
  }

  .popup .popup_content .menu_list {
    padding: 20px;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
  }

  .popup .popup_content .menu_list .logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
    justify-content: center !important;
  }

  .popup .popup_content .menu_list .logo .logo_icon {
    width: 130px;
  }

  .popup .popup_content .menu_list .menu_item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 80%;
    padding: 10px;
    font-size: 16px;
    color: #000;
    border-radius: 8px;
    transition: background 0.3s;
    gap: 10px
  }

  .popup .popup_content .menu_list .menu_item:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .popup .popup_content .menu_list .menu_item img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }

  .popup .popup_content .close_btn {
    width: 100%;
    padding: 10px;
    background: #fff;
    color: #8F8F8F;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    margin-top: 8px;
    border: 1px solid #DFDFDF;
  }

  .popup .popup_content .NewGames {
    color: #888;
    font-size: 12px;
    margin-top: 12px;
  }
}