Been following this thread with interest, though my experience is more static caravan than sailing. That said, spent enough time around boats to know salt water and electronics don't play nicely together.
The corrosion issue is real — worse than anything you'll deal with on land. If you're going Victron (which I'd recommend for reliability), their gear handles marine environments reasonably well, but you'll need proper ventilation and regular maintenance schedules. Don't skimp on the enclosure.
Solar's brilliant for boats. Flexible panels from Renogy mount flush and take up less space than rigid units, which matters when you're working with limited deck area. Angle of incidence is tricky though — you're constantly moving, so fixed installation won't give you optimal output year-round. Some folks use tracking mounts but that's another thing to maintain in a harsh environment.
Battery choice matters more on a boat than anywhere else. Lithium's lighter (important for stability), but if your budget won't stretch, a quality LiFePO₄ setup with proper BMS is miles better than old-school lead-acid. The weight saving alone improves sailing characteristics.
What I'm genuinely curious about: how are you managing freshwater systems alongside power? That's often the overlooked part. Wind generators seem popular for cruisers — reckon you're considering one?
Also, what size vessel and how long are you planning to be offshore? Range matters hugely for system sizing.