/* ========== CSS变量定义 ========== */
:root {
  --bg-primary: #0B0F1F;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --border-card: rgba(0, 212, 255, 0.15);
  --border-card-hover: rgba(0, 212, 255, 0.25);
  --color-primary: #00D4FF;
  --color-secondary: #7C5CFC;
  --color-success: #00E676;
  --color-warning: #FFB300;
  --color-danger: #FF5252;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.45);
  --bg-input: rgba(255, 255, 255, 0.05);
  --border-input: rgba(255, 255, 255, 0.12);
  --border-input-focus: #00D4FF;
  --bg-sidebar: #070B1A;
  --bg-sidebar-active: rgba(0, 212, 255, 0.15);
  --bg-header: rgba(11, 15, 31, 0.8);
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --radius-tag: 4px;
  --radius-dialog: 16px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 48px rgba(0, 212, 255, 0.15);
  --shadow-dialog: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 4px 16px rgba(0, 212, 255, 0.25);
  --shadow-primary-hover: 0 6px 24px rgba(0, 212, 255, 0.35);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ========== 基础重置 ========== */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  overflow: auto;
  background: var(--bg-primary);
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-primary);
}

*, *::before, *::after {
  box-sizing: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== 滚动条样式 ========== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.5);
}

/* 横向滚动容器 */
.scroll-x-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========== 页面标题 ========== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.page-header-actions {
  display: flex;
  gap: 12px;
}

.page-title {
  margin-bottom: 24px;
}

.page-title h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.page-title p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========== 卡片组件 ========== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* ========== 工具栏 ========== */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toolbar-left {
  display: flex;
  gap: 12px;
}

/* ========== 搜索表单 ========== */
.search-bar {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 20px 16px;
  border-radius: var(--radius-card);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  border: 1px solid var(--border-card);
  margin-bottom: 16px;
}

.search-form,
.search-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-form {
  flex-wrap: wrap;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 16px;
  align-items: center;
}

.search-form .el-form-item,
.search-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-form .el-form-item label,
.search-item label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 1px;
}

/* 搜索按钮外层套用了 .el-form-item，隐藏占位 label 但保留空间以对齐 */
.search-actions-label {
  visibility: hidden;
}

/* ========== 表单元素 ========== */
.el-form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.el-form-item label {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.el-form-item input,
.el-form-item select,
.el-form-item textarea,
.search-form .el-form-item input,
.search-form .el-form-item select,
.search-item input,
.search-item select {
  height: 40px;
  line-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  outline: none;
  transition: all var(--transition-fast);
  min-width: 180px;
}

.el-form-item textarea {
  height: auto;
  line-height: 1.5;
  padding: 10px 14px;
  resize: vertical;
}

.el-form-item input:focus,
.el-form-item select:focus,
.el-form-item textarea:focus,
.search-form .el-form-item input:focus,
.search-form .el-form-item select:focus,
.search-item input:focus,
.search-item select:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

.required {
  color: var(--color-danger);
}

/* ========== 按钮组件 ========== */
.el-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  height: 40px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.el-btn:focus {
  outline: none;
}

.el-btn:hover {
  transform: translateY(-1px);
}

.el-btn:active {
  transform: translateY(0);
}

/* 主要按钮：半透明低饱和青色描边样式（替代原高饱和渐变，视觉更柔和舒适） */
.el-btn-primary {
  background: rgba(0, 212, 255, 0.1);
  color: #8FE8FF;
  border: 1px solid rgba(0, 212, 255, 0.28);
  box-shadow: none;
}

.el-btn-primary:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: rgba(0, 212, 255, 0.45);
  color: #BFF2FF;
  box-shadow: none;
}

/* 弱化 btn-glow 的 hover 发光（各页面内联定义，此处统一压制），避免列表按钮过于刺眼 */
body .btn-glow:hover,
body .btn-glow:active {
  box-shadow: none;
}

/* 成功按钮 */
.el-btn-success {
  background: rgba(0, 230, 118, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.el-btn-success:hover {
  background: rgba(0, 230, 118, 0.25);
  border-color: rgba(0, 230, 118, 0.5);
}

/* 警告按钮 */
.el-btn-warning {
  background: rgba(255, 179, 0, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.el-btn-warning:hover {
  background: rgba(255, 179, 0, 0.25);
  border-color: rgba(255, 179, 0, 0.5);
}

/* 危险按钮 */
.el-btn-danger {
  background: rgba(255, 82, 82, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(255, 82, 82, 0.3);
}

.el-btn-danger:hover {
  background: rgba(255, 82, 82, 0.25);
  border-color: rgba(255, 82, 82, 0.5);
}

/* 默认按钮 */
.el-btn-default {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-input);
}

.el-btn-default:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* 小按钮 */
.el-btn-sm {
  padding: 0 14px;
  font-size: 12px;
  height: 32px;
}

/* 文字按钮 */
.el-btn-text {
  background: transparent;
  color: var(--color-primary);
  padding: 0;
  height: auto;
}

.el-btn-text:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-primary);
}

.el-btn-text-danger {
  background: transparent;
  color: var(--color-danger);
  padding: 4px 6px;
}

.el-btn-text-danger:hover {
  background: rgba(255, 82, 82, 0.1);
}

/* ========== 数据表格 ========== */
.tech-theme .el-table-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.12);
  overflow: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-x: auto;
  overflow-y: hidden;
}

