/**
 * 报告卡片专用样式
 * 统一管理所有报告相关的样式
 */

/* 报告卡片容器 */
.report-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(5, 10, 20, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0) 60%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.report-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.report-card:hover::before {
    opacity: 1;
}

/* 报告卡片头部 */
.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.report-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.report-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.1);
    color: rgba(212, 175, 55, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.report-card:hover .report-tag {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    color: #D4AF37;
}

.report-date {
    color: rgba(148, 163, 184, 0.8);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* 报告标题 */
.report-title {
    color: #F1F5F9;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-card:hover .report-title {
    color: #FDE047;
}

/* 报告预览 */
.report-preview {
    color: rgba(148, 163, 184, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 报告底部 */
.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.report-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(148, 163, 184, 0.7);
    font-size: 12px;
    font-weight: 500;
}

.stat-item i {
    font-size: 11px;
    opacity: 0.8;
}

.report-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #AE9249;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.report-card:hover .report-action {
    color: #D4AF37;
}

.report-card:hover .action-arrow {
    transform: translateX(4px);
}

/* 无报告消息 */
.no-reports-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.3);
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.no-reports-message i {
    opacity: 0.5;
    margin-bottom: 16px;
}

/* 报告容器网格布局 */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .report-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .report-title {
        font-size: 16px;
    }
    
    .report-preview {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .report-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .report-stats {
        gap: 12px;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .report-card {
        padding: 16px;
    }
    
    .report-tags {
        gap: 6px;
    }
    
    .report-tag {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .report-title {
        font-size: 15px;
    }
    
    .report-preview {
        font-size: 12px;
    }
    
    .stat-item {
        font-size: 11px;
    }
    
    .report-action {
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-card {
    animation: fadeInUp 0.4s ease-out;
}

.report-card:nth-child(2) {
    animation-delay: 0.1s;
}

.report-card:nth-child(3) {
    animation-delay: 0.2s;
}

.report-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* 特殊状态样式 */
.report-card.featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.4);
}

.report-card.featured::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.report-card.new {
    position: relative;
}

.report-card.new::after {
    content: 'NEW';
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 加载状态 */
.report-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.report-card.loading .report-title,
.report-card.loading .report-preview {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: transparent;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
} 