The Yangtze River basin, characterized by multiple emission sources and complex hydrodynamic conditions, exhibits pronounced phase-specific differences in antibiotic occurrence and ecological risks between surface water and sediments. However, the multiscale drivers jointly regulating exposure and risk remain insufficiently quantified. In this study, a priority ranking framework was established to assess 107 antibiotics across five classes in 12 sub-basins and to examine their ecological risks and driving pathways. Sulfonamides (SAs) and quinolones (QNs) dominated surface water concentrations, while macrolides (MLs) and selected SAs posed higher ecological risks due to low predicted no-effect concentrations (PNECs), with key risk-driving compounds including sulfamonomethoxine (SMM), azithromycin (AZM), and ofloxacin (OFX). Spatially, upstream sub-basins with intensive livestock production showed the highest surface water concentrations, whereas sediments accumulated antibiotics in midstream river-lake sub-basins, primarily sulfameter (SFM), ciprofloxacin (CIP), and norfloxacin (NOR), with Dongting Lake and the Wuhan to Hukou reach exhibiting the highest sediment risk. Partial least squares path modeling (PLS-PM) indicated that animal production directly increased antibiotic exposure, whereas hydrological processes reduced ecological risk via dilution and degradation. Overall, animal production was the primary driver of total antibiotic concentrations and ecological risk, with hydrological conditions providing a consistent mitigating effect. Risk prioritization highlighted the WJR and JLR as key regions, emphasizing the need for region-specific management targeting high-risk compounds to mitigate long-term ecological impacts.