/* FoxAPI 暗色科技风主题 - 覆盖默认样式 */

/* 强制暗色模式 */
html:not(.dark) {
  color-scheme: dark;
}

/* 背景色覆盖 */
.bg-gray-50, .bg-white {
  background-color: #0f172a !important;
}

.dark\:bg-dark-950, .dark\:bg-dark-900 {
  background-color: #020617 !important;
}

/* 卡片背景 */
.dark\:bg-dark-800, .dark\:bg-dark-700 {
  background-color: rgba(30, 41, 59, 0.8) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

/* 主色调从青色改为紫色 */
.text-primary-500, .dark\:text-primary-400 {
  color: #a855f7 !important;
}

.text-primary-600, .dark\:text-primary-500 {
  color: #9333ea !important;
}

.bg-primary-500, .dark\:bg-primary-600 {
  background-color: #a855f7 !important;
}

.bg-primary-600, .dark\:bg-primary-700 {
  background-color: #9333ea !important;
}

/* 渐变按钮 */
.bg-gradient-primary, .from-primary-500, .to-primary-600 {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%) !important;
}

/* 悬停效果 */
.hover\:bg-primary-600:hover, .hover\:bg-primary-700:hover {
  background-color: #7e22ce !important;
}

/* 边框颜色 */
.border-primary-500, .dark\:border-primary-400 {
  border-color: #a855f7 !important;
}

/* 链接颜色 */
a.text-primary-500, a.dark\:text-primary-400 {
  color: #c084fc !important;
}

a.text-primary-500:hover, a.dark\:text-primary-400:hover {
  color: #d8b4fe !important;
}

/* 侧边栏背景 */
.dark\:bg-dark-900\/50 {
  background-color: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(20px);
}

/* 导航栏毛玻璃效果 */
nav.dark\:bg-dark-900\/80 {
  background-color: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* 输入框 */
input.dark\:bg-dark-800 {
  background-color: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

input.dark\:bg-dark-800:focus {
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* 表格 */
table {
  border-collapse: separate;
  border-spacing: 0;
}

.dark\:bg-dark-800 td, .dark\:bg-dark-800 th {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* 选中文字颜色 */
::selection {
  background: rgba(168, 85, 247, 0.3);
  color: white;
}

/* 动画效果 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

/* 卡片悬浮效果 */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(168, 85, 247, 0.3);
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(90deg, #818cf8, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 发光效果 */
.glow {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.glow-lg {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.35);
}
