/* ============================================================
   熊猫至尊版V8 · 科技熊猫主题
   覆盖层方案：不改 React bundle 逻辑，纯 CSS 视觉升级
   ============================================================ */
:root {
  --tech-cyan: #00e5ff;
  --tech-purple: #7c4dff;
  --tech-bg: #060913;
  --tech-panel: rgba(13, 18, 32, 0.82);
  --tech-line: rgba(0, 229, 255, 0.35);
  --tech-text: #d8f4ff;
}

/* ---------- 全局科技背景：深色 + 网格 + 双色光晕 ---------- */
body {
  background-color: var(--tech-bg) !important;
  background-image:
    radial-gradient(ellipse 60% 45% at 15% 0%, rgba(124, 77, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 100%, rgba(0, 229, 255, 0.20), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(0, 229, 255, 0.05), transparent 70%),
    linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px, 42px 42px !important;
  background-attachment: fixed !important;
  color: var(--tech-text) !important;
}

/* ---------- 全站扫描线（微妙的科技感） ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 229, 255, 0.025) 0px,
    rgba(0, 229, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
}

/* ---------- 侧边栏：深色科技风 ---------- */
.ant-layout-sider,
.ant-layout-sider-children {
  background: linear-gradient(180deg, #0a0e1a 0%, #0d1220 100%) !important;
  border-right: 1px solid var(--tech-line) !important;
}
.ant-menu.ant-menu-dark {
  background: transparent !important;
}
.ant-menu-dark .ant-menu-item-selected {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.18), rgba(124, 77, 255, 0.18)) !important;
  border-right: 2px solid var(--tech-cyan) !important;
}

/* ---------- 顶部/内容区透明化 ---------- */
.ant-layout-header {
  background: rgba(10, 14, 26, 0.85) !important;
  border-bottom: 1px solid var(--tech-line) !important;
  backdrop-filter: blur(10px);
}
.ant-layout-content {
  background: transparent !important;
}

/* ---------- 卡片：玻璃态 + 霓虹边框 ---------- */
.ant-card {
  background: var(--tech-panel) !important;
  backdrop-filter: blur(12px);
  border: 1px solid var(--tech-line) !important;
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.12) !important;
}
.ant-card-head {
  border-bottom: 1px solid var(--tech-line) !important;
}

/* ---------- 主按钮：霓虹渐变 ---------- */
.ant-btn-primary {
  background: linear-gradient(135deg, #00c6ff, #7c4dff) !important;
  border: none !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.45) !important;
  transition: box-shadow 0.3s !important;
}
.ant-btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.7) !important;
}

/* ---------- 输入框：暗色 + 青色描边 ---------- */
.ant-input,
.ant-input-affix-wrapper,
.ant-input-password,
.ant-select-selector {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: var(--tech-line) !important;
  color: var(--tech-text) !important;
}
.ant-input::placeholder {
  color: rgba(216, 244, 255, 0.4) !important;
}
.ant-input:focus,
.ant-input-affix-wrapper-focused {
  border-color: var(--tech-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3) !important;
}

/* ---------- 表格：暗色科技 ---------- */
.ant-table {
  background: transparent !important;
  color: var(--tech-text) !important;
}
.ant-table-thead > tr > th {
  background: rgba(0, 229, 255, 0.06) !important;
  color: var(--tech-cyan) !important;
  border-bottom: 1px solid var(--tech-line) !important;
}
.ant-table-tbody > tr > td {
  border-bottom: 1px solid rgba(0, 229, 255, 0.12) !important;
}
.ant-table-tbody > tr:hover > td {
  background: rgba(0, 229, 255, 0.06) !important;
}

/* ---------- 登录页标题发光 ---------- */
/* 登录标题是 antd Typography，通过字号/颜色特征放大光效 */
[style*="font-size: 24px"][style*="font-weight: 700"],
.ant-typography {
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.55) !important;
}

/* ---------- 模态框 ---------- */
.ant-modal-content {
  background: var(--tech-panel) !important;
  border: 1px solid var(--tech-line) !important;
  backdrop-filter: blur(14px);
}

/* ---------- 下拉/消息 ---------- */
.ant-dropdown-menu,
.ant-select-dropdown {
  background: rgba(13, 18, 32, 0.95) !important;
  border: 1px solid var(--tech-line) !important;
}
.ant-message-notice-content {
  background: rgba(13, 18, 32, 0.92) !important;
  color: var(--tech-text) !important;
  border: 1px solid var(--tech-line) !important;
}

/* ---------- 滚动条科技化 ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00e5ff, #7c4dff);
  border-radius: 6px;
}

/* ---------- 登录容器整体浮动光晕 ---------- */
.ant-layout {
  background: transparent !important;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 768px) {
  body {
    background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px, 28px 28px !important;
  }
  .ant-card {
    margin: 8px !important;
  }
  .ant-layout-sider {
    position: fixed !important;
    z-index: 999;
  }
}
