/* ========== EXIF查看器专用样式 ========== */

/* 上传区域 */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.upload-area h3 {
    margin: 15px 0 10px 0;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
}

.upload-area p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* EXIF查看器 */
.exif-viewer {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.exif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.exif-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
    font-weight: 600;
    word-break: break-all;
}

.exif-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* EXIF信息区域 */
.exif-info-section {
    margin-top: 20px;
}

.exif-info-section h4 {
    font-size: 16px;
    color: #1f2937;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exif-info-section h4 i {
    color: #3b82f6;
}

/* EXIF分组容器 */
.exif-groups-container {
    margin-top: 20px;
}

.exif-group {
    margin-bottom: 25px;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.exif-group:last-child {
    margin-bottom: 0;
}

.exif-group-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exif-group-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #66418f 100%);
}

.exif-group-header h4 {
    margin: 0;
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exif-group-header h4 i {
    color: white;
    font-size: 14px;
}

.tag-count {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    margin-left: auto;
}

/* EXIF信息表格 */
.exif-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.exif-group .exif-table {
    background: transparent;
}

.exif-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.exif-table tbody tr:last-child {
    border-bottom: none;
}

.exif-table tbody tr:hover {
    background: #f3f4f6;
}

.exif-table td {
    padding: 12px 15px;
    font-size: 14px;
}

.exif-table td:first-child {
    font-weight: 600;
    color: #374151;
    width: 30%;
    white-space: nowrap;
}

.exif-table td:last-child {
    color: #6b7280;
    word-break: break-word;
}

/* 加载指示器 */
#loadingIndicator {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn:not(:disabled):active {
    transform: translateY(0);
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:not(:disabled):hover {
    background: #2563eb;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:not(:disabled):hover {
    background: #059669;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:not(:disabled):hover {
    background: #d97706;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-area {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .exif-viewer {
        padding: 20px 15px;
    }

    .exif-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .exif-header h3 {
        font-size: 18px;
    }

    .exif-actions {
        width: 100%;
        flex-direction: column;
    }

    .exif-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .exif-group {
        margin-bottom: 20px;
    }

    .exif-group-header {
        padding: 10px 15px;
    }

    .exif-group-header h4 {
        font-size: 14px;
    }

    .tag-count {
        font-size: 12px;
    }

    .exif-table td:first-child {
        width: 40%;
    }

    .exif-table td {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .upload-area h3 {
        font-size: 16px;
    }

    .upload-area p {
        font-size: 13px;
    }

    .exif-header h3 {
        font-size: 16px;
    }

    .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}
