/* ============================================================
   ERP 赛博朋克深色流光样式库 (完整版 - 源自 Tech UI 全量提取)
   ============================================================ */
:root {
  --primary-color: #bc13fe;
  --primary-hover: #d13bff;
  --cyan-color: #00f3ff;
  --pink-color: #ff0055;
  --indigo-color: #4f46e5;
  --purple-color: #8b5cf6;
  --green-color: #00ff88;
  --emerald-color: #10b981;
  --yellow-color: #facc15;
  --red-color: #ef4444;
  --bg-page: #0a0a12;
  --bg-panel: rgba(10, 10, 18, 0.95);
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-dark-slate: #0f172a;
  --bg-dark-header: #1e293b;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --shadow-glow: 0 0 20px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 0 15px rgba(188, 19, 254, 0.5);
  --shadow-pink: 0 0 15px rgba(255, 0, 85, 0.6);
  --shadow-cyan: 0 0 10px rgba(0, 243, 255, 0.2);
  --shadow-indigo: 0 0 20px rgba(139, 92, 246, 0.6);
  --shadow-emerald: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* ============================================================
   1. 基础重置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-hover); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--cyan-color); text-shadow: 0 0 8px var(--cyan-color); }

/* ============================================================
   2. 静态星空背景
   ============================================================ */
.static-star-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4;
  background-image:
    radial-gradient(1px 1px at 10% 10%, rgba(255,255,255,0.8) 1px, transparent 0),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.6) 1px, transparent 0),
    radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.4) 1px, transparent 0),
    radial-gradient(1px 1px at 80% 30%, rgba(255,255,255,0.7) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 40% 60%, rgba(0,243,255,0.5) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,0,85,0.5) 1px, transparent 0);
  background-size: 250px 250px;
}

/* ============================================================
   3. 通用动画库
   ============================================================ */
