/* exif-viewer.html 私有样式 */
.container {
    max-width: 1400px;
}

/* ---- 上传区 ---- */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #eef2ff;
}

.upload-area .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.upload-area .upload-text {
    color: #6b7280;
    font-size: 14px;
}

.upload-area .upload-text strong {
    color: #667eea;
}

.upload-area .upload-tip {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* ---- 文件信息卡片 ---- */
.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.info-card .thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #fff;
}

.info-card .meta {
    flex: 1;
    min-width: 0;
}

.info-card .name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-card .dims,
.info-card .size {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* ---- 快速概览 ---- */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.quick-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    padding: 10px 12px;
    text-align: center;
}

.quick-item .q-label {
    font-size: 11px;
    opacity: 0.85;
}

.quick-item .q-value {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
    word-break: break-all;
}

/* ---- Exif信息展示 ---- */
.exif-section {
    margin-bottom: 12px;
}

.exif-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.exif-table {
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.exif-row {
    display: flex;
    border-bottom: 1px solid #f3f4f6;
}

.exif-row:last-child {
    border-bottom: none;
}

.exif-row:hover {
    background: #fafbff;
}

.exif-key {
    flex: 0 0 140px;
    padding: 8px 12px;
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
    border-right: 1px solid #f3f4f6;
    font-weight: 500;
}

.exif-val {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    word-break: break-all;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .exif-key {
        flex: 0 0 100px;
        font-size: 12px;
    }
    .exif-val {
        font-size: 12px;
    }
}
