/* image-rotator.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;
}

/* ---- 原图卡片 ---- */
.orig-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.orig-card .thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #fff;
}

.orig-card .meta {
    flex: 1;
    min-width: 0;
}

.orig-card .name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orig-card .dims,
.orig-card .size {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.orig-card .btn-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.orig-card .btn-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ---- 快速旋转 ---- */
.quick-bar {
    display: flex;
    gap: 8px;
}

.quick-bar .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 500;
}

/* ---- 角度控制 ---- */
.angle-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.angle-row input[type="range"] {
    flex: 1;
    accent-color: #667eea;
    cursor: pointer;
}

.angle-input {
    width: 70px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding: 6px 4px;
    font-size: 13px;
}

.angle-unit {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.angle-presets {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.angle-presets .btn {
    padding: 5px 14px;
    font-size: 12px;
}

/* ---- 翻转 ---- */
.flip-bar {
    display: flex;
    gap: 8px;
}

.flip-bar .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 500;
}

/* ---- 背景色 ---- */
.bg-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bg-color-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bg-color-wrap input[type="color"] {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    background: #fff;
}

.bg-color-wrap span {
    font-size: 12px;
    color: #6b7280;
    font-family: monospace;
}

.bg-fill-btns {
    display: flex;
    gap: 4px;
}

.bg-fill-btns .btn {
    padding: 5px 12px;
    font-size: 12px;
}

.bg-fill-btns .btn.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* ---- 预览对比 ---- */
.preview-compare {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.preview-box {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.preview-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.preview-img-wrap {
    background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 50% / 12px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.preview-img-wrap img {
    display: block;
    border-radius: 4px;
}

.preview-info {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.preview-arrow {
    font-size: 20px;
    color: #667eea;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- 统计卡 ---- */
.stats-row {
    display: flex;
    gap: 8px;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    padding: 14px 16px;
    flex: 1;
    text-align: center;
}

.stats-card .label {
    font-size: 11px;
    opacity: 0.85;
}

.stats-card .value {
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .preview-compare {
        flex-direction: column;
    }
    .preview-arrow {
        transform: rotate(90deg);
    }
    .stats-row {
        flex-direction: column;
    }
    .bg-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
