\documentclass[a4paper,openany,12pt]{ctexbook}

% ========== 宏包与全局设置 ==========
\input{preamble}

% ========== 标题信息 ==========
\title{\Huge\textbf{设计人工智能：基础与应用} \\[1em] \Large Design AI: Fundamentals and Applications}
\author{彭晓 \\ \small 空间智能与自主设计实验室}
\date{2026年5月}

% ========== 按章编译开关 ==========
% 取消注释以只编译特定章节（加速调试）
% \includeonly{chapters/ch01-intro}

% ==========================================================================
\begin{document}

% ---------- 封面 ----------
\maketitle
\thispagestyle{empty}

% ---------- 前言部分 ----------
\frontmatter
\input{chapters/ch00-preface}
\tableofcontents

% ---------- 正文部分 ----------
\mainmatter

% 上篇：原理与技术
\input{chapters/divider-upper}
\input{chapters/ch01-intro}
\input{chapters/ch02-framework}
\input{chapters/ch03-1d-sequence}
\input{chapters/ch04-2d-vision}
\input{chapters/ch05-3d-spatial}
\input{chapters/ch06-generative}
\input{chapters/ch07-agent}
\input{chapters/ch08-rl}

% 下篇：设计领域应用
\input{chapters/divider-lower}
\input{chapters/ch09-digital-media}
\input{chapters/ch10-industrial}
\input{chapters/ch11-environment}
\input{chapters/ch12-urban}

% 结语
\input{chapters/ch13-conclusion}

% ---------- 参考文献 ----------
\addcontentsline{toc}{chapter}{参考文献}
\bibliography{DesignAI}

% ---------- 附录部分 ----------
\appendix
\input{appendices/ap00-divider}
\input{appendices/ap01-programming}
\input{appendices/ap02-vibe-coding}
\input{appendices/ap03-academic-writing}
\input{appendices/ap04-web-tools}
\input{appendices/ap05-online-resources}
\input{appendices/ap06-more-resources}
\input{appendices/ap08-glossary}
\input{appendices/ap09-tips}

\end{document}
