
/* ai_progress_tracker/frontend/css/style.css */
/* 基础样式与全局变量 */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #8b5cf6;
    --text-light: #e0e7ff;
    --text-dark: #1f2937;
    --bg-dark: #111827;
    --bg-card: rgba(30, 58, 138, 0.3);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
}

/* 基本排版和布局 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
}

/* 自定义动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

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

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

@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
    50% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.8); }
    100% { text-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
}

/* 自定义组件样式 */
.pulse-animation {
    animation: pulse 2s infinite;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dot.bg-green-500.pulse {
    animation: pulse 2s infinite;
}

/* 关键词标签样式 */
.keyword-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.5);
    transition: all 0.2s ease;
}

.keyword-badge:hover {
    background: rgba(59, 130, 246, 0.5);
}

.keyword-badge .fa-times {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.keyword-badge .fa-times:hover {
    opacity: 1;
}

/* 进展项目样式 */
.progress-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeIn 0.3s ease-out;
}

.progress-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.action-btn {
    background: rgba(59, 130, 246, 0.2);
    border: none;
    border-radius: 0.375rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    opacity: 0.7;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    opacity: 1;
}

.action-btn.bookmarked {
    color: #f59e0b; /* 黄色，表示已收藏 */
    opacity: 1;
}

.action-btn.shared {
    color: #10b981; /* 绿色，表示已分享 */
    opacity: 1;
}

/* 来源标签样式 */
.source-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-light);
    line-height: 1;
}

.source-badge.news {
    background: rgba(239, 68, 68, 0.2); /* 红色背景 */
}

.source-badge.papers {
    background: rgba(16, 185, 129, 0.2); /* 绿色背景 */
}

.source-badge.blogs {
    background: rgba(245, 158, 11, 0.2); /* 黄色背景 */
}

.source-badge.github {
    background: rgba(139, 92, 246, 0.2); /* 紫色背景 */
}

/* 可视化按钮样式 */
.viz-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.viz-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.viz-btn.active {
    background: rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.7);
    font-weight: 500;
}

/* 分享按钮样式 */
.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
    width: 4rem;
    transition: all 0.2s ease;
    border: none;
    color: var(--text-light);
    font-size: 0.75rem;
    cursor: pointer;
}

.share-btn i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.share-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

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

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* 输入框样式增强 */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-hover);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .viz-btn {
        padding: 0.25rem 0.5rem;
    }
    
    .source-badge {
        padding: 0.15rem 0.3rem;
        font-size: 0.7rem;
    }
}

/* 隐藏通知动画 */
#notification {
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 导出数据按钮附加样式 */
#export-data:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.3);
}

/* 加载更多按钮动画 */
#load-more:hover i {
    animation: bounce 0.5s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(3px); }
}

/* 控制面板悬浮效果 */
.backdrop-filter {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.backdrop-filter:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 背景粒子效果容器 */
#particles-js {
    pointer-events: none;
}
