/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体和颜色变量 */
:root {
    --primary-color: #007AFF;
    --background-color: #F5F5F7;
    --text-color: #1D1D1F;
    --border-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header p {
    color: #86868B;
}

/* 上传区域样式 */
.upload-area {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    border: 2px dashed #E5E5E5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.upload-button {
    color: var(--primary-color);
    cursor: pointer;
}

/* 预览区域样式 */
.preview-container {
    margin-top: 2rem;
}

.preview-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.preview-box {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.preview-box h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.preview-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #86868B;
}

/* 控制区域样式 */
.compress-controls {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quality-control {
    margin-bottom: 1rem;
}

input[type="range"] {
    width: 100%;
    margin: 1rem 0;
}

.download-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.download-button:hover {
    background: #0056b3;
} 