/* 期货行业创新监控系统 - 样式 */

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 文章卡片 */
.article-card {
    transition: all 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 分类标签 */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-badge.app {
    background-color: #dbeafe;
    color: #1e40af;
}

.category-badge.otc {
    background-color: #dcfce7;
    color: #166534;
}

.category-badge.ai {
    background-color: #f3e8ff;
    color: #7c3aed;
}

/* 筛选按钮激活状态 */
.filter-btn.active {
    background-color: #1f2937;
    color: white;
}

/* 关键词标签 */
.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background-color: #f3f4f6;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-right: 0.25rem;
}

/* 分页按钮 */
.page-btn {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background-color: #e5e7eb;
}

.page-btn.active {
    background-color: #2563eb;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 通知消息 */
.notification-success {
    background-color: #10b981;
    color: white;
}

.notification-error {
    background-color: #ef4444;
    color: white;
}

.notification-info {
    background-color: #3b82f6;
    color: white;
}

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

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

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

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

/* 响应式调整 */
@media (max-width: 640px) {
    .article-card {
        padding: 1rem;
    }
    
    #category-filters {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }
}

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

.article-card {
    animation: fadeIn 0.3s ease-out;
}

/* 链接样式 */
.article-link {
    color: #2563eb;
    text-decoration: none;
}

.article-link:hover {
    text-decoration: underline;
}

/* 来源标签 */
.source-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background-color: #f3f4f6;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #374151;
}

/* 日期样式 */
.date-text {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 摘要文本 */
.summary-text {
    color: #4b5563;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
