/* ============================================
   Dosuvas 品牌主题 v2.0
   ============================================ */
:root {
  --primary: #7c6ff0 !important;
  --primary-hover: #6958e0 !important;
  --sidebar-bg: #1a1b23 !important;
  --card-bg: #1e1f2a !important;
}

/* 顶栏 */
.navbar, .header, .top-nav, header, .el-header, .app-header,
.navbar-top, .top-header, .main-header {
  background: linear-gradient(135deg, #1a1b23, #21223d) !important;
  border-bottom: 1px solid #2e2f3e !important;
}

/* 侧边栏 */
.sidebar, .sidebar-menu, .nav-sidebar, .el-menu, .menu-side,
.side-menu, .left-menu, .aside, .el-aside, .app-sidebar {
  background: #1a1b23 !important;
}
.sidebar .nav-link:hover, .sidebar .menu-item:hover, .el-menu-item:hover {
  background: rgba(124,111,240,0.08) !important;
}
.sidebar .nav-link.active, .sidebar .menu-item.active, .el-menu-item.is-active {
  background: rgba(124,111,240,0.15) !important;
  border-left: 3px solid #7c6ff0 !important;
  color: #7c6ff0 !important;
}

/* 卡片 */
.card, .panel, .box, .el-card, .info-box, .stat-card {
  background: #1e1f2a !important;
  border: 1px solid #2e2f3e !important;
  border-radius: 12px !important;
}

/* 按钮 */
.btn-primary, .el-button--primary, button[type=submit], .ant-btn-primary {
  background: linear-gradient(135deg, #7c6ff0, #6958e0) !important;
  border: none !important;
  border-radius: 8px !important;
}
.btn-primary:hover, .el-button--primary:hover {
  box-shadow: 0 4px 14px rgba(124,111,240,0.3) !important;
}

/* 表格 */
table, .el-table, .ant-table {
  border-radius: 10px !important;
  overflow: hidden !important;
}
.el-table th, .ant-table-thead th {
  background: #1e1f2a !important;
  border-color: #2e2f3e !important;
}

/* 输入 */
input, textarea, select, .el-input__inner, .ant-input {
  border-radius: 8px !important;
  background: #252630 !important;
  border-color: #2e2f3e !important;
  color: #e8e8ed !important;
}

/* 登录页 */
.login-page, .login-container, .login-wrapper {
  background: linear-gradient(135deg, #0d0d14 0%, #1a1b23 50%, #21223d 100%) !important;
}
.login-card, .login-form, .login-box {
  background: #1e1f2a !important;
  border: 1px solid #2e2f3e !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
}

/* 弹窗 */
.el-dialog, .modal, .ant-modal-content {
  background: #1e1f2a !important;
  border: 1px solid #2e2f3e !important;
  border-radius: 14px !important;
}

/* 标签 */
.el-tag, .ant-tag, .badge, .label {
  border-radius: 6px !important;
}

/* 全局背景 */
body, .app, .main-container, .el-container {
  background: #14151a !important;
}

/* 滚动条 */
::-webkit-scrollbar{width:6px}
::-webkit-scrollbar-track{background:#1a1b23}
::-webkit-scrollbar-thumb{background:#363748;border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:#4a4b5c}

/* 链接 */
a{color:#7c6ff0!important}
a:hover{color:#a78bfa!important}

/* ===== 强制替换 Logo ===== */
/* 隐藏 logo 图片 */
.sidebar img,
.sidebar-logo img,
.logo img,
[class*=logo] img,
[class*=sidebar] img[src*="logo"],
img[src*="logo.png"],
img[src*="favicon"] {
  display: none !important;
}

/* 用伪元素显示品牌名 */
.sidebar-logo::before,
.logo::before,
[class*=logo]::before,
.sidebar .logo-text::before {
  content: "Dosuvas AI";
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(135deg, #7c6ff0, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

/* 侧边栏顶部标题 */
.sidebar > *:first-child:not(ul):not(div[class*=menu]) {
  font-weight: 700 !important;
  font-size: 18px !important;