.tech-theme .el-table-wrapper .el-table,
.tech-theme .el-table-wrapper table.el-table {
  width: 100%;
  min-width: 900px;
  table-layout: auto;
  border-collapse: collapse;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.tech-theme .el-table-wrapper .el-table thead th,
.tech-theme .el-table-wrapper table.el-table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(0, 212, 255, 0.8);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  position: relative;
}

.tech-theme .el-table-wrapper .el-table thead th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
}

.tech-theme .el-table-wrapper .el-table tbody td,
.tech-theme .el-table-wrapper table.el-table tbody tr td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
  background: transparent;
}

.tech-theme .el-table-wrapper .el-table tbody tr:hover td,
.tech-theme .el-table-wrapper table.el-table tbody tr:hover td {
  background: rgba(0, 212, 255, 0.06);
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.03);
}

/* 斑马纹 */
.tech-theme .el-table-wrapper .el-table--striped .el-table__body tr.el-table__row--striped td {
  background: rgba(255, 255, 255, 0.02);
}

/* 边框表格 */
.tech-theme .el-table-wrapper .el-table--border,
.tech-theme .el-table-wrapper .el-table--border .el-table__cell {
  border-color: rgba(255, 255, 255, 0.06);
}

/* 透明背景重置 */
.tech-theme .el-table-wrapper .el-table__body,
.tech-theme .el-table-wrapper .el-table__header,
.tech-theme .el-table-wrapper .el-table__row,
.tech-theme .el-table-wrapper .el-table__cell,
.tech-theme table.el-table,
.tech-theme table.el-table > thead,
.tech-theme table.el-table > tbody,
.tech-theme table.el-table > thead > tr,
.tech-theme table.el-table > tbody > tr,
.tech-theme table.el-table > thead > tr > th,
.tech-theme table.el-table > tbody > tr > td {
  background: transparent;
  background-color: transparent;
}

.tech-theme .el-table-wrapper .el-table__header th::after {
  background: transparent;
}

/* 对齐方式 */
.tech-theme .el-table-wrapper .el-table td.col-center,
.tech-theme .el-table-wrapper .el-table th.col-center {
  text-align: center;
}

.tech-theme .el-table-wrapper .el-table td.col-left,
.tech-theme .el-table-wrapper .el-table th.col-left {
  text-align: left;
}

/* 响应式表格最小宽度 */
@media (max-width: 768px) {
  .tech-theme .el-table-wrapper table.el-table {
    min-width: 1000px;
  }
  .tech-theme .el-table-wrapper {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .tech-theme .el-table-wrapper table.el-table {
    min-width: 1200px;
  }
}

/* ========== 标签组件 ========== */
.tech-theme .el-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-tag);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}

.tech-theme .el-tag--success {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.25);
  color: #00E676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.1);
}

.tech-theme .el-tag--danger {
  background: rgba(255, 82, 82, 0.12);
  border-color: rgba(255, 82, 82, 0.25);
  color: #FF5252;
  box-shadow: 0 0 12px rgba(255, 82, 82, 0.1);
}

.tech-theme .el-tag--warning {
  background: rgba(255, 179, 0, 0.12);
  border-color: rgba(255, 179, 0, 0.25);
  color: #FFB300;
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.1);
}

.tech-theme .el-tag--primary {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.25);
  color: #00D4FF;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

.tech-theme .el-tag--info {
  background: rgba(0, 212, 255, 0.10);
  border-color: rgba(0, 212, 255, 0.20);
  color: #00D4FF;
}

/* ========== 进度条 ========== */
.tech-theme .progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-theme .progress-bar-wrap .progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  max-width: 100px;
}

