\setlength\topmargin{-48pt}
\setlength\headheight{0pt}
\setlength\headsep{25pt}
\setlength\marginparwidth{-20pt}
\setlength\textwidth{7.0in}
\setlength\textheight{9.5in}
\setlength\oddsidemargin{-30pt}
\setlength\evensidemargin{-30pt}
\setCJKmainfont[Mapping = fullwidth-stop,BoldFont=STHeitiSC-Medium, ItalicFont=STKaitiSC-Regular]{STSongti-SC-Regular}


\frenchspacing						% better looking spacing

% Call packages we'll need
% \usepackage[english]{babel}			% english
\usepackage{graphicx}				% images
\usepackage{amssymb,amsmath}		% math
\usepackage{multicol}				% three-column layout
\usepackage{url,ctex,tikz}					% clickable links
\usepackage{marvosym}				% symbols
\usepackage{wrapfig}				% wrapping text around figures
\usepackage[T1]{fontenc}			% font encoding
\usepackage{charter} 				% Charter font for main content
\usepackage{datetime}				% custom date
\usepackage{mdframed} 
\usepackage{lipsum}%ダミーの文章を入れる
\usepackage{capt-of}
\usepackage[margin=2cm]{geometry}
\geometry{
    paperheight=260mm,
    paperwidth=185mm,
    top=25mm,
    bottom=18mm,
    left=18mm, 
    right=18mm
}
\usepackage{tcolorbox}
\usepackage{varwidth}
\usepackage{amsmath}
\usepackage{enumitem}
\usepackage{varwidth}
\usepackage{tikz}
\usepackage{pdfpages}
\usepackage{authblk}
\usepackage{mathrsfs}%\mathscr字体
\usepackage{esint}%环路积分
\usepackage[T1]{fontenc}
\usepackage{lmodern}%微元\dj
\usepackage{booktabs} %三线表
\usepackage{tabularx} %表格自动换行
\usepackage{zhlineskip}  % 中文排版时，数学公式间距调整
\usepackage{dsfont}
\usepackage{tikz-3dplot}
\usepackage{listings}
\lstset{
    basicstyle=\ttfamily\small,
    breaklines=true,
    breakatwhitespace=true,
    numbers=left,
    numberstyle=\footnotesize\color[RGB]{245,245,244},
    keywordstyle=\color[RGB]{40,40,255},
    commentstyle=\color[RGB]{0,96,96},
    stringstyle=\color[RGB]{128,0,0},
    showstringspaces=false,
    tabsize=4,
    backgroundcolor=\color[RGB]{245,245,244},
    language=python
}

\usepackage{calc}
\setlength{\lineskip}{\baselineskip-\ccwd}
\setlength{\lineskiplimit}{2.5pt}

\usetikzlibrary{calc}
\tcbuselibrary{breakable}
\tcbuselibrary{skins}
\tcbuselibrary{xparse}%xparse . sty定义的NewDocumentCommand
\usepackage{setspace}
\linespread{1.3}

\everymath{\displaystyle}


\usepackage{xpinyin}
\definecolor{frameinnercolor}{RGB}{0,112,131}%{249,179,72}


	\newdateformat{mydate}{\monthname[\THEMONTH] \THEYEAR}
\usepackage[pdfpagemode=FullScreen,
			colorlinks=true]{hyperref}	% links and pdf behaviour


%————版面设置————%
\usepackage{fancyhdr}
\fancypagestyle{heading}{
    \fancyhf{}
    \fancyhead[C]{\zihao{-5} 于洪飞 PB23020640}
    \fancyhead[R]{\zihao{-5}$\cdot$~\thepage~$\cdot$}  % ⋅ 2 ⋅
    \fancyhead[L]{\zihao{-5} 卢瑟福散射数据处理}
    \renewcommand{\footrulewidth}{0pt}
}
%\renewcommand{\headrulewidth}{0.4pt}
%\renewcommand{\headwidth}{\textwidth}
%\renewcommand{\footrulewidth}{0pt}
\ctexset{
    section={
        format=\centering\zihao{-2}\heiti ,
        number={\bfseries~},
        aftername=\par,
        aftertitle=\par\rule{\linewidth}{1pt},
        beforeskip=1em,
        afterskip=2em,
    },
    subsection={
        format=\zihao{-4}\heiti,
        number={\bfseries~\arabic{section}.\arabic{subsection}},
        beforeskip=0.3em,
        afterskip=0em,
    },
	subsubsection={
        format=\zihao{-4}\heiti,
        number={\bfseries~\arabic{section}.\arabic{subsection}.\arabic{subsubsection}},
        beforeskip=0.3em,
        afterskip=0em,
    }
}

\usepackage{physics}

\usepackage{gbt7714}
\newtheorem{definition}{\hspace{2em}定义}[section]
\newtheorem{theorem}{\hspace{2em}定理}[section]
\newtheorem{question}{\hspace{2em}习题}[section]




\newcommand{\pp}{\partial}%偏导数
\newcommand{\me}{\mathrm e}%自然底数
\newcommand{\mi}{\mathrm i}%虚数单位
\newcommand{\mj}{\mathrm j}%虚数单位
\newcommand{\mk}{\mathrm k}%虚数单位
\newcommand{\dps}{\displaystyle}%行间公式
\newcommand{\degree}{^\circ}%角度
\renewcommand{\bar}{\overline}%平均值
\renewcommand{\vec}{\mathbf}%粗体向量
\newcommand{\sumN}{\sum_{i=1}^N}
%\renewcommand{\vec}{\overrightarrow}%向量箭头

\newcommand{\rH}{\mathscr{H}}
\newcommand{\rL}{\mathscr{L}}
\newcommand{\diag}{\mathrm{diag}\,}


% 导入颜色和框架相关宏包
\usepackage{xcolor}        % 颜色支持

% 定义颜色
\definecolor{light}{RGB}{240,252,255} % 浅色
\definecolor{dark}{RGB}{233,241,246}   % 深色（用于侧边）

% 定义 solution 环境
\tcbuselibrary{breakable}
\newtcolorbox{solutionbox}{
    colback=light,    % 背景色
    colframe=dark,    % 边框色
    coltitle=black,         % 标题颜色
    colbacktitle=dark,% 标题背景色
    fonttitle=\bfseries,    % 标题加粗
    sharp corners,          % 尖角
    breakable,
    left=2mm,               % 左边距
    right=2mm,              % 右边距
    boxrule=1.5pt,          % 边框粗细
    title=解答             % 标题
}

% 用 newenvironment 定义 solution 环境
\newenvironment{solution}
{\begin{solutionbox}}
{\end{solutionbox}}