/**
 * 简报管理页面样式
 */

/* 简报列表样式 */
.digest-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.digest-item {
    border-bottom: 1px solid #eee;
    padding: 1rem;
    transition: background-color 0.2s;
}

.digest-item:hover {
    background-color: #f8f9fa;
}

.digest-item:last-child {
    border-bottom: none;
}

.digest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.digest-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.digest-date {
    color: #666;
    font-size: 0.9rem;
}

.digest-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.digest-actions {
    display: flex;
    gap: 0.5rem;
}

/* 简报状态标签 */
.digest-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.digest-status.published {
    background-color: #d4edda;
    color: #155724;
}

.digest-status.draft {
    background-color: #fff3cd;
    color: #856404;
}

.digest-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* 简报内容预览 */
.digest-preview {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 简报计划样式 */
.digest-plan-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.digest-plan-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.digest-plan-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.digest-plan-body {
    padding: 1rem;
}

.digest-plan-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.digest-plan-meta-item {
    display: flex;
    flex-direction: column;
}

.digest-plan-meta-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.digest-plan-meta-value {
    font-weight: 500;
    color: #333;
}

.digest-plan-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 简报详情样式 */
.digest-detail {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
}

.digest-detail-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.digest-detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.digest-detail-meta {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.digest-detail-content {
    line-height: 1.6;
    color: #333;
}

.digest-detail-content h1,
.digest-detail-content h2,
.digest-detail-content h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.digest-detail-content p {
    margin-bottom: 1rem;
}

.digest-detail-content ul,
.digest-detail-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.digest-detail-content li {
    margin-bottom: 0.25rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .digest-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .digest-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .digest-plan-meta {
        grid-template-columns: 1fr;
    }
    
    .digest-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .digest-plan-actions {
        justify-content: center;
    }
}
