/* C8 Pro 品牌覆盖层 —— 加载于主样式之后 */
:root {
  --color-primary: #7c3aed;
  --color-primary-light: #8b5cf6;
  --color-primary-dark: #6d28d9;
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-error: #f472b6;
  --color-info: #a78bfa;
  --color-text-primary: #ece6ff;
  --color-text-secondary: #c4b5fd;
  --color-text-disabled: #7f6fa6;
  --color-border: #241640;
  --color-divider: #1b1132;
  --color-bg-page: #0a0616;
  --color-bg-container: #130b24;
  --color-bg-elevated: #1a1030;
  --color-bg-hover: #241546;
  --border-radius-sm: 8px;
  --border-radius-md: 10px;
  --border-radius-lg: 14px;
}

html, body, #app, #root {
  background: radial-gradient(1200px 700px at 15% -10%, #1d0f3d 0%, #0a0616 55%) fixed, #0a0616 !important;
  color: #ece6ff;
}

/* 主按钮 / 主色块 */
.ant-btn-primary,
button.el-button--primary,
.el-button--primary {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%) !important;
  border-color: #7c3aed !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, .28) !important;
}
.ant-btn-primary:hover { filter: brightness(1.08); }

/* 卡片 / 面板 / 弹窗 */
.ant-card,
.ant-modal-content,
.ant-table,
.ant-input,
.ant-input-affix-wrapper,
.ant-select-selector,
.ant-picker,
.ant-table-container {
  background-color: #130b24 !important;
  border-color: #241640 !important;
  color: #ece6ff !important;
}
.ant-card-head { border-bottom-color: #1b1132 !important; color: #ece6ff !important; }
.ant-modal-header { background: #130b24 !important; border-bottom-color: #1b1132 !important; }
.ant-modal-title { color: #ece6ff !important; }
.ant-table-thead > tr > th {
  background: #170e2b !important;
  color: #c4b5fd !important;
  border-bottom-color: #241640 !important;
}
.ant-table-tbody > tr > td { border-bottom-color: #1b1132 !important; color: #e6ddff !important; }
.ant-table-tbody > tr:hover > td { background: #1d1236 !important; }

/* 输入 */
.ant-input::placeholder { color: #7f6fa6 !important; }
.ant-input:focus, .ant-input-affix-wrapper-focused { border-color: #7c3aed !important; box-shadow: 0 0 0 2px rgba(124,58,237,.18) !important; }

/* 链接与选中 */
a, .ant-btn-link { color: #a78bfa !important; }
.ant-menu-item-selected, .el-menu-item.is-active {
  background: rgba(124,58,237,.16) !important;
  color: #d8c7ff !important;
}
.ant-tag { border-color: #2c1c4e !important; }
.ant-tabs-tab-active .ant-tabs-tab-btn { color: #a78bfa !important; }
.ant-tabs-ink-bar { background: #7c3aed !important; }
.ant-pagination-item-active { border-color: #7c3aed !important; }
.ant-pagination-item-active a { color: #a78bfa !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0d0819; }
::-webkit-scrollbar-thumb { background: #2b1c4c; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #3b2670; }

/* ==== C8 Pro 全量调色板（新面板内部变量） ==== */
:root {
  --bg-primary: #0a0616;
  --bg-secondary: #130b24;
  --bg-tertiary: #1a1030;
  --bg-card: #130b24;
  --bg-sidebar: #0d0819;
  --bg-hover: #221640;
  --bg-input: #130b24;
  --bg-active: #241546;

  --border-primary: #241640;
  --border-secondary: #1b1132;
  --border-light: #170e2b;

  --text-primary: #ece6ff;
  --text-secondary: #c4b5fd;
  --text-tertiary: #9d8fb5;
  --text-disabled: #7f6fa6;
  --text-inverse: #0a0616;

  --accent-success: #3eb87a;
  --accent-warning: #e8a33d;
  --accent-danger: #ef6b6b;
  --accent-info: #a78bfa;

  --font-size-sm: 12px;
  --font-size-md: 13px;
  --font-size-lg: 15px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,.36);
  --shadow-lg: 0 12px 34px rgba(0,0,0,.46);
}

/* 布局：侧栏 / 顶栏 / 内容区 */
.layout-sider,
.ant-layout-sider,
.sidebar,
.sidebar-panel,
[class*="sider"] {
  background: #0d0819 !important;
  border-right: 1px solid #1b1132 !important;
}
.layout-header,
.ant-layout-header,
header[class*="header"] {
  background: #130b24 !important;
  border-bottom: 1px solid #1b1132 !important;
  color: #ece6ff !important;
}
.layout-content,
.ant-layout-content,
main {
  background: transparent !important;
  color: #ece6ff !important;
}
.layout-sider-children { background: #0d0819 !important; }

/* 侧栏菜单项 */
.layout-sider a,
.sidebar a,
.sidebar-panel a,
[class*="sider"] a {
  color: #c4b5fd !important;
}
[class*="sider"] a:hover,
[class*="sider"] li:hover {
  background: #1d1236 !important;
  color: #ece6ff !important;
}
[class*="sider"] a.active,
[class*="sider"] .active,
[class*="sider"] .selected {
  background: rgba(124,58,237,.18) !important;
  color: #e9e1ff !important;
  border-color: #7c3aed !important;
}

/* 通用容器 */
.card, .panel, .box, .ant-card, .ant-modal-content,
table, .ant-table, .ant-table-container,
input, textarea, select, .ant-input, .ant-select-selector {
  background-color: #130b24 !important;
  border-color: #241640 !important;
  color: #ece6ff !important;
}
input, textarea, select { background-color: #0f0a1d !important; }
input::placeholder, textarea::placeholder { color: #7f6fa6 !important; }
table th, .ant-table-thead > tr > th {
  background: #170e2b !important;
  color: #c4b5fd !important;
  border-color: #241640 !important;
}
table td, .ant-table-tbody > tr > td {
  border-color: #1b1132 !important;
  color: #e6ddff !important;
}
tr:hover td { background: #1d1236 !important; }

/* 弹窗遮罩 */
.ant-modal-mask, .modal-mask, [class*="overlay"] {
  background: rgba(4,2,10,.72) !important;
}

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0d0819; }
::-webkit-scrollbar-thumb { background: #2b1c4c; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #3b2670; }

/* ==== C8 Pro 深色兜底：压掉内联浅色与 antd 默认白 ==== */
[style*="rgb(232, 236, 240)"],
[style*="rgb(255, 255, 255)"],
[style*="rgb(230, 247, 255)"],
[style*="rgb(250, 250, 250)"],
[style*="rgb(245, 245, 245)"],
[style*="background: #fff"],
[style*="background:#fff"],
[style*="background: white"],
[style*="background: #FFFFFF"],
[style*="background:#FFFFFF"] {
  background: #130b24 !important;
  color: #ece6ff !important;
}

.ant-layout-content { background: #0a0616 !important; }
.ant-card, .ant-card-body, .ant-card-head, .ant-card-head-title {
  background: #130b24 !important;
  color: #ece6ff !important;
  border-color: #241640 !important;
}

.ant-btn, .ant-btn-default, .ant-btn-color-default {
  background: #1a1030 !important;
  border-color: #2e1d52 !important;
  color: #ece6ff !important;
}
.ant-btn:hover, .ant-btn-default:hover {
  background: #241546 !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
}
.ant-btn-primary, .ant-btn-dangerous {
  background: linear-gradient(135deg,#7c3aed,#8b5cf6) !important;
  border-color: #7c3aed !important;
  color: #fff !important;
}
.ant-btn:disabled, .ant-btn-default:disabled {
  background: #150e26 !important;
  color: #6b5d8a !important;
  border-color: #241640 !important;
}

.ant-checkbox-inner { background: #130b24 !important; border-color: #3a2a5e !important; }
.ant-checkbox-checked .ant-checkbox-inner { background: #7c3aed !important; border-color: #7c3aed !important; }

.ant-pagination-item { background: #130b24 !important; border-color: #2e1d52 !important; }
.ant-pagination-item a { color: #c4b5fd !important; }
.ant-pagination-item-active { border-color: #7c3aed !important; background: #1d1236 !important; }
.ant-pagination-item-active a { color: #ffffff !important; }
.ant-pagination-prev button, .ant-pagination-next button { color: #c4b5fd !important; }

.ant-select-dropdown, .ant-dropdown-menu, .ant-picker-panel-container,
.ant-tooltip-inner, .ant-popover-inner {
  background: #130b24 !important;
  color: #ece6ff !important;
  border-color: #241640 !important;
}
.ant-select-item, .ant-dropdown-menu-item { color: #e6ddff !important; }
.ant-select-item-option-active, .ant-dropdown-menu-item:hover { background: #1d1236 !important; }

.ant-empty-description, .ant-typography, .ant-text { color: #9d8fb5 !important; }
.ant-tag { background: #1a1030 !important; border-color: #2e1d52 !important; color: #c4b5fd !important; }
.ant-divider { border-color: #1b1132 !important; }
.ant-tabs-tab { color: #9d8fb5 !important; }
.ant-tabs-tab-active .ant-tabs-tab-btn { color: #c4b5fd !important; }
