﻿/* ============================================
   爱米粥 - 下拉选择框（自绘）
   ============================================ */
.az-select {
  position: relative;
  display: inline-block;
  width: 100%;
}
.az-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}
.az-select-trigger:hover { border-color: var(--border-hover); }
.az-select.open .az-select-trigger {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.az-select-arrow {
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition-fast);
}
.az-select.open .az-select-arrow { transform: rotate(-135deg) translateY(-2px); }

.az-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}
.az-select.open .az-select-dropdown { display: block; }
.az-select-option {
  padding: 0 var(--space-md);
  height: 36px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.az-select-option:hover { background: var(--bg-hover); }
.az-select-option.selected { color: var(--color-primary); background: var(--color-primary-light); }
.az-select-option.disabled { color: var(--text-disabled); cursor: not-allowed; }
