/* ========== 自定义下拉 CustomSelect ========== */
.custom-select {
  position: relative;
  display: inline-block;
  min-width: 120px;
  user-select: none;
  z-index: 50;
}
.custom-select-trigger {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--border-input);
  border-radius: 20px;
  background: var(--bg-card);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  position: relative;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.custom-select-trigger:hover {
  border-color: var(--select-trigger-hover);
}
.custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--select-arrow);
  pointer-events: none;
  transition: border-color 0.2s;
}
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--select-dropdown-shadow);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  animation: dropdownFadeIn 0.2s ease;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.custom-select-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: background 0.15s;
}
.custom-select-option:hover {
  background: var(--select-option-hover);
}
.custom-select-option.disabled {
  color: var(--text-disabled);
  cursor: default;
  pointer-events: none;
}
/* 移动端适配 */
@media (max-width: 768px) {
  .custom-select-trigger {
    padding: 6px 28px 6px 10px;
    font-size: 0.8rem;
  }
  .custom-select-trigger::after {
    right: 8px;
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 5px;
  }
  .custom-select-option {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}
