/* 外层容器 */
.simple-select-wrapper {
  --color-primary: #cd5837;
  --color-dark: #2c252b;
  position: relative;
  display: inline-block;
  font-size: 14px;
}
.simple-select-wrapper.big {
  font-size: 18px;
}
@media screen and (max-width: 1024px) {
  .simple-select-wrapper.big {
    font-size: 16px;
  }
}
.simple-select-wrapper.sm .simple-select-display {
  padding: 5px 30px 5px 10px;
}
/* 显示当前选中值的区域 */
.simple-select-wrapper.big .simple-select-display {
  padding: 13px 20px 13px 20px;
}
.simple-select-display {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 30px 8px 8px;
  background: transparent;
  color: var(--color-dark);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* placeholder 的颜色 */
.simple-select-display.placeholder {
  color: #999;
}

/* 小箭头 */
.simple-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-primary);
}

/* 下拉列表 */
.simple-select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 0px;
  background: #fff;
  color: var(--color-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none; /* 默认隐藏 */
}
.simple-select-options {
  max-height: 200px;
  overflow-y: auto;
}

/* 每一项 */
.simple-select-option {
  padding: 8px 10px;
  cursor: pointer;
}

/* hover 效果 */
.simple-select-option:hover {
  background: #f5f5f5;
}

/* 选中项高亮 */
.simple-select-option.selected {
  background: #e6f0ff;
}

/* 禁用状态 */
.simple-select-disabled .simple-select-display {
  background: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}

/* 展开时 display 的边框高亮 */
.simple-select-wrapper.open .simple-select-display {
  border-color: #409eff;
}

/* 原生 select 隐藏，但保留在文档流（为了表单兼容性） */
.simple-select-origin {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
}

.simple-select-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none !important;
}
.simple-select-title {
  display: none;
}
@media screen and (max-width: 1024px) {
  .simple-select-title {
    position: relative;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #eee;
    font-size: 24px;
    color: #000;
  }
  .simple-select-title .close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 20px;
  }
  .simple-select-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  .simple-select-options {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .simple-select-option {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    font-size: 20px;
    color: #333;
  }
  .simple-select-option:after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
  }
  .simple-select-option.selected {
    background: none;
  }
  .simple-select-option.selected:after {
    border-color: var(--color-primary);
  }
  .simple-select-option.selected:before {
    content: "";
    position: absolute;
    right: 23px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
  }
  .simple-select-wrapper.open .simple-select-mask {
    display: block !important;
  }
}
