/* QB狗 控制台 · 像素风皮肤 v3
   1) 暗色主题：覆盖框架主题变量（!important 压过自带 lab() 定义）
   2) 像素感：圆角归零、硬边框硬阴影、标题像素字体 */
@import url("https://cdn.jsdelivr.net/npm/@fontsource/press-start-2p@5.0.0/400.css");

:root, html, .dark {
  --background: #0e1220 !important;
  --foreground: #e9ecf5 !important;
  --card: #161b2e !important;
  --card-foreground: #e9ecf5 !important;
  --popover: #1b2138 !important;
  --popover-foreground: #e9ecf5 !important;

  --primary: #5eead4 !important;
  --primary-foreground: #0b1220 !important;
  --secondary: #1f2540 !important;
  --secondary-foreground: #c9cfe2 !important;
  --muted: #1b2138 !important;
  --muted-foreground: #9aa3c0 !important;
  --accent: #5eead4 !important;
  --accent-foreground: #0b1220 !important;

  --destructive: #fb7185 !important;
  --destructive-foreground: #0b1220 !important;
  --success: #34d399 !important;
  --success-foreground: #0b1220 !important;
  --warning: #fbbf24 !important;
  --warning-foreground: #0b1220 !important;
  --info: #a78bfa !important;
  --info-foreground: #0b1220 !important;
  --neutral: #7b84a3 !important;
  --neutral-foreground: #e9ecf5 !important;

  --border: #272e49 !important;
  --input: #272e49 !important;
  --ring: #5eead4 !important;
  --sidebar: #161b2e !important;
  --sidebar-foreground: #c9cfe2 !important;

  --chart-1: #5eead4 !important;
  --chart-2: #a78bfa !important;
  --chart-3: #fbbf24 !important;
  --chart-4: #fb7185 !important;
  --chart-5: #60a5fa !important;
}

/* 主色按钮在暗底上要深色字才看得清 */
[class*="bg-primary"] {
  color: #0b1220 !important;
}

/* 方块化：去掉圆角 */
.semi-card,
.semi-button,
.semi-input,
.semi-input-wrapper,
.semi-select,
.semi-textarea,
.semi-modal-content,
.semi-dropdown-menu,
.semi-table-container,
.semi-tag,
.semi-alert,
.semi-pagination-item,
.semi-tabs-bar,
.semi-navigation,
.semi-popover,
.semi-toast,
.semi-banner {
  border-radius: 0 !important;
}

/* 像素卡片：硬边框 + 硬阴影 */
.semi-card {
  border: 2px solid #272e49 !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45) !important;
}

.semi-button-primary,
.semi-button-solid {
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5) !important;
}

/* 标题用像素字体（中文自动回退系统字体） */
h1, h2, h3, h4,
.semi-typography-h1,
.semi-typography-h2,
.semi-typography-h3 {
  font-family: "Press Start 2P", "Courier New", monospace !important;
  letter-spacing: 1px;
}

img[alt="QBD"],
img[src$="logo.svg"] {
  image-rendering: pixelated;
}
