/* 菜单弹窗样式 */
.menu_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu_modal {
  background-color: white;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform-origin: center;
  animation: menuModalSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.menu_title {
  margin: 0;
  color: var(--main);
  font-size: 20px;
  font-weight: 600;
}

.menu_close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.menu_close-btn:hover {
  background-color: #f5f5f5;
  color: var(--main);
  transform: scale(1.1);
}

.menu_nav {
  padding: 8px 0;
}

.menu_item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 0 12px 12px 0;
  position: relative;
  overflow: hidden;
  font-size: 15px;
}

.menu_item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--main);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.menu_item:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--main);
  padding-left: 28px;
}

.menu_item:hover::before {
  transform: scaleY(1);
}

.menu_icon {
  margin-right: 14px;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.menu_item:hover .menu_icon {
  transform: scale(1.2);
}

/* 为菜单项添加错开的进入动画 */
.menu_item {
  opacity: 0;
  transform: translateX(-20px);
  animation: menuItemFadeIn 0.3s ease forwards;
}

.menu_item:nth-child(1) {
  animation-delay: 0.1s;
}

.menu_item:nth-child(2) {
  animation-delay: 0.15s;
}

.menu_item:nth-child(3) {
  animation-delay: 0.2s;
}

.menu_item:nth-child(4) {
  animation-delay: 0.25s;
}

.menu_item:nth-child(5) {
  animation-delay: 0.3s;
}

.menu_item:nth-child(6) {
  animation-delay: 0.35s;
}

.menu_item:nth-child(7) {
  animation-delay: 0.4s;
}

/* 自定义滚动条 */
.menu_modal::-webkit-scrollbar {
  width: 6px;
}

.menu_modal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.menu_modal::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.menu_modal::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes menuModalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes menuItemFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 菜单弹窗样式 */

/* 搜索弹窗样式 */
.search_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.search_modal {
  background-color: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.search_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.search_header h3 {
  margin: 0;
  color: var(--main);
  font-size: 18px;
}

.search_close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search_close:hover {
  color: var(--main);
}

.search_form {
  padding: 20px;
  display: flex;
  gap: 10px;
}

.search_input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search_input:focus {
  border-color: var(--main);
}

.search_btn {
  padding: 12px 20px;
  background-color: var(--main);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search_btn:hover {
  background-color: #0256d9;
  transform: translateY(-1px);
}

/* 搜索弹窗样式 */
