/* ==================== 全局重置 & 科技风基础 ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-base: #1a1a2e;
  --bg-surface: #1e1e3a;
  --bg-card: rgba(30, 30, 58, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.07);
  --bg-glass-hover: rgba(255, 255, 255, 0.12);

  --neon-cyan: #00d4ff;
  --neon-cyan-dim: rgba(0, 212, 255, 0.12);
  --neon-cyan-glow: rgba(0, 212, 255, 0.4);
  --neon-purple: #a855f7;
  --neon-purple-dim: rgba(168, 85, 247, 0.12);
  --neon-green: #10b981;
  --neon-orange: #f97316;

  --border: rgba(255, 255, 255, 0.12);
  --border-bright: rgba(0, 212, 255, 0.35);

  --text-primary: #f0f4ff;
  --text-secondary: #c8d3e8;
  --text-muted: #8892a4;

  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

html, body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text-primary);
  min-height: 100vh;
  /* 深空渐变 + 双色环境辉光，营造层次与高级感 */
  background:
    radial-gradient(1200px 620px at 10% -10%, rgba(0, 212, 255, 0.18), transparent 60%),
    radial-gradient(1000px 760px at 105% 110%, rgba(168, 85, 247, 0.16), transparent 55%),
    radial-gradient(720px 520px at 50% 122%, rgba(6, 182, 212, 0.09), transparent 60%),
    linear-gradient(155deg, #0a0a18 0%, #101027 48%, #0b0b1c 100%);
  background-attachment: fixed;
}

#root {
  min-height: 100vh;
  background: transparent;
}

/* ==================== 背景网格 ==================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  /* 网格向中心淡出，避免铺满显得廉价 */
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
}

/* ==================== Ant Design 暗色覆盖 ==================== */

/* Layout（透明以透出 body 的深空辉光背景）*/
.ant-layout {
  background: transparent !important;
}

.ant-layout-sider {
  background: linear-gradient(180deg, #16162a 0%, #1e1e3a 50%, #16162a 100%) !important;
  border-right: 1px solid var(--border) !important;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.4) !important;
}

.ant-layout-header {
  background: rgba(22, 22, 42, 0.9) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3) !important;
  padding: 0 24px !important;
}

.ant-layout-content {
  padding: 24px 28px !important;   /* 给页面留呼吸空间，不再贴边 */
}

/* 卡片 — 悬浮磨砂玻璃 + 霓虹描边 */
.ant-card {
  background: linear-gradient(150deg, rgba(34, 36, 70, 0.62), rgba(19, 20, 42, 0.62)) !important;
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(0, 212, 255, 0.14) !important;
  border-radius: 18px !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.ant-card:hover {
  border-color: rgba(0, 212, 255, 0.40) !important;
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 30px rgba(0, 212, 255, 0.15) !important;
  transform: translateY(-3px);
}

/* 主按钮 — 霓虹青 */
.ant-btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  letter-spacing: 0.02em;
}
.ant-btn-primary {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #06b6d4 100%) !important;
  border: 1px solid rgba(0, 212, 255, 0.3) !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), 0 2px 8px rgba(0,0,0,0.4) !important;
  color: #fff !important;
}
.ant-btn-primary:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #67e8f9 100%) !important;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), 0 4px 16px rgba(0,0,0,0.4) !important;
  transform: translateY(-1px);
  color: #fff !important;
}
.ant-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15) !important;
}
.ant-btn-default {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
}
.ant-btn-default:hover {
  background: var(--bg-glass-hover) !important;
  border-color: var(--neon-cyan) !important;
  color: var(--neon-cyan) !important;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1) !important;
}

