/* 量化实验室自定义样式 */

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 实验卡片样式 */
.experiment-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.experiment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 博客预览项样式 */
.blog-item {
    transition: all 0.2s ease;
}

.blog-item:hover {
    background-color: #f9fafb;
}

/* 状态指示器 */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-running {
    background-color: #10b981;
    animation: pulse 2s infinite;
}

.status-paused {
    background-color: #f59e0b;
}

.status-stopped {
    background-color: #ef4444;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* 加载动画 */
.loading-spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 导航链接样式 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.nav-link.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

/* 移动端导航样式 */
@media (max-width: 768px) {
    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-link.active {
        background-color: #eff6ff;
        border-left: 4px solid #3b82f6;
    }
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .experiment-card {
        margin-bottom: 1rem;
    }
    
    #dashboard {
        grid-template-columns: 1fr;
    }
}

/* 自定义按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 数据可视化容器 */
.chart-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}