/**
 * 页面专属样式：image-to-pdf
 * 作用域：body.page-image-to-pdf
 * 由 css/components.css 于 2026-11-03 拆出，只在该页面加载。
 * 新增同类样式请写进本文件，不要退回 components.css。
 */
/* ===== 页面样式：image-to-pdf（2026-10-31 由内联迁入） ===== */
body.page-image-to-pdf {
    min-height: 100vh
}

body.page-image-to-pdf .container {
    
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        
}

body.page-image-to-pdf .header {
    
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 3rem 2rem;
            text-align: center;
        
}

body.page-image-to-pdf .header h1 {
    
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
        
}

body.page-image-to-pdf .header p {
    
            font-size: 1rem;
            opacity: 0.9;
        
}

body.page-image-to-pdf .content {
    
            padding: 2rem;
        
}

body.page-image-to-pdf .upload-area {
    
            border: 2px dashed var(--primary);
            border-radius: 8px;
            padding: 3rem 2rem;
            text-align: center;
            background: var(--bg-light);
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 2rem;
        
}

body.page-image-to-pdf .upload-area:hover {
    
            border-color: var(--primary-dark);
            background: var(--accent-tint);
        
}

body.page-image-to-pdf .upload-area.dragover {
    
            border-color: var(--primary-dark);
            background: rgba(192, 40, 30, 0.08);
        
}

body.page-image-to-pdf .upload-icon {
    
            font-size: 3rem;
            margin-bottom: 1rem;
        
}

body.page-image-to-pdf .upload-text {
    
            color: var(--text-dark);
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        
}

body.page-image-to-pdf .upload-hint {
    
            color: var(--text-light);
            font-size: 0.9rem;
        
}

body.page-image-to-pdf #fileInput {
    
            display: none;
        
}

body.page-image-to-pdf .preview-container {
    
            margin-bottom: 2rem;
        
}

body.page-image-to-pdf .preview-title {
    
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 1rem;
        
}

body.page-image-to-pdf .preview-grid {
    
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 1rem;
        
}

body.page-image-to-pdf .preview-item {
    
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            background: var(--bg-light);
            aspect-ratio: 1;
            cursor: move;
        
}

body.page-image-to-pdf .preview-item img {
    
            width: 100%;
            height: 100%;
            object-fit: cover;
        
}

body.page-image-to-pdf .preview-item.dragging {
    
            opacity: 0.5;
        
}

body.page-image-to-pdf .preview-actions {
    
            position: absolute;
            top: 0;
            right: 0;
            display: flex;
            gap: 0.25rem;
            padding: 0.25rem;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 4px;
            opacity: 0;
            transition: opacity 0.3s;
        
}

body.page-image-to-pdf .preview-item:hover .preview-actions {
    
            opacity: 1;
        
}

body.page-image-to-pdf .btn-icon {
    
            width: 28px;
            height: 28px;
            border: none;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            transition: all 0.3s;
        
}

body.page-image-to-pdf .btn-icon:hover {
    
            background: white;
            transform: scale(1.1);
        
}

body.page-image-to-pdf .btn-icon.delete:hover {
    
            background: var(--error);
            color: white;
        
}

body.page-image-to-pdf .settings {
    
            background: var(--bg-light);
            padding: 1.5rem;
            border-radius: 8px;
            margin-bottom: 2rem;
        
}

body.page-image-to-pdf .settings-title {
    
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 1rem;
        
}

body.page-image-to-pdf .setting-group {
    
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1rem;
        
}

body.page-image-to-pdf .setting-item {
    
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        
}

body.page-image-to-pdf .setting-item label {
    
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-dark);
        
}

body.page-image-to-pdf .setting-item select,
body.page-image-to-pdf .setting-item input {
    
            padding: 0.5rem;
            border: 1px solid var(--border);
            border-radius: 4px;
            font-size: 0.9rem;
        
}

body.page-image-to-pdf .actions {
    
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        
}

body.page-image-to-pdf .btn {
    
            flex: 1;
            padding: 1rem;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        
}

body.page-image-to-pdf .btn-primary {
    
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
        
}

body.page-image-to-pdf .btn-primary:hover:not(:disabled) {
    
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(192, 40, 30, 0.3);
        
}

body.page-image-to-pdf .btn-primary:disabled {
    
            opacity: 0.5;
            cursor: not-allowed;
        
}

body.page-image-to-pdf .btn-secondary {
    
            background: var(--bg-light);
            color: var(--text-dark);
            border: 1px solid var(--border);
        
}

body.page-image-to-pdf .btn-secondary:hover:not(:disabled) {
    
            background: var(--border);
        
}

body.page-image-to-pdf .info-box {
    
            background: var(--accent-tint);
            border-left: 4px solid var(--primary);
            padding: 1rem;
            border-radius: 4px;
            margin-bottom: 2rem;
            color: var(--primary-dark);
            font-size: 0.95rem;
        
}

body.page-image-to-pdf .progress-container {
    
            display: none;
            margin-bottom: 2rem;
        
}

body.page-image-to-pdf .progress-bar {
    
            width: 100%;
            height: 8px;
            background: var(--border);
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        
}

body.page-image-to-pdf .progress-fill {
    
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            width: 0%;
            transition: width 0.3s;
        
}

body.page-image-to-pdf .progress-text {
    
            font-size: 0.9rem;
            color: var(--text-light);
            text-align: center;
        
}