/* 输入框 */
.ant-input,
.ant-input-affix-wrapper,
.ant-select-selector,
.ant-input-number,
.ant-picker {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  color: var(--text-primary) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2) !important;
}
.ant-input::placeholder,
.ant-input-affix-wrapper::placeholder {
  color: var(--text-muted) !important;
}
.ant-input:focus,
.ant-input-focused,
.ant-input-affix-wrapper:focus,
.ant-input-affix-wrapper-focused,
.ant-select-focused .ant-select-selector,
.ant-input-number:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12), inset 0 1px 3px rgba(0,0,0,0.2) !important;
}
.ant-input:hover,
.ant-input-affix-wrapper:hover,
.ant-select:hover .ant-select-selector {
  border-color: rgba(0, 212, 255, 0.4) !important;
}

/* 选择框下拉 */
.ant-select-dropdown {
  background: rgba(30, 30, 58, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
}
.ant-select-item {
  color: var(--text-secondary) !important;
}
.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  background: var(--neon-cyan-dim) !important;
  color: var(--neon-cyan) !important;
}
.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
  background: rgba(0, 212, 255, 0.2) !important;
  color: var(--neon-cyan) !important;
  font-weight: 600 !important;
}

/* 模态框 */
.ant-modal-content {
  background: rgba(30, 30, 58, 0.98) !important;
  backdrop-filter: blur(30px) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.05) !important;
}
.ant-modal-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 20px 20px 0 0 !important;
}
.ant-modal-title {
  color: var(--neon-cyan) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  letter-spacing: 0.05em;
}
.ant-modal-close {
  color: var(--text-muted) !important;
}
.ant-modal-close:hover {
  color: var(--neon-cyan) !important;
  background: var(--neon-cyan-dim) !important;
}
.ant-modal-footer {
  border-top: 1px solid var(--border) !important;
}

/* 表格 */
.ant-table {
  background: transparent !important;
  border-radius: 12px;
  overflow: hidden;
}
.ant-table-thead > tr > th {
  background: rgba(0, 212, 255, 0.06) !important;
  color: var(--neon-cyan) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border) !important;
  padding: 12px 16px !important;
}
.ant-table-tbody > tr > td {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  padding: 12px 16px !important;
}
.ant-table-tbody > tr:hover > td {
  background: var(--neon-cyan-dim) !important;
}

/* 标签 */
.ant-tag {
  border-radius: 6px !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}

/* Tabs */
.ant-tabs-nav {
  margin-bottom: 0 !important;
}
.ant-tabs-tab {
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  padding: 10px 0 !important;
  transition: color 0.2s !important;
}
.ant-tabs-tab:hover {
  color: var(--neon-cyan) !important;
}
.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: var(--neon-cyan) !important;
  font-weight: 600 !important;
}
.ant-tabs-ink-bar {
  background: var(--neon-cyan) !important;
  box-shadow: 0 0 10px var(--neon-cyan) !important;
  height: 2px !important;
}
.ant-tabs-top > .ant-tabs-nav::before {
  border-bottom-color: var(--border) !important;
}

/* 分割线 */
.ant-divider {
  border-color: var(--border) !important;
}

/* 警告提示 */
.ant-alert {
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-glass) !important;
}
.ant-alert-info {
  border-color: rgba(0, 212, 255, 0.2) !important;
  background: rgba(0, 212, 255, 0.05) !important;
}
.ant-alert-info .ant-alert-message {
  color: var(--neon-cyan) !important;
}

/* 表单标签 */
.ant-form-item-label > label {
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

/* 开关 */
.ant-switch {
  background: rgba(255,255,255,0.1) !important;
  border-radius: 20px !important;
}
.ant-switch-checked {
  background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4) !important;
}

/* 进度条 */
.ant-progress-inner {
  background: rgba(255,255,255,0.08) !important;
  border-radius: 99px !important;
}
.ant-progress-bg {
  background: linear-gradient(90deg, #0891b2, #22d3ee, #67e8f9) !important;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5) !important;
  border-radius: 99px !important;
}

/* 滑块 */
.ant-slider-rail {
  background: rgba(255,255,255,0.08) !important;
}
.ant-slider-track {
  background: var(--neon-cyan) !important;
}
.ant-slider-handle {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5) !important;
}
.ant-slider-handle:hover,
.ant-slider-handle:focus {
  border-color: #22d3ee !important;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6) !important;
}

