/* ===== MES v3.0 科技化主题 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
.hidden { display: none !important; }
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-hover: rgba(59, 130, 246, 0.1);
  --border: rgba(59, 130, 246, 0.2);
  --border-glow: rgba(59, 130, 246, 0.5);
  --text-primary: #e5e7eb;
  --text-secondary: #c3c9d4;
  --text-muted: #9aa3b2;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-cyan: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-green: linear-gradient(135deg, #10b981, #06b6d4);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
  --radius: 8px;
  /* 兼容别名：app.js 等历史代码引用 --primary / --border-color */
  --primary: #3b82f6;
  --border-color: rgba(59, 130, 246, 0.2);
  /* 幽灵/取消按钮（深色主题：微亮底 + 半透明白边） */
  --btn-ghost-bg: rgba(255, 255, 255, 0.05);
  --btn-ghost-bg-hover: rgba(255, 255, 255, 0.12);
  --btn-ghost-border: rgba(255, 255, 255, 0.15);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
}
/* 背景网格效果 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== 登录页 ===== */
.login-page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: radial-gradient(ellipse at center, #1a1f3a 0%, #0a0e1a 70%);
}
.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:0.5} 50%{transform:scale(1.2);opacity:0.8} }
.login-box {
  position: relative;
  width: 420px;
  padding: 40px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}
.login-logo {
  text-align: center;
  margin-bottom: 30px;
}
.login-logo svg { width: 56px; height: 56px; }
.login-logo h1 {
  font-size: 24px;
  margin-top: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-logo p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.login-form .form-group { margin-bottom: 18px; }
.login-form label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.login-form input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}
.login-form input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.login-tip {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 主布局 ===== */
.app-layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* 侧边栏 */
.sidebar {
  width: 240px;
  background: rgba(11, 15, 25, 0.95);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: width 0.3s;
  backdrop-filter: blur(10px);
}
.sidebar.collapsed { width: 0; min-width: 0; overflow: hidden; padding: 0; }
.sidebar.collapsed .sidebar-logo,
.sidebar.collapsed .sidebar-nav,
.sidebar.collapsed .sidebar-footer,
.sidebar.collapsed .collapse-btn { display: none; }
.sidebar.collapsed + .main-content { margin-left: 0; }
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px;
  height: 68px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(59,130,246,0.1), transparent);
}
.sidebar-logo svg { flex-shrink: 0; }
.company-logo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title { font-size: 15px; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; }
.logo-subtitle { font-size: 11px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; }
.sidebar-logo span {
  font-size: 16px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.nav-group { margin-bottom: 4px; }
.nav-group-title {
  padding: 10px 16px 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.nav-group-title .toggle-icon { transition: transform 0.3s; font-size: 10px; }
.nav-group.collapsed .toggle-icon { transform: rotate(-90deg); }
.nav-group.collapsed .nav-items { display: none; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  border-left: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(59,130,246,0.2), transparent);
  color: #fff;
  border-left-color: var(--accent-blue);
}
.nav-item svg { flex-shrink: 0; width: 18px; height: 18px; }
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.collapse-btn {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 101;
  transition: all 0.3s;
}
.collapse-btn:hover { background: var(--accent-blue); color: #fff; }

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: 0;
  transition: margin-left 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-content .page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar.collapsed + .main-content { margin-left: 0; }

/* 顶部栏 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  height: 68px;
  box-sizing: border-box;
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }

/* 菜单折叠按钮 */
.menu-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 12px;
  margin-right: 4px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle-btn:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}
.topbar h1 {
  font-size: 18px;
  font-weight: 600;
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  padding: 0;
  line-height: 1;
  transform: translateY(-2px);
}
.topbar-right { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1000; }
.user-info { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; z-index: 1; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.user-detail { text-align: right; }
.user-detail .name { font-size: 13px; color: var(--text-primary); }
.user-detail .dept { font-size: 11px; color: var(--text-muted); }
.logout-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer !important;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
  z-index: 9999 !important;
  min-height: 36px;
  min-width: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  user-select: none;
  -webkit-user-select: none;
}
.logout-btn:hover {
  border-color: var(--accent-red) !important;
  color: var(--accent-red) !important;
  background: rgba(239, 68, 68, 0.15) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}
.logout-btn:active {
  transform: scale(0.95) !important;
  background: rgba(239, 68, 68, 0.25) !important;
}
.logout-btn:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* P1-1 页签式多页浏览 */
.page-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px 20px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  flex-shrink: 0;
}
.page-tabs:empty { display: none; }
.page-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all .15s;
  position: relative;
  top: 1px;
}
.page-tab:hover { color: var(--text-primary); border-color: rgba(59,130,246,.4); }
.page-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: transparent;
  font-weight: 600;
}
.page-tab-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.page-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 13px;
  line-height: 1;
  border-radius: 4px;
  opacity: .7;
}
.page-tab-close:hover { opacity: 1; background: rgba(239,68,68,.35); }
.page-tab.active .page-tab-close { opacity: .9; }
.page-tab-home { font-size: 12px; opacity: .8; }
[data-theme="light"] .page-tab:not(.active) { background: #f1f5f9; }
[data-theme="light"] .page-tab.active { color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); border-color: transparent; }

/* P2 页签管理菜单（关闭其他/全部） */
.page-tab-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  user-select: none;
  position: relative;
  top: 1px;
  transition: all .15s;
}
.page-tab-menu-btn:hover { color: var(--text-primary); border-color: rgba(59,130,246,.4); }
.page-tab-menu {
  position: fixed;
  z-index: 9999;
  min-width: 148px;
  padding: 4px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.page-tab-menu-item {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.page-tab-menu-item:hover { background: rgba(59,130,246,.15); }
.page-tab-menu-item.danger { color: #f87171; }
.page-tab-menu-item.danger:hover { background: rgba(239,68,68,.15); }
[data-theme="light"] .page-tab-menu { background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.12); }

/* P1-1 页签栏折叠按钮（隐藏整条页签以节省画面） */
.page-tab-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  user-select: none;
  position: sticky;
  right: 0;
  top: 1px;
  flex-shrink: 0;
  z-index: 6;
  box-shadow: -8px 0 10px -6px var(--bg-primary);
  transition: all .15s;
}
.page-tab-collapse-btn:hover { color: var(--text-primary); border-color: rgba(59,130,246,.4); }
[data-theme="light"] .page-tab-collapse-btn { background: #f0f2f5; box-shadow: -8px 0 10px -6px #f0f2f5; }
.page-tabs.collapsed { padding: 3px 20px; gap: 0; height: 26px; }
.page-tabs.collapsed .page-tab,
.page-tabs.collapsed .page-tab-menu-btn { display: none; }
.page-tabs.collapsed .page-tab-collapse-btn {
  margin-top: 0;
  top: 0;
  position: relative;
  right: auto;
  box-shadow: none;
  background: var(--bg-secondary);
  height: 20px;
  border-bottom: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 11px;
  width: auto;
  padding: 0 9px;
  gap: 4px;
  opacity: .75;
}
.page-tabs.collapsed .page-tab-collapse-btn:hover { opacity: 1; }
.page-tabs.collapsed .page-tab-collapse-btn::before { content: '页签'; font-size: 11px; font-weight: 500; }


/* 页面内容 */
.page-content { padding: 20px 24px; }
.page-content.hidden { display: none; }

/* 科技卡片 */
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}
.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.6;
}
.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.tech-card-header h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tech-card-header h3::before {
  content: '';
  width: 3px; height: 16px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.tech-card-body { padding: 18px; }

/* 统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.stat-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--stat-color, rgba(59,130,246,0.15)), transparent 70%);
  border-radius: 50%;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); position: relative; z-index: 1; }
.stat-value.blue { color: var(--accent-blue); }
.stat-value.cyan { color: var(--accent-cyan); }
.stat-value.green { color: var(--accent-green); }
.stat-value.yellow { color: var(--accent-yellow); }
.stat-value.red { color: var(--accent-red); }
.stat-value.purple { color: var(--accent-purple); }
.stat-trend { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* 工具栏 */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input-sm {
  padding: 7px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.input-sm:focus { border-color: var(--accent-blue); }
.input-sm::placeholder { color: var(--text-muted); }
select.input-sm { cursor: pointer; }
select.input-sm option { background: var(--bg-secondary); color: var(--text-primary); }

/* 全局下拉选择框深色样式（统一所有select的下拉选项） */
select {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
select option {
  background-color: #1e293b;
  color: #e5e7eb;
  padding: 8px 12px;
}
select option:hover,
select option:checked {
  background-color: #3b82f6;
  color: #ffffff;
}
select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
/* 弹窗内的select下拉选项 */
.modal-overlay select option,
.dialog select option,
[style*="linear-gradient(135deg"] select option {
  background-color: #1e293b;
  color: #e5e7eb;
}

/* 日期/时间选择器深色样式 */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}

/* 全局滚动条深色样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* 数字输入框去除默认箭头 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* 复选框和单选框深色样式 */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent-blue);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
}

/* 按钮 */
.btn {
  padding: 7px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover { border-color: var(--accent-blue); color: var(--text-primary); background: var(--bg-hover); }
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
}
.btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); border: none; color: #fff; }
.btn-danger { color: var(--accent-red); border-color: rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.1); border-color: var(--accent-red); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); border: none; color: #fff; }

/* 数据表格 */
/* 全局统一：单元格内容保持一行不换行，整表按内容自然宽度撑开，
   超出容器时由外层包裹层(.table-container / .tech-card-body / 内联 overflow-x:auto)横向滑动。 */
.data-table { width: 100%; min-width: max-content; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 10px 12px;
  background: rgba(59,130,246,0.08);
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(59,130,246,0.08);
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ============================================================
   全局修复：弹窗/抽屉内「单据明细」表格，窄容器下杜绝列内容重叠
   正常情况下表格按内容自然撑开（min-width:max-content），由外层横向滚动，
   每列内容完整可读；同时允许长文本断行，作为旧浏览器 / 固定布局等无法
   横向滚动场景的兜底，绝不允许相邻列文字叠压。
   ============================================================ */
.modal .data-table,
.modal-overlay .data-table,
#mesDetailDrawer .data-table {
  min-width: max-content;
}
.modal .data-table th,
.modal-overlay .data-table th,
#mesDetailDrawer .data-table th,
.modal .data-table td,
.modal-overlay .data-table td,
#mesDetailDrawer .data-table td {
  /* 兜底：允许长词断行，防止窄窗叠压。不强制 white-space（去掉 !important），
     以便新版 detail-drawer 内联短列 nowrap（数字/编码/合同号）正常生效；
     未设内联 white-space 的单元格浏览器默认即 normal，可正常换行。 */
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* 弹窗/抽屉内明细表格的外层容器确保可横向滚动（含未显式包裹的情况） */
.modal .modal-body,
#mesDetailDrawer #ddBody {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(59,130,246,0.05); }
/* 操作列按钮始终横向排成一行，不允许折行竖排；按钮本身不被压缩，列超宽时随整表横向滑动 */
.data-table .actions { display: flex; gap: 6px; flex-wrap: nowrap; white-space: nowrap; align-items: center; }
.data-table .actions .btn,
.data-table .table-td-actions .btn { flex: 0 0 auto; }
/* 表格横向滚动容器（通用CRUD / 卡片正文统一可横滑，兼容触屏惯性滚动） */
.table-container,
.tech-card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* v3.3.4 数据多时表格区固定在视口高度内双向自滚，横向滚动条无需翻到整页最底；表头吸顶 */
.tech-card-body > div[style*="overflow-x"] {
  max-height: calc(100vh - 286px);
  overflow: auto !important;
  border-radius: 8px;
}
.tech-card-body:has(> table.data-table) {
  max-height: calc(100vh - 286px);
  overflow: auto;
}
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #101a30;
}
/* 深色底下滚动条清晰可见、便于拖动 */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
*::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.45); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.72); background-clip: content-box; }
* { scrollbar-color: rgba(148,163,184,0.55) rgba(255,255,255,0.03); scrollbar-width: thin; }

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.tag-blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.tag-cyan { background: rgba(6,182,212,0.15); color: #22d3ee; }
.tag-green { background: rgba(16,185,129,0.15); color: #34d399; }
.tag-yellow { background: rgba(245,158,11,0.15); color: #fbbf24; }
.tag-red { background: rgba(239,68,68,0.15); color: #f87171; }
.tag-purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
.tag-orange { background: rgba(249,115,22,0.15); color: #fb923c; }
.tag-gray { background: rgba(107,114,128,0.18); color: #c3c9d4; }

/* 分页 */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.pagination button {
  min-width: 30px; height: 30px;
  padding: 0 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) { border-color: var(--accent-blue); color: #fff; }
.pagination button.active { background: var(--gradient-primary); border: none; color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination span { font-size: 12px; color: var(--text-muted); }

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(59,130,246,0.2);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(0.95);} to {opacity:1; transform:scale(1);} }
.modal-lg { width: 760px; }
.modal-xl { width: 1080px; max-width: 96vw; }
.modal-sm { width: 400px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(59,130,246,0.1), transparent);
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close {
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--accent-red); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 表单 */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-group input[readonly] { background: rgba(0,0,0,0.15); color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 60px; }

/* 图表柱状 */
.chart-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chart-bar-label { width: 80px; font-size: 12px; text-align: right; color: var(--text-muted); flex-shrink: 0; }
.chart-bar-track { flex: 1; height: 22px; background: rgba(0,0,0,0.3); border-radius: 4px; overflow: hidden; position: relative; }
.chart-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s;
  display: flex;
  align-items: center;
  padding-left: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.chart-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.chart-bar-value { width: 50px; font-size: 12px; font-weight: 600; color: var(--text-primary); flex-shrink: 0; }

/* 空状态 */
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); }
.empty-state svg { margin-bottom: 12px; opacity: 0.4; }

/* Toast */
.toast {
  position: fixed;
  top: 20px; right: 20px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: var(--accent-green); }
.toast.error { border-color: var(--accent-red); }

/* 双栏布局 */
.dashboard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dashboard-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* 权限表格 */
.perm-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.perm-table th, .perm-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: center; }
.perm-table th { background: rgba(59,130,246,0.08); color: var(--accent-cyan); font-weight: 600; }
.perm-table td:first-child { text-align: left; }
.perm-table input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent-blue); }

/* IGX链接按钮 */
.igx-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 4px;
  color: #a78bfa;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.igx-link:hover { background: rgba(139,92,246,0.25); }

/* 响应式 */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-row, .dashboard-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar .sidebar-logo span, .sidebar .nav-label, .sidebar .nav-group-title, .sidebar .sidebar-footer { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 12px; }
  .main-content { margin-left: 64px; }
  .stat-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal { width: 95%; }
}


