/* 深色主题输入框兼容修复 — 仅针对 Ant Design 组件 */

/* Ant Design 输入框 */
.ant-input,
.ant-input-number,
.ant-input-number-input,
.ant-select-selector,
.ant-picker,
.ant-form-item-control-input-content input,
.ant-input-affix-wrapper,
.ant-input-password,
.ant-input-textarea {
  background-color: #252530 !important;
  color: #f5f7ff !important;
  border-color: #3a3a45 !important;
  -webkit-text-fill-color: #f5f7ff !important;
}

/* Ant Design placeholder */
.ant-input::placeholder,
.ant-input-number-input::placeholder,
.ant-picker-input > input::placeholder {
  color: #9b8aa5 !important;
  opacity: 0.7 !important;
  -webkit-text-fill-color: #9b8aa5 !important;
}

/* Ant Design Select 下拉 */
.ant-select-dropdown,
.ant-select-item {
  background-color: #1a1a24 !important;
  color: #f5f7ff !important;
}

.ant-select-item-option-active,
.ant-select-item-option-selected {
  background-color: #2a2a35 !important;
}

/* Ant Design 表单标签 */
.ant-form-item-label > label {
  color: #f5f7ff !important;
}

/* Ant Design Modal */
.ant-modal-content,
.ant-modal-body,
.ant-modal-header {
  background-color: #1a1a24 !important;
}

.ant-modal-title {
  color: #f5f7ff !important;
}

/* Ant Design Picker 面板 */
.ant-picker-panel-container,
.ant-picker-panel {
  background-color: #1a1a24 !important;
}

.ant-picker-cell-inner {
  color: #f5f7ff !important;
}

.ant-picker-header,
.ant-picker-header button {
  color: #9b8aa5 !important;
}

/* 城市选择器（三级到城市时 Ant Modal 默认字色在部分 WebKit 下呈黑字，需与面板底色区分） */
.city-picker-content,
.city-picker-modal {
  background-color: #1a1a24 !important;
  color: #f5f7ff !important;
}

.city-picker-modal.ant-modal .ant-modal-body,
.ant-modal.city-picker-modal .ant-modal-body {
  color: #f5f7ff !important;
}

.city-picker-modal .city-picker-row__label {
  color: #f5f7ff !important;
  -webkit-text-fill-color: #f5f7ff !important;
}

.city-picker-modal .city-picker-row--city:hover .city-picker-row__label {
  color: #0a0a0f !important;
  -webkit-text-fill-color: #0a0a0f !important;
}

/* 行内样式覆盖兜底 — 仅处理已知的黑色文字 */
[style*="color: black"],
[style*="color: rgb(0, 0, 0)"],
[style*="color: #000"] {
  color: #f5f7ff !important;
}
