\begin{table*}[t]
\centering
\scriptsize 
\caption{Subtype classification performance (mean\textsubscript{std}, \%) across four datasets: appendiceal cancer, TCGA-NSCLC, TCGA-ESCA, and BRACS. Results are reported as balanced accuracy (BAcc), accuracy, AUC, F1 and F1-macro.}
\label{tab:main_results}
% \setlength{\tabcolsep}{3pt}
\renewcommand{\arraystretch}{1.2}

% ======= 上半部分：Appendiceal Cancer & BRACS =======
\begin{tabular}{l|ccc|ccc}
\toprule
\multirow{2}{*}{\textbf{Method}} &
\multicolumn{3}{c|}{\textbf{Appendiceal Cancer}} &
\multicolumn{3}{c}{\textbf{BRACS}} \\
 & \textbf{BAcc} & \textbf{AUC} & \textbf{F1} & \textbf{BAcc} & \textbf{AUC} & \textbf{F1-macro} \\
\midrule

CLAM-SB 
& 90.09\textsubscript{6.47} & 94.96\textsubscript{8.79} & 86.25\textsubscript{8.15}
& 31.25\textsubscript{4.19} & 77.29\textsubscript{3.21} & 27.11\textsubscript{4.45}
\\
CLAM-MB 
& 88.62\textsubscript{10.68} & \textbf{96.82\textsubscript{4.13}} & 85.36\textsubscript{14.95}
& 30.48\textsubscript{3.30} & 74.72\textsubscript{3.12} & 27.56\textsubscript{3.89}
\\
DSMIL 
& 78.92\textsubscript{13.86} & 90.58\textsubscript{9.89} & 68.44\textsubscript{24.77} 
& 32.15\textsubscript{6.74} & 68.44\textsubscript{3.66} & 29.31\textsubscript{6.84}
\\
TransMIL 
& 84.07\textsubscript{10.71} & 92.47\textsubscript{7.64} & 76.87\textsubscript{14.33}
& 30.18\textsubscript{4.07} & 76.09\textsubscript{2.57} & 26.80\textsubscript{3.89}
\\
WiKG 
& 84.31\textsubscript{7.39} & 94.37\textsubscript{6.51} & 79.16\textsubscript{11.19}
& 28.08\textsubscript{1.86} & 70.75\textsubscript{2.93} & 22.58\textsubscript{2.42}
\\
PatchGCN
& 87.41\textsubscript{9.48} & 95.35\textsubscript{7.42} & 83.84\textsubscript{12.29} 
& 28.93\textsubscript{3.85} & 71.57\textsubscript{4.68} & 21.87\textsubscript{5.11}
\\
DTFD-MIL 
& 86.22\textsubscript{9.56} & 93.27\textsubscript{11.35} & 80.08\textsubscript{13.02} 
& 26.82\textsubscript{3.63} & 73.37\textsubscript{2.10} & 21.36\textsubscript{3.48}
\\
MHIM-DSMIL 
& 86.42\textsubscript{12.74} & 97.03\textsubscript{2.72} & 81.15\textsubscript{19.45}
& 33.29\textsubscript{7.18} & 77.47\textsubscript{3.89} & \textbf{31.64\textsubscript{5.95}}
\\
MHIM-TransMIL 
& 87.49\textsubscript{9.45} & 91.59\textsubscript{11.69} & 84.94\textsubscript{13.47}
& 27.16\textsubscript{2.17} & 68.89\textsubscript{3.55} & 25.32\textsubscript{1.53}
\\
\rowcolor{gray!15}
\textbf{ResGAT (ours)} 
& \textbf{92.56\textsubscript{6.36}} & 96.41\textsubscript{1.94} & \textbf{90.98\textsubscript{7.98}}
& \textbf{33.76\textsubscript{6.07}} & \textbf{77.61\textsubscript{0.95}} & 28.74\textsubscript{6.08}
\\
\bottomrule
\end{tabular}

\vspace{0.2cm} % 两个表格之间的垂直留白

% ======= 下半部分：TCGA-NSCLC & TCGA-ESCA =======
% \setlength{\tabcolsep}{10pt} % 因为只有5列，稍微调宽一点间距让排版更舒展
\begin{tabular}{l|cc|cc}
\toprule
\multirow{2}{*}{\textbf{Method}} &
\multicolumn{2}{c|}{\textbf{TCGA-NSCLC}} &
\multicolumn{2}{c}{\textbf{TCGA-ESCA}} \\
 & \textbf{Accuracy} & \textbf{AUC} & \textbf{Accuracy} & \textbf{AUC} \\
\midrule

CLAM-SB 
& \textbf{93.72\textsubscript{1.72}} & \textbf{97.55\textsubscript{1.44}} 
& \textbf{98.04\textsubscript{1.60}} & 99.83\textsubscript{0.34} 
\\
CLAM-MB 
& 92.70\textsubscript{1.53} & 97.39\textsubscript{1.57} 
& 96.11\textsubscript{3.16} & \textbf{100.00\textsubscript{0.00}} 
\\
DSMIL 
& 92.29\textsubscript{1.40} & 97.08\textsubscript{1.53} 
& 95.42\textsubscript{4.45} & 97.72\textsubscript{2.65} 
\\
TransMIL 
& 92.29\textsubscript{2.13} & 97.15\textsubscript{0.82} 
& 93.51\textsubscript{4.08} & 99.39\textsubscript{0.52} 
\\
WiKG 
& 92.09\textsubscript{1.94} & 96.35\textsubscript{1.45} 
& 93.48\textsubscript{3.59} & 99.63\textsubscript{0.74} 
\\
PatchGCN
& 93.00\textsubscript{2.08} & 97.13\textsubscript{1.53} 
& 92.84\textsubscript{2.37} & 99.17\textsubscript{1.45}
\\
DTFD-MIL 
& 93.61\textsubscript{1.75} & 97.41\textsubscript{1.38} 
& 96.11\textsubscript{3.16} & 99.39\textsubscript{0.65} 
\\
MHIM-DSMIL 
& 92.70\textsubscript{1.23} & 97.48\textsubscript{1.23} 
& 94.82\textsubscript{4.37} & 98.88\textsubscript{1.80} 
\\
MHIM-TransMIL 
& 92.40\textsubscript{1.31} & 97.30\textsubscript{1.51} 
& 94.82\textsubscript{4.37} & 99.73\textsubscript{0.22} 
\\
\rowcolor{gray!15}
\textbf{ResGAT (ours)} 
& 93.51\textsubscript{0.75} & 97.15\textsubscript{1.47} 
& 98.02\textsubscript{1.62} & 99.91\textsubscript{0.17} 
\\
\bottomrule
\end{tabular}
\end{table*}