/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
}

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

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

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

.upload-area:hover {
    border-color: #0071e3;
    background: #f5f5f7;
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: #0071e3;
    margin-bottom: 1rem;
}

.upload-hint {
    color: #86868b;
}

.sub-hint {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 预览区域样式 */
.preview-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.preview-box {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.image-container {
    width: 100%;
    height: 300px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* 控制面板样式 */
.control-panel {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #0071e3;
    border-radius: 50%;
    cursor: pointer;
}

.download-btn {
    width: 100%;
    padding: 1rem;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #0077ed;
} 