/* ============ 图片 EXIF 读取 - 工具特有样式 ============ */
/* 通用样式（卡片、按钮、分隔线、info-box、upload-area、empty-state、card-header-* 等）已由 common.css 统一提供 */

/* ---- 容器 + 左右 1:2 布局 ---- */
#exif-container > .section-row {
    display: flex;
    gap: 15px;
}

#exif-container > .section-row > .settings-card {
    flex: 1;
    margin-top: 0;
    margin-bottom: 0;
}

#exif-container > .section-row > .preview-card {
    flex: 2;
    margin-top: 0;
    margin-bottom: 0;
}

/* ---- 图片预览 ---- */
.crop-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #1f2937;
    overflow: hidden;
    min-height: 200px;
}

/* ---- 加载态（循环动画） ---- */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 40px;
    min-height: 200px;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e5e7eb;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: #6b7280;
}

.crop-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 520px;
}

/* ---- 上传区（与 quseqi 保持一致） ---- */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 40px;
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.upload-icon {
    font-size: 48px;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.upload-hint {
    font-size: 13px;
    color: #9ca3af;
}

/* ---- 表格视图 ---- */
.table-view {
    max-height: 520px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    position: sticky;
    top: 0;
    background: #f9fafb;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.field-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    width: 40%;
}

.field-value {
    font-size: 13px;
    color: #6b7280;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    #exif-container > .section-row {
        flex-direction: column;
        gap: 12px;
    }
}
