/* 主要内容样式 */
.main-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #86868b;
    font-size: 1.1rem;
}

.content-area {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 上传区域样式 */
.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed #86868b;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0071e3;
    background-color: rgba(0, 113, 227, 0.05);
}

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

.support-text {
    color: #86868b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

.preview-box {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 1rem;
}

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

.image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-info {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    color: #86868b;
    font-size: 0.9rem;
}

/* 压缩控制区域 */
.compression-controls {
    background: #f5f5f7;
    padding: 1.5rem;
    border-radius: 12px;
}

.quality-control {
    margin-bottom: 1.5rem;
}

.quality-control label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    background: #86868b;
    border-radius: 2px;
    -webkit-appearance: 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);
}

/* 按钮样式 */
button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: #0071e3;
    color: white;
    margin-right: 1rem;
}

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

.reset-btn {
    background: #f5f5f7;
    color: #1d1d1f;
}

.reset-btn:hover {
    background: #e5e5e7;
}

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

    .compression-controls {
        padding: 1rem;
    }

    button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
} 