/* ===== 授权页面 ===== */
.license-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0a0e1a 100%);
  padding: 20px;
}

.license-box {
  width: 100%;
  max-width: 520px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(245, 158, 11, 0.1);
  backdrop-filter: blur(10px);
}

.license-header {
  text-align: center;
  margin-bottom: 30px;
}

.license-header h2 {
  color: #e5e7eb;
  font-size: 24px;
  margin: 16px 0 8px;
  font-weight: 600;
}

.license-header p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

.license-status {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.status-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-item:last-child {
  border-bottom: none;
}

.status-label {
  color: #9ca3af;
  font-size: 14px;
  min-width: 100px;
}

.status-value {
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  word-break: break-all;
}

.license-form .form-group {
  margin-bottom: 16px;
}

.license-form label {
  display: block;
  color: #d1d5db;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.license-form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 14px;
  transition: all 0.3s;
}

.license-form input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
}

.license-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.license-footer p {
  color: #aab2c0;
  font-size: 13px;
  line-height: 1.6;
}



/* ===== 一级图标栏 + 二级菜单列表栏布局 ===== */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 一级图标栏 */
.sidebar-icon-bar {
  width: 88px;
  min-width: 88px;
  background: linear-gradient(180deg, #0a0e1a 0%, #0f172a 50%, #0a0e1a 100%);
  border-right: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  z-index: 100;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-icon-bar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.icon-bar-logo {
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.3s;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.icon-bar-logo:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

.icon-bar-nav {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px;
}

.icon-bar-nav::-webkit-scrollbar {
  width: 0;
}

.icon-bar-item {
  width: 76px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  color: #b0b8c6;
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 4px;
}

.icon-bar-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #c8ceda;
  border-color: rgba(59, 130, 246, 0.2);
}

.icon-bar-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.15));
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.12), inset 0 0 16px rgba(59, 130, 246, 0.05);
}

.icon-bar-item.active::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 28px;
  background: linear-gradient(180deg, #3b82f6, #6366f1);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.icon-bar-item .icon-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-bar-item .icon-label {
  font-size: 11px;
  color: currentColor;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
  font-weight: 500;
}

.icon-bar-item .icon-tooltip {
  display: none;
}

.icon-bar-footer {
  font-size: 9px;
  color: #9aa3b2;
  margin-top: 8px;
  letter-spacing: 0.5px;
  text-align: center;
}

/* 二级菜单列表栏 */
.sidebar-menu-bar {
  width: 220px !important;
  min-width: 220px !important;
  background: linear-gradient(180deg, #111827 0%, #1e293b 100%) !important;
  border-right: 1px solid rgba(59, 130, 246, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.3s ease !important;
  z-index: 99 !important;
}

.sidebar-menu-bar.collapsed {
  width: 40px !important;
  min-width: 40px !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(59, 130, 246, 0.15) !important;
}

.sidebar-menu-bar.collapsed .menu-bar-header {
  padding: 16px 8px;
  justify-content: center;
}

.sidebar-menu-bar.collapsed .menu-bar-title {
  display: none;
}

.sidebar-menu-bar.collapsed .menu-bar-nav,
.sidebar-menu-bar.collapsed .menu-bar-footer {
  display: none;
}

.menu-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.menu-bar-title {
  font-size: 15px;
  font-weight: bold;
  color: #e2e8f0;
}

.menu-collapse-btn {
  background: none;
  border: none;
  color: #c8ceda;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.menu-collapse-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #e2e8f0;
}

.menu-bar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.menu-bar-nav::-webkit-scrollbar {
  width: 4px;
}

.menu-bar-nav::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 2px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #c8ceda;
  font-size: 13px;
  margin-bottom: 2px;
}

.menu-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #e2e8f0;
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
  color: #60a5fa;
  border-left: 3px solid #3b82f6;
  padding-left: 9px;
}

.menu-item .menu-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 二级菜单内部分组标题（基础档案/计划/执行/监控），不可点击 */
.menu-section-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 12px 6px;
  margin: 6px 4px 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #7dd3fc;
  cursor: default;
  user-select: none;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transition: color 0.2s ease;
}
/* 左侧青蓝渐变竖条（分区标识，与菜单项图标左缘对齐） */
.menu-section-label::before {
  content: '';
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #38bdf8, #3b82f6);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  flex-shrink: 0;
}
.menu-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.45), rgba(59, 130, 246, 0.04));
}
.menu-section-label:first-child {
  padding-top: 8px;
  margin-top: 2px;
}
/* 浅色主题：沉稳深蓝，不使用发光 */
html[data-theme="light"] .menu-section-label {
  color: #1d4ed8;
  letter-spacing: 1.2px;
  text-shadow: none;
}
html[data-theme="light"] .menu-section-label::before {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.3);
}
html[data-theme="light"] .menu-section-label::after {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.32), rgba(37, 99, 235, 0.02));
}

.menu-bar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  font-size: 11px;
  color: #b0b8c6;
  text-align: center;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  font-size: 13px;
}

.breadcrumb-item {
  color: #c8ceda;
  cursor: pointer;
  transition: color 0.2s;
}

.breadcrumb-item:hover {
  color: #60a5fa;
}

.breadcrumb-separator {
  color: #9aa3b2;
}

/* 侧边栏隐藏状态 */
.app-layout.sidebar-hidden .sidebar-icon-bar {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  border-right: none !important;
  opacity: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.app-layout.sidebar-hidden .sidebar-menu-bar {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  border-right: none !important;
  opacity: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* 侧边栏隐藏时，主内容区域占据整个页面宽度 */
.app-layout.sidebar-hidden .main-content {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-width: 0 !important;
}

/* 主内容区域调整 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}



/* ===== 系统设置页面 ===== */
.settings-page {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.settings-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.settings-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.settings-actions {
  display: flex;
  gap: 10px;
}

.settings-layout {
  display: flex;
  gap: 16px;
  height: calc(100% - 80px);
}

/* 左侧设置菜单 */
.settings-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  overflow-y: auto;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.settings-menu-item:hover {
  background: var(--bg-hover);
}

.settings-menu-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.settings-menu-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #60a5fa;
  flex-shrink: 0;
}

.settings-menu-item.active .settings-menu-icon {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
}

.settings-menu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.settings-menu-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 中间设置内容 */
.settings-content {
  flex: 1;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px;
}

.settings-panel {
  max-width: 800px;
}

.settings-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.settings-panel-badge {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}

.settings-panel-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
}

.settings-panel-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: auto;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-form-input {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}

.settings-form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-logo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-logo-preview {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* 导航中心设置 */
.settings-nav-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.settings-nav-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 3px solid #3b82f6;
}

.settings-nav-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.settings-nav-tip-icon {
  color: #3b82f6;
}

.settings-menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-menu-group {
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.settings-menu-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.08);
  border-bottom: 1px solid var(--border);
}

.settings-menu-group-icon {
  font-size: 18px;
}

.settings-menu-group-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-menu-group-count {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 10px;
}

.settings-menu-group-header .settings-switch {
  margin-left: auto;
}

.settings-menu-items {
  padding: 8px;
}

.settings-menu-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.settings-menu-item-row:hover {
  background: var(--bg-hover);
}

.settings-menu-item-drag {
  color: var(--text-secondary);
  cursor: grab;
  font-size: 14px;
}

.settings-menu-item-icon {
  font-size: 16px;
}

.settings-menu-item-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
}

/* 开关组件 */
.settings-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #374151;
  transition: 0.3s;
  border-radius: 22px;
}

.settings-switch-slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.settings-switch input:checked + .settings-switch-slider {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.settings-switch input:checked + .settings-switch-slider:before {
  transform: translateX(18px);
}

/* 主题设置 */
.settings-theme-colors {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-theme-color {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.settings-theme-color:hover {
  transform: scale(1.1);
}

.settings-theme-color.active {
  border-color: white;
  box-shadow: 0 0 0 2px #3b82f6;
}

.settings-density-options,
.settings-radius-options {
  display: flex;
  gap: 8px;
}

.settings-density-btn,
.settings-radius-btn {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-density-btn:hover,
.settings-radius-btn:hover {
  background: var(--bg-hover);
}

.settings-density-btn.active,
.settings-radius-btn.active {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-color: transparent;
  color: white;
}

.settings-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
}

.settings-data-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-system-info {
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.settings-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.settings-info-row:last-child {
  border-bottom: none;
}

.settings-info-row span:first-child {
  color: var(--text-secondary);
}

.settings-info-row span:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* 右侧预览 */
.settings-preview {
  width: 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.settings-preview-section {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
}

.settings-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-preview-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, #3b82f6, #6366f1);
  border-radius: 2px;
}

.settings-browser-preview {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 8px;
}

.settings-browser-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-primary);
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  color: var(--text-primary);
}

.settings-browser-favicon {
  flex-shrink: 0;
}

.settings-browser-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-browser-close {
  color: var(--text-secondary);
  cursor: pointer;
}

.settings-logo-sidebar-preview {
  background: linear-gradient(180deg, #0f172a, #1e293b);
  border-radius: 8px;
  overflow: hidden;
}

.settings-logo-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.settings-logo-sidebar-text {
  flex: 1;
  min-width: 0;
}

.settings-logo-sidebar-title {
  font-size: 13px;
  font-weight: bold;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-logo-sidebar-sub {
  font-size: 10px;
  color: #c8ceda;
}

.settings-logo-sidebar-menu {
  padding: 8px;
}

.settings-logo-sidebar-item {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #c8ceda;
  margin-bottom: 2px;
}

.settings-logo-sidebar-item.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.settings-theme-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-theme-cards {
  display: flex;
  gap: 8px;
}

.settings-theme-card {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 10px;
  border-left: 3px solid #3b82f6;
}

.settings-theme-card.warning {
  border-left-color: #f59e0b;
}

.settings-theme-card-value {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.settings-theme-card-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.settings-theme-card-trend {
  font-size: 10px;
  color: var(--text-secondary);
}

.settings-theme-card-trend.up {
  color: #10b981;
}

.settings-theme-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-tag {
  padding: 3px 8px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-radius: 4px;
  font-size: 11px;
}

.settings-tag.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}



/* 系统设置页面 - 内容区域占满宽度 */
.settings-content-full {
  flex: 1;
  max-width: none;
}



/* 系统设置页面 - 确保内容区域可滚动 */
.settings-content {
  overflow-y: auto !important;
  max-height: calc(100vh - 200px);
}

.settings-menu-list {
  max-height: none !important;
}



/* 顶部栏时间显示 */
.current-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 16px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.time-date {
  font-size: 12px;
  color: #c8ceda;
  margin-bottom: 2px;
}

.time-clock {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

/* 确保顶部栏右侧元素水平排列 */
.topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
}

.user-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.user-info:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-detail {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-detail .name {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.user-detail .dept {
  font-size: 11px;
  color: #c8ceda;
}



/* ===== 科技感登录页面 ===== */
.login-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #0f1e3d 50%, #0a1628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 9999;
}

/* 背景科技线条 */
.login-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.login-bg-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(59, 130, 246, 0.05) 49%, rgba(59, 130, 246, 0.05) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(59, 130, 246, 0.05) 49%, rgba(59, 130, 246, 0.05) 51%, transparent 52%);
  background-size: 100px 100px;
}

/* 左侧区域 */
.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  z-index: 1;
}

/* 科技插画 */
.tech-illustration {
  position: relative;
  width: 400px;
  height: 350px;
  margin-bottom: 40px;
}

.tech-cloud {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 6s ease-in-out infinite;
}

.tech-cube {
  position: absolute;
  animation: float 5s ease-in-out infinite;
}

.cube-1 {
  top: 80px;
  right: 40px;
  animation-delay: 1s;
}

.cube-2 {
  top: 140px;
  left: 30px;
  animation-delay: 2s;
}

.tech-chart {
  position: absolute;
  top: 60px;
  left: 60px;
  animation: float 7s ease-in-out infinite;
  animation-delay: 0.5s;
}

.tech-platform {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.tech-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 10px #60a5fa, 0 0 20px #3b82f6;
  animation: pulse 2s ease-in-out infinite;
}

.dot-1 {
  top: 100px;
  right: 100px;
  animation-delay: 0s;
}

.dot-2 {
  top: 180px;
  left: 80px;
  animation-delay: 0.7s;
}

.dot-3 {
  bottom: 80px;
  right: 60px;
  animation-delay: 1.4s;
}

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

.tech-cube, .tech-chart {
  animation-name: floatCube;
}

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

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

/* 系统标题 */
.login-system-title {
  text-align: center;
}

.login-system-title h1 {
  font-size: 36px;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.login-system-title p {
  font-size: 16px;
  color: #c8ceda;
  letter-spacing: 4px;
}

/* 右侧区域 */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  z-index: 1;
}

/* 科技感登录框 */
.login-box-tech {
  position: relative;
  width: 420px;
  padding: 2px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(99, 102, 241, 0.3), rgba(59, 130, 246, 0.6));
  box-shadow: 
    0 0 30px rgba(59, 130, 246, 0.3),
    0 0 60px rgba(59, 130, 246, 0.15),
    inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.login-box-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #6366f1, #3b82f6);
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.login-box-content {
  background: rgba(15, 30, 61, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 40px 36px;
}

/* 欢迎标题 */
.login-welcome {
  text-align: center;
  margin-bottom: 32px;
}

.login-welcome h2 {
  font-size: 28px;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.login-welcome p {
  font-size: 14px;
  color: #b0b8c6;
  letter-spacing: 3px;
  text-transform: lowercase;
}

/* 输入框 */
.form-input-group {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  transition: all 0.3s;
}

.form-input-group:focus-within {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 15px rgba(59, 130, 246, 0.2);
}

.form-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #60a5fa;
  flex-shrink: 0;
}

.form-input-group input {
  flex: 1;
  height: 48px;
  background: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-size: 15px;
  padding-right: 12px;
}

.form-input-group input::placeholder {
  color: #b0b8c6;
}

/* 验证码 */
.captcha-group .captcha-img {
  width: 100px;
  height: 36px;
  margin-right: 6px;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.8);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

/* 登录选项 */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #c8ceda;
  font-size: 13px;
}

.remember-me input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.forgot-password {
  color: #60a5fa;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-password:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* 登录按钮 */
.login-btn-tech {
  position: relative;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #3b82f6 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.login-btn-tech:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.3);
}

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

.login-btn-tech .btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.login-btn-tech:hover .btn-glow {
  left: 100%;
}

/* 响应式 */
@media (max-width: 900px) {
  .login-left {
    display: none;
  }
  
  .login-box-tech {
    width: 90%;
    max-width: 420px;
  }
}



/* ===== 登录页面科技感增强 - 透视效果 ===== */
.login-page {
  perspective: 1500px;
  perspective-origin: 50% 50%;
}

/* 登录框3D透视效果 */
.login-box-tech {
  transform: rotateY(-5deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.login-box-tech:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

/* 登录框内容层 */
.login-box-content {
  transform: translateZ(10px);
  position: relative;
}

/* 登录框发光边框层 */
.login-box-tech::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.8) 0%, 
    rgba(99, 102, 241, 0.4) 25%,
    rgba(59, 130, 246, 0.2) 50%,
    rgba(99, 102, 241, 0.4) 75%,
    rgba(59, 130, 246, 0.8) 100%);
  z-index: -1;
  animation: borderFlow 4s linear infinite;
}

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

/* 左侧插画3D透视效果 */
.tech-illustration {
  transform: rotateY(8deg) rotateX(-3deg);
  transform-style: preserve-3d;
  animation: illustrationFloat 8s ease-in-out infinite;
}

@keyframes illustrationFloat {
  0%, 100% { transform: rotateY(8deg) rotateX(-3deg) translateY(0); }
  50% { transform: rotateY(5deg) rotateX(-1deg) translateY(-10px); }
}

/* 云朵3D效果 */
.tech-cloud {
  transform: translateZ(30px);
  filter: drop-shadow(0 10px 20px rgba(59, 130, 246, 0.3));
}

/* 立方体3D效果 */
.cube-1 {
  transform: translateZ(50px) rotateY(15deg);
  filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.4));
}