.tech-theme .progress-bar-wrap .bar-inner {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
  background: linear-gradient(90deg, #00D4FF, #7C5CFC);
}

.tech-theme .progress-text {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

/* ========== 操作链接 ========== */
.action-links {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.action-links .el-btn-text {
  background: transparent;
  color: rgba(0, 212, 255, 0.7);
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.action-links .el-btn-text:hover {
  color: #00D4FF;
  background: rgba(0, 212, 255, 0.08);
}

.action-links .el-btn-text-danger {
  color: rgba(255, 82, 82, 0.7);
}

.action-links .el-btn-text-danger:hover {
  color: #FF5252;
  background: rgba(255, 82, 82, 0.08);
}

/* ========== 分页组件 ========== */
.tech-theme .el-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.tech-theme .el-pagination__item {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.tech-theme .el-pagination__item:hover {
  border-color: rgba(0, 212, 255, 0.3);
  color: #fff;
}

.tech-theme .el-pagination__item.is-active {
  background: rgba(0, 212, 255, 0.15);
  color: #fff;
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
}

.tech-theme .el-pagination__item.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tech-theme .el-pagination button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  border-radius: 6px;
}

.tech-theme .el-pagination button:hover:not(:disabled) {
  border-color: rgba(0, 212, 255, 0.3);
  color: #fff;
}

.tech-theme .el-pagination .el-pagination__sizes {
  color: rgba(255,255,255,0.5);
}

.tech-theme .el-pagination .el-select .el-input__inner {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.page-info {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin-right: auto;
}

.page-size-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  padding: 4px 8px;
  height: 32px;
  outline: none;
  cursor: pointer;
}

.page-size-select:focus {
  border-color: #00D4FF;
}

/* ========== 对话框组件 ========== */
body .el-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body .el-dialog.show {
  display: flex;
}

body .el-dialog__wrapper {
  background: rgba(11, 15, 31, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  width: auto;
  min-width: 300px;
  border-radius: var(--radius-dialog);
  box-shadow: var(--shadow-dialog);
  position: relative;
  margin: auto;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 40px);
  overflow: hidden;
  border: 1px solid var(--border-card);
}

body .el-dialog__wrapper.is-dragging {
  cursor: grabbing;
  z-index: 2002;
  position: absolute;
  margin: 0;
  transform: none;
}

body .el-dialog__header {
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: move;
  user-select: none;
}

body .el-dialog__header:active {
  cursor: grabbing;
}

body .el-dialog__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

body .el-dialog__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

body .el-dialog__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

body .el-dialog__body {
  padding: 24px;
  max-height: calc(100% - 130px);
  overflow-y: auto;
}

body .el-dialog__body .el-form-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  flex-direction: row;
}

body .el-dialog__body .el-form-item label {
  flex-shrink: 0;
  width: 120px;
  text-align: right;
  margin-right: 15px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  padding-top: 9px;
}

body .el-dialog__body input,
body .el-dialog__body select,
body .el-dialog__body textarea {
  flex: 1;
  padding: 0px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
  background: var(--bg-input);
  color: var(--text-primary);
  min-width: 0;
}

body .el-dialog__body input:focus,
body .el-dialog__body select:focus,
body .el-dialog__body textarea:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

body .el-dialog__body textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
  padding: 10px 14px;
}

body .el-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

/* ========== 部门/上级部门选择触发器（点击打开 DeptPicker 组件） ========== */
.dept-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  /* 在 flex 表单行中拉伸占满剩余宽度，与其他输入框同宽 */
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.dept-picker-trigger:hover {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

.dept-picker-arrow {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ========== 标签页组件 ========== */
.el-tabs {
  display: flex;
  gap: 4px;
  border-bottom: none;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-card);
}

.el-tabs__item {
  padding: 10px 24px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius-btn);
  margin-bottom: 0;
  transition: all var(--transition-fast);
  user-select: none;
  font-weight: 500;
}

.el-tabs__item:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.el-tabs__item.is-active {
  color: #fff;
  background: rgba(0, 212, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.4);
}

.el-tab-pane {
  display: none;
}

.el-tab-pane.is-active {
  display: block;
}

/* ========== Toast/消息提示 ========== */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2002;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.el-message {
  position: relative;
  padding: 18px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: none;
  animation: messageIn 0.3s ease-out;
  background: rgba(15, 20, 35, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  max-width: 420px;
  min-width: 280px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.el-message.show {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 1;
  transform: scale(1);
}

.el-message--success {
  border-left: 4px solid var(--color-success);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(15, 20, 35, 0.95));
}

.el-message--error {
  border-left: 4px solid var(--color-danger);
  background: linear-gradient(135deg, rgba(245, 108, 108, 0.15), rgba(15, 20, 35, 0.95));
}

.el-message--warning {
  border-left: 4px solid var(--color-warning);
  background: linear-gradient(135deg, rgba(250, 173, 20, 0.15), rgba(15, 20, 35, 0.95));
}

.el-message--info {
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(135deg, rgba(103, 194, 58, 0.15), rgba(15, 20, 35, 0.95));
}

.el-message-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.el-message--success .el-message-icon {
  background: rgba(103, 194, 58, 0.2);
  color: var(--color-success);
}

.el-message--error .el-message-icon {
  background: rgba(245, 108, 108, 0.2);
  color: var(--color-danger);
}

.el-message--warning .el-message-icon {
  background: rgba(250, 173, 20, 0.2);
  color: var(--color-warning);
}

.el-message--info .el-message-icon {
  background: rgba(0, 212, 255, 0.2);
  color: var(--color-primary);
}

/* ========== 加载状态 ========== */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.loading::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border: 2px solid rgba(0, 212, 255, 0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* ========== 空状态 ========== */
.empty {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty::before {
  content: '📋';
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ========== 详情页样式 ========== */
.detail-section {
  margin-bottom: 16px;
}

.detail-section .detail-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-section .detail-row .label {
  width: 120px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 13px;
}

.detail-section .detail-row .value {
  flex: 1;
  color: var(--text-secondary);
  word-break: break-all;
  font-size: 13px;
}

/* ========== Switch开关组件 ========== */
.el-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.el-switch__input {
  display: none;
}

.el-switch__core {
  width: 46px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.el-switch__core::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.el-switch__input:checked + .el-switch__core {
  background: rgba(0, 212, 255, 0.3);
  border-color: var(--color-primary);
}

.el-switch__input:checked + .el-switch__core::after {
  left: 24px;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.el-switch__label {
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* 简化版switch（无label） */
.el-switch:not(.el-switch--inline) {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  transition: all var(--transition-fast);
}

.el-switch:not(.el-switch--inline)::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.el-switch:not(.el-switch--inline).on {
  background: rgba(0, 212, 255, 0.3);
  border-color: var(--color-primary);
}

.el-switch:not(.el-switch--inline).on::after {
  left: 20px;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.el-switch:not(.el-switch--inline):hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.el-switch:not(.el-switch--inline).on:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

/* 状态开关（带颜色区分） */
.status-switch {
  display: inline-block;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.12);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.status-switch.on {
  background: rgba(0, 230, 118, 0.4);
}

.status-switch.off {
  background: rgba(255,82,82,0.2);
}

.status-switch .switch-dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.status-switch.on .switch-dot { left: 20px; }
.status-switch.off .switch-dot { left: 2px; }

/* ========== 树形组件 ========== */
.tree-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tree-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  transition: transform 0.2s;
}

.tree-toggle.expanded { transform: rotate(90deg); }
.tree-toggle.hidden-children { visibility: hidden; }
.tree-node-icon { font-size: 16px; margin-right: 4px; }

/* ========== Select下拉选择 ========== */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  padding: 0 32px 0 14px;
  height: 40px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

select:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

select option {
  background: #0B0F1F;
  color: #FFFFFF;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 36px;
}

select option:hover {
  background: rgba(0, 212, 255, 0.15);
}

select option:checked {
  background: rgba(0, 212, 255, 0.25);
  color: #00D4FF;
}

select option[disabled] {
  opacity: 0.3;
}

select optgroup {
  background: rgba(11, 15, 31, 0.95);
  color: rgba(0, 212, 255, 0.8);
  font-weight: 600;
  font-size: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

select optgroup option {
  padding-left: 32px;
}

/* Element Plus Select组件 */
.el-select {
  display: inline-block;
  position: relative;
}

.el-select .el-input__inner {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
}

.el-select .el-input__inner:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

.el-select-dropdown {
  background: rgba(11, 15, 31, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 8px 0;
  margin-top: 8px;
}

.el-select-dropdown__item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  padding: 10px 20px;
  line-height: 1.5;
  transition: all var(--transition-fast);
}

.el-select-dropdown__item:hover {
  background: rgba(0, 212, 255, 0.12);
  color: #fff;
}

.el-select-dropdown__item.selected {
  background: rgba(0, 212, 255, 0.2);
  color: #00D4FF;
}

.el-select-dropdown__item.is-disabled {
  opacity: 0.3;
}

.el-select-dropdown__empty {
  color: rgba(255, 255, 255, 0.4);
  padding: 20px;
  text-align: center;
}

/* ========== 动画关键帧 ========== */
@keyframes messageIn {
  from { opacity: 0; transform: scale(0.9) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.8; }
}

@keyframes scanMove {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

@keyframes shimmerMove {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== 特效工具类 ========== */
.gradient-text {
  background: linear-gradient(90deg, #00D4FF, #7C5CFC, #00D4FF);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s linear infinite;
}

.glow-box {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.glow-box:hover {
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.4), inset 0 0 30px rgba(0, 212, 255, 0.1);
}

/* ========== 辅助类 ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
