.selector-mask, .selector-sheet, .selector-head, .selector-search-wrap, .selector-scroll, .selector-list, .selector-item, .selector-copy, .selector-footer, .selector-close, .selector-retry, .selector-action, .selector-search { box-sizing: border-box; } .selector-close, .selector-retry, .selector-action { margin: 0; padding: 0; } .selector-close::after, .selector-retry::after, .selector-action::after { border: 0; } .selector-mask { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; background: rgba(25, 22, 18, 0.5); animation: selectorMaskIn 180ms ease both; } .selector-sheet { display: flex; width: 100%; height: 88vh; max-height: 88vh; flex-direction: column; overflow: hidden; border-radius: 34rpx 34rpx 0 0; background: #ffffff; box-shadow: 0 -20rpx 48rpx rgba(44, 35, 27, 0.18); animation: selectorSheetUp 220ms ease both; } .selector-head { display: flex; align-items: center; justify-content: space-between; min-height: 96rpx; padding: 0 28rpx; } .selector-title { color: #17211f; font-size: 34rpx; font-weight: 900; letter-spacing: 1rpx; } .selector-close { position: relative; width: 52rpx; min-width: 52rpx; height: 52rpx; min-height: 52rpx; margin: 0; padding: 0; border: 1rpx solid #e7ece9; border-radius: 50%; background: #f3f7f4; } .selector-close::before, .selector-close::after { content: ""; position: absolute; top: 24rpx; left: 14rpx; width: 22rpx; height: 3rpx; border-radius: 999rpx; background: #71807a; } .selector-close::before { transform: rotate(45deg); } .selector-close::after { transform: rotate(-45deg); } .selector-search-wrap { display: flex; align-items: center; min-height: 83rpx; margin: 0 28rpx 18rpx; padding: 0 22rpx; border: 1rpx solid #e7ece9; border-radius: 22rpx; background: #f3f7f4; } .selector-search-icon { position: relative; width: 26rpx; height: 26rpx; margin-right: 18rpx; border: 3rpx solid #71807a; border-radius: 50%; } .selector-search-icon::after { content: ""; position: absolute; right: -9rpx; bottom: -6rpx; width: 12rpx; height: 3rpx; border-radius: 999rpx; background: #71807a; transform: rotate(45deg); } .selector-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12rpx; padding: 0 28rpx 16rpx; } .selector-view-switch { display: flex; flex: 1; gap: 8rpx; } .selector-view-switch button, .selector-sort { height: 58rpx; padding: 0 18rpx; border-radius: 16rpx; background: #f1f5f3; color: #687a72; font-size: 22rpx; line-height: 58rpx; } .selector-view-switch button { flex: 1; } .selector-view-switch button.active { background: #dff1e9; color: #247b63; font-weight: 800; } .selector-sort { flex: 0 0 auto; color: #476259; } .selector-search { height: 81rpx; flex: 1; color: #17211f; font-size: 27rpx; } .selector-scroll { height: 0; min-height: 0; flex: 1; } .selector-list { padding: 0 28rpx 24rpx; } .selector-item { display: flex; align-items: center; min-height: 156rpx; margin-bottom: 14rpx; padding: 26rpx; border: 1rpx solid #e7ece9; border-radius: 24rpx; background: #fff; transition: transform 140ms ease, border-color 140ms ease, background 140ms ease; } .selector-item:active { transform: scale(0.99); } .selector-item.selected { border-color: #247b63; background: #e5f4ed; } .selector-list.card-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12rpx; } .selector-item.card-view { position: relative; display: block; min-height: 190rpx; margin: 0; padding: 18rpx; } .selector-item.card-view .selector-avatar { width: 66rpx; height: 66rpx; margin-bottom: 12rpx; } .selector-item.card-view .selector-copy { margin-left: 0; } .selector-item.card-view .selector-title-row { align-items: flex-start; } .selector-item.card-view .selector-item-title { white-space: normal; } .selector-item.card-view .selector-subtitle, .selector-item.card-view .selector-meta { display: block; margin-top: 8rpx; } .selector-item.card-view .selector-check { position: absolute; right: 18rpx; bottom: 16rpx; } .selector-avatar { width: 80rpx; height: 80rpx; flex: 0 0 auto; border-radius: 50%; background: #e7ece9; } .selector-copy { min-width: 0; flex: 1; margin-left: 18rpx; } .selector-copy.without-avatar { margin-left: 2rpx; } .selector-title-row { display: flex; align-items: center; gap: 12rpx; } .selector-item-title { min-width: 0; flex: 1; overflow: hidden; color: #17211f; font-size: 28rpx; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; } .selector-right-text { flex: 0 0 auto; color: #756e66; font-size: 23rpx; font-weight: 600; } .selector-badge { flex: 0 0 auto; padding: 5rpx 12rpx; border-radius: 999rpx; background: #e5f4ed; color: #247b63; font-size: 19rpx; font-weight: 800; } .selector-subtitle, .selector-meta { display: block; margin-top: 7rpx; overflow: hidden; color: #71807a; font-size: 23rpx; text-overflow: ellipsis; white-space: nowrap; } .selector-meta { color: #a19990; font-size: 21rpx; } .selector-check { width: 52rpx; color: #71807a; font-size: 32rpx; font-weight: 800; text-align: right; } .selector-item.selected .selector-check { color: #247b63; } .selector-state { display: flex; min-height: 360rpx; flex-direction: column; align-items: center; justify-content: center; padding: 40rpx 48rpx; color: #71807a; font-size: 25rpx; line-height: 1.6; text-align: center; } .selector-error { color: #a8554e; } .selector-retry { min-width: 180rpx; height: 64rpx; margin-top: 22rpx; padding: 0 28rpx; border: 1rpx solid #e7ece9; border-radius: 999rpx; background: #fff; color: #71807a; font-size: 23rpx; font-weight: 800; line-height: 64rpx; } .selector-loading-dot { width: 20rpx; height: 20rpx; margin-bottom: 20rpx; border-radius: 50%; background: #247b63; box-shadow: -30rpx 0 #c9d8d2, 30rpx 0 #9eb9af; } .selector-footer { padding: 16rpx 28rpx calc(18rpx + env(safe-area-inset-bottom)); border-top: 1rpx solid #e7ece9; background: #ffffff; } .selector-action { width: 100%; height: 78rpx; border: 1rpx solid #cbdad4; border-radius: 22rpx; background: #e5f4ed; color: #247b63; font-size: 26rpx; font-weight: 900; line-height: 78rpx; } @keyframes selectorMaskIn { from { opacity: 0; } to { opacity: 1; } } @keyframes selectorSheetUp { from { transform: translateY(48rpx); } to { transform: translateY(0); } }