.cube-2 {
  transform: translateZ(20px) rotateY(-20deg);
  filter: drop-shadow(0 6px 12px rgba(59, 130, 246, 0.3));
}

/* 图表3D效果 */
.tech-chart {
  transform: translateZ(40px) rotateY(-10deg);
  filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.3));
}

/* 底座平台3D效果 */
.tech-platform {
  transform: translateZ(10px);
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.2));
}

/* 背景动态网格 */
.login-bg-lines {
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 50px 50px, 50px 50px; }
}

/* 背景斜向线条动态效果 */
.login-bg-lines::before {
  animation: diagonalMove 15s linear infinite;
}

@keyframes diagonalMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 100px 100px, -100px 100px; }
}

/* 输入框聚焦时的3D效果 */
.form-input-group:focus-within {
  transform: translateZ(5px);
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.1), 
    0 0 20px rgba(59, 130, 246, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 登录按钮3D效果 */
.login-btn-tech {
  transform: translateZ(15px);
  transform-style: preserve-3d;
}

.login-btn-tech:hover {
  transform: translateZ(20px) translateY(-2px);
}

.login-btn-tech:active {
  transform: translateZ(10px) translateY(0);
}

/* 系统标题3D效果 */
.login-system-title {
  transform: translateZ(20px);
  text-shadow: 
    0 0 20px rgba(59, 130, 246, 0.5),
    0 0 40px rgba(59, 130, 246, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-system-title h1 {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 浮动小球3D发光效果 */
.tech-dot {
  transform: translateZ(60px);
}

.dot-1 { transform: translateZ(80px); }
.dot-2 { transform: translateZ(40px); }
.dot-3 { transform: translateZ(70px); }

/* 粒子效果背景 */
.login-page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  animation: particleFloat 10s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-10px); }
}

/* 响应式 - 小屏幕取消3D效果 */
@media (max-width: 900px) {
  .login-box-tech,
  .tech-illustration {
    transform: none;
    animation: none;
  }
}



/* ===== 赛博朋克风格登录页面 ===== */
.login-page {
  background: radial-gradient(ellipse at center, #0a1628 0%, #050a14 100%);
  overflow: hidden;
}

/* 星空背景 */
.starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, rgba(0, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(0, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 50px 160px, rgba(0, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(0, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(0, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(0, 255, 255, 0.5), transparent);
  background-size: 200px 200px;
  animation: starMove 50s linear infinite;
}

.starfield2 {
  background-size: 300px 300px;
  animation-duration: 80s;
  animation-direction: reverse;
  opacity: 0.5;
}

@keyframes starMove {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}

/* 顶部系统标题 */
.login-header {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.login-system-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.login-system-name {
  font-size: 20px;
  font-weight: bold;
  color: #e0f7fa;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.login-system-version {
  padding: 4px 10px;
  background: rgba(0, 255, 255, 0.15);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 12px;
  font-size: 12px;
  color: #00ffff;
  font-weight: 600;
}

/* 中央登录区域 */
.login-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 5;
}

/* 左侧环形扫描区域 */
.login-scan-area {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 255, 0.3);
}

.scan-ring-outer {
  width: 300px;
  height: 300px;
  border-color: rgba(0, 255, 255, 0.2);
  animation: ringRotate 20s linear infinite;
  border-style: dashed;
}

.scan-ring-middle {
  width: 240px;
  height: 240px;
  border-color: rgba(0, 255, 255, 0.4);
  animation: ringRotate 15s linear infinite reverse;
}

.scan-ring-inner {
  width: 180px;
  height: 180px;
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.3),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ringPulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
  }
  50% { 
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5), inset 0 0 30px rgba(0, 255, 255, 0.2);
  }
}

.scan-face {
  position: relative;
  z-index: 2;
  opacity: 0.8;
}

.scan-line {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  box-shadow: 0 0 10px #00ffff, 0 0 20px rgba(0, 255, 255, 0.5);
  animation: scanMove 3s ease-in-out infinite;
  z-index: 3;
}

@keyframes scanMove {
  0%, 100% { top: 20%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { top: 80%; }
}

/* 扫描框四角 */
.scan-corners {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: #00ffff;
  border-style: solid;
}

.corner-tl {
  top: 10px;
  left: 10px;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
}

.corner-tr {
  top: 10px;
  right: 10px;
  border-width: 3px 3px 0 0;
  border-radius: 0 4px 0 0;
}

.corner-bl {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 4px;
}

.corner-br {
  bottom: 10px;
  right: 10px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 4px 0;
}

/* 右侧登录表单 */
.login-form-tech {
  position: relative;
  width: 360px;
  padding: 40px 32px;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.15),
    inset 0 0 30px rgba(0, 255, 255, 0.05);
}

/* 表单切角 */
.form-corner-tl,
.form-corner-tr,
.form-corner-bl,
.form-corner-br {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #00ffff;
  border-style: solid;
}

.form-corner-tl {
  top: -2px;
  left: -2px;
  border-width: 3px 0 0 3px;
}

.form-corner-tr {
  top: -2px;
  right: -2px;
  border-width: 3px 3px 0 0;
}

.form-corner-bl {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 3px 3px;
}

.form-corner-br {
  bottom: -2px;
  right: -2px;
  border-width: 0 3px 3px 0;
}

/* 表单输入行 */
.form-input-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.3s;
}

.form-input-row:focus-within {
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  background: rgba(0, 255, 255, 0.08);
}

.form-input-row .form-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #00ffff;
  flex-shrink: 0;
}

.form-input-row input {
  flex: 1;
  height: 44px;
  background: transparent;
  border: none;
  outline: none;
  color: #e0f7fa;
  font-size: 14px;
  padding-right: 12px;
}

.form-input-row input::placeholder {
  color: rgba(0, 255, 255, 0.4);
}

/* 验证码行 */
.captcha-row .captcha-display {
  width: 90px;
  height: 34px;
  margin-right: 6px;
  border-radius: 4px;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.3);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.captcha-row .captcha-display:hover {
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.captcha-row .captcha-display svg {
  width: 100%;
  height: 100%;
}

/* 表单选项 */
.form-options {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(0, 255, 255, 0.7);
  font-size: 13px;
}

.checkbox-label input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #00ffff;
  cursor: pointer;
}

/* 登录按钮 */
.login-btn-cyber {
  position: relative;
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 200, 255, 0.3) 100%);
  border: 1px solid rgba(0, 255, 255, 0.6);
  border-radius: 4px;
  color: #00ffff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  box-shadow: 
    0 0 15px rgba(0, 255, 255, 0.2),
    inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.login-btn-cyber:hover {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.4) 0%, rgba(0, 200, 255, 0.5) 100%);
  box-shadow: 
    0 0 25px rgba(0, 255, 255, 0.4),
    inset 0 0 20px rgba(0, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.btn-scan-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.login-btn-cyber:hover .btn-scan-line {
  left: 100%;
}

/* 底部信息 */
.login-footer {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.footer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 4px;
  color: #00ffff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.footer-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(0, 255, 255, 0.5);
  font-size: 12px;
}

/* 右上角关闭按钮 */
.login-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  color: #00ffff;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 20;
}

.login-close-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transform: rotate(90deg);
}

/* 响应式 */
@media (max-width: 900px) {
  .login-scan-area {
    display: none;
  }
  
  .login-center {
    gap: 0;
  }
  
  .login-form-tech {
    width: 90%;
    max-width: 360px;
  }
}



