/* 额外问题管理模块样式 */

.inspection-additional-findings {
    padding: 16px;
}

.additional-findings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.additional-findings-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 统计卡片区域 */
.additional-findings-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}

.additional-findings-stats .ant-card {
    flex: 1;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 4px;
}

.stat-value.critical {
    color: #ff4d4f;
}

.stat-value.warning {
    color: #faad14;
}

.stat-value.success {
    color: #52c41a;
}

.stat-label {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
}

/* 卡片列表样式 */
.additional-findings-cards {
    margin-top: 16px;
}

.finding-card {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.finding-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.finding-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.finding-card-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

.finding-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.finding-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.finding-card-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
}

.finding-card-footer-left span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 附件缩略图样式 */
.finding-attachments {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.finding-attachment-thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #d9d9d9;
    transition: all 0.3s ease;
}

.finding-attachment-thumb:hover {
    border-color: #1890ff;
    transform: scale(1.05);
}

.finding-attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.finding-attachment-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 4px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 12px;
}

/* 表格样式（备用） */
.additional-findings-table {
    margin-top: 16px;
}

.finding-description {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.finding-description:hover .description-text {
    color: #1890ff;
}

.severity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.description-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 详情抽屉样式 */
.finding-photos {
    margin-top: 24px;
}

.finding-photos h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.photo-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.finding-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* 新增弹窗照片预览 */
.photo-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.photo-remove:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 分页样式 */
.additional-findings-pagination {
    margin-top: 16px;
    text-align: right;
}

/* 响应式 */
@media (max-width: 768px) {
    .additional-findings-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .additional-findings-stats {
        flex-direction: column;
    }
    
    .finding-card-header {
        flex-direction: column;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