/* 消息提示 */
.ant-message-notice-content {
  background: rgba(30, 30, 58, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,212,255,0.05) !important;
  color: var(--text-primary) !important;
}

/* 弹出确认框 */
.ant-popover-inner {
  background: rgba(30, 30, 58, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
}
.ant-popover-title {
  color: var(--neon-cyan) !important;
  border-bottom-color: var(--border) !important;
}

/* 抽屉 */
.ant-drawer-content {
  background: rgba(22, 22, 42, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  border-left: 1px solid var(--border) !important;
}
.ant-drawer-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
}
.ant-drawer-title {
  color: var(--neon-cyan) !important;
}
.ant-drawer-close {
  color: var(--text-muted) !important;
}

/* 滚动条 */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.15); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.3); }

/* ==================== 动画 ==================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 5px var(--neon-cyan), 0 0 10px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 15px var(--neon-cyan), 0 0 30px rgba(0, 212, 255, 0.5); }
}
@keyframes glowText {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 212, 255, 0.5); }
  50% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 40px rgba(0, 212, 255, 0.3); }
}
@keyframes audioBar1 { 0%,100% { height: 4px } 50% { height: 20px } }
@keyframes audioBar2 { 0%,100% { height: 8px } 50% { height: 24px } }
@keyframes audioBar3 { 0%,100% { height: 6px } 50% { height: 18px } }
@keyframes audioBar4 { 0%,100% { height: 12px } 50% { height: 26px } }
@keyframes audioBar5 { 0%,100% { height: 4px } 50% { height: 16px } }
@keyframes audioBar6 { 0%,100% { height: 10px } 50% { height: 22px } }
@keyframes audioBar7 { 0%,100% { height: 6px } 50% { height: 18px } }
@keyframes audioBar8 { 0%,100% { height: 10px } 50% { height: 24px } }

.animate-slide-up { animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-fade-in { animation: fadeIn 0.3s ease forwards; }

/* ==================== 工具类 ==================== */
.neon-text {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  animation: glowText 3s ease-in-out infinite;
}

.neon-border {
  border: 1px solid var(--border-bright) !important;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1), inset 0 0 15px rgba(0, 212, 255, 0.03) !important;
}

.glass-card {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.card-hover:hover {
  border-color: var(--border-bright) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0,212,255,0.06) !important;
}

/* 直播中指示器 */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.live-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239, 68, 68, 0.5);
  animation: neonPulse 1.5s ease-in-out infinite;
}

/* ==================== Menu 霓虹风格 ==================== */
.ant-menu-dark {
  background: transparent !important;
}
.ant-menu-dark .ant-menu-item,
.ant-menu-dark .ant-menu-submenu-title {
  color: var(--text-muted) !important;
  border-radius: 10px !important;
  margin: 2px 8px !important;
  transition: all 0.2s !important;
}
.ant-menu-dark .ant-menu-item:hover,
.ant-menu-dark .ant-menu-submenu-title:hover {
  color: var(--neon-cyan) !important;
  background: var(--neon-cyan-dim) !important;
}
.ant-menu-dark .ant-menu-item-selected {
  color: var(--neon-cyan) !important;
  background: var(--neon-cyan-dim) !important;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1) !important;
  border: 1px solid rgba(0, 212, 255, 0.2) !important;
}
.ant-menu-dark .ant-menu-item-selected::after {
  display: none !important;
}
.ant-menu-dark .ant-menu-sub.ant-menu-inline {
  background: transparent !important;
}
.ant-menu-dark .ant-menu-sub .ant-menu-item:hover {
  background: rgba(0, 212, 255, 0.06) !important;
}
.ant-menu-dark .ant-menu-submenu-selected {
  color: var(--neon-cyan) !important;
}

/* 顶部导航：横向滚动但隐藏滚动条（窄窗口时不撑破固定高度的 Header） */
.topnav {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
}
.topnav::-webkit-scrollbar {
  height: 0;
  width: 0;
  display: none;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .ant-layout-sider { display: none; }
}