/* ===== 登录页面 - 项目风格统一 ===== */
.login-page {
  background: linear-gradient(135deg, #0a1628 0%, #0f1e3d 50%, #0a1628 100%);
}

/* 背景菱形网格 */
.login-bg-lines {
  background-image: 
    linear-gradient(45deg, rgba(59, 130, 246, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(59, 130, 246, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(59, 130, 246, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(59, 130, 246, 0.05) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

.login-bg-lines::before {
  background: none;
}

/* 登录框 - 项目风格统一 */
.login-box-tech {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(15, 30, 61, 0.8) 100%);
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 16px;
  box-shadow: 
    0 0 30px rgba(59, 130, 246, 0.3),
    0 0 60px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: none;
  animation: none;
}

.login-box-tech:hover {
  transform: none;
}

.login-box-tech::before {
  display: none;
}

.login-box-glow {
  display: none;
}

.login-box-content {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 14px;
  padding: 40px 36px;
  transform: none;
}

/* 欢迎标题 */
.login-welcome h2 {
  color: #e2e8f0;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.login-welcome p {
  color: #b0b8c6;
}

/* 输入框 - 用户名和密码白色背景 */
.form-input-group {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  margin-bottom: 16px;
}

.form-input-group:focus-within {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 15px rgba(59, 130, 246, 0.3);
  background: #ffffff;
}

.form-input-group .form-input-icon {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 8px 0 0 8px;
}

.form-input-group input {
  color: #1e293b;
  font-size: 15px;
  height: 44px;
}

.form-input-group input::placeholder {
  color: #c8ceda;
}

/* 验证码输入框 - 深色背景 */
.captcha-group {
  background: rgba(15, 30, 61, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.captcha-group:focus-within {
  background: rgba(15, 30, 61, 0.9);
}

.captcha-group .form-input-icon {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
}

.captcha-group input {
  color: #e2e8f0;
}

.captcha-group input::placeholder {
  color: rgba(96, 165, 250, 0.6);
}

.captcha-group .captcha-img {
  width: 90px;
  height: 34px;
  margin-right: 6px;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.8);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 登录选项 */
.login-options {
  margin-bottom: 20px;
}

.remember-me {
  color: #c8ceda;
  font-size: 13px;
}

.remember-me input[type='checkbox'] {
  accent-color: #3b82f6;
}

/* 登录按钮 - 蓝色渐变 */
.login-btn-tech {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #3b82f6 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  height: 46px;
  box-shadow: 
    0 4px 15px rgba(59, 130, 246, 0.4),
    0 0 20px rgba(59, 130, 246, 0.2);
  transform: none;
  text-shadow: none;
}

.login-btn-tech:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #60a5fa 100%);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.6),
    0 0 30px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

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

.login-btn-tech .btn-glow {
  display: none;
}

/* 系统标题 */
.login-system-title h1 {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.login-system-title p {
  color: #c8ceda;
}

/* 左侧3D插画 - 移除3D透视效果 */
.tech-illustration {
  transform: none;
  animation: none;
}

.tech-cloud,
.tech-cube,
.tech-chart,
.tech-platform,
.tech-dot {
  transform: none;
  filter: none;
}



/* ===== 登录页面 - 授权激活风格统一 ===== */
.login-page {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.login-bg-lines {
  display: none;
}

/* 登录框 - 授权激活风格 */
.login-box-tech {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 12px;
  box-shadow: 
    0 0 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 420px;
  padding: 0;
}

.login-box-tech::before {
  display: none;
}

.login-box-glow {
  display: none;
}

.login-box-content {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 12px;
  padding: 40px 36px;
  transform: none;
}

/* 欢迎标题 - 授权激活风格 */
.login-welcome {
  text-align: center;
  margin-bottom: 32px;
}

.login-welcome h2 {
  font-size: 24px;
  font-weight: bold;
  color: #f1f5f9;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-shadow: none;
}

.login-welcome p {
  font-size: 13px;
  color: #b0b8c6;
  letter-spacing: 2px;
}

/* 输入框 - 授权激活风格（深色背景 + 金色边框） */
.form-input-group {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 6px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.form-input-group:focus-within {
  border-color: rgba(234, 179, 8, 0.8);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1), 0 0 15px rgba(234, 179, 8, 0.2);
  background: rgba(30, 41, 59, 0.95);
}

.form-input-group .form-input-icon {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 6px 0 0 6px;
}

.form-input-group input {
  color: #f1f5f9;
  font-size: 14px;
  height: 44px;
}

.form-input-group input::placeholder {
  color: #b0b8c6;
}

/* 验证码输入框 - 同样风格 */
.captcha-group {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.captcha-group:focus-within {
  background: rgba(30, 41, 59, 0.95);
}

.captcha-group .form-input-icon {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.captcha-group input {
  color: #f1f5f9;
}

.captcha-group input::placeholder {
  color: #b0b8c6;
}

.captcha-group .captcha-img {
  width: 90px;
  height: 34px;
  margin-right: 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

/* 登录选项 */
.login-options {
  margin-bottom: 20px;
}

.remember-me {
  color: #c8ceda;
  font-size: 13px;
}

.remember-me input[type='checkbox'] {
  accent-color: #eab308;
}

/* 登录按钮 - 蓝紫渐变 */
.login-btn-tech {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  height: 44px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transform: none;
  text-shadow: none;
  transition: all 0.3s;
}

.login-btn-tech:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

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

.login-btn-tech .btn-glow {
  display: none;
}

/* 左侧区域 - 隐藏，保持简洁 */
.login-left {
  display: none;
}

.login-right {
  flex: none;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}



/* ===== 最初的简单登录页面 ===== */
.login-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 9999;
}

.login-box-simple {
  width: 400px;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-logo-simple {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo-simple svg {
  margin-bottom: 16px;
}

.login-logo-simple h1 {
  font-size: 24px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 8px;
}

.login-logo-simple p {
  font-size: 14px;
  color: #b0b8c6;
}

.login-form-simple {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-simple {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-simple label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.form-group-simple input {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.3s;
}

.form-group-simple input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group-simple input::placeholder {
  color: #c8ceda;
}

.login-btn-simple {
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-btn-simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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



/* ===== 传统登录页面样式（恢复） ===== */
.login-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 9999;
}

.login-box {
  width: 400px;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo svg {
  margin-bottom: 16px;
}

.login-logo h1 {
  font-size: 24px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 8px;
}

.login-logo p {
  font-size: 14px;
  color: #b0b8c6;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form .form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.login-form .form-group input {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.3s;
}

.login-form .form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form .form-group input::placeholder {
  color: #c8ceda;
}

.login-btn {
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

/* ===== 传统侧边栏样式（恢复） ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  width: 240px;
  min-width: 240px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: white;
  display: flex;
  flex-direction: column;
  transition: width 0.3s, min-width 0.3s;
  position: relative;
  z-index: 100;
}

.sidebar.collapsed {
  width: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-logo {
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 16px;
  font-weight: bold;
  color: #e2e8f0;
}

.logo-subtitle {
  font-size: 11px;
  color: #c8ceda;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.sidebar-nav .menu-group {
  margin-bottom: 4px;
}

.sidebar-nav .menu-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #c8ceda;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-nav .menu-group-title:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav .menu-group-title .menu-icon {
  font-size: 16px;
}

.sidebar-nav .menu-group-title .menu-arrow {
  margin-left: auto;
  transition: transform 0.2s;
}

.sidebar-nav .menu-group.expanded .menu-arrow {
  transform: rotate(90deg);
}

.sidebar-nav .menu-items {
  display: none;
  padding-left: 8px;
}

.sidebar-nav .menu-group.expanded .menu-items {
  display: block;
}

.sidebar-nav .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 32px;
  color: #c8ceda;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 6px;
  margin: 2px 8px;
}

.sidebar-nav .menu-item:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav .menu-item.active {
  color: white;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
  border-left: 3px solid #3b82f6;
}

.sidebar-nav .menu-item .menu-item-icon {
  font-size: 16px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #b0b8c6;
  text-align: center;
}

.collapse-btn {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 24px;
  height: 48px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  border-radius: 0 6px 6px 0;
  color: #c8ceda;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  z-index: 101;
}

.collapse-btn:hover {
  background: #334155;
  color: white;
}

/* ===== 传统顶部栏样式（恢复） ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.menu-toggle-btn:hover {
  background: #e2e8f0;
}

.topbar-left h1 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.user-info:hover {
  background: #f1f5f9;
}

.user-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.user-detail {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-detail .name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.user-detail .dept {
  font-size: 11px;
  color: #b0b8c6;
}

.logout-btn {
  padding: 8px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #fee2e2;
}

.page-content {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}



/* ===== 科技感登录页面样式（恢复） ===== */
.login-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #0f1e3d 50%, #0a1628 100%);
  display: flex;
  overflow: hidden;
  z-index: 9999;
}

.login-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.login-bg-lines::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* 左侧3D科技插画区域 */
.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px;
}

.tech-illustration {
  position: relative;
  width: 400px;
  height: 400px;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(-5deg); }
  50% { transform: translateY(-20px) rotateY(5deg); }
}

.tech-cloud {
  position: absolute;
  top: 20px;
  left: 50px;
  animation: cloudFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(59, 130, 246, 0.3));
}

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

.tech-cube {
  position: absolute;
  filter: drop-shadow(0 10px 20px rgba(59, 130, 246, 0.4));
}

.cube-1 {
  top: 80px;
  right: 80px;
  animation: cubeRotate1 8s linear infinite;
}

.cube-2 {
  top: 150px;
  left: 30px;
  animation: cubeRotate2 6s linear infinite reverse;
}

@keyframes cubeRotate1 {
  0% { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes cubeRotate2 {
  0% { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(-360deg) rotateY(-360deg); }
}

.tech-chart {
  position: absolute;
  bottom: 100px;
  left: 60px;
  animation: chartGrow 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(59, 130, 246, 0.3));
}

@keyframes chartGrow {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.1); }
}

.tech-platform {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: platformGlow 4s ease-in-out infinite;
}

@keyframes platformGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8)); }
}

.tech-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 10px #60a5fa, 0 0 20px #3b82f6;
}

.dot-1 {
  top: 100px;
  left: 200px;
  animation: dotPulse 2s ease-in-out infinite;
}

.dot-2 {
  top: 200px;
  right: 100px;
  animation: dotPulse 2s ease-in-out infinite 0.5s;
}

.dot-3 {
  bottom: 150px;
  right: 150px;
  animation: dotPulse 2s ease-in-out infinite 1s;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.login-system-title {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.login-system-title h1 {
  font-size: 36px;
  font-weight: bold;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  letter-spacing: 2px;
}

.login-system-title p {
  font-size: 16px;
  color: #c8ceda;
  letter-spacing: 4px;
}

/* 右侧登录框 */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-box-tech {
  position: relative;
  width: 420px;
  background: rgba(15, 30, 61, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 0 40px rgba(59, 130, 246, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: boxAppear 0.6s ease-out;
}

@keyframes boxAppear {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-box-tech::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
  animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.login-box-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: glowRotate 10s linear infinite;
  pointer-events: none;
}

@keyframes glowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.login-box-content {
  position: relative;
  z-index: 1;
  padding: 40px 36px;
}

.login-welcome {
  text-align: center;
  margin-bottom: 32px;
}

.login-welcome h2 {
  font-size: 28px;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.login-welcome p {
  font-size: 13px;
  color: #b0b8c6;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* 输入框 */
.form-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  margin-bottom: 16px;
  transition: all 0.3s;
  overflow: hidden;
}

.form-input-group:focus-within {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.form-input-group .form-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  flex-shrink: 0;
}

.form-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 16px;
  color: #e2e8f0;
  font-size: 14px;
  height: 48px;
}

.form-input-group input::placeholder {
  color: #b0b8c6;
}

.captcha-group .captcha-img {
  width: 100px;
  height: 38px;
  margin-right: 6px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.8);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 登录选项 */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8ceda;
  font-size: 13px;
  cursor: pointer;
}

.remember-me input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* 登录按钮 */
.login-btn-tech {
  position: relative;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 8px;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.login-btn-tech:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

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

.login-btn-tech .btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.login-btn-tech:hover .btn-glow {
  left: 100%;
}



/* ===== 时间显示样式 ===== */
.current-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--border);
}

.current-time .time-date {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.2;
}

.current-time .time-clock {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}



/* ===== 一级图标栏 + 二级菜单列表栏布局 ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.app-layout.sidebar-hidden .sidebar-icon-bar,
.app-layout.sidebar-hidden .sidebar-menu-bar {
  width: 0;
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  border: none;
  pointer-events: none;
}

/* 一级图标栏 */
.sidebar-icon-bar {
  width: 80px;
  min-width: 80px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  position: relative;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.icon-bar-logo {
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.3s;
}

.icon-bar-logo:hover {
  background: rgba(255, 255, 255, 0.05);
}

.icon-bar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 0 8px;
}

.icon-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  color: #c8ceda;
}

.icon-bar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.icon-bar-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.2));
  color: white;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.icon-bar-item .icon-svg {
  width: 24px;
  height: 24px;
}

.icon-bar-item .icon-label {
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
  max-width: 64px;
  word-break: break-all;
}

.icon-bar-footer {
  padding: 8px;
  font-size: 10px;
  color: #b0b8c6;
  text-align: center;
}

/* 二级菜单列表栏 */
.sidebar-menu-bar {
  width: 200px;
  min-width: 200px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: white;
  display: flex;
  flex-direction: column;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  position: relative;
  z-index: 99;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-menu-bar.collapsed {
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.menu-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-bar-header span {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.menu-collapse-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 4px;
  color: #c8ceda;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.menu-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.menu-bar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.menu-bar-nav .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: #c8ceda;
  font-size: 13px;
  margin-bottom: 2px;
}

.menu-bar-nav .menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.menu-bar-nav .menu-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
  color: white;
  border-left: 3px solid #3b82f6;
  padding-left: 9px;
}

.menu-bar-nav .menu-item .menu-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.menu-bar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: #b0b8c6;
  text-align: center;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.breadcrumb-item {
  font-size: 13px;
  color: #b0b8c6;
  cursor: pointer;
  transition: color 0.2s;
}

.breadcrumb-item:hover {
  color: #3b82f6;
}

.breadcrumb-separator {
  font-size: 12px;
  color: #c8ceda;
}

/* 主内容区域 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f1f5f9;
  overflow: hidden;
  transition: flex-basis 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content .page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}



/* ===== 主内容区域深色背景修复 ===== */
.main-content {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

.main-content .page-content {
  background: transparent !important;
}

/* 顶部栏深色主题 */
.topbar {
  background: rgba(15, 23, 42, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
}

.topbar-left h1 {
  color: #e2e8f0 !important;
}

/* 面包屑导航深色主题 */
.breadcrumb-item {
  color: #c8ceda !important;
}

.breadcrumb-item:hover {
  color: #60a5fa !important;
}

.breadcrumb-separator {
  color: #b0b8c6 !important;
}

/* 菜单切换按钮深色主题 */
.menu-toggle-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

.menu-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}

/* 时间显示深色主题 */
.current-time .time-date {
  color: #c8ceda !important;
}

.current-time .time-clock {
  color: #e2e8f0 !important;
}

/* 用户信息深色主题 */
.user-detail .name {
  color: #e2e8f0 !important;
}

.user-detail .dept {
  color: #c8ceda !important;
}

/* 退出按钮深色主题 */
.logout-btn {
  background: transparent !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #f87171 !important;
}



/* ===== 验证码图片完整显示修复 ===== */
.captcha-group .captcha-img {
  width: 120px !important;
  height: 40px !important;
  min-width: 120px !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  background: #0f172a !important;
  border: 1px solid rgba(96, 165, 250, 0.3) !important;
  border-radius: 6px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.captcha-group .captcha-img img,
.captcha-group .captcha-img svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  object-fit: contain !important;
}

/* 确保验证码输入框完整显示 */
.captcha-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

.captcha-group input {
  flex: 1 !important;
  min-width: 0 !important;
}



/* ===== 左侧菜单区域整体化修复 ===== */
.sidebar-icon-bar {
  border-right: none !important;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

.sidebar-menu-bar {
  border-right: none !important;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 确保左侧菜单区域作为一个整体 */
.app-layout {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

/* 主内容区域与左侧菜单区域的分隔 */
.main-content {
  border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 折叠时整个左侧菜单区域一起隐藏 */
.app-layout.sidebar-hidden .sidebar-icon-bar,
.app-layout.sidebar-hidden .sidebar-menu-bar {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  padding: 0 !important;
  border: none !important;
  pointer-events: none !important;
}

/* 二级菜单列表栏折叠时只显示40px宽度的展开按钮 */
.sidebar-menu-bar.collapsed {
  width: 40px !important;
  min-width: 40px !important;
  overflow: visible !important;
  position: relative !important;
}

.sidebar-menu-bar.collapsed .menu-bar-header span,
.sidebar-menu-bar.collapsed .menu-bar-nav,
.sidebar-menu-bar.collapsed .menu-bar-footer {
  display: none !important;
}

.sidebar-menu-bar.collapsed .menu-bar-header {
  justify-content: center !important;
  padding: 16px 8px !important;
}

.sidebar-menu-bar.collapsed .menu-collapse-btn {
  width: 28px !important;
  height: 28px !important;
}



/* ===== 登录页面布局协调修复 ===== */
.login-page {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 40px !important;
  padding: 40px !important;
}

.login-left {
  flex: 1 !important;
  max-width: 50% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding: 20px !important;
}

.login-right {
  flex: 0 0 auto !important;
  width: 420px !important;
  max-width: 45% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding: 20px !important;
}

/* 调整3D插画区域大小和位置 */
.tech-illustration {
  width: 350px !important;
  height: 350px !important;
  position: relative !important;
  margin: 0 auto !important;
}

/* 调整系统标题位置 */
.login-system-title {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  text-align: center !important;
  margin-top: 20px !important;
}

.login-system-title h1 {
  font-size: 32px !important;
  margin-bottom: 10px !important;
}

.login-system-title p {
  font-size: 14px !important;
  letter-spacing: 3px !important;
}

/* 调整登录框大小 */
.login-box-tech {
  width: 100% !important;
  max-width: 400px !important;
}

.login-box-content {
  padding: 32px 28px !important;
}

/* 响应式布局 */
@media (max-width: 1024px) {
  .login-page {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px !important;
  }
  
  .login-left {
    max-width: 100% !important;
    order: 1;
  }
  
  .login-right {
    max-width: 100% !important;
    width: 100% !important;
    order: 2;
  }
  
  .tech-illustration {
    width: 280px !important;
    height: 280px !important;
  }
  
  .login-system-title h1 {
    font-size: 28px !important;
  }
}

@media (max-width: 640px) {
  .tech-illustration {
    width: 220px !important;
    height: 220px !important;
  }
  
  .login-system-title h1 {
    font-size: 24px !important;
  }
  
  .login-box-content {
    padding: 24px 20px !important;
  }
}



/* ===== 登录页面左侧3D插画和验证码输入框修复 ===== */
.login-left {
  max-width: 55% !important;
  padding: 40px !important;
}

/* 增大3D插画大小 */
.tech-illustration {
  width: 420px !important;
  height: 420px !important;
  position: relative !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 确保3D插画内部元素居中 */
.tech-illustration > * {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* 系统标题在3D插画下方，居中显示 */
.login-system-title {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  text-align: center !important;
  margin-top: 30px !important;
  width: 100% !important;
}

.login-system-title h1 {
  font-size: 36px !important;
  margin-bottom: 12px !important;
  white-space: nowrap !important;
}

.login-system-title p {
  font-size: 16px !important;
  letter-spacing: 4px !important;
  white-space: nowrap !important;
}

/* 验证码输入框宽度修复，确保文字完整显示 */
.captcha-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.captcha-group .input-wrapper {
  flex: 1 !important;
  min-width: 0 !important;
  width: auto !important;
}

.captcha-group input {
  width: 100% !important;
  min-width: 0 !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
}

/* 验证码图片大小调整 */
.captcha-group .captcha-img {
  width: 110px !important;
  height: 40px !important;
  min-width: 110px !important;
  min-height: 40px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #0f172a !important;
  border: 1px solid rgba(96, 165, 250, 0.5) !important;
  border-radius: 4px !important;
}

/* 确保验证码SVG可见 */
.captcha-group .captcha-img svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 确保验证码SVG中的文字可见 */
.captcha-group .captcha-img svg text {
  fill: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 确保所有输入框placeholder文字完整显示 */
.login-box-tech input::placeholder {
  font-size: 13px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* 调整登录框宽度，给验证码输入框更多空间 */
.login-box-tech {
  width: 440px !important;
  max-width: 440px !important;
}

.login-box-content {
  padding: 36px 32px !important;
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
  .login-left {
    max-width: 50% !important;
    padding: 30px !important;
  }
  
  .tech-illustration {
    width: 360px !important;
    height: 360px !important;
  }
  
  .login-system-title h1 {
    font-size: 32px !important;
  }
}

@media (max-width: 1024px) {
  .login-left {
    max-width: 100% !important;
    padding: 20px !important;
  }
  
  .tech-illustration {
    width: 300px !important;
    height: 300px !important;
  }
  
  .login-system-title h1 {
    font-size: 28px !important;
  }
  
  .login-box-tech {
    width: 100% !important;
    max-width: 400px !important;
  }
}



/* ===== 修复.hidden类被覆盖的问题 ===== */
.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* 确保登录页面和主应用布局的.hidden类生效 */
#loginPage.hidden,
#appLayout.hidden,
#licensePage.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 确保登录页面没有.hidden类时显示 */
#loginPage:not(.hidden) {
  display: flex !important;
}

/* 确保主应用布局没有.hidden类时显示 */
#appLayout:not(.hidden) {
  display: flex !important;
}



/* ===== 修复toast在深色主题下不可见的问题 ===== */
.toast {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  border: 1px solid rgba(96, 165, 250, 0.5) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(96, 165, 250, 0.2) !important;
  z-index: 99999 !important;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.3) !important;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.3) !important;
}

.toast.warning {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.3) !important;
}



/* ===== 科技感登录页面左侧插画样式 ===== */
.tech-illustration {
  width: 420px !important;
  height: 420px !important;
  position: relative !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 旋转光环 */
.tech-ring {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tech-ring svg {
  display: block !important;
}

.ring-outer {
  animation: rotateClockwise 20s linear infinite !important;
}

.ring-middle {
  animation: rotateCounterClockwise 15s linear infinite !important;
}

.ring-inner {
  animation: rotateClockwise 10s linear infinite !important;
}

@keyframes rotateClockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* 中心核心 */
.tech-core {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10 !important;
  animation: corePulse 3s ease-in-out infinite !important;
}

@keyframes corePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5)); }
  50% { transform: translate(-50%, -50%) scale(1.05); filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.7)); }
}

/* 浮动数据节点 */
.tech-node {
  position: absolute !important;
  z-index: 5 !important;
}

.node-1 {
  top: 10% !important;
  right: 15% !important;
  animation: floatNode1 6s ease-in-out infinite !important;
}

.node-2 {
  bottom: 20% !important;
  left: 10% !important;
  animation: floatNode2 7s ease-in-out infinite !important;
}

.node-3 {
  top: 25% !important;
  left: 5% !important;
  animation: floatNode3 5s ease-in-out infinite !important;
}

@keyframes floatNode1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes floatNode2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-5deg); }
}

@keyframes floatNode3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

/* 数据流粒子 */
.tech-particle {
  position: absolute !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #60a5fa !important;
  box-shadow: 0 0 10px #60a5fa, 0 0 20px #3b82f6 !important;
  z-index: 3 !important;
}

.particle-1 {
  top: 20% !important;
  left: 30% !important;
  animation: particleMove1 8s linear infinite !important;
}

.particle-2 {
  top: 60% !important;
  right: 25% !important;
  animation: particleMove2 10s linear infinite !important;
}

.particle-3 {
  bottom: 30% !important;
  left: 40% !important;
  animation: particleMove3 7s linear infinite !important;
}

.particle-4 {
  top: 40% !important;
  right: 15% !important;
  animation: particleMove4 9s linear infinite !important;
}

.particle-5 {
  bottom: 15% !important;
  right: 35% !important;
  animation: particleMove5 6s linear infinite !important;
}

@keyframes particleMove1 {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(100px, -80px); opacity: 0; }
}

@keyframes particleMove2 {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(-120px, 60px); opacity: 0; }
}

@keyframes particleMove3 {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(80px, -100px); opacity: 0; }
}

@keyframes particleMove4 {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(-90px, -70px); opacity: 0; }
}

