/* 增强版全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    position: relative;
}

/* 增强背景效果 */
.grid-background {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(38, 87, 253, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 87, 253, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 粒子动画背景 */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 主容器样式 */
.flex.min-h-screen {
    height: 100vh;
    overflow: hidden;
}

/* 主内容区域样式 */
main.flex-1 {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 动态内容区域样式 */
#mainContent {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

/* 增强滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(38, 87, 253, 0.6), rgba(59, 130, 246, 0.4));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(38, 87, 253, 0.8), rgba(59, 130, 246, 0.6));
}

/* 增强动画效果 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-50px) rotateY(-10deg); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0) rotateY(0deg); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(50px) rotateY(10deg); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0) rotateY(0deg); 
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(38, 87, 253, 0.3),
                    0 0 20px rgba(38, 87, 253, 0.2),
                    0 0 30px rgba(38, 87, 253, 0.1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(38, 87, 253, 0.6),
                    0 0 30px rgba(38, 87, 253, 0.4),
                    0 0 40px rgba(38, 87, 253, 0.2);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

/* 增强通用组件样式 */
.btn {
    @apply px-6 py-3 rounded-xl font-semibold transition-all duration-300 cursor-pointer relative overflow-hidden;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    @apply text-white;
    background: linear-gradient(135deg, #2657FD, #3B82F6);
    border-color: rgba(38, 87, 253, 0.3);
    box-shadow: 0 4px 15px rgba(38, 87, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1D4ED8, #2563EB);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(38, 87, 253, 0.4);
}

.btn-secondary {
    @apply text-white;
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.8), rgba(55, 65, 81, 0.8));
    border-color: rgba(75, 85, 99, 0.5);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(75, 85, 99, 1), rgba(55, 65, 81, 1));
    transform: translateY(-2px);
}

.btn-outline {
    @apply text-gray-300;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(156, 163, 175, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    @apply text-primary;
    border-color: rgba(38, 87, 253, 0.6);
    background: rgba(38, 87, 253, 0.1);
    box-shadow: 0 4px 15px rgba(38, 87, 253, 0.2);
}

/* 增强卡片样式 */
.card {
    @apply rounded-2xl p-6 transition-all duration-500 relative overflow-hidden;
    background: linear-gradient(135deg, 
        rgba(31, 41, 55, 0.8), 
        rgba(17, 24, 39, 0.9)
    );
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(38, 87, 253, 0.6), 
        transparent
    );
}

.card:hover {
    border-color: rgba(38, 87, 253, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(38, 87, 253, 0.2),
                0 0 0 1px rgba(38, 87, 253, 0.1);
}

/* 增强输入框样式 */
.input-field {
    @apply w-full px-6 py-4 rounded-xl text-white placeholder-gray-400 transition-all duration-300 relative;
    background: linear-gradient(135deg, 
        rgba(31, 41, 55, 0.8), 
        rgba(17, 24, 39, 0.9)
    );
    border: 1px solid rgba(75, 85, 99, 0.5);
    backdrop-filter: blur(10px);
}

.input-field:focus {
    outline: none;
    border-color: rgba(38, 87, 253, 0.6);
    box-shadow: 0 0 0 3px rgba(38, 87, 253, 0.1),
                0 4px 12px rgba(38, 87, 253, 0.2);
    transform: translateY(-2px);
}

/* 修复select选项的颜色问题 */
.input-field option {
    background-color: #374151;
    color: #e5e7eb;
    padding: 8px 12px;
}

.input-field option:hover,
.input-field option:focus,
.input-field option:checked {
    background-color: #4b5563;
    color: #ffffff;
}

/* 增强徽章样式 */
.badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-semibold;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.badge-success {
    @apply text-emerald-300;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.2), 
        rgba(5, 150, 105, 0.3)
    );
    border-color: rgba(16, 185, 129, 0.4);
}

.badge-warning {
    @apply text-amber-300;
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.2), 
        rgba(217, 119, 6, 0.3)
    );
    border-color: rgba(245, 158, 11, 0.4);
}

.badge-error {
    @apply text-red-300;
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.2), 
        rgba(220, 38, 38, 0.3)
    );
    border-color: rgba(239, 68, 68, 0.4);
}

.badge-info {
    @apply text-blue-300;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2), 
        rgba(37, 99, 235, 0.3)
    );
    border-color: rgba(59, 130, 246, 0.4);
}

/* 增强页面过渡动画 */
.page-enter {
    animation: pageEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-exit {
    animation: pageExit 0.4s cubic-bezier(0.4, 0, 1, 1);
}

@keyframes pageEnter {
    from { 
        opacity: 0; 
        transform: translateY(50px) scale(0.95) rotateX(10deg);
        filter: blur(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0px);
    }
}

@keyframes pageExit {
    from { 
        opacity: 1; 
        transform: scale(1);
        filter: blur(0px);
    }
    to { 
        opacity: 0; 
        transform: scale(0.95);
        filter: blur(5px);
    }
}

/* 增强加载动画 */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(75, 85, 99, 0.3);
    border-top: 4px solid #2657FD;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(38, 87, 253, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 增强文本样式 */
.text-gradient {
    background: linear-gradient(135deg, #2657FD, #3B82F6, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 增强玻璃态效果 */
.glass {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 增强悬浮效果 */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.02) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(38, 87, 253, 0.3),
                0 0 0 1px rgba(38, 87, 253, 0.1);
}

/* 通知面板增强样式 */
.notification-panel {
    position: fixed;
    top: 80px;
    right: 24px;
    width: 400px;
    max-height: 600px;
    background: linear-gradient(135deg, 
        rgba(17, 24, 39, 0.95), 
        rgba(31, 41, 55, 0.95)
    );
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(38, 87, 253, 0.1);
    z-index: 1000;
    animation: slideInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(38, 87, 253, 0.8), 
        transparent
    );
    border-radius: 16px 16px 0 0;
}

/* 主题切换动画 */
.theme-transition {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .notification-panel {
        width: calc(100vw - 32px);
        left: 16px;
        right: 16px;
    }
    
    .card {
        padding: 16px;
    }
    
    .btn {
        padding: 12px 20px;
    }
}

/* 新增特效样式 */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 粒子效果辅助类 */
.particle-effect {
    position: relative;
    overflow: hidden;
}

.particle-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(38, 87, 253, 0.3), transparent),
                      radial-gradient(2px 2px at 40px 70px, rgba(59, 130, 246, 0.2), transparent),
                      radial-gradient(1px 1px at 90px 40px, rgba(96, 165, 250, 0.3), transparent);
    background-repeat: repeat;
    background-size: 100px 100px;
    animation: particle-float 20s linear infinite;
    pointer-events: none;
}

@keyframes particle-float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

/* 性能优化 */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 