.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: white;
  border-radius: 8px;
  width: 120px;
  text-align: center;
  background: transparent;
  transition: background-color 0.3s ease;
  outline: none; /* 移除焦点边框 */
}

.dropdown-trigger:focus {
  outline: none; /* 确保在获得焦点时也不显示边框 */
}

.dropdown-menu {
  box-sizing: border-box !important;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 120px;
  background-color: #fff;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(10px);
          transform: translateY(10px);
  margin-top: 5px;
  overflow: hidden;
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
  box-sizing: border-box !important;
  font-size: 0.8rem !important;
  color: #000000 !important;
}

.dropdown-item {
  padding: 9px 12px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  -webkit-text-decoration: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  color: #00b386 !important;
}

.dropdown-item:hover {
  background-color: rgba(0, 255, 200, 0.2);
}

.dropdown-menu.visible {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.dropdown-menu.visible ~ .dropdown-trigger {
  background: rgba(255, 255, 255, 0.3);
}

.dropdown-item.active {
  color: #00b386 !important;
}

.dropdown-item.active {
  background-color: rgba(0, 255, 200, 0.2);
}
