/* 全局样式 */
:root {
    --primary-color: #007AFF;
    --background-color: #F5F5F7;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--background-color);
    color: #1D1D1F;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

/* 上传区域样式 */
.upload-area {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.upload-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.upload-box {
    border: 2px dashed #E5E5E5;
    border-radius: var(--border-radius);
    padding: 40px;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.sub-text {
    color: #86868B;
    font-size: 14px;
    margin-top: 8px;
}

/* 预览区域样式 */
.preview-container {
    margin-top: 40px;
}

.preview-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.preview-item {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.image-container {
    width: 100%;
    height: 300px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F7;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 控制区域样式 */
.controls {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quality-control {
    margin-bottom: 20px;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.download-btn:hover {
    background: #0056b3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .preview-box {
        grid-template-columns: 1fr;
    }
    
    .image-container {
        height: 200px;
    }
} 