/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 头部标题样式 */
header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

header p {
    color: #86868b;
    font-size: 1.1rem;
}

/* 上传区域样式 */
.upload-area {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px dashed #e0e0e0;
}

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

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

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

.upload-hint {
    color: #86868b;
    font-size: 0.9rem;
}

/* 压缩控制区域样式 */
.compression-controls {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

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

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* 预览区域样式 */
.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.preview-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preview-box h3 {
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.image-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f5f5f7;
    margin-bottom: 1rem;
}

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

.file-info {
    color: #86868b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 下载按钮样式 */
.download-btn {
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 980px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.download-btn:hover {
    background-color: #0077ed;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

/* 底部信息样式 */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background-color: #f5f5f7;
    border-top: 1px solid #e0e0e0;
}

.footer .container {
    text-align: center;
}

.footer .disclaimer {
    color: #86868b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer .beian {
    color: #86868b;
    font-size: 0.9rem;
}

.footer .beian a {
    color: #86868b;
    text-decoration: none;
}

.footer .beian a:hover {
    text-decoration: underline;
} 