/* ============================================================
   panda v7 · 主题皮肤
   深海军蓝底 + 元宝金强调 + 竹青点缀
   仅做视觉覆盖:不改动任何功能代码与图标资源
   ============================================================ */

:root {
  --pd-navy-0: #060C17;
  --pd-navy-1: #0A1424;
  --pd-navy-2: #0F1D33;
  --pd-navy-3: #152A46;
  --pd-line: rgba(96, 165, 250, .16);
  --pd-line-strong: rgba(96, 165, 250, .30);
  --pd-cyan: #4FC3F7;
  --pd-gold: #F0C674;
  --pd-gold-2: #D9A441;
  --pd-text: #E7F0FA;
  --pd-text-2: #9DB2CB;
  --pd-text-3: #6E86A3;

  --bg-primary: #0A1424 !important;
  --bg-secondary: #0F1D33 !important;
  --bg-tertiary: #152A46 !important;
  --bg-card: #0F1D33 !important;
  --bg-sidebar: #08111F !important;
  --bg-hover: #152A46 !important;
  --border-primary: rgba(96, 165, 250, .18) !important;
  --border-secondary: rgba(96, 165, 250, .24) !important;
  --border-light: rgba(96, 165, 250, .12) !important;
  --accent-primary: #F0C674 !important;
  --accent-success: #34D399 !important;
  --accent-warning: #F0C674 !important;
  --accent-danger: #FF6E6E !important;
  --color-primary: #E0A94A !important;
  --color-primary-light: #F6DCA4 !important;
  --color-primary-dark: #B8862F !important;
  --color-info: #4FC3F7 !important;
  --color-success: #34D399 !important;
  --color-warning: #F0C674 !important;
  --color-error: #FF6E6E !important;
  --color-bg-page: #0A1424 !important;
  --color-bg-container: #0F1D33 !important;
  --color-bg-elevated: #152A46 !important;
  --color-bg-hover: #1A3355 !important;
  --color-text-primary: #E7F0FA !important;
  --color-text-secondary: #9DB2CB !important;
  --color-text-disabled: #5C7391 !important;
  --color-border: rgba(96, 165, 250, .18) !important;
  --color-divider: rgba(96, 165, 250, .12) !important;
}

/* ---------- 底色 + 背景大图 ---------- */
html, body { background: #060C17 !important; }
body { color: var(--pd-text) !important; }

#panda-v7-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url(/assets/png/panda_v7_bg.jpg) center center / cover no-repeat;
  opacity: .62;
}
#panda-v7-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(79, 195, 247, .10), transparent 62%),
    linear-gradient(180deg, rgba(6, 12, 23, .55) 0%, rgba(6, 12, 23, .78) 55%, rgba(6, 12, 23, .90) 100%);
}
#root { position: relative; z-index: 1; background: transparent !important; }

/* ---------- 骨架 ---------- */
.ant-layout, .ant-layout-content, .ant-layout-has-sider { background: transparent !important; }
.ant-layout-content { color: var(--pd-text) !important; }

.ant-layout-header {
  background: rgba(7, 15, 28, .72) !important;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid var(--pd-line) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}
