/* ==================== 自定义下拉组件样式 ==================== */

/* 外层容器 */
.custom-select-wrapper {
  position: relative;
}

/* 触发器：显示当前选中值 */
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #2c2c4a;
  background-color: #f9fafd;
  border: 1.5px solid #e0e4f2;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.custom-select-trigger:hover {
  border-color: #6c63ff;
  background-color: #f0f3fe;
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.1);
}

/* 箭头 */
.custom-select-arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* 选项面板 */
.custom-select-panel {
  position: absolute;
  left: 0;
  min-width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid #e0e4f2;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 18, 40, 0.15);
  padding: 8px;
  z-index: 10000;
  animation: customSelectFadeIn 0.15s ease;
}

@keyframes customSelectFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 单个选项 */
.custom-select-option {
  padding: 10px 14px;
  font-size: 14px;
  color: #2c2c4a;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.custom-select-option:hover {
  background-color: #f0f3fe;
  color: #6c63ff;
}

/* 当前选中项 */
.custom-select-option.active {
  background-color: #f5f3ff;
  color: #6c63ff;
  font-weight: 600;
}

/* 滚动条美化 */
.custom-select-panel::-webkit-scrollbar {
  width: 6px;
}

.custom-select-panel::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.custom-select-panel::-webkit-scrollbar-thumb {
  background: #e0e4f2;
  border-radius: 3px;
}

.custom-select-panel::-webkit-scrollbar-thumb:hover {
  background: #c5c0f8;
}