\documentclass[a4paper,oneside,12pt]{book}
\usepackage{enumerate}

\usepackage{tikz,environ}
\usepackage{amsmath,amssymb}
\usetikzlibrary{positioning,shapes,shadows}
%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xepersian}
\settextfont[Scale=1]{XB Zar}
\setdigitfont[Scale=1]{Yas}
%%%%%%%%%%%%%%%%%%%%%%%

\newcounter{theorem}[section]

\tikzstyle{thmnode}=[rectangle, draw=black, rounded corners, inner sep=10pt, inner ysep=10pt,
       text=white, rectangle split part fill={blue, green!20!}]
% \tikzstyle{every shadow}=[opacity=0.5, fill=black, shadow xshift=1ex, shadow yshift=0.5ex]      
 
\NewEnviron{theorem}[1]{\par \noindent \refstepcounter{theorem}     
{\centering 
\begin{tikzpicture}
    \node (thm) [thmnode, rectangle split, rectangle split parts=2]
        {
        \setRTL \begin{minipage}[t]{.9\textwidth}
            \textbf{قضیه \arabic{theorem}.\arabic{section}.\arabic{chapter}:\quad #1}
            \end{minipage}
            \nodepart{second}
            {\setRTL \hfill
          \begin{minipage} [t]{.9\textwidth}
           \color{black}  \BODY
            \end{minipage} \hfill
            }
        };
\end{tikzpicture}
}

}
%%%%%%%%%%%%%%%%%%%%%%%
\numberwithin{equation}{section}
\begin{document}

\chapter{اول}
\section{بخش اول}
\section{بخش دوم}
\begin{theorem}{فیثاغورث و تعداد اضلاع یک مثلث}
همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی است
\begin{equation}
x^2+y^2=z^2
\end{equation}
همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی
\begin{align}
(x+y)(x-y)&=x^2-xy+yx-y^2\\
&=x^2-y^2
\end{align}
است همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی است 
است همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی است
\end{theorem}

\section{بخش سوم}
\begin{theorem}{فیثاغورث و تعداد اضلاع یک مثلث}
همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی است
\begin{equation}
x^2+y^2=z^2
\end{equation}
همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی
\begin{align}
(x+y)(x-y)&=x^2-xy+yx-y^2\\
&=x^2-y^2
\end{align}
است همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی است 
است همانطور که می‌دانید این یک متن علکی است همانطور که می‌دانید این یک متن علکی است
\end{theorem}

\begin{theorem}{قضیه دوم}
	\begin{enumerate}[ا.]
	\item نوشتم
	\item نوشتم
	\end{enumerate}
\end{theorem}

\begin{theorem}{}
	\begin{enumerate}[ت.]
	\item نوشتم
	\item نوشتم
	\end{enumerate}
\end{theorem}

\end{document}