@keyframes particleMove5 {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(110px, 50px); opacity: 0; }
}

/* 网格背景 */
.tech-grid {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px) !important;
  background-size: 30px 30px !important;
  border-radius: 50% !important;
  opacity: 0.5 !important;
  z-index: 1 !important;
}

/* 系统标题样式优化 */
.login-system-title {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  text-align: center !important;
  margin-top: 30px !important;
  width: 100% !important;
  z-index: 20 !important;
}

.login-system-title h1 {
  font-size: 36px !important;
  margin-bottom: 12px !important;
  white-space: nowrap !important;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.3) !important;
}

.login-system-title p {
  font-size: 16px !important;
  letter-spacing: 4px !important;
  white-space: nowrap !important;
  color: #c8ceda !important;
}



/* ===== 修复侧边栏顶部区域对齐问题 ===== */
/* 一级图标栏LOGO区域 */
.icon-bar-logo {
  height: 56px !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.icon-bar-logo .company-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 二级菜单列表栏顶部区域 */
.sidebar-menu-bar .menu-bar-header {
  height: 56px !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-sizing: border-box !important;
}

.sidebar-menu-bar .menu-bar-header span {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
}

.sidebar-menu-bar .menu-collapse-btn {
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  color: #c8ceda !important;
  cursor: pointer !important;
  font-size: 14px !important;
  line-height: 1 !important;
  transition: all 0.2s !important;
  flex-shrink: 0 !important;
}

.sidebar-menu-bar .menu-collapse-btn:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #60a5fa !important;
}

/* 确保一级图标栏和二级菜单列表栏顶部对齐 */
.sidebar-icon-bar,
.sidebar-menu-bar {
  display: flex !important;
  flex-direction: column !important;
}

.sidebar-icon-bar {
  width: 70px !important;
  min-width: 70px !important;
}

.sidebar-menu-bar {
  width: 200px !important;
  min-width: 200px !important;
}



/* ===== 强制修复二级菜单顶部区域对齐问题 ===== */
#sidebarMenuBar .menu-bar-header {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 20px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#sidebarMenuBar .menu-bar-header #menuBarTitle {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  flex: 1 !important;
}

#sidebarMenuBar .menu-bar-header #menuCollapseBtn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

#sidebarMenuBar .menu-bar-header #menuCollapseBtn:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
  color: #60a5fa !important;
  transform: scale(1.05) !important;
}

/* 确保一级图标栏LOGO区域也对齐 */
#sidebarIconBar .icon-bar-logo {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
}

#sidebarIconBar .icon-bar-logo .company-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}



/* ===== 修复二级菜单顶部标题挡住折叠按钮的问题 ===== */
#sidebarMenuBar .menu-bar-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 0 12px 0 16px !important;
  height: 60px !important;
  min-height: 60px !important;
  box-sizing: border-box !important;
}

#sidebarMenuBar .menu-bar-header #menuBarTitle {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 45px) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
}

#sidebarMenuBar .menu-bar-header #menuCollapseBtn {
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  color: #cbd5e1 !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  z-index: 10 !important;
}

#sidebarMenuBar .menu-bar-header #menuCollapseBtn:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
  color: #60a5fa !important;
}



/* ===== 调整二级菜单折叠状态下的顶部区域 ===== */
#sidebarMenuBar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  transition: width 0.3s ease !important;
}

#sidebarMenuBar.collapsed .menu-bar-header {
  padding: 0 !important;
  justify-content: center !important;
  height: 60px !important;
  min-height: 60px !important;
}

#sidebarMenuBar.collapsed .menu-bar-header #menuBarTitle {
  display: none !important;
}

#sidebarMenuBar.collapsed .menu-bar-header #menuCollapseBtn {
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
}

/* 展开状态下的顶部区域 */
#sidebarMenuBar:not(.collapsed) {
  width: 200px !important;
  min-width: 200px !important;
  transition: width 0.3s ease !important;
}

#sidebarMenuBar:not(.collapsed) .menu-bar-header {
  padding: 0 12px 0 16px !important;
  justify-content: space-between !important;
  height: 60px !important;
  min-height: 60px !important;
}

#sidebarMenuBar:not(.collapsed) .menu-bar-header #menuBarTitle {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 45px) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#sidebarMenuBar:not(.collapsed) .menu-bar-header #menuCollapseBtn {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 auto !important;
}

/* 确保侧边栏整体布局正确 */
.sidebar-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  height: 100% !important;
}

#sidebarIconBar {
  width: 70px !important;
  min-width: 70px !important;
  flex: 0 0 auto !important;
  height: 100% !important;
}

#sidebarMenuBar {
  flex: 0 0 auto !important;
  height: 100% !important;
  overflow: hidden !important;
}



/* ===== 修复折叠按钮看不见的问题 ===== */
/* 折叠状态下保留小宽度，确保折叠按钮可见 */
#sidebarMenuBar.collapsed {
  width: 45px !important;
  min-width: 45px !important;
  max-width: 45px !important;
  overflow: visible !important;
}

#sidebarMenuBar.collapsed .menu-bar-header {
  padding: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  height: 60px !important;
  min-height: 60px !important;
  width: 100% !important;
}

#sidebarMenuBar.collapsed .menu-bar-header #menuBarTitle {
  display: none !important;
}

#sidebarMenuBar.collapsed .menu-bar-header #menuCollapseBtn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  border-radius: 6px !important;
  color: #60a5fa !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  position: relative !important;
  z-index: 100 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#sidebarMenuBar.collapsed .menu-bar-header #menuCollapseBtn:hover {
  background: rgba(59, 130, 246, 0.3) !important;
  border-color: rgba(59, 130, 246, 0.8) !important;
  color: #93c5fd !important;
}

/* 折叠状态下隐藏菜单内容，只显示顶部按钮 */
#sidebarMenuBar.collapsed .menu-bar-nav,
#sidebarMenuBar.collapsed .menu-bar-footer {
  display: none !important;
}

/* 展开状态下的样式 */
#sidebarMenuBar:not(.collapsed) {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  overflow: hidden !important;
}

#sidebarMenuBar:not(.collapsed) .menu-bar-nav,
#sidebarMenuBar:not(.collapsed) .menu-bar-footer {
  display: flex !important;
}



/* ===== 修复二级菜单文字垂直排列的问题 ===== */
#sidebarMenuBar .menu-bar-nav {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#sidebarMenuBar .menu-bar-nav .menu-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  color: #c8ceda !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin-bottom: 2px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#sidebarMenuBar .menu-bar-nav .menu-item .menu-icon {
  font-size: 16px !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  text-align: center !important;
}

#sidebarMenuBar .menu-bar-nav .menu-item .menu-text {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

#sidebarMenuBar .menu-bar-nav .menu-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
}

#sidebarMenuBar .menu-bar-nav .menu-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1)) !important;
  color: white !important;
  border-left: 3px solid #3b82f6 !important;
  padding-left: 9px !important;
}

/* 确保二级菜单列表栏宽度足够 */
#sidebarMenuBar:not(.collapsed) {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
}



/* ===== 修复侧边栏顶部边框线对齐问题 ===== */
/* 一级图标栏LOGO区域 */
#sidebarIconBar .icon-bar-logo {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
}

/* 二级菜单列表栏顶部区域 - 展开状态 */
#sidebarMenuBar:not(.collapsed) .menu-bar-header {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 12px 0 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
}

/* 二级菜单列表栏顶部区域 - 折叠状态 */
#sidebarMenuBar.collapsed .menu-bar-header {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* 确保两个栏的顶部区域在同一水平线上 */
#sidebarIconBar,
#sidebarMenuBar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 确保侧边栏整体布局正确 */
.app-layout .sidebar,
.app-layout aside {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 确保顶部边框线颜色和样式一致 */
#sidebarIconBar .icon-bar-logo,
#sidebarMenuBar .menu-bar-header {
  border-bottom-width: 1px !important;
  border-bottom-style: solid !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}



/* ===== 强制修复侧边栏顶部边框线对齐问题 ===== */
#appLayout {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  min-height: 100vh !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

#appLayout #sidebarIconBar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  border-right: none !important;
}

#appLayout #sidebarMenuBar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  border-right: none !important;
  border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 展开状态下的二级菜单宽度 */
#appLayout #sidebarMenuBar:not(.collapsed) {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
}

/* 折叠状态下的二级菜单宽度 */
#appLayout #sidebarMenuBar.collapsed {
  width: 45px !important;
  min-width: 45px !important;
  max-width: 45px !important;
}

/* 一级图标栏LOGO区域 - 强制60px高度 */
#appLayout #sidebarIconBar .icon-bar-logo {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
}

/* 二级菜单顶部区域 - 强制60px高度 */
#appLayout #sidebarMenuBar .menu-bar-header {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
}

/* 展开状态下的顶部区域布局 */
#appLayout #sidebarMenuBar:not(.collapsed) .menu-bar-header {
  justify-content: space-between !important;
  padding: 0 12px 0 16px !important;
}