.ant-layout-sider, .ant-layout-sider-children,
.ant-layout-sider-dark, .ant-layout-sider-dark .ant-layout-sider-children {
  background: linear-gradient(180deg, #0A1626 0%, #08111F 58%, #060E1A 100%) !important;
  border-right: 1px solid var(--pd-line) !important;
}
.ant-layout-sider-trigger { background: rgba(8, 17, 31, .9) !important; border-top: 1px solid var(--pd-line) !important; }

.ant-menu, .ant-menu-dark, .ant-menu-dark .ant-menu-sub { background: transparent !important; }
.ant-menu-item, .ant-menu-submenu-title {
  color: #A9C1DB !important;
  border-radius: 10px !important;
  margin: 4px 10px !important;
  width: auto !important;
}
.ant-menu-item:hover, .ant-menu-submenu-title:hover {
  background: rgba(79, 195, 247, .08) !important;
  color: #E7F0FA !important;
}
.ant-menu-item-selected {
  background: linear-gradient(90deg, rgba(240, 198, 116, .22), rgba(240, 198, 116, .03)) !important;
  color: var(--pd-gold) !important;
  box-shadow: inset 2px 0 0 var(--pd-gold);
}
.ant-menu-item-selected .anticon, .ant-menu-item-selected a { color: var(--pd-gold) !important; }
.ant-menu-submenu-arrow { color: #7E97B3 !important; }

/* ---------- 卡片 ---------- */
.ant-card {
  background: linear-gradient(160deg, rgba(20, 36, 58, .84) 0%, rgba(11, 23, 40, .88) 100%) !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  color: #DCE8F6 !important;
}
.ant-card-hoverable:hover {
  border-color: rgba(240, 198, 116, .38) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .46), 0 0 0 1px rgba(240, 198, 116, .16) !important;
}
.ant-card-head { border-bottom: 1px solid var(--pd-line) !important; color: var(--pd-text) !important; background: transparent !important; }
.ant-card-head-title, .ant-card-extra { color: var(--pd-text) !important; }
.ant-card-body { background: transparent !important; }

/* ---------- 表单控件 ---------- */
.ant-input, .ant-input-affix-wrapper, .ant-input-outlined, textarea.ant-input,
.ant-select-selector, .ant-picker, .ant-input-number, .ant-input-number-input,
.ant-input-group-addon, .ant-input-search .ant-input {
  background: rgba(8, 18, 32, .86) !important;
  border-color: var(--pd-line-strong) !important;
  color: var(--pd-text) !important;
  border-radius: 9px !important;
}
.ant-input-affix-wrapper > input.ant-input { background: transparent !important; }
.ant-input::placeholder, textarea.ant-input::placeholder { color: #5C7391 !important; }
.ant-select-selection-item, .ant-select-selection-placeholder,
.ant-select-selection-search-input, .ant-picker-input > input { color: #C8D9EC !important; }
.ant-picker-input > input::placeholder { color: #5C7391 !important; }
.ant-select-arrow, .ant-picker-suffix, .ant-select-clear, .ant-picker-clear { color: #7E97B3 !important; background: transparent !important; }
.ant-input:focus, .ant-input-focused, .ant-input-affix-wrapper-focused,
.ant-select-focused .ant-select-selector, .ant-picker-focused, .ant-input-number-focused {
  border-color: rgba(79, 195, 247, .62) !important;
  box-shadow: 0 0 0 3px rgba(79, 195, 247, .12) !important;
}
.ant-form-item-label > label { color: var(--pd-text-2) !important; }
.ant-form-item-explain-error { color: #FF8A8A !important; }

/* ---------- 按钮 ---------- */
.ant-btn {
  background: rgba(18, 34, 56, .86) !important;
  border: 1px solid var(--pd-line-strong) !important;
  color: #C8D9EC !important;
  border-radius: 9px !important;
}
.ant-btn-default:hover, .ant-btn-text:hover {
  color: var(--pd-gold) !important;
  border-color: rgba(240, 198, 116, .50) !important;
  background: rgba(240, 198, 116, .08) !important;
}
.ant-btn-primary {
  background: linear-gradient(135deg, #F8DFA6 0%, #E8B65E 52%, #CF9436 100%) !important;
  border: none !important;
  color: #231704 !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(207, 148, 54, .26) !important;
}
.ant-btn-primary:hover { filter: brightness(1.07); color: #231704 !important; }
.ant-btn-primary > span, .ant-btn-primary .anticon { color: #231704 !important; }
.ant-btn-primary.ant-btn-dangerous {
  background: linear-gradient(135deg, #FF9A9A, #DE4A4A) !important;
  color: #FFF !important;
}
.ant-btn-primary.ant-btn-dangerous > span { color: #FFF !important; }
.ant-btn-dangerous:not(.ant-btn-primary) {
  background: rgba(60, 20, 26, .55) !important;
  border-color: rgba(255, 110, 110, .45) !important;
  color: #FF8A8A !important;
}
.ant-btn-link, .ant-btn-text { background: transparent !important; border-color: transparent !important; color: var(--pd-cyan) !important; }
.ant-btn:disabled, .ant-btn.ant-btn-disabled { opacity: .45 !important; }

/* ---------- 表格 ---------- */
.ant-table, .ant-table-container, .ant-table-content, .ant-table-body,
.ant-table-wrapper, .ant-spin-nested-loading, .ant-spin-container { background: transparent !important; }
.ant-table-thead > tr > th {
  background: rgba(21, 42, 70, .92) !important;
  color: #A9C1DB !important;
  border-bottom: 1px solid var(--pd-line) !important;
  font-weight: 600;
}
.ant-table-thead > tr > th::before { background: rgba(96, 165, 250, .18) !important; }
.ant-table-tbody > tr > td {
  background: transparent !important;
  color: #DCE8F6 !important;
  border-bottom: 1px solid rgba(96, 165, 250, .10) !important;
}
.ant-table-tbody > tr:hover > td { background: rgba(79, 195, 247, .07) !important; }
.ant-table-tbody > tr.ant-table-row-selected > td { background: rgba(240, 198, 116, .10) !important; }
.ant-table-placeholder:hover > td { background: transparent !important; }
.ant-table-summary { background: transparent !important; }

/* ---------- 弹层 ---------- */
.ant-modal-content, .ant-drawer-content {
  background: rgba(11, 23, 40, .97) !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6) !important;
}
.ant-drawer-content { border-radius: 0 !important; }
.ant-modal-header, .ant-drawer-header {
  background: transparent !important;
  border-bottom: 1px solid var(--pd-line) !important;
  border-radius: 18px 18px 0 0 !important;
}
.ant-modal-title, .ant-drawer-title { color: var(--pd-text) !important; }
.ant-modal-close, .ant-drawer-close { color: var(--pd-text-2) !important; }
.ant-modal-close:hover, .ant-drawer-close:hover { color: var(--pd-gold) !important; background: rgba(240, 198, 116, .10) !important; }
.ant-modal-mask, .ant-drawer-mask { background: rgba(3, 8, 16, .74) !important; }
.ant-modal-footer { border-top: 1px solid var(--pd-line) !important; }
.ant-modal-body, .ant-drawer-body { color: #DCE8F6 !important; }

.ant-dropdown-menu, .ant-select-dropdown, .ant-picker-panel, .ant-picker-dropdown .ant-picker-panel-container,
.ant-popover-inner, .ant-menu-submenu > .ant-menu, .ant-dropdown .ant-table-filter-dropdown {
  background: rgba(11, 23, 40, .98) !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55) !important;
}
.ant-dropdown-menu-item, .ant-select-item, .ant-picker-header, .ant-picker-content th { color: #DCE8F6 !important; }
.ant-dropdown-menu-item:hover { background: rgba(79, 195, 247, .10) !important; }
.ant-select-item-option-selected { background: rgba(240, 198, 116, .16) !important; color: var(--pd-gold) !important; }
.ant-select-item-option-active:not(.ant-select-item-option-selected) { background: rgba(79, 195, 247, .10) !important; }
.ant-picker-cell-inner:hover { background: rgba(79, 195, 247, .14) !important; }
.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner { background: var(--pd-gold-2) !important; color: #231704 !important; }
.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before { border-color: var(--pd-gold) !important; }

.ant-tooltip-inner { background: rgba(8, 18, 32, .97) !important; color: #DCE8F6 !important; border: 1px solid var(--pd-line) !important; }
.ant-tooltip-arrow::before { background: rgba(8, 18, 32, .97) !important; }
.ant-message-notice-content, .ant-notification-notice {
  background: rgba(13, 26, 45, .97) !important;
  color: var(--pd-text) !important;
  border: 1px solid var(--pd-line) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55) !important;
}
.ant-notification-notice-message, .ant-notification-notice-description { color: var(--pd-text) !important; }

/* ---------- 杂项组件 ---------- */
.ant-pagination-item { background: transparent !important; border-color: var(--pd-line) !important; }
.ant-pagination-item a { color: #C8D9EC !important; }
.ant-pagination-item-active { background: rgba(240, 198, 116, .16) !important; border-color: rgba(240, 198, 116, .60) !important; }
.ant-pagination-item-active a { color: var(--pd-gold) !important; }
.ant-pagination-prev button, .ant-pagination-next button { color: #C8D9EC !important; }
.ant-pagination-options .ant-select-selector { background: rgba(8, 18, 32, .86) !important; }
.ant-pagination-total-text { color: var(--pd-text-2) !important; }
/* 分页容器本身别带浅底 */
.ant-pagination { background: transparent !important; color: var(--pd-text-2) !important; }
.ant-pagination .ant-pagination-item, .ant-pagination .ant-pagination-prev,
.ant-pagination .ant-pagination-next, .ant-pagination .ant-pagination-jump-prev,
.ant-pagination .ant-pagination-jump-next { background: rgba(12, 24, 40, .82) !important; }
.ant-pagination .ant-pagination-item-active { background: rgba(240, 198, 116, .16) !important; }
.ant-pagination .ant-pagination-prev .ant-pagination-item-link,
.ant-pagination .ant-pagination-next .ant-pagination-item-link { background: transparent !important; color: #C8D9EC !important; border-color: var(--pd-line) !important; }
.ant-pagination-options .ant-select-selection-item { color: var(--pd-text) !important; }

/* 禁用态按钮:别留白底 */
.ant-btn:disabled, .ant-btn.ant-btn-disabled, .ant-btn-text:disabled {
  background: rgba(14, 26, 44, .62) !important;
  border-color: rgba(120, 160, 220, .16) !important;
  color: rgba(190, 208, 230, .34) !important;
  opacity: 1 !important;
}
.ant-btn:disabled .anticon, .ant-btn-text:disabled .anticon { color: rgba(190, 208, 230, .34) !important; }

.ant-switch { background: rgba(120, 140, 165, .38) !important; }
.ant-switch.ant-switch-checked { background: linear-gradient(135deg, #F6DC9F, #D9A441) !important; }
.ant-checkbox-inner { background: rgba(8, 18, 32, .90) !important; border-color: var(--pd-line-strong) !important; }
.ant-checkbox-checked .ant-checkbox-inner { background: #E0A94A !important; border-color: #E0A94A !important; }
.ant-checkbox-wrapper, .ant-radio-wrapper { color: var(--pd-text-2) !important; }
.ant-radio-inner { background: rgba(8, 18, 32, .90) !important; border-color: var(--pd-line-strong) !important; }
.ant-radio-checked .ant-radio-inner { border-color: #E0A94A !important; }
.ant-radio-checked .ant-radio-inner::after { background: #E0A94A !important; }

.ant-tabs-tab { color: var(--pd-text-2) !important; }
.ant-tabs-tab-active .ant-tabs-tab-btn { color: var(--pd-gold) !important; }
.ant-tabs-ink-bar { background: var(--pd-gold) !important; }
.ant-tabs-top > .ant-tabs-nav::before { border-bottom-color: var(--pd-line) !important; }

.ant-empty-description, .ant-empty-normal { color: var(--pd-text-3) !important; }
.ant-divider { border-color: var(--pd-line) !important; }
.ant-tag { background: rgba(79, 195, 247, .12) !important; border-color: rgba(79, 195, 247, .28) !important; color: #9BD8F5 !important; border-radius: 7px !important; }
.ant-spin-dot-item { background-color: var(--pd-gold) !important; }
.ant-alert-info { background: rgba(79, 195, 247, .10) !important; border-color: rgba(79, 195, 247, .30) !important; color: #CBE6F7 !important; }
.ant-alert-warning { background: rgba(240, 198, 116, .10) !important; border-color: rgba(240, 198, 116, .30) !important; color: #F6DCA4 !important; }
.ant-alert-error { background: rgba(255, 110, 110, .10) !important; border-color: rgba(255, 110, 110, .30) !important; color: #FFB4B4 !important; }
.ant-descriptions-item-label { color: var(--pd-text-2) !important; }
.ant-descriptions-item-content { color: #DCE8F6 !important; }
.ant-descriptions-title, .ant-descriptions-header { color: var(--pd-text) !important; }
.ant-statistic-title { color: var(--pd-text-2) !important; }
.ant-statistic-content { color: var(--pd-gold) !important; }
.ant-progress-text { color: var(--pd-text-2) !important; }
.ant-badge-status-text { color: var(--pd-text-2) !important; }
.ant-list, .ant-list-item { background: transparent !important; color: #DCE8F6 !important; border-color: var(--pd-line) !important; }
.ant-typography, .ant-typography p { color: inherit !important; }
.ant-collapse { background: transparent !important; border-color: var(--pd-line) !important; }
.ant-collapse-header, .ant-collapse-content { background: rgba(15, 29, 51, .7) !important; color: var(--pd-text) !important; border-color: var(--pd-line) !important; }
.ant-slider-rail { background: rgba(120, 140, 165, .28) !important; }
.ant-slider-track { background: var(--pd-gold-2) !important; }
.ant-slider-handle::after { box-shadow: 0 0 0 2px var(--pd-gold-2) !important; }
.ant-segmented { background: rgba(8, 18, 32, .8) !important; }
.ant-segmented-item-selected { background: rgba(240, 198, 116, .18) !important; color: var(--pd-gold) !important; }
.ant-segmented-item { color: var(--pd-text-2) !important; }

/* ---------- 登录页 ---------- */
#root > div > div[style*="min-height: 100vh"] {
  background-image: url(/assets/png/panda_v7_bg_login.jpg) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.ant-card[style*="background: rgb(255, 255, 255)"],
.ant-card[style*="background: rgb(248, 249, 250)"],
.ant-card[style*="background: #ffffff"],
.ant-card[style*="background: white"] {
  background: rgba(10, 21, 38, .74) !important;
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid rgba(240, 198, 116, .22) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  border-radius: 20px !important;
}
.ant-card h3, .ant-card h2, .ant-card h1 { color: var(--pd-text) !important; }
.ant-card .ant-checkbox-wrapper span:last-child { color: var(--pd-text-2) !important; }

/* ---------- panda v7 品牌块 ---------- */
#panda-v7-login-logo {
  width: 76px; height: 76px; border-radius: 50%;
  margin: 0 auto 14px; display: block;
  box-shadow: 0 0 0 2px rgba(240, 198, 116, .35), 0 14px 34px rgba(0, 0, 0, .55), 0 0 36px rgba(240, 198, 116, .18);
  object-fit: cover;
}
.panda-v7-sign { color: var(--pd-text-3) !important; }

/* ---------- 滚动条 ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(96, 165, 250, .34) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(96, 165, 250, .28); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(96, 165, 250, .45); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 深度模式:整屏留出背景图的呼吸感 ---------- */
.ant-layout-content { background: transparent !important; }

/* ==== 表格深色化（短信通知 / 设置管理 / 全局注入 / 构建中心） ==== */
.ant-table-wrapper, .ant-table, .ant-table-container, .ant-table-content, .ant-table-body,
.ant-table-header, .ant-table-title, .ant-table-footer { background: transparent !important; color: rgba(203,213,225,.92) !important; }
.ant-table-container { border-color: rgba(255,255,255,.12) !important; }
.ant-table-thead > tr > th { background: rgba(255,255,255,.07) !important; color: #eaf2ff !important;
  border-bottom: 1px solid rgba(255,255,255,.14) !important; font-weight: 600 !important; }
.ant-table-thead > tr > th::before { display: none !important; }
.ant-table-thead > tr > th.ant-table-column-sort,
.ant-table-thead > tr > th.ant-table-column-has-sorters:hover { background: rgba(255,255,255,.11) !important; }
.ant-table-tbody > tr > td { background: transparent !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; color: rgba(203,213,225,.92) !important; }
.ant-table-tbody > tr.ant-table-row:hover > td, .ant-table-tbody > tr > td.ant-table-cell-row-hover { background: rgba(255,255,255,.05) !important; }
.ant-table-tbody > tr.ant-table-expanded-row > td { background: rgba(255,255,255,.03) !important; }
.ant-table-tbody > tr.ant-table-placeholder > td, .ant-table-placeholder { background: transparent !important; }
.ant-table-cell-fix-left, .ant-table-cell-fix-right, .ant-table-cell-fix-left-last, .ant-table-cell-fix-right-first { background: #0c1a2c !important; }
.ant-table-column-sorters, .ant-table-filter-trigger { color: rgba(203,213,225,.8) !important; }
.ant-table-column-sorter-up.active, .ant-table-column-sorter-down.active { color: var(--pd-gold) !important; }
.ant-table-pagination.ant-pagination { color: rgba(203,213,225,.8) !important; }
.ant-table-row-expand-icon { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.25) !important; color: #cbd5e1 !important; }
.ant-empty-description, .ant-empty-normal { color: rgba(203,213,225,.6) !important; }
.ant-table-small .ant-table-thead > tr > th { background: rgba(255,255,255,.06) !important; }
.ant-table-bordered .ant-table-container, .ant-table-bordered .ant-table-cell { border-color: rgba(255,255,255,.1) !important; }
.ant-table-cell .ant-tag { border-color: rgba(255,255,255,.18) !important; }
/* 描述列表 / 统计小卡 */
.ant-descriptions-item-label { color: rgba(203,213,225,.7) !important; }
.ant-descriptions-item-content { color: rgba(226,232,240,.95) !important; }
.ant-statistic-title { color: rgba(203,213,225,.72) !important; }
.ant-statistic-content { color: #f1f5f9 !important; }

/* ==== 强开 dark 主题后的变量校准（更高优先级盖过站点自带 dark 变量） ==== */
html[data-theme="dark"], html[data-theme="dark"] body, html[data-theme="light"], html[data-theme="light"] body {
  --bg-primary: #0A1424;
  --bg-secondary: #0C1A2E;
  --bg-tertiary: #11223A;
  --bg-card: #0E1E34;
  --bg-hover: #16304F;
  --bg-sidebar: #08111F;
  --text-primary: #E7F0FA;
  --text-secondary: #B5C8DE;
  --text-tertiary: #8AA0BA;
  --text-inverse: #0A1424;
  --border-primary: rgba(96, 165, 250, .18);
  --border-secondary: rgba(96, 165, 250, .26);
  --border-light: rgba(96, 165, 250, .10);
  --accent-primary: #F0C674;
  --accent-success: #34D399;
  --accent-warning: #F0C674;
  --accent-danger: #FF6E6E;
  --color-primary: #E0A94A;
  --color-primary-light: #F6DCA4;
  --color-primary-dark: #B8862F;
  --color-info: #4FC3F7;
  --color-success: #34D399;
  --color-warning: #F0C674;
  --color-error: #FF6E6E;
  --color-bg-page: #0A1424;
  --color-bg-container: #0E1E34;
  --color-bg-elevated: #11223A;
  --color-bg-hover: #16304F;
  --color-text-primary: #E7F0FA;
  --color-text-secondary: #B5C8DE;
  --color-text-disabled: #6E86A3;
  --color-border: rgba(96, 165, 250, .18);
  --color-divider: rgba(96, 165, 250, .10);
}

/* 表格：透出底部熊猫背景，别做成一整块实色板 */
html[data-theme="dark"] .ant-table,
html[data-theme="dark"] .ant-table-container,
html[data-theme="dark"] .ant-table-content,
html[data-theme="dark"] .ant-table-tbody > tr > td,
html[data-theme="dark"] .ant-table-placeholder,
html[data-theme="dark"] .ant-table-placeholder .ant-table-cell {
  background: rgba(10, 22, 38, .62) !important;
}
html[data-theme="dark"] .ant-table-thead > tr > th {
  background: rgba(24, 44, 72, .92) !important;
  color: #EAF3FF !important;
  border-bottom: 1px solid rgba(96, 165, 250, .28) !important;
}
html[data-theme="dark"] .ant-table-tbody > tr:hover > td,
html[data-theme="dark"] .ant-table-cell-row-hover { background: rgba(28, 52, 84, .92) !important; }
html[data-theme="dark"] .ant-table-cell-fix-left,
html[data-theme="dark"] .ant-table-cell-fix-right { background: #0C1A2E !important; }
html[data-theme="dark"] .ant-card,
html[data-theme="dark"] .ant-card-body { background: rgba(12, 26, 44, .72) !important; }
html[data-theme="dark"] .ant-card-head { background: rgba(20, 38, 62, .88) !important; color: #EAF3FF !important; }

/* 表格内链接 / 小表格间距（构建中心按钮被挤出卡片） */
.ant-table-cell a, .ant-table-cell a:not(.ant-btn) { color: #7FD4FF !important; }
.ant-table-cell a:hover { color: var(--pd-gold) !important; }
.ant-table-small .ant-table-tbody > tr > td,
.ant-table-small .ant-table-thead > tr > th { padding: 6px 8px !important; }
.ant-table-tbody > tr > td .ant-btn-sm { padding-inline: 6px !important; }
.ant-table-tbody > tr > td .ant-space { gap: 4px !important; }

/* ---------- 弹窗遮罩 / 浮层统一深色 ---------- */
.ant-modal-mask, .ant-drawer-mask {
  background: rgba(4, 10, 20, .74) !important;
  backdrop-filter: blur(3px);
}
.ant-modal-content, .ant-drawer-content, .ant-modal-header, .ant-drawer-header {
  background: #0D1D33 !important;
  border: 1px solid rgba(96, 165, 250, .20) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55) !important;
}
.ant-modal-title, .ant-drawer-title { color: #E7F0FA !important; }
.ant-modal-close { color: #9DB2CB !important; }
.ant-modal-close:hover { color: #F0C674 !important; }
.ant-dropdown-menu, .ant-select-dropdown, .ant-picker-dropdown .ant-picker-panel-container,
.ant-popover-inner, .ant-cascader-dropdown, .ant-menu-submenu-popup > .ant-menu {
  background: #0D1D33 !important;
  border: 1px solid rgba(96, 165, 250, .22) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55) !important;
}
.ant-select-item, .ant-dropdown-menu-item, .ant-menu-item { color: #D6E3F5 !important; }
.ant-select-item-option-selected, .ant-dropdown-menu-item:hover, .ant-menu-item:hover {
  background: rgba(240, 198, 116, .14) !important;
  color: #F6DCA4 !important;
}
.ant-tooltip-inner, .ant-popover-inner-content { background: #10233C !important; color: #DCE8F7 !important; }
.ant-message-notice-content, .ant-notification-notice {
  background: #10233C !important; color: #E7F0FA !important;
  border: 1px solid rgba(96, 165, 250, .22) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5) !important;
}
.ant-message-custom-content > span:last-child, .ant-notification-notice-message,
.ant-notification-notice-description { color: #E7F0FA !important; }
.ant-modal-confirm-title, .ant-modal-confirm-content { color: #E7F0FA !important; }

/* 头像占位换成 panda 标 */
.ant-avatar { background: url(/assets/png/panda_v7_logo.png) center/cover no-repeat, #10233C !important; color: transparent !important; }
.ant-avatar > .anticon, .ant-avatar-string { opacity: 0 !important; }

/* ---------- 登录页：让居中熊猫完整露出，登录卡让位到右侧 ---------- */
/* 双保险：①断点兜底 ②运行时按实际窗口宽度打 html.pd-login-desktop/mobile（窗口缩放、缓存旧断点都不怕） */
@media (min-width: 900px) {
  #root > div > div[style*="min-height: 100vh"] > div,
  #root > div > div[style*="min-height: 100vh"] .ant-row {
    justify-content: flex-end !important;
    padding-right: 1vw !important;
  }
  #root > div > div[style*="min-height: 100vh"] .ant-card {
    transform: none !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    max-width: 360px !important;
  }
}
html.pd-login-desktop #root > div > div[style*="min-height: 100vh"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-position: center center !important;
  background-size: cover !important;
}
html.pd-login-desktop #root > div > div[style*="min-height: 100vh"] > div,
html.pd-login-desktop #root > div > div[style*="min-height: 100vh"] .ant-row {
  justify-content: flex-end !important;
  padding-right: 1vw !important;
}
html.pd-login-desktop #root > div > div[style*="min-height: 100vh"] .ant-card {
  transform: none !important;
  margin: 0 !important;
  margin-left: auto !important;
  max-width: 360px !important;
}
html.pd-login-mobile #root > div > div[style*="min-height: 100vh"] .ant-card {
  margin-top: 40vh !important;
}
/* 登录页大熊猫压一点对比，让轮廓更清楚 */
#root > div > div[style*="min-height: 100vh"] {
  background-color: #07121f !important;
}

/* ---------- 手机端：熊猫头露在登录框上方 ---------- */
@media (max-width: 899px) {
  #root > div > div[style*="min-height: 100vh"] {
    background-position: center 18% !important;
    background-size: auto 118% !important;
  }
  #root > div > div[style*="min-height: 100vh"] .ant-card {
    margin-top: 40vh !important;
  }
}
