/* ===== 全局主题覆盖 - 紫蓝渐变风格 ===== */

/* 页面整体背景 */
body, #app {
  background: linear-gradient(135deg, #2d1b69 0%, #1a0e4f 30%, #0d1b4b 70%, #0a1628 100%) !important;
  min-height: 100vh;
}

/* 主布局透明 */
.n-layout,
.n-layout-content,
.n-layout-scroll-container,
.layout-default-background,
.layout-content-main {
  background: transparent !important;
}

/* 侧边栏 */
.n-layout-sider,
.n-menu,
.layout-side-drawer {
  background: rgba(15, 8, 50, 0.88) !important;
}

/* 顶部 header */
.n-layout-header,
.layout-header {
  background: rgba(20, 10, 60, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(120, 80, 255, 0.2) !important;
}

/* 卡片 */
.n-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(80, 40, 180, 0.15) !important;
}

/* 表格容器 */
.n-data-table-wrapper,
.n-data-table-base-table,
.n-data-table {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 10px !important;
}

/* 弹窗 */
.n-modal-body-wrapper .n-card,
.n-modal .n-card {
  background: #fff !important;
}

/* tabs 标签栏 */
.tabs-view-default-background,
.tabs-view-dark-background {
  background: rgba(15, 8, 50, 0.7) !important;
}

/* scrollbar 内容区透明 */
.n-scrollbar-content {
  background: transparent !important;
}

/* ===== 设备详情页 inner-sidebar 按钮区 ===== */
.inner-sidebar[data-v-fc0266af] {
  background: linear-gradient(180deg, rgba(60, 20, 120, 0.9) 0%, rgba(30, 10, 80, 0.95) 100%) !important;
  border-left: 1px solid rgba(150, 100, 255, 0.3) !important;
  border-radius: 0 8px 8px 0 !important;
}

/* 设备详情页整体内容区背景 */
.image-container[data-v-fc0266af],
.content-wrapper[data-v-fc0266af] {
  background: transparent !important;
}

/* ===== 按钮彩色渐变风格 ===== */
.n-button--primary-type {
  background: linear-gradient(90deg, #7c3aed, #4f46e5) !important;
  border: none !important;
}
.n-button--primary-type:hover {
  background: linear-gradient(90deg, #9d5cf5, #6366f1) !important;
}

/* ===== 输入框 ===== */
.n-input .n-input-wrapper {
  background: rgba(255,255,255,0.9) !important;
}

/* ===== 表格行 hover ===== */
.n-data-table-tr:hover .n-data-table-td {
  background: rgba(120, 80, 255, 0.06) !important;
}

/* ===== 分页 ===== */
.n-pagination {
  background: transparent !important;
}