/* 折叠状态下的顶部区域布局 */
#appLayout #sidebarMenuBar.collapsed .menu-bar-header {
  justify-content: center !important;
  padding: 0 !important;
}

/* 确保两个顶部区域的边框线在同一水平线上 */
#appLayout #sidebarIconBar .icon-bar-logo,
#appLayout #sidebarMenuBar .menu-bar-header {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

/* 确保主内容区域也对齐 */
#appLayout .main-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}



/* ===== 修复二级菜单和顶部栏对齐问题 - 统一高度为68px ===== */
/* 顶部栏高度 */
#appLayout .main-content .topbar {
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 一级图标栏LOGO区域 - 高度改为68px */
#appLayout #sidebarIconBar .icon-bar-logo {
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
}

/* 二级菜单顶部区域 - 高度改为68px */
#appLayout #sidebarMenuBar .menu-bar-header {
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
}

/* 展开状态下的顶部区域布局 */
#appLayout #sidebarMenuBar:not(.collapsed) .menu-bar-header {
  justify-content: space-between !important;
  padding: 0 12px 0 16px !important;
}

/* 折叠状态下的顶部区域布局 */
#appLayout #sidebarMenuBar.collapsed .menu-bar-header {
  justify-content: center !important;
  padding: 0 !important;
}

/* 确保三个区域的底部边框线在同一水平线上 */
#appLayout #sidebarIconBar .icon-bar-logo,
#appLayout #sidebarMenuBar .menu-bar-header,
#appLayout .main-content .topbar {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  vertical-align: top !important;
}

/* 确保主内容区域的顶部栏和侧边栏顶部对齐 */
#appLayout .main-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#appLayout .main-content .topbar {
  flex: 0 0 auto !important;
  width: 100% !important;
}

#appLayout .main-content .page-content {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}



/* ===== 修复顶部栏菜单折叠按钮点不到的问题 ===== */
#appLayout .main-content .topbar {
  position: relative !important;
  z-index: 100 !important;
}

#appLayout .main-content .topbar .topbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  position: relative !important;
  z-index: 101 !important;
}

#appLayout .main-content .topbar .menu-toggle-btn {
  position: relative !important;
  z-index: 1000 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #e2e8f0 !important;
  font-size: 18px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  transition: all 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 40px !important;
  min-height: 40px !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#appLayout .main-content .topbar .menu-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #60a5fa !important;
}

#appLayout .main-content .topbar .menu-toggle-btn:active {
  transform: scale(0.95) !important;
}

/* 确保按钮不会被侧边栏挡住 */
#appLayout #sidebarMenuBar {
  position: relative !important;
  z-index: 50 !important;
}

#appLayout #sidebarIconBar {
  position: relative !important;
  z-index: 50 !important;
}

/* 确保顶部栏在侧边栏之上 */
#appLayout .main-content {
  position: relative !important;
  z-index: 60 !important;
}

/* 确保按钮有足够的点击区域 */
#appLayout .main-content .topbar .menu-toggle-btn::before {
  content: '' !important;
  position: absolute !important;
  top: -5px !important;
  left: -5px !important;
  right: -5px !important;
  bottom: -5px !important;
  z-index: -1 !important;
}

/* ===== 强制修复菜单折叠按钮点不到的问题 ===== */
#appLayout .main-content .topbar .menu-toggle-btn {
  position: relative !important;
  z-index: 99999 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
  border-radius: 8px !important;
  color: #60a5fa !important;
  font-size: 18px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

#appLayout .main-content .topbar .menu-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.4) !important;
  border-color: rgba(59, 130, 246, 0.8) !important;
  color: #93c5fd !important;
}

#appLayout .main-content .topbar .menu-toggle-btn:active {
  transform: scale(0.95) !important;
}

/* 确保所有按钮都可以点击 */
button, 
[role="button"], 
[onclick] {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* 确保顶部栏的按钮不会被遮挡 */
#appLayout .main-content .topbar {
  overflow: visible !important;
  position: relative !important;
  z-index: 1000 !important;
}

#appLayout .main-content .topbar .topbar-left {
  overflow: visible !important;
  position: relative !important;
  z-index: 1001 !important;
}

/* 确保侧边栏不会覆盖顶部栏的按钮 */
#appLayout #sidebarIconBar,
#appLayout #sidebarMenuBar {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 50 !important;
}

/* 确保主内容区域在侧边栏之上 */
#appLayout .main-content {
  position: relative !important;
  z-index: 60 !important;
}

/* ===== 侧边栏隐藏后主内容自适应（最高优先级强制修复） ===== */
#appLayout.sidebar-hidden #sidebarIconBar,
#appLayout.sidebar-hidden #sidebarMenuBar {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  padding: 0 !important;
  border: none !important;
  pointer-events: none !important;
}

#appLayout.sidebar-hidden .main-content {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#appLayout.sidebar-hidden {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}



/* ============================================================
   浅色主题（简洁浅色 / 金蝶式白底）
   触发：<html data-theme="light">，由 ThemeManager 切换
   深色科技风为默认（data-theme="dark" 或无属性）
   ============================================================ */
[data-theme="light"] {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: rgba(59,130,246,0.08);
  --border: #e4e7ed;
  --border-glow: rgba(59,130,246,0.4);
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --shadow-glow: 0 2px 12px rgba(0,0,0,0.08);
  --primary: #2563eb;
  --border-color: #e4e7ed;
  --btn-ghost-bg: #ffffff;
  --btn-ghost-bg-hover: #f3f4f6;
  --btn-ghost-border: #d1d5db;
}

/* 页面背景与网格 */
[data-theme="light"] body { background: var(--bg-primary); color: var(--text-primary); }
[data-theme="light"] body::before {
  background-image: linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
}

