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

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    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: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #2d3436, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* 上传区域样式 */
.upload-area {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

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

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

/* 预览容器样式 */
.preview-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preview-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f7;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-info {
    margin-top: 1rem;
    color: #86868b;
}

/* 控制面板样式 */
.control-panel {
    border-top: 1px solid #e5e5e5;
    padding-top: 2rem;
}

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

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

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

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

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.download-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.download-btn:disabled:hover {
    background: #cccccc;
    transform: none;
}