.animate-enter { animation: enterAnim 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes enterAnim { from { opacity: 0; transform: translateY(15px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.animate-fade-in-down { animation: fadeInDown 0.4s ease-out forwards; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* 错误抖动 */
.shake { animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%, 90% { transform: translate3d(-1px,0,0); } 20%, 80% { transform: translate3d(2px,0,0); } 30%, 50%, 70% { transform: translate3d(-4px,0,0); } 40%, 60% { transform: translate3d(4px,0,0); } }

/* ============================================================
   4. 自定义滚动条
   ============================================================ */
.custom-scrollbar::-webkit-scrollbar, ::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track, ::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.35); }

/* ============================================================
   5. 科技面板 (Tech Panel) + 动态流光边框
   ============================================================ */
.tech-panel {
  /* 注意：overflow:hidden 会裁剪悬浮标签和下拉框，
     需要 overflow:visible 的面板请额外加 .tech-panel-visible */
  position: relative; background: var(--bg-panel); border-radius: 24px;
  box-shadow: var(--shadow-glow); padding: 24px 30px; margin-bottom: 30px;
  overflow: hidden; z-index: 1;
}
/* 需要悬浮标签或下拉框溢出时，给面板额外加此类 */
.tech-panel-visible { overflow: visible !important; }

.tech-border {
  position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from 0deg, var(--pink-color), var(--cyan-color), var(--primary-color), var(--cyan-color), var(--pink-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rotateBorder 4s linear infinite, borderBreathe 4s ease-in-out infinite alternate;
  pointer-events: none; z-index: 20; will-change: transform;
}
@keyframes rotateBorder {
  from { background: conic-gradient(from 0deg, var(--pink-color), var(--cyan-color), var(--primary-color), var(--cyan-color), var(--pink-color)); }
  to   { background: conic-gradient(from 360deg, var(--pink-color), var(--cyan-color), var(--primary-color), var(--cyan-color), var(--pink-color)); }
}
@keyframes borderBreathe {
  0%   { filter: hue-rotate(0deg) brightness(1) drop-shadow(0 0 2px rgba(255,0,85,0.5)); }
  100% { filter: hue-rotate(180deg) brightness(1.5) drop-shadow(0 0 5px rgba(0,243,255,0.8)); }
}

/* ============================================================
   6. 标题栏与导航
   ============================================================ */
.app-title {
  color: var(--cyan-color); font-weight: 700;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 20px; letter-spacing: 2px; margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.app-title::after {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(0,243,255,0.5); box-shadow: inset 0 0 5px var(--cyan-color);
}

.nav-tab {
  position: relative; color: rgba(255,255,255,0.6); transition: all 0.3s ease;
  cursor: pointer; padding: 8px 16px; font-weight: 600; display: inline-block; margin-right: 10px;
}
.nav-tab:hover { color: #fff; }
.nav-tab.active { color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.5); border-bottom: 2px solid var(--cyan-color); }

/* tech-tab: dashboard 中的顶部切换标签 */
.tech-tab {
  padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.5); background: transparent; border: none;
  cursor: pointer; transition: all 0.3s; letter-spacing: 0.5px; white-space: nowrap;
}
.tech-tab:hover { color: #fff; background: rgba(255,255,255,0.05); }
.tech-tab.active { color: #fff; background: rgba(79,70,229,0.3); text-shadow: 0 0 10px rgba(99,102,241,0.5); }

/* ============================================================
   7. 霓虹按钮 (Neon Btn)
   ============================================================ */
.neon-btn {
  background: linear-gradient(90deg, var(--indigo-color), var(--purple-color));
  border: none; border-radius: 22px; color: white; font-weight: 700;
  font-size: 14px; letter-spacing: 1px; padding: 10px 24px;
  cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.neon-btn:hover:not(:disabled) { box-shadow: var(--shadow-indigo); transform: translateY(-2px); }
.neon-btn:active:not(:disabled) { transform: translateY(1px) scale(0.97); }
.neon-btn:disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(0.5); }

.neon-btn.danger { background: linear-gradient(90deg, #8a0030, var(--pink-color)); }
.neon-btn.danger:hover:not(:disabled) { box-shadow: var(--shadow-pink); }

.neon-btn.success { background: linear-gradient(90deg, #065f46, var(--emerald-color)); }
.neon-btn.success:hover:not(:disabled) { box-shadow: var(--shadow-emerald); }

/* 按钮呼吸动画 */
@keyframes btnBreathe {
  0%   { filter: brightness(1) drop-shadow(0 0 2px rgba(79,70,229,0.3)); }
  50%  { filter: brightness(1.3) drop-shadow(0 0 10px rgba(79,70,229,0.6)); }
  100% { filter: brightness(1) drop-shadow(0 0 2px rgba(79,70,229,0.3)); }
}

/* ============================================================
   8. 文字链接 / Toggle / Loader
   ============================================================ */
.link-text { color: var(--cyan-color); text-decoration: underline; font-size: 13px; cursor: pointer; transition: color 0.3s; }
.link-text:hover { color: var(--primary-hover); }

.toggle-switch {
  width: 46px; height: 24px; background-color: #3a4b60; border-radius: 12px;
  position: relative; cursor: pointer; transition: background-color 0.3s;
  display: inline-block; vertical-align: middle;
}
.toggle-switch.active { background-color: var(--primary-color); box-shadow: var(--shadow-primary); }
.toggle-handle {
  width: 18px; height: 18px; background-color: white; border-radius: 50%;
  position: absolute; top: 3px; left: 3px;
  transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toggle-switch.active .toggle-handle { left: 25px; }

.loader {
  border: 3px solid rgba(255,255,255,0.1); border-left-color: var(--cyan-color);
  border-radius: 50%; width: 18px; height: 18px; animation: spin 1s linear infinite; display: inline-block;
}
.loader-lg { width: 40px; height: 40px; border-width: 4px; border-left-color: #818cf8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 全局点击波纹 (由 JS 挂载) */
.dream-ripple {
  position: fixed; border-radius: 50%; transform: scale(0);
  animation: ripple-anim 0.7s ease-out; background: rgba(0,243,255,0.4);
  pointer-events: none; width: 20px; height: 20px; margin-left: -10px; margin-top: -10px; z-index: 99999;
}
@keyframes ripple-anim { to { transform: scale(15); opacity: 0; } }

/* ============================================================
   9. 表单组件 (Input / Textarea / Select)
   ============================================================ */
.form-group { margin-bottom: 24px; position: relative; }
.form-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 1px; }

.tech-input, .glass-input {
  background: var(--bg-input) !important; border: 1px solid rgba(255,255,255,0.1) !important;
  color: #fff !important; border-radius: 8px; padding: 12px 16px; width: 100%;
  outline: none; transition: all 0.3s ease; font-size: 14px;
}
.tech-input:focus, .tech-input:hover, .glass-input:focus, .glass-input:hover {
  border-color: rgba(255,255,255,0.3) !important; background: rgba(255,255,255,0.1) !important;
}
.tech-input:focus, .glass-input:focus { box-shadow: var(--shadow-cyan); }
.tech-input::placeholder, .glass-input::placeholder { color: rgba(255,255,255,0.3); }

textarea.tech-input, textarea.glass-input { resize: vertical; min-height: 80px; }

/* 修复数字框默认样式 */
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; }

/* 悬浮标签 */
.tech-label-float {
  position: absolute; top: -10px; left: 12px; background: var(--bg-page);
  padding: 0 8px; font-size: 10px; font-weight: 800; color: var(--cyan-color);
  border: 1px solid rgba(0,243,255,0.3); border-radius: 4px; z-index: 10;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* 下拉框 */
select option { background-color: #1e293b; color: var(--text-main); padding: 10px; }

/* ============================================================
   10. 下拉菜单 (Glass Dropdown)
   ============================================================ */
.glass-dropdown-menu {
  background-color: var(--bg-page) !important; border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8); border-radius: 8px;
  overflow: visible; z-index: 100; position: absolute; width: 100%; margin-top: 5px;
}
.glass-option-hover {
  padding: 10px 14px; cursor: pointer; transition: all 0.2s; color: var(--text-muted);
  border-radius: 6px; margin: 2px 4px;
}
.glass-option-hover:hover { background: rgba(255,255,255,0.08); color: #fff; }
.glass-option-selected {
  background: rgba(99,102,241,0.3) !important; color: #fff !important;
  border-left: 3px solid var(--indigo-color); font-weight: 700;
}

/* ============================================================
   11. Tooltip 提示框
   ============================================================ */
/* 用 inline-flex 而非 inline，允许嵌套 div 子元素 */
.tooltip-trigger { position: relative; display: inline-flex; align-items: center; cursor: help; }
.tooltip-content {
  visibility: hidden; opacity: 0; transform: translateX(-50%) translateY(5px); transition: all 0.2s ease; pointer-events: none;
  background: var(--bg-panel); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px); padding: 8px 12px; border-radius: 8px;
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(5px);
  width: max-content; max-width: 260px; z-index: 50; margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5); font-size: 12px; color: var(--text-main);
  font-weight: normal; line-height: 1.5;
}
.tooltip-trigger:hover .tooltip-content { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.tooltip-content::after {
  content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px;
  border-width: 5px; border-style: solid; border-color: rgba(255,255,255,0.2) transparent transparent transparent;
}

/* ============================================================
   12. 状态文本与 Toast / 通知条
   ============================================================ */
.status-success { color: var(--green-color); font-weight: 600; text-shadow: 0 0 5px rgba(0,255,136,0.4); }
.status-error   { color: var(--pink-color); font-weight: 600; text-shadow: 0 0 5px rgba(255,0,85,0.4); }
.status-processing { color: var(--cyan-color); font-weight: 600; text-shadow: 0 0 5px rgba(0,243,255,0.4); }

/* 底部 Toast */
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
  background-color: rgba(10,10,20,0.95); color: var(--cyan-color); font-weight: 600;
  border: 1px solid var(--pink-color); border-radius: 18px; padding: 12px 30px;
  box-shadow: var(--shadow-pink); z-index: 9999;
  opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.3s ease; white-space: nowrap;
}
.toast.show { opacity: 1; visibility: visible; bottom: 60px; pointer-events: auto; }

/* 顶部通知条 (成功/失败两色) */
.notify-bar {
  position: fixed; top: 20%; left: 50%; transform: translateX(-50%); z-index: 100;
  min-width: 300px; backdrop-filter: blur(12px); border-radius: 12px;
  padding: 16px 24px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
}
.notify-bar.success { background: linear-gradient(135deg, rgba(6,95,70,0.9), rgba(16,185,129,0.7)); }
.notify-bar.error   { background: linear-gradient(135deg, rgba(127,29,29,0.9), rgba(239,68,68,0.7)); }
.notify-bar .notify-icon {
  width: 40px; height: 40px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 18px;
}
.notify-bar.success .notify-icon { background: rgba(16,185,129,0.3); }
.notify-bar.error .notify-icon   { background: rgba(239,68,68,0.3); }
.notify-bar .notify-text { font-weight: 700; font-size: 14px; }
/* 通知条底部发光线 */
.notify-bar::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 75%; height: 2px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
}

/* ============================================================
   13. 数据表格
   ============================================================ */
.tech-table-wrapper {
  overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
}
.tech-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tech-table th {
  background: rgba(255,255,255,0.05); padding: 14px 16px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1); color: var(--cyan-color);
  font-weight: 600; white-space: nowrap; position: sticky; top: 0; z-index: 10;
}
.tech-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
.tech-table tr:hover td { background: rgba(255,255,255,0.08); }

/* ============================================================
   14. 呼吸流光效果 (Neon Breathing)
   ============================================================ */
.neon-breathing { animation: inner-flow 3s infinite alternate; border: 1px solid transparent; }
@keyframes inner-flow {
  0%   { box-shadow: 0 0 5px rgba(99,102,241,0.2), inset 0 0 5px rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.5); }
  50%  { box-shadow: 0 0 15px rgba(168,85,247,0.5), inset 0 0 10px rgba(168,85,247,0.2); border-color: rgba(168,85,247,0.8); }
  100% { box-shadow: 0 0 5px rgba(99,102,241,0.2), inset 0 0 5px rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.5); }
}

/* 高亮选中背景 */
.neon-active-bg { background: linear-gradient(135deg, rgba(79,70,229,0.2) 0%, rgba(147,51,234,0.2) 100%); }

/* ============================================================
   15. 弹窗 (Modal Overlay)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(4px);
}
.modal-panel {
  width: 380px; padding: 32px; border-radius: 24px;
  position: relative; overflow: visible;
}

/* ============================================================
   16. 文件上传区域
   ============================================================ */
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.15); border-radius: 16px;
  padding: 24px; text-align: center; cursor: pointer; position: relative;
  transition: all 0.3s;
}
.upload-zone:hover { border-color: var(--indigo-color); background: rgba(255,255,255,0.03); }
.upload-zone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 50; }

/* ============================================================
   17. 页面布局容器
   ============================================================ */
.page-container { max-width: 1400px; margin: 0 auto; padding: 24px; }

/* ============================================================
   18. 大厂级增强：噪点纹理叠加层
   ============================================================ */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px 200px;
}

/* ============================================================
   19. 大厂级增强：渐变动态流光文字
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan-color), var(--purple-color), var(--pink-color), var(--cyan-color));
  background-size: 300% 300%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   20. 大厂级增强：卡片鼠标追光效果 (Spotlight)
   ============================================================ */
.card-spotlight {
  position: relative; overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}
.card-spotlight::before {
  content: ''; position: absolute; top: var(--mouse-y, 50%); left: var(--mouse-x, 50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  transition: opacity 0.4s ease; z-index: 1;
}
.card-spotlight:hover::before { opacity: 1; }
.card-spotlight:hover { box-shadow: 0 0 40px rgba(139,92,246,0.15), 0 20px 60px rgba(0,0,0,0.4); transform: translateY(-2px); }

/* ============================================================
   21. 大厂级增强：骨架屏闪光加载 (Shimmer)
   ============================================================ */
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%; border-radius: 8px;
  animation: shimmerMove 1.5s infinite linear;
}
@keyframes shimmerMove { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================================================
   22. 大厂级增强：渐变动画进度条
   ============================================================ */
.progress-bar-track {
  width: 100%; height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 999px; overflow: hidden; position: relative;
}
.progress-bar-fill {
  height: 100%; border-radius: 999px; position: relative;
  background: linear-gradient(90deg, var(--indigo-color), var(--purple-color), var(--pink-color));
  background-size: 200% 100%; animation: progressGlow 2s ease infinite;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
.progress-bar-fill::after {
  content: ''; position: absolute; right: 0; top: -2px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px var(--purple-color), 0 0 4px #fff;
}
@keyframes progressGlow { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* ============================================================
   23. 大厂级增强：发光胶囊徽章 (Badge)
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-success { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: rgba(250,204,21,0.12); color: #fde047; border: 1px solid rgba(250,204,21,0.3); }
.badge-danger  { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-info    { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.badge-success .badge-dot { background: #34d399; box-shadow: 0 0 6px #34d399; }
.badge-warning .badge-dot { background: #fde047; box-shadow: 0 0 6px #fde047; }
.badge-danger .badge-dot  { background: #f87171; box-shadow: 0 0 6px #f87171; }
.badge-info .badge-dot    { background: #a5b4fc; box-shadow: 0 0 6px #a5b4fc; }

/* ============================================================
   24. 大厂级增强：磨砂数据统计卡片 (Stat Card)
   ============================================================ */
.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 20px;
  padding: 24px; position: relative; overflow: hidden;
  backdrop-filter: blur(8px); transition: all 0.4s ease;
}
.stat-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.stat-card .stat-value {
  font-size: 36px; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.6));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .stat-label { font-size: 12px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.stat-card .stat-trend { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; }
.stat-card .stat-trend.up   { color: #34d399; }
.stat-card .stat-trend.down { color: #f87171; }
/* 卡片角落装饰光斑 */
.stat-card::after {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%; opacity: 0.08;
  transition: opacity 0.4s;
}
.stat-card:hover::after { opacity: 0.15; }
.stat-card.purple::after { background: var(--purple-color); }
.stat-card.cyan::after   { background: var(--cyan-color); }
.stat-card.pink::after   { background: var(--pink-color); }
.stat-card.emerald::after { background: var(--emerald-color); }

/* ============================================================
   25. 大厂级增强：鼠标跟随光晕 (Cursor Glow) - 需 JS 配合
   ============================================================ */
.cursor-glow {
  position: fixed; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0; transform: translate(-50%, -50%);
  transition: opacity 0.3s; opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* ============================================================
   26. 发光分隔线
   ============================================================ */
.divider-glow {
  height: 1px; border: none; position: relative; margin: 32px 0;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), transparent);
}
.divider-subtle {
  height: 1px; border: none; margin: 20px 0;
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   27. 复选框 / 单选框 (Checkbox / Radio)
   ============================================================ */
.tech-checkbox {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.2);
  border-radius: 4px; background: transparent; cursor: pointer;
  appearance: none; -webkit-appearance: none; position: relative;
  transition: all 0.2s ease; vertical-align: middle;
}
.tech-checkbox:checked {
  background: var(--indigo-color); border-color: var(--indigo-color);
  box-shadow: 0 0 8px rgba(79,70,229,0.4);
}
.tech-checkbox:checked::after {
  content: '✓'; position: absolute; top: -1px; left: 2px;
  color: #fff; font-size: 12px; font-weight: 900;
}
.tech-checkbox:hover { border-color: rgba(255,255,255,0.4); }

.tech-radio {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%; background: transparent; cursor: pointer;
  appearance: none; -webkit-appearance: none; position: relative;
  transition: all 0.2s ease; vertical-align: middle;
}
.tech-radio:checked {
  border-color: var(--purple-color);
  box-shadow: 0 0 8px rgba(139,92,246,0.4);
}
.tech-radio:checked::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple-color);
}

/* ============================================================
   28. 键盘快捷键 (KBD) / 代码块 (Code)
   ============================================================ */
.kbd {
  display: inline-block; padding: 2px 8px; font-size: 11px;
  font-family: 'Consolas', 'Courier New', monospace;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; color: var(--text-muted); font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.code-block {
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 16px 20px; font-family: 'Consolas', monospace;
  font-size: 13px; color: #a5b4fc; overflow-x: auto; line-height: 1.7;
}
.code-inline {
  background: rgba(99,102,241,0.15); border-radius: 4px;
  padding: 2px 6px; font-family: 'Consolas', monospace;
  font-size: 12px; color: #c4b5fd;
}

/* ============================================================
   29. 头像 / 用户组件
   ============================================================ */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-color), var(--purple-color));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
  border: 2px solid rgba(255,255,255,0.1);
}
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }

/* ============================================================
   30. 通用工具类
   ============================================================ */
.text-gradient-purple {
  background: linear-gradient(135deg, #a78bfa, #c084fc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-cyan {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.select-none { user-select: none; -webkit-user-select: none; }

/* ============================================================
   31. card-spotlight 与 tech-panel-visible 兼容修复
   ============================================================ */
.tech-panel-visible.card-spotlight { overflow: visible !important; }
.tech-panel-visible.card-spotlight::before { border-radius: 24px; }

/* ============================================================
   32. 响应式适配
   ============================================================ */
@media (max-width: 1024px) {
  .page-container { padding: 16px; }
  .tech-panel { padding: 18px 20px; border-radius: 18px; }
  .stat-card .stat-value { font-size: 28px; }
}
@media (max-width: 768px) {
  .tech-panel { padding: 16px; border-radius: 14px; }
  .app-title { font-size: 16px; letter-spacing: 1px; }
  .neon-btn { padding: 8px 16px; font-size: 13px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 24px; }
  .modal-panel { width: 90vw; padding: 24px; }
}

/* ============================================================
   33. 打印适配 (隐藏装饰元素)
   ============================================================ */
@media print {
  .static-star-bg, .grain-overlay, .cursor-glow,
  .tech-border, .dream-ripple { display: none !important; }
  body { background: #fff; color: #000; }
  .tech-panel { background: #fff; border: 1px solid #ddd; box-shadow: none; }
}
