/* 证件照制作页面样式 */

.photo-maker {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.maker-header {
    text-align: center;
    margin-bottom: 3rem;
}

.maker-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.maker-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.maker-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* 照片上传区域 */
.photo-upload-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.02);
}

.upload-content i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.upload-content h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.btn-upload {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* 照片预览 */
.photo-preview {
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.preview-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #dc2626;
}

/* 处理进度 */
.processing-progress {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f1f5f9;
    border-radius: 8px;
}

.progress-header h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* 设置选项区域 */
.photo-settings-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.settings-card h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.setting-group {
    margin-bottom: 0.5rem;
}

.setting-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #374151;
    transition: all 0.3s ease;
}

.setting-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 背景颜色选择 */
.color-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.color-option:hover {
    background: #f1f5f9;
}

.color-option input[type="radio"] {
    display: none;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    transition: all 0.3s ease;
}

.color-preview.white {
    background: #ffffff;
}

.color-preview.blue {
    background: #3b82f6;
}

.color-preview.red {
    background: #ef4444;
}

.color-option input[type="radio"]:checked + .color-preview {
    border-color: #3b82f6;
    transform: scale(1.1);
}

/* 复选框选项 */
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background: #f1f5f9;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-process, .btn-preview {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-process {
    background: #3b82f6;
    color: white;
}

.btn-process:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-process:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-preview {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-preview:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-preview:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* 结果展示区域 */
.result-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-header h3 {
    color: #059669;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-header p {
    color: #64748b;
}

.result-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.result-preview img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-info p {
    margin-bottom: 0.75rem;
    color: #374151;
}

.result-info strong {
    color: #1e293b;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-download, .btn-adjust, .btn-new {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download {
    background: #059669;
    color: white;
}

.btn-download:hover {
    background: #047857;
    transform: translateY(-2px);
}

.btn-adjust, .btn-new {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-adjust:hover, .btn-new:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* 使用说明 */
.instructions-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.instructions-section h3 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.instruction-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.instruction-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.instruction-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.instruction-icon i {
    font-size: 1.5rem;
    color: white;
}

.instruction-item h4 {
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.instruction-item p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .maker-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .result-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .maker-header h1 {
        font-size: 2rem;
    }
    
    .photo-upload-section,
    .settings-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .photo-maker {
        padding: 1rem 0;
    }
    
    .maker-header h1 {
        font-size: 1.75rem;
    }
    
    .color-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-buttons {
        gap: 0.75rem;
    }
    
    .btn-process, .btn-preview {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}
