.compress-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
}

.compress-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #4361EE, #F72585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.compress-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.upload-section {
    margin: 2rem 0;
}

.upload-area {
    border: 2px dashed #4361EE;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: rgba(67, 97, 238, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.upload-area:hover {
    background: rgba(67, 97, 238, 0.1);
    border-color: #F72585;
}

.upload-area.drag-over {
    border-color: #4361EE;
    background: rgba(67, 97, 238, 0.1);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    color: #4361EE;
}

.upload-area p {
    color: #666;
    font-size: 1.1rem;
}

#fileInput {
    display: none;
}

.preview-section {
    margin-top: 2rem;
}

.preview-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.preview-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.preview-item h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.preview-item img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-info-item {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.image-info-item span:first-child {
    color: #666;
    margin-right: 0.5rem;
}

.image-info-item span:last-child {
    color: #333;
    font-weight: bold;
}

.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.quality-control, .size-limit {
    margin: 1.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quality-control label, .size-limit label {
    display: block;
    margin-bottom: 0.8rem;
    color: #333;
    font-size: 1.1rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #4361EE, #F72585);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

input[type="number"] {
    width: 120px;
    padding: 0.8rem;
    border: 1px solid rgba(67, 97, 238, 0.3);
    border-radius: 8px;
    margin-right: 0.5rem;
    font-size: 1rem;
    text-align: center;
}

.download-btn {
    display: inline-block;
    min-width: 200px;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4361EE, #F72585);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

@media (max-width: 768px) {
    .compress-container {
        padding: 1rem;
        margin-top: 60px;
    }

    .compress-content {
        padding: 1rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .preview-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .settings-section {
        padding: 1.5rem;
    }

    .quality-control, .size-limit {
        margin: 1rem 0;
    }

    input[type="number"] {
        width: 100px;
        padding: 0.6rem;
    }

    .download-btn {
        width: 100%;
        margin: 1.5rem auto 0;
        padding: 0.8rem 1.5rem;
    }
}

/* 按钮样式 */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #4361EE, #F72585);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 预览区域样式 */
.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.preview-original,
.preview-compressed {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-original h3,
.preview-compressed h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.image-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 1rem;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-info {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}

/* 下载按钮样式 */
.download-area {
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4361EE, #F72585);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.download-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.download-icon {
    width: 24px;
    height: 24px;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .image-container {
        height: 250px;
    }

    .setting-group {
        margin-bottom: 1rem;
    }

    input[type="number"] {
        width: 100px;
    }
}

/* 压缩设置样式 */
.compress-settings {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4361EE;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.quality-value {
    min-width: 60px;
    text-align: right;
    color: #666;
}

.width-control,
.height-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="number"] {
    width: 120px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

/* 压缩进度样式 */
.compress-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4361EE, #F72585);
    width: 0;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
} 