/* 图片转换工具样式 */
.converter-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.format-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.format-option {
    flex: 1;
    min-width: 100px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.format-option:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.format-option.active {
    border-color: #667eea;
    background: #edf2f7;
    color: #667eea;
    font-weight: 600;
}

.format-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.format-name {
    font-size: 14px;
}

.option-input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.option-input:focus {
    outline: none;
    border-color: #667eea;
}

.preview-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.preview-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    background: #f7fafc;
}

.preview-label {
    font-size: 13px;
    color: #718096;
    margin-bottom: 10px;
    font-weight: 600;
}

.preview-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.image-info {
    margin-top: 10px;
    font-size: 12px;
    color: #718096;
}

@media (max-width: 768px) {
    .preview-area {
        grid-template-columns: 1fr;
    }
    
    .format-selector {
        flex-direction: column;
    }
    
    .format-option {
        min-width: auto;
    }
    
    }