* {
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: #379937;
}
.z_1{  z-index:1;}
.z_0{z-index:0;}
.dropdown {
  position: relative;
  font-size: 14px;
  color: #333;
}
.dropdown .dropdown-list {
    position: absolute;
    top: 100%;
    margin-top: 4px;
    left: 0;
    right: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1050;
    transform-origin: 50% 0;
    transform: scale(1, 0);
    transition: transform 0.15s ease-in-out 0.15s;
    max-height: 320px;
    overflow-y: auto;
 }
.dropdown .dropdown-option {
    display: flex;
    align-items: flex-start; 
    gap:12px;
    padding: 7px 12px;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}
.dropdown .dropdown-label {
    display: block;
    min-height: 30px;
    background: #fff;
    padding: 6px 12px;
    line-height: 1.4;
    cursor: pointer;
    color: #999;
    border-radius: 6px;
    white-space: normal; 
    word-break: break-word; 
}

.dropdown.on .dropdown-label {
  color: #333;
}
.dropdown.on .dropdown-list {
      transform: scale(1, 1);
      transition-delay: 0s;
}
.dropdown.on .dropdown-list .dropdown-option {
        opacity: 1;
        transition-delay: 0.2s;
}
/* ========== 自定义复选框 ========== */
.dropdown .dropdown-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 16px; /* 固定宽度，不压缩 */
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #bbb;
  border-radius: 3px;
  background-color: #fff;
  position: relative;
  cursor: pointer;
  flex-shrink: 0; /* 复选框不压缩 */
  margin-top: 7px; /*微调勾选框垂直位置，和多行文字头部对齐*/
}
.dropdown .dropdown-option input[type="checkbox"]:checked {
  background-color: #C49962;
  border-color: #C49962;
}
.dropdown .dropdown-option input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* Other输入框样式 */
.checktext{
  display:block;
  width: 100%;
  height: 32px;
  margin: 6px 0 0 0;
  padding:0 6px;
  border:1px solid #bbb;
  border-radius:3px;
  /* 左边距等于复选框宽度+gap，和文字对齐 */
  margin-left: calc(16px + 6px);
}
.dropdown.on .dropdown-label {
  color: #333;
}
/* 新增 */
.dropdown.is-valid .dropdown-label {
    color: #333;
}

