/* 详情页面样式 */

/* 详情页头部 */
.detail-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    padding: 24px 32px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-page-header h5 {
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-page-header-actions {
    display: flex;
    gap: 10px;
}

/* 详情内容区 */
.detail-content {
    background: #fff;
    padding: 24px;
}

/* 详情项 */
.detail-item {
    margin-bottom: 20px;
}

.detail-item .label {
    font-size: 12px;
    color: #909399;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* 详情卡片 */
.detail-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.detail-card-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-card-header h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-card-body {
    padding: 20px;
}

/* 问题描述卡片 */
.problem-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.problem-card-title {
    font-size: 12px;
    color: #856404;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.problem-card-content {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-content {
    background: #f8f9ff;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.timeline-time {
    font-size: 12px;
    color: #909399;
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 14px;
    color: #333;
}

/* 照片展示 */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 操作记录卡片 */
.record-card {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 3px solid #667eea;
}

.record-card:last-child {
    margin-bottom: 0;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.record-user {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.record-time {
    font-size: 12px;
    color: #909399;
}

.record-content {
    font-size: 14px;
    color: #606266;
    line-height: 1.5;
}

/* 响应式 */
@media (max-width: 768px) {
    .detail-page-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .detail-page-header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .detail-content {
        padding: 16px;
    }
    
    .photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
