/* 外层容器 */
.custom-dropdown {
  position: relative;
  width: 100%;
}

/* 输入框外层 */
.dropdown-input-wrapper {
  display: flex;
  align-items: center;
  border: none;
  border-radius: 6px;
  padding: 0 18px 0 8px;
  background: #fff;
  cursor: pointer;
}

/* 输入框 */
.dropdown-input {
  flex: 1;
  height: 48px;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
}

/* placeholder 样式 */
.dropdown-input::placeholder {
  color: #C6C9CE;
  font-weight: 300;
}

/* 箭头图标 */
.arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-left: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(-45deg);
  margin-left: 6px;
  transition: transform 0.3s;
}

@media (max-width: 768px) {
  .arrow {
    display: none;
  }
}

/* 向上（旋转180°） */
.arrow.rotate {
  transform: rotate(135deg);
}

/* 下拉菜单 */
.custom-dropdown >.dropdown-menu {
  position: absolute;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 99;
  padding: 4px 0;
  margin-top: 2px;
}
.custom-dropdown >.dropdown-menu.open {
  display: block;
}

/* 下拉项 */
.dropdown-item {
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
/* 会和导航栏下拉列表样式冲突 */
/* .dropdown-item:hover:not(.disabled) {
  background: rgba(51,136,255,0.10);
  color: #020b1a;
} */
.dropdown-item.disabled {
  color: #aaa;
  cursor: not-allowed;
}



/* 校验提示文字 */
.dropdown-feedback {
  color: #dc3545;
  font-size: 12px;
  margin-top: 14px;
  display: none;
}


/* 下拉列表校验提示样式 */

.custom-dropdown {
  margin-bottom: 0px; /* 默认间距 */
}

.custom-dropdown.has-error {
  margin-bottom: 12px; /* 出错时额外留出空间 */
}

.dropdown-error {
  display: none;
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
}


/* 校验失败红色边框 */
.custom-dropdown.invalid .dropdown-input-wrapper {
  border: 1px solid #dc3545;
}

/* 校验通过绿色边框（可选） */
.custom-dropdown.valid .dropdown-input-wrapper {
  border: none;
}






