Triassic Chang 7 member shale is the main source rock in Huanxian area of the western Ordos Basin. Through rock pyrolysis, total organic carbon measurement, gas chromatography-mass spectrometry, and AI-assisted comprehensive biomarker analysis, geochemical characteristics of crude oils and source rocks were systematically studied,the origin of crude oil and the proportion of hydrocarbon supply from mudstones and shales were clarified, and their hydrocarbon accumulation models were explored. The results show that: (1) Triassic Chang 7 member in the eastern Huanxian area is primarily developed shale,characterized by high organic matter abundance, favorable organic matter type, significant hydrocarbon generation potential. In contrast, the western part is dominated by dark mudstone, with TOC values ranging from 0.40% to 6.23%, hydrocarbon generation potential (S1 + S2) of 0.50-13.13 mg/g, organic matter types of TypeⅡ and Ⅲ, and an average vitrinite reflectance (Ro) of 0.84%, indicating a mature stage. It belongs to a medium-poor source rock with relatively lower hydrocarbon generation potential compared to shale. (2) Biomarker compositions of eastern shales and western mudstones are fundamentally similar, but significant differences exist in certain biomarker parameter ratios. Eastern shales exhibit low Pr/Ph ratios, high Ts/Tm, C29Ts/C29H, C30*/C29H, and C30*/C30H values. In contrast, western dark mudstones display relatively high Pr/Ph ratios, low Ts/Tm, C29Ts/C29H, C30*/C29H, and C30*/C30H values. These differences reflect the controlling effect of paleo-sedimentary environments on the development of mudstones and shales in the study area. (3) Chang 8 member in the study area develops three types of crude oil: Type A is crude oil predominantly from the eastern Chang 8 member, exhibiting high Ts/Tm and C29Ts/C29H values, along with relative high C30*/C29H and C30*/C30H values, type A is primarily derived from eastern shales. Type C, though currently less abundant, is characterized by low Ts/Tm, C29Ts/C29H, C30*/C29H, and C30*/C30H values, predominant sourcing from western mudstone. Type B, found in the western Chang 8 member, displays intermediate biomarker between type A and type C, with moderate Ts/Tm, C29Ts/C29H, C30*/C29H, and C30*/C30H values. It is a mixed crude oil composition dominantly contributed by eastern shales.