body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.header p {
    color: #666;
    font-size: 1.1rem;
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #4a90e2;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.upload-content i {
    font-size: 2.5rem;
    color: #4a90e2;
}

.upload-text h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.upload-text p {
    color: #666;
    font-size: 0.85rem;
}

/* 预览区域样式 */
.preview-placeholder {
    width: 100%;
    height: 600px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.placeholder-content {
    text-align: center;
}

.placeholder-content i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: #666;
    font-size: 1.1rem;
}

/* 图片对比区域样式 */
.comparison-container {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.comparison-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.comparison-image.colorized {
    clip-path: inset(0 50% 0 0);
}

/* 滑块样式 */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 40px;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.slider-button {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #4a90e2;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.slider-button i {
    color: white;
    font-size: 0.8rem;
    margin: 0 2px;
}

/* 标签样式 */
.image-labels {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #f8f9fa;
}

.label-original, .label-colorized {
    font-weight: 500;
    color: #333;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

.reset-btn {
    background: #dc3545;
    color: white;
}

.download-btn {
    background: #28a745;
    color: white;
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 加载动画 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.loading-content {
    text-align: center;
}

.loading-content i {
    font-size: 2rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .preview-placeholder,
    .comparison-slider {
        height: 400px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .preview-placeholder,
    .comparison-slider {
        height: 650px;
    }
}

.success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.success-content i {
    color: #4CAF50;
    font-size: 2em;
}

.success-content p {
    margin: 0;
    color: #333;
    font-size: 1.1em;
} 