/* ==========================================================================
   C8 Pro 可读性补丁：把写死的深色文字压亮（深紫底上看不清的那些）
   ========================================================================== */

/* --- 1. 内联写死的浅色主题文字色（最常见的几档） --- */
[style*="color: rgb(38, 38, 38)"],
[style*="color:rgb(38,38,38)"],
[style*="color: #262626"],
[style*="color:#262626"],
[style*="color: rgb(48, 49, 51)"],
[style*="color:rgb(48,49,51)"],
[style*="color: #303133"],
[style*="color:#303133"],
[style*="color: #000"],
[style*="color:#000"],
[style*="color: rgb(0, 0, 0)"] {
  color: #ece6ff !important;
}

[style*="color: rgb(96, 98, 102)"],
[style*="color: #606266"],
[style*="color:#606266"],
[style*="color: rgb(102, 102, 102)"],
[style*="color: #666"],
[style*="color:#666"],
[style*="color: rgb(136, 136, 136)"],
[style*="color: #888"],
[style*="color: rgb(144, 147, 153)"],
[style*="color: rgb(153, 153, 153)"],
[style*="color: #999"],
[style*="color: rgb(100, 116, 139)"],
[style*="color: rgb(107, 93, 138)"],
[style*="color: rgb(85, 85, 85)"],
[style*="color: #555"] {
  color: #c9bce4 !important;
}

/* --- 2. antd 表单/描述/表格的文字 --- */
.ant-form-item-label > label,
.ant-form-item-label > label.ant-form-item-required {
  color: #e4d9ff !important;
  font-weight: 500 !important;
}
.ant-form-item-label > label.ant-form-item-required::before { color: #ff8f8f !important; }
.ant-form-item-explain, .ant-form-item-extra { color: #b7a8d4 !important; }
.ant-form-item-explain-error { color: #ff9b9b !important; }

.ant-descriptions-item-label,
.ant-descriptions-item-label .ant-typography,
.ant-descriptions-title {
  color: #b9aad8 !important;
}
.ant-descriptions-item-content,
.ant-descriptions-item-content .ant-typography { color: #ece6ff !important; }

.ant-input, .ant-input-affix-wrapper, .ant-input-number,
.ant-select-selector, .ant-select-selection-item,
.ant-picker, .ant-input-number-input {
  color: #f2edff !important;
}
.ant-input::placeholder, .ant-input-number-input::placeholder,
.ant-select-selection-placeholder { color: #a295bd !important; }

.ant-checkbox-wrapper, .ant-radio-wrapper,
.ant-radio-button-wrapper, .ant-switch + span { color: #e4d9ff !important; }
.ant-radio-button-wrapper { color: #cbbfe4 !important; }
.ant-radio-button-wrapper-checked { color: #ffffff !important; }
.ant-checkbox-wrapper-disabled, .ant-radio-wrapper-disabled { color: #8d80a8 !important; }

.ant-divider-inner-text, .ant-legend, .ant-form-item-tooltip { color: #b9aad8 !important; }
.ant-typography-secondary, .ant-typography.ant-typography-secondary { color: #b0a2cc !important; }
.ant-alert-description, .ant-alert-message { color: #ece6ff !important; }
.ant-empty-description, .ant-table-placeholder { color: #b0a2cc !important; }
.ant-card-head-title, .ant-card-meta-title { color: #ece6ff !important; }
.ant-card-meta-description { color: #b0a2cc !important; }
.ant-steps-item-title, .ant-steps-item-description { color: #d6c9f0 !important; }
.ant-tabs-tab { color: #b9aad8 !important; }
.ant-tabs-tab-active .ant-tabs-tab-btn { color: #ffffff !important; }

/* 说明性小字 */
.ant-form-item small, .ant-form-text, small { color: #b3a5cc !important; }

/* --- 3. 输入控件本身在深底上的边框/底色再压深一档 --- */
.ant-input, .ant-input-affix-wrapper, .ant-select-selector, .ant-picker {
  background-color: #150d29 !important;
  border-color: #2e1d52 !important;
}
.ant-input:hover, .ant-select-selector:hover, .ant-input-affix-wrapper:hover { border-color: #4a3277 !important; }

/* --- 4. 按钮 --- */
.ant-btn { color: #ece6ff !important; }
.ant-btn-primary, .ant-btn-primary span { color: #ffffff !important; }
.ant-btn-link, .ant-btn-link span { color: #b39dff !important; }
.ant-btn-dangerous { color: #ffb3b3 !important; }

/* --- 5. 标签页/描述里的次要信息 --- */
.ant-tag { color: #d3c6ee !important; }
.ant-badge-status-text { color: #d3c6ee !important; }

/* ==========================================================================
   控制面板：采集/注入列表内部滚动，别把整页拉成几千像素
   ========================================================================== */
.control-tabs-wrapper .ant-tabs-content-holder {
  max-height: calc(100vh - 330px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}
.control-tabs-wrapper .ant-tabs-nav { margin-bottom: 8px !important; }
.control-tabs-wrapper .ant-card { margin-bottom: 12px; }

/* 底部附加功能区：监控 / 记录类并排整齐 */
#__c8_dock {
  border-top: 1px solid #1b1132;
  margin-top: 8px;
}

/* 底部配置区（APK 页 CDN 加速 + 宝塔部署） */
#__c8_bottom_cfg { border-top: 1px solid #1b1132; padding-top: 16px !important; }

/* 应用生成页：三列在窄屏自动堆叠，避免挤成一团 */
@media (max-width: 1400px) {
  #__c8_bottom_cfg { grid-template-columns: 1fr !important; }
}