/* 侧栏 */
[data-theme="light"] .sidebar { background: #ffffff; border-right: 1px solid var(--border); }
[data-theme="light"] .sidebar .nav-item { color: var(--text-secondary); }
[data-theme="light"] .sidebar .nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
[data-theme="light"] .sidebar .nav-item.active { background: linear-gradient(135deg,#3b82f6,#6366f1); color: #fff; }
[data-theme="light"] .logo-subtitle { color: var(--text-muted); }
[data-theme="light"] .sidebar-section-title { color: var(--text-muted); }

/* 顶栏 */
[data-theme="light"] .topbar { background: rgba(255,255,255,0.92); border-bottom: 1px solid var(--border); }
[data-theme="light"] .topbar h1 { background: linear-gradient(135deg,#3b82f6,#6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .user-detail .name { color: var(--text-primary); }
[data-theme="light"] .user-detail .dept { color: var(--text-muted); }
[data-theme="light"] .logout-btn { color: var(--text-secondary); }

/* 卡片 */
[data-theme="light"] .tech-card { background: #ffffff; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
[data-theme="light"] .tech-card-header { border-bottom: 1px solid var(--border); color: var(--text-primary); }
[data-theme="light"] .tech-card-body { color: var(--text-primary); }

/* 统计卡片 */
[data-theme="light"] .stat-card { background: #ffffff; border: 1px solid var(--border); }
[data-theme="light"] .stat-label { color: var(--text-muted); }
[data-theme="light"] .stat-value { color: var(--text-primary); }
[data-theme="light"] .stat-trend { color: var(--text-muted); }

/* 输入框 */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #ffffff !important;
  color: var(--text-primary) !important;
  border: 1px solid #d1d5db !important;
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: #9ca3af !important; }
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15) !important;
}
[data-theme="light"] .input-sm { background: #ffffff; color: var(--text-primary); border: 1px solid #d1d5db; }

/* 表格 */
[data-theme="light"] .data-table th { background: #f1f5f9; color: #2563eb; border-bottom: 1px solid var(--border); }
[data-theme="light"] .data-table td { color: var(--text-primary); border-bottom: 1px solid #f1f5f9; }
[data-theme="light"] .data-table tbody tr:hover { background: #f8fafc; }
[data-theme="light"] .data-table thead th { background: #f1f5f9; position: sticky; top: 0; z-index: 5; }

/* 弹窗 */
[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.45); }
[data-theme="light"] .modal-content,
[data-theme="light"] .form-modal-content,
[data-theme="light"] .modal-box {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
[data-theme="light"] .modal-header,
[data-theme="light"] .form-modal-header { border-bottom: 1px solid var(--border); color: var(--text-primary); }
[data-theme="light"] .modal-body,
[data-theme="light"] .form-modal-body { color: var(--text-primary); }
[data-theme="light"] .modal-footer,
[data-theme="light"] .form-modal-footer { border-top: 1px solid var(--border); }

/* 详情抽屉 */
[data-theme="light"] #mesDetailDrawer,
[data-theme="light"] .detail-drawer,
[data-theme="light"] .drawer {
  background: #ffffff;
  border-left: 1px solid var(--border);
  color: var(--text-primary);
}
[data-theme="light"] .drawer-header { border-bottom: 1px solid var(--border); color: var(--text-primary); }

/* 分页 */
[data-theme="light"] .pagination button {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: var(--text-secondary);
}
[data-theme="light"] .pagination button:hover:not(:disabled) { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
[data-theme="light"] .pagination button.active { background: linear-gradient(135deg,#3b82f6,#6366f1); color: #fff; border: none; }
[data-theme="light"] .pagination span { color: var(--text-muted); }

/* 标签（浅色下文字加深，避免浅色文字贴白底看不清） */
[data-theme="light"] .tag-gray { background: #f3f4f6; color: #6b7280; }
[data-theme="light"] .tag-blue { background: #dbeafe; color: #1d4ed8; }
[data-theme="light"] .tag-cyan { background: #cffafe; color: #0e7490; }
[data-theme="light"] .tag-green { background: #dcfce7; color: #15803d; }
[data-theme="light"] .tag-yellow { background: #fef3c7; color: #b45309; }
[data-theme="light"] .tag-red { background: #fee2e2; color: #b91c1c; }
[data-theme="light"] .tag-purple { background: #ede9fe; color: #6d28d9; }
[data-theme="light"] .tag-orange { background: #ffedd5; color: #c2410c; }

/* 默认按钮（原 rgba(0,0,0,.3) 深底在浅色下不可读，改为白底灰边） */
[data-theme="light"] .btn { background: #ffffff; border: 1px solid #d1d5db; color: var(--text-secondary); }
[data-theme="light"] .btn:hover { background: #eff6ff; border-color: #3b82f6; color: #3b82f6; }
/* 实心彩色按钮恢复蓝/绿/橙底白字（优先级高于上面的 .btn 覆盖） */
[data-theme="light"] .btn-primary { background: linear-gradient(135deg,#3b82f6,#8b5cf6); border: none; color: #fff; }
[data-theme="light"] .btn-success { background: linear-gradient(135deg,#10b981,#059669); border: none; color: #fff; }
[data-theme="light"] .btn-warning { background: linear-gradient(135deg,#f59e0b,#d97706); border: none; color: #fff; }
[data-theme="light"] .btn-danger { background: #ffffff; border: 1px solid rgba(239,68,68,0.45); color: #dc2626; }
[data-theme="light"] .btn-danger:hover { background: #fef2f2; border-color: #dc2626; color: #b91c1c; }

/* 次要按钮 */
[data-theme="light"] .btn-secondary { background: #ffffff; border: 1px solid #d1d5db; color: var(--text-secondary); }
[data-theme="light"] .btn-secondary:hover { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }

/* 登录页 */
[data-theme="light"] .login-page { background: linear-gradient(135deg,#eef2f7,#dbe4f0); }
[data-theme="light"] .login-box-tech {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
[data-theme="light"] .login-box-glow { background: radial-gradient(circle at 30% 20%, rgba(59,130,246,0.12), transparent 60%); }
[data-theme="light"] .login-welcome h2 { color: var(--text-primary); }
[data-theme="light"] .login-welcome p { color: var(--text-muted); }
[data-theme="light"] .login-form-tech label { color: var(--text-secondary); }
[data-theme="light"] .login-system-title h1 { color: var(--text-primary); }
[data-theme="light"] .login-system-title p { color: var(--text-muted); }
[data-theme="light"] .login-left { background: linear-gradient(135deg,#3b82f6,#6366f1); }
[data-theme="light"] .login-options label { color: var(--text-secondary); }

/* 空状态 / 工具栏 */
[data-theme="light"] .empty-state { color: var(--text-muted); }
[data-theme="light"] .toolbar { background: transparent; color: var(--text-primary); }

/* 系统设置面板 */
[data-theme="light"] .settings-panel { background: #ffffff; border: 1px solid var(--border); }
[data-theme="light"] .settings-panel-title { color: var(--text-primary); }
[data-theme="light"] .settings-panel-desc { color: var(--text-muted); }
[data-theme="light"] .settings-form-label { color: var(--text-secondary); }
[data-theme="light"] .settings-title { color: var(--text-primary); }
[data-theme="light"] .settings-subtitle { color: var(--text-muted); }

/* 面包屑 / 页面标题 */
[data-theme="light"] .page-header h2,
[data-theme="light"] .page-title { color: var(--text-primary); }
[data-theme="light"] .breadcrumb,
[data-theme="light"] .breadcrumb a { color: var(--text-secondary); }

/* 滚动条浅色 */
[data-theme="light"] *::-webkit-scrollbar-track { background: #f1f5f9; }
[data-theme="light"] *::-webkit-scrollbar-thumb { background: #cbd5e1; border: 2px solid transparent; background-clip: content-box; }
[data-theme="light"] *::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: content-box; }
[data-theme="light"] * { scrollbar-color: #cbd5e1 #f1f5f9; }

/* 系统设置-界面模式选择器 */
.settings-theme-mode { cursor:pointer; border:2px solid var(--border); border-radius:10px; padding:12px; flex:1; min-width:130px; text-align:center; transition:all .2s; background:transparent; }
.settings-theme-mode:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.settings-theme-mode.active { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,.2); }
.settings-theme-mode .mode-preview { height:48px; border-radius:6px; margin-bottom:8px; }
.settings-theme-mode .mode-name { font-weight:600; color:var(--text-primary); font-size:14px; }
.settings-theme-mode .mode-desc { font-size:12px; color:var(--text-muted); margin-top:2px; }
/* 登录页主题切换按钮 */
.login-theme-toggle { position:fixed; top:20px; right:20px; z-index:100; width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.25); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s; backdrop-filter:blur(4px); }
.login-theme-toggle:hover { background:rgba(255,255,255,0.2); transform:scale(1.08); }
[data-theme="light"] .login-theme-toggle { background:rgba(0,0,0,0.05); border-color:rgba(0,0,0,0.12); color:#374151; }
[data-theme="light"] .login-theme-toggle:hover { background:rgba(0,0,0,0.1); }
/* ============================================================
   浅色主题强化覆盖（压过原深色 !important 修复规则）
   ============================================================ */
/* 布局与主内容区 */
html[data-theme="light"] .app-layout { background: #f0f2f5 !important; }
html[data-theme="light"] .main-content { background: #f0f2f5 !important; border-left: 1px solid #e4e7ed !important; }
html[data-theme="light"] .main-content .page-content { background: transparent !important; }

/* 侧栏双栏 */
html[data-theme="light"] .sidebar-icon-bar { background: #ffffff !important; border-right: 1px solid #e4e7ed !important; }
html[data-theme="light"] .sidebar-menu-bar { background: #ffffff !important; border-left: 1px solid #e4e7ed !important; }
/* 容器本身 color 必须覆盖，否则分组标题等继承白色的文字在白底上不可见 */
html[data-theme="light"] .sidebar-icon-bar,
html[data-theme="light"] .sidebar-menu-bar { color: #1f2937 !important; }
html[data-theme="light"] .icon-bar-nav,
html[data-theme="light"] .menu-bar-nav { color: #1f2937 !important; }
html[data-theme="light"] .menu-bar-header { color: #1f2937 !important; }
html[data-theme="light"] .menu-bar-header span { color: #6b7280 !important; }
html[data-theme="light"] .menu-item { color: #4b5563 !important; }
html[data-theme="light"] .menu-item span { color: inherit !important; }
html[data-theme="light"] .menu-icon { color: #4b5563 !important; }
html[data-theme="light"] .menu-item svg path,
html[data-theme="light"] .menu-item svg rect,
html[data-theme="light"] .menu-item svg circle,
html[data-theme="light"] .menu-item svg polyline,
html[data-theme="light"] .menu-item svg line { stroke: currentColor !important; fill: none; }
html[data-theme="light"] .menu-item:hover { background: rgba(59,130,246,0.08) !important; color: #2563eb !important; }
html[data-theme="light"] .menu-item.active { background: linear-gradient(135deg,#3b82f6,#6366f1) !important; color: #ffffff !important; }
html[data-theme="light"] .menu-item.active span,
html[data-theme="light"] .menu-item.active .menu-icon { color: #ffffff !important; }
html[data-theme="light"] .menu-collapse-btn { background: #f3f4f6 !important; border: 1px solid #e4e7ed !important; color: #4b5563 !important; }
html[data-theme="light"] .icon-bar-logo .logo-subtitle { color: #6b7280 !important; }

/* 顶栏 */
html[data-theme="light"] .topbar { background: rgba(255,255,255,0.95) !important; border-bottom: 1px solid #e4e7ed !important; }
html[data-theme="light"] .topbar-left h1 { color: #1f2937 !important; }
html[data-theme="light"] .breadcrumb-item { color: #4b5563 !important; }
html[data-theme="light"] .breadcrumb-item:hover { color: #2563eb !important; }
html[data-theme="light"] .breadcrumb-separator { color: #9ca3af !important; }
html[data-theme="light"] .menu-toggle-btn { background: #f3f4f6 !important; border: 1px solid #e4e7ed !important; color: #4b5563 !important; }
html[data-theme="light"] .menu-toggle-btn:hover { background: rgba(59,130,246,0.1) !important; border-color: #3b82f6 !important; }

/* 输入框容器 */
html[data-theme="light"] .form-input-group { background: #ffffff !important; border: 1px solid #d1d5db !important; }
html[data-theme="light"] .form-input-group:focus-within { background: #ffffff !important; border-color: #3b82f6 !important; box-shadow: 0 0 0 3px rgba(59,130,246,0.12) !important; }
html[data-theme="light"] select option { background: #ffffff !important; color: #1f2937 !important; }

/* 卡片/面板补强 */
html[data-theme="light"] .module-desc-card,
html[data-theme="light"] .settings-page { background: transparent !important; color: #1f2937 !important; }

/* toast 浅色化 */
html[data-theme="light"] .toast { background: #ffffff !important; border: 1px solid #e4e7ed !important; color: #1f2937 !important; box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important; }

/* ============================================================
   浅色主题全新登录页（按参考稿设计）
   布局：左侧深蓝径向渐变品牌区（左上 logo + 中下 2×2 功能卡片）
        右侧纯白区 + 360px 居中弥散阴影登录卡片
   ============================================================ */
/* 新增元素默认（深色主题）隐藏 */
.login-brand-header,
.login-feature-grid,
.login-footer-copyright { display: none; }

/* 页面整体：纯白 */
html[data-theme="light"] .login-page { background: #ffffff !important; }
html[data-theme="light"] .login-bg-lines { display: none !important; }

/* 布局：左侧固定 55%，右侧（login-right）flex:1 撑满剩余屏幕，无两侧留白 */
html[data-theme="light"] .login-page { justify-content: flex-start !important; gap: 0 !important; padding: 0 !important; }
html[data-theme="light"] .login-left {
  width: 55% !important;
  max-width: 55% !important;
  flex-shrink: 0 !important;
  background: radial-gradient(ellipse at 38% 35%, #1e3a5f 0%, #14234a 55%, #0b1120 100%) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  padding: 44px 52px !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}
/* 左上品牌头部 */
html[data-theme="light"] .login-brand-header { display: flex !important; align-items: center; gap: 14px; position: relative; z-index: 2; }
html[data-theme="light"] .login-brand-header .brand-logo-mark {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
html[data-theme="light"] .login-brand-header .brand-name { color: #ffffff; font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
html[data-theme="light"] .login-brand-header .brand-sub { color: rgba(255, 255, 255, 0.55); font-size: 12px; margin-top: 3px; }

/* 隐藏深色主题的插画与居中标题 */
html[data-theme="light"] .tech-illustration,
html[data-theme="light"] .login-system-title { display: none !important; }

/* 中下 2×2 功能卡片 */
html[data-theme="light"] .login-feature-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
  margin-bottom: 48px;
  position: relative; z-index: 2;
}
html[data-theme="light"] .login-feature-grid .feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
html[data-theme="light"] .login-feature-grid .feature-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
html[data-theme="light"] .login-feature-grid .feature-title { color: #ffffff; font-size: 14px; font-weight: 600; }
html[data-theme="light"] .login-feature-grid .feature-desc { color: rgba(255, 255, 255, 0.5); font-size: 12px; margin-top: 4px; }

/* 右侧：纯白背景，表单直接融入（无卡片边框/阴影/白边） */
html[data-theme="light"] .login-right { background: #ffffff !important; padding: 40px 48px !important; }
html[data-theme="light"] .login-box-tech {
  width: 380px !important;
  max-width: 380px !important;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}
html[data-theme="light"] .login-box-glow { display: none !important; }
html[data-theme="light"] .login-box-content {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 36px 0 !important;
  transform: none !important;
}
/* 标题：左对齐、深灰 + 灰副标题 */
html[data-theme="light"] .login-welcome { text-align: left !important; margin-bottom: 28px !important; }
html[data-theme="light"] .login-welcome h2 { color: #111827 !important; font-size: 22px !important; text-shadow: none !important; letter-spacing: 1px !important; }
html[data-theme="light"] .login-welcome p { color: #6b7280 !important; font-size: 13px !important; }

/* 输入框：白底 + 浅灰边框，聚焦品牌蓝 */
html[data-theme="light"] .login-form-tech .form-input-group {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
}
html[data-theme="light"] .login-form-tech .form-input-group:focus-within {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
html[data-theme="light"] .form-input-group .form-input-icon { color: #9ca3af !important; background: transparent !important; }
html[data-theme="light"] .form-input-group input { color: #1f2937 !important; }
html[data-theme="light"] .form-input-group input::placeholder { color: #9ca3af !important; }
/* 浏览器自动填充：统一白底深字（避免淡蓝/淡黄填充块） */
html[data-theme="light"] .form-input-group input:-webkit-autofill,
html[data-theme="light"] .form-input-group input:-webkit-autofill:hover,
html[data-theme="light"] .form-input-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1f2937 !important;
  caret-color: #1f2937 !important;
  transition: background-color 99999s ease-in-out 0s !important;
}
/* 验证码框：与普通输入框统一 */
html[data-theme="light"] .captcha-group { background: #ffffff !important; }
html[data-theme="light"] .captcha-group:focus-within { background: #ffffff !important; border-color: #2563eb !important; }
html[data-theme="light"] .captcha-group .form-input-icon { color: #9ca3af !important; background: transparent !important; }
html[data-theme="light"] .captcha-group input { color: #1f2937 !important; }
html[data-theme="light"] .captcha-group input::placeholder { color: #9ca3af !important; }
/* 验证码图片：容器放大 + SVG 强制自适应（修复 120x40 固定尺寸被 100x36 容器裁切） */
.captcha-group .captcha-img svg { width: 100% !important; height: 100% !important; display: block; }
html[data-theme="light"] .captcha-group .captcha-img {
  width: 116px !important;
  height: 42px !important;
  margin-right: 8px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}
/* 记住密码：左对齐深灰可读 */
html[data-theme="light"] .login-options { display: flex; justify-content: space-between; align-items: center; }
html[data-theme="light"] .remember-me { color: #4b5563 !important; }
html[data-theme="light"] .remember-me input[type='checkbox'] { accent-color: #2563eb !important; }
/* 登录按钮：实色品牌蓝 */
html[data-theme="light"] .login-btn-tech {
  background: #2563eb !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25) !important;
  text-shadow: none !important;
  letter-spacing: 2px !important;
}
html[data-theme="light"] .login-btn-tech:hover { background: #1d4ed8 !important; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35) !important; }
html[data-theme="light"] .login-btn-tech:active { transform: translateY(0) !important; }
/* 卡片底部版权 */
html[data-theme="light"] .login-footer-copyright { display: block !important; text-align: center; color: #9ca3af; font-size: 12px; margin-top: 20px; }

/* 窄屏：隐藏左侧品牌区，右侧占满（对齐 1024px 纵向布局断点） */
@media (max-width: 1024px) {
  html[data-theme="light"] .login-left { display: none !important; }
  html[data-theme="light"] .login-right { padding: 24px !important; }
}

/* ===== KPI 指标说明弹窗：主题变量（深色默认值 + 浅色覆盖） ===== */
:root {
  --kpi-card-bg: rgba(255, 255, 255, 0.03);
  --kpi-card-border: rgba(255, 255, 255, 0.08);
  --kpi-formula-bg: rgba(0, 0, 0, 0.4);
  --kpi-formula-text: #fbbf24;
  --kpi-formula-border: rgba(251, 191, 36, 0.2);
  --kpi-divider: rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] {
  --kpi-card-bg: #f8fafc;
  --kpi-card-border: #e5e7eb;
  --kpi-formula-bg: #fffbeb;
  --kpi-formula-text: #92400e;
  --kpi-formula-border: #fde68a;
  --kpi-divider: #e5e7eb;
}
.kpi-card { transition: all 0.2s ease; }
.kpi-card:hover { background: rgba(59, 130, 246, 0.07) !important; border-color: var(--primary) !important; }
html[data-theme="light"] .kpi-card:hover { background: #eff6ff !important; border-color: #93c5fd !important; }

/* ===== 浅色主题：统一弹窗头部（替代深色橙紫渐变标题栏，CSS !important 覆盖 JS 内联渐变） ===== */
html[data-theme="light"] #customDialogBox .modal-header {
  position: relative !important;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9) !important;
  border-bottom: 1px solid #e5e7eb !important;
}
/* 头部左条按语义着色（data-type 由 showCustomAlert/showCustomPrompt 设置） */
html[data-theme="light"] #customDialogBox .modal-header::before {
  content: '' !important;
  position: absolute !important;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: #3b82f6 !important;
  border-radius: 12px 0 0 12px;
}
html[data-theme="light"] #customDialogBox[data-type="warning"] .modal-header::before { background: #f59e0b !important; }
html[data-theme="light"] #customDialogBox[data-type="error"] .modal-header::before { background: #ef4444 !important; }
html[data-theme="light"] #customDialogBox[data-type="success"] .modal-header::before { background: #10b981 !important; }
html[data-theme="light"] #customDialogTitle { color: #1f2937 !important; background: none !important; }
html[data-theme="light"] #customDialogBox .modal-close { color: #6b7280 !important; }
html[data-theme="light"] #customDialogBox .modal-close:hover { color: #111827 !important; }
/* 弹窗底部确认按钮：实色品牌蓝（替代橙紫渐变） */
html[data-theme="light"] #customDialogFooter .btn-primary { background: #2563eb !important; }
html[data-theme="light"] #customDialogFooter .btn-primary:hover { background: #1d4ed8 !important; }
html[data-theme="light"] #customDialogBox[data-type="warning"] #customDialogFooter .btn-primary { background: #d97706 !important; }
html[data-theme="light"] #customDialogBox[data-type="error"] #customDialogFooter .btn-primary { background: #dc2626 !important; }
html[data-theme="light"] #customDialogBox[data-type="success"] #customDialogFooter .btn-primary { background: #059669 !important; }

/* 授权激活页保持浅色 */
html[data-theme="light"] .license-page,
html[data-theme="light"] .auth-page { background: linear-gradient(135deg,#eef2f7,#dbe4f0) !important; }

/* ===== 浅色主题强化覆盖（第二批：ID级 !important 规则） ===== */
/* 侧栏头部公司名/折叠按钮 */
html[data-theme="light"] #sidebarMenuBar .menu-bar-header { border-bottom-color: #e4e7ed !important; }
html[data-theme="light"] #sidebarMenuBar .menu-bar-header #menuBarTitle,
html[data-theme="light"] #sidebarMenuBar .menu-bar-header span { color: #1f2937 !important; }
html[data-theme="light"] #sidebarMenuBar .menu-bar-header #menuCollapseBtn { background: #f3f4f6 !important; border: 1px solid #e4e7ed !important; color: #4b5563 !important; }
html[data-theme="light"] #sidebarMenuBar .menu-bar-header #menuCollapseBtn:hover { color: #2563eb !important; border-color: #3b82f6 !important; }
html[data-theme="light"] #sidebarMenuBar.collapsed .menu-bar-header { color: #2563eb !important; }

/* 顶栏时间与用户信息 */
html[data-theme="light"] .current-time .time-date { color: #6b7280 !important; }
html[data-theme="light"] .current-time .time-clock { color: #1f2937 !important; }
html[data-theme="light"] .user-detail .name { color: #1f2937 !important; }
html[data-theme="light"] .user-detail .dept { color: #6b7280 !important; }

/* 二级菜单项（5801 行 #sidebarMenuBar ID 规则特异性 120，压过了上方的 class 级浅色覆盖，
   未选中文字仍是深色主题的 #c8ceda 浅灰，在白底上不可读；必须用同 ID 前缀覆盖） */
html[data-theme="light"] #sidebarMenuBar .menu-bar-nav .menu-item { color: #4b5563 !important; }
html[data-theme="light"] #sidebarMenuBar .menu-bar-nav .menu-item:hover { background: rgba(59,130,246,0.08) !important; color: #2563eb !important; }
html[data-theme="light"] #sidebarMenuBar .menu-bar-nav .menu-item.active { background: linear-gradient(135deg,#3b82f6,#6366f1) !important; color: #ffffff !important; border-left-color: #2563eb !important; }
html[data-theme="light"] #sidebarMenuBar .menu-bar-nav .menu-item.active .menu-text,
html[data-theme="light"] #sidebarMenuBar .menu-bar-nav .menu-item.active .menu-icon { color: #ffffff !important; }
html[data-theme="light"] #sidebarMenuBar .menu-bar-footer { color: #6b7280 !important; border-top: 1px solid #e4e7ed !important; }

/* 一级图标栏 */
html[data-theme="light"] .icon-bar-item { color: #4b5563 !important; }
html[data-theme="light"] .icon-bar-item .icon-label { color: #4b5563 !important; }
html[data-theme="light"] .icon-bar-item svg path,
html[data-theme="light"] .icon-bar-item svg rect,
html[data-theme="light"] .icon-bar-item svg circle,
html[data-theme="light"] .icon-bar-item svg line,
html[data-theme="light"] .icon-bar-item svg polyline { stroke: currentColor !important; }
html[data-theme="light"] .icon-bar-item:hover { background: rgba(59,130,246,0.08) !important; color: #2563eb !important; }
html[data-theme="light"] .icon-bar-item.active { background: linear-gradient(135deg,#3b82f6,#6366f1) !important; color: #ffffff !important; }
html[data-theme="light"] .icon-bar-item.active .icon-label,
html[data-theme="light"] .icon-bar-item.active svg * { color: #ffffff !important; stroke: #ffffff !important; }
html[data-theme="light"] .icon-bar-logo { border-bottom: 1px solid #e4e7ed !important; }

/* 退出按钮 */
html[data-theme="light"] [class*="logout"] { color: #dc2626 !important; border-color: #fca5a5 !important; }
html[data-theme="light"] [class*="logout"]:hover { background: #fef2f2 !important; }

/* 详情抽屉关闭按钮：38px 命中区 hover 反馈，深浅主题各自适配 */
#mesDetailDrawer #ddClose:hover { background: rgba(255,255,255,0.12); color: #ffffff; }
html[data-theme="light"] #mesDetailDrawer #ddClose:hover { background: rgba(0,0,0,0.06); color: #111827; }

/* ============================================================
   浅色登录页 v2 —— 仿参考图：整体浅薄荷绿白、左侧浅化、
   右侧白色浮卡、浅灰无边输入框、绿色实心登录按钮（仅浅色，深色不动）
   ============================================================ */
/* 整体页面：极浅薄荷绿白背景 + 居中留白 */
html[data-theme="light"] .login-page {
  background: linear-gradient(135deg,#f1faf5 0%,#e9f5ee 55%,#f3f9f6 100%) !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 56px !important;
  padding: 0 5% !important;
}
/* 左侧：去掉深蓝块，改透明，内容垂直居中 */
html[data-theme="light"] .login-left {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  justify-content: center !important;
  padding: 24px !important;
}
/* 左上品牌：绿色 logo + 深色文字 */
html[data-theme="light"] .login-brand-header .brand-logo-mark {
  background: linear-gradient(135deg,#12b781,#0a9663) !important;
  box-shadow: 0 6px 16px rgba(16,160,110,0.32) !important;
}
html[data-theme="light"] .login-brand-header .brand-name { color:#111827 !important; }
html[data-theme="light"] .login-brand-header .brand-sub { color:#6b7280 !important; }
/* 2×2 功能卡：浅白底 + 浅绿描边 + 深色文字 */
html[data-theme="light"] .login-feature-grid { gap:14px !important; margin-top:34px !important; margin-bottom:0 !important; }
html[data-theme="light"] .login-feature-grid .feature-card {
  background: rgba(255,255,255,0.78) !important;
  border: 1px solid #d8efe5 !important;
  box-shadow: 0 6px 18px rgba(16,120,84,0.06) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
html[data-theme="light"] .login-feature-grid .feature-icon { background:#dcf5ea !important; color:#0a9663 !important; }
html[data-theme="light"] .login-feature-grid .feature-title { color:#1f2937 !important; }
html[data-theme="light"] .login-feature-grid .feature-desc { color:#6b7280 !important; }
/* 右侧：透明承托，让卡片浮在浅背景上 */
html[data-theme="light"] .login-right { background: transparent !important; padding: 24px !important; display:flex !important; align-items:center !important; justify-content:center !important; }
/* 登录卡：纯白浮卡 + 柔和绿调阴影 + 圆角 */
html[data-theme="light"] .login-box-tech {
  width:400px !important; max-width:400px !important;
  background:#ffffff !important;
  border:1px solid #ecf3ef !important;
  border-radius:18px !important;
  box-shadow:0 24px 64px rgba(16,120,84,0.12) !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
}
html[data-theme="light"] .login-box-content { background:#ffffff !important; border-radius:18px !important; padding:38px 36px 30px !important; }
/* 标题居中 + 绿色短下划线 */
html[data-theme="light"] .login-welcome { text-align:center !important; margin-bottom:26px !important; }
html[data-theme="light"] .login-welcome h2 { color:#111827 !important; text-align:center !important; position:relative !important; padding-bottom:12px !important; }
html[data-theme="light"] .login-welcome h2::after {
  content:'' !important; position:absolute !important; left:50% !important; bottom:0 !important;
  transform:translateX(-50%) !important; width:36px !important; height:3px !important; border-radius:2px !important;
  background:#10b981 !important;
}
html[data-theme="light"] .login-welcome p { color:#6b7280 !important; text-align:center !important; }
/* 去掉表单内层深色科技块（用户点名“黑色不要”） */
html[data-theme="light"] .login-form-tech {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  padding: 0 !important; width:100% !important; max-width:none !important;
}
html[data-theme="light"] .login-form-tech [class*="form-corner"] { display:none !important; }
/* 输入框：浅灰无边底，聚焦转白底绿边 */
html[data-theme="light"] .login-form-tech .form-input-group,
html[data-theme="light"] .login-form-tech .captcha-group {
  background:#f4f6f8 !important; border:1px solid transparent !important; border-radius:10px !important;
}
html[data-theme="light"] .login-form-tech .form-input-group:focus-within,
html[data-theme="light"] .login-form-tech .captcha-group:focus-within {
  background:#ffffff !important; border-color:#10b981 !important;
  box-shadow:0 0 0 3px rgba(16,185,129,0.14) !important;
}
/* 记住密码绿色勾选 */
html[data-theme="light"] .remember-me input[type='checkbox'] { accent-color:#10b981 !important; }
/* 登录按钮：实心绿色 */
html[data-theme="light"] .login-btn-tech {
  background:linear-gradient(135deg,#12b781,#0a9663) !important;
  border-radius:10px !important;
  box-shadow:0 8px 18px rgba(16,160,110,0.30) !important;
  text-shadow:none !important; letter-spacing:4px !important;
}
html[data-theme="light"] .login-btn-tech:hover { background:linear-gradient(135deg,#0fa874,#08824f) !important; box-shadow:0 10px 22px rgba(16,160,110,0.38) !important; }
html[data-theme="light"] .login-btn-tech .btn-glow { display:none !important; }
/* 版权 */
html[data-theme="light"] .login-box-tech .login-footer-copyright { color:#9ca3af !important; }

/* ---- 右侧精修：统一高度/间距节奏，更协调 ---- */
html[data-theme="light"] .login-box-tech { width:416px !important; max-width:416px !important; border-radius:20px !important; }
html[data-theme="light"] .login-box-content { padding:42px 40px 30px !important; }
html[data-theme="light"] .login-welcome { margin-bottom:28px !important; }
html[data-theme="light"] .login-form-tech .form-input-group { margin-bottom:18px !important; height:50px !important; border-radius:10px !important; }
html[data-theme="light"] .login-form-tech .form-input-group input { height:50px !important; font-size:14.5px !important; }
html[data-theme="light"] .login-form-tech .form-input-icon { width:46px !important; height:50px !important; }
html[data-theme="light"] .login-options { margin:2px 0 22px !important; }
html[data-theme="light"] .login-btn-tech { padding:13px !important; font-size:16px !important; letter-spacing:6px !important; border-radius:10px !important; }
/* ---- 验证码：白底浅边 + 深色字符（压过全局 svg text 白色强制规则），去掉黑底 ---- */
html[data-theme="light"] .captcha-group .captcha-img {
  background:#ffffff !important;
  border:1px solid #e5e7eb !important;
  border-radius:8px !important;
  height:44px !important; width:112px !important; min-width:112px !important;
  box-shadow:none !important;
}
html[data-theme="light"] .captcha-group .captcha-img svg { background:#ffffff !important; border-radius:7px !important; }
html[data-theme="light"] .captcha-group .captcha-img svg text { fill:#1f2937 !important; font-weight:bold !important; }

/* ============================================================
   深色登录左侧：与浅色同构，统一为「品牌头 + 2×2 功能卡」
   隐藏原旋转光环与底部大字标题（浅色规则带 light 前缀，不受影响）
   ============================================================ */
.login-page .login-brand-header { display:flex !important; align-items:center; gap:14px; position:relative; z-index:2; margin-bottom:40px; }
.login-page .login-feature-grid { display:grid !important; grid-template-columns:1fr 1fr; gap:16px; width:100%; max-width:440px; position:relative; z-index:2; }
.login-page .tech-illustration,
.login-page .login-system-title { display:none !important; }
.login-page .login-left { flex-direction:column !important; justify-content:center !important; align-items:flex-start !important; }
/* 品牌头：蓝紫渐变 logo + 白色名称 */
.login-page .login-brand-header .brand-logo-mark {
  width:46px; height:46px; border-radius:12px; flex-shrink:0;
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(59,130,246,0.4);
}
.login-page .login-brand-header .brand-name { color:#ffffff; font-size:21px; font-weight:700; letter-spacing:.5px; }
.login-page .login-brand-header .brand-sub { color:rgba(255,255,255,.55); font-size:12px; margin-top:3px; }
/* 功能卡：深色半透明 + 浅蓝图标 */
.login-page .login-feature-grid .feature-card {
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:12px; padding:18px;
}
.login-page .login-feature-grid .feature-icon {
  width:38px; height:38px; border-radius:9px;
  background:rgba(59,130,246,0.18); color:#93c5fd;
  display:flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.login-page .login-feature-grid .feature-title { color:#ffffff; font-size:14px; font-weight:600; }
.login-page .login-feature-grid .feature-desc { color:rgba(255,255,255,.5); font-size:12px; margin-top:4px; }

/* ============================================================
   登录左侧整体放大 v3（深色 + 浅色同步，品牌头与 2×2 卡更饱满协调）
   ============================================================ */
/* 登录页不提供主题切换按钮（登录页固定深色，进系统后在系统设置切换） */
.login-theme-toggle { display:none !important; }
/* —— 深色放大 —— */
.login-page .login-brand-header { gap:18px !important; margin-bottom:46px !important; }
.login-page .login-brand-header .brand-logo-mark { width:56px !important; height:56px !important; border-radius:14px !important; }
.login-page .login-brand-header .brand-logo-mark svg { width:28px !important; height:28px !important; }
.login-page .login-brand-header .brand-name { font-size:26px !important; }
.login-page .login-brand-header .brand-sub { font-size:14px !important; margin-top:5px !important; }
.login-page .login-feature-grid { gap:20px !important; max-width:560px !important; }
.login-page .login-feature-grid .feature-card { padding:24px !important; border-radius:14px !important; }
.login-page .login-feature-grid .feature-icon { width:48px !important; height:48px !important; border-radius:11px !important; margin-bottom:16px !important; }
.login-page .login-feature-grid .feature-icon svg { width:24px !important; height:24px !important; }
.login-page .login-feature-grid .feature-title { font-size:17px !important; }
.login-page .login-feature-grid .feature-desc { font-size:14px !important; margin-top:6px !important; }
/* —— 浅色放大（同尺寸，覆盖 v1/v2） —— */
html[data-theme="light"] .login-brand-header { gap:18px !important; margin-bottom:46px !important; }
html[data-theme="light"] .login-brand-header .brand-logo-mark { width:56px !important; height:56px !important; border-radius:14px !important; }
html[data-theme="light"] .login-brand-header .brand-logo-mark svg { width:28px !important; height:28px !important; }
html[data-theme="light"] .login-brand-header .brand-name { font-size:26px !important; }
html[data-theme="light"] .login-brand-header .brand-sub { font-size:14px !important; margin-top:5px !important; }
html[data-theme="light"] .login-feature-grid { gap:20px !important; max-width:560px !important; }
html[data-theme="light"] .login-feature-grid .feature-card { padding:24px !important; border-radius:14px !important; }
html[data-theme="light"] .login-feature-grid .feature-icon { width:48px !important; height:48px !important; border-radius:11px !important; margin-bottom:16px !important; }
html[data-theme="light"] .login-feature-grid .feature-icon svg { width:24px !important; height:24px !important; }
html[data-theme="light"] .login-feature-grid .feature-title { font-size:17px !important; }
html[data-theme="light"] .login-feature-grid .feature-desc { font-size:14px !important; margin-top:6px !important; }
/* 登录页标语位（系统设置-登录页定制 login_slogan，空值由 JS 隐藏） */
.login-page .login-slogan { display:none; margin:-28px 0 30px 2px; font-size:14px; letter-spacing:2px; color:rgba(255,255,255,.55); position:relative; z-index:2; }
html[data-theme="light"] .login-slogan { color:#6b7280 !important; }
