.tree-bg {
	text-align: center;
	padding-right: 5%;
	user-select: none;
}

.tree-bg a:focus {
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
	-webkit-user-select: none;
	-moz-user-focus: none;
	-moz-user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-tap-highlight-color: transparent;
	outline: none;
	background: none;
	text-decoration: none;
	color: #080808;
}

.tree-title {
	font-size: 22px;
	font-weight: bold;
	padding: 10px 28px;
	margin: 0;
	color: #080808;
	background-color: #fff;
	font-family: "؟،جم";
	letter-spacing: 1px;
	border: 2px solid #e7e7e7;
	border-radius: 0 8px 0 8px;
	display: inline-block;
}

.tree-title:hover {
	color: #080808;
}

.tree-fir {
	width: 50%;
	margin: 48px auto 0;
	position: relative;
}

.tree-fir::after {
	content: '';
	display: block;
	clear: both;
}

.tree-fir .tree-nd-item {
	/* height: 266px; */
	writing-mode: inherit;
	padding: 12px 26px;
}

.tree-fir .tree-nd-fir .before,
.tree-fir .tree-nd-last .before {
	width: 200px;
}

.tree-fir .tree-nd-fir .after,
.tree-fir .tree-nd-last .after {
	bottom: -54px;
	top: auto;
}

.tree-fir .after {
	position: absolute;
	height: 52px;
	width: 0;
	border-left: 2px solid #e7e7e7;
	top: -100px;
	left: 50%;
}

.tree-fir .tree-nd-mid .after {
	top: auto;
	bottom: -52px;
}

.tree-nd {
	text-align: center;
	margin-top: 96px;
	margin-bottom: 480px;
}

.tree-nd-item {
	font-size: 20px;
	font-weight: bold;
	padding: 26px 12px;
	margin: 0;
	color: #080808;
	background-color: #fff;
	font-family: "؟،جم";
	border: 2px solid #e7e7e7;
	border-radius: 0 8px 0 8px;
	display: inline-block;
	writing-mode: tb-rl;
	position: relative;
}

.tree-nd-item span {
	color: #6691d7;
}

.tree-nd-fir {
	float: left;
	margin-left: 18%;
}

.tree-nd-mid {
	margin: 0 auto;
}

.tree-nd-last {
	float: right;
	margin-right: 18%;
}

.tree-nd-fir .before {
	position: absolute;
	top: -50px;
	left: 50%;
	width: 350px;
max-width: 30vw;
	height: 50px;
	border: 2px solid #e7e7e7;
	border-right: 0;
	border-bottom: 0;
	border-radius: 8px 0 0 0;
}

.tree-nd-mid .before {
	position: absolute;
	left: 50%;
	top: -50px;
	width: 0;
	height: 50px;
	border-left: 2px solid #e7e7e7;
	border-bottom: 0;
	border-radius: 0 8px 0 0;
}

.tree-nd-last .before {
	position: absolute;
	top: -50px;
	right: 50%;
	width: 350px;
max-width: 30vw;
	height: 50px;
	border: 2px solid #e7e7e7;
	border-left: 0;
	border-bottom: 0;
	border-radius: 0 8px 0 0;
}

.tree-rd-bg {
	position: absolute;
	bottom: -490px;
	left: -47px;
	width: 140px;
	height: 390px;
	writing-mode: lr-tb;
}

.tree-rd-bg.child3{
    left: -82px;
    width: 220px;
}

.tree-rd-bg-fir {
	width: 230px;
	left: -89px;
}

.tree-rd-bg-last {
	/* 	width: 220px;
	left: -87px; */
}

.tree-rd-bg .after {
	position: absolute;
	height: 52px;
	width: 0;
	border-left: 2px solid #e7e7e7;
	top: -100px;
	left: 50%;
}

.tree-rd-item {
	font-size: 20px;
	font-weight: bold;
	width: 60px;
	height: 390px;
	line-height: 60px;
	text-indent: 1.5em;
	color: #080808;
	background-color: #fff;
	margin: 0;
	margin-right: 20px;
	text-align: left;
	float: left;
	font-family: "؟،جم";
	border: 2px solid #e7e7e7;
	border-radius: 0 8px 0 8px;
	display: inline-block;
	writing-mode: tb-rl;
	position: relative;
}

.tree-rd-item a {
	display: block;
	width: 100%;
	height: 100%;
}

.tree-rd-item a:hover {
	color: #080808;
}

.tree-rd-only {
	margin-right: 0;
}

.tree-rd-last {
	margin-right: 0;
}

.tree-rd-fir .before {
	width: 100%;
	height: 50px;
	border: 2px solid #e7e7e7;
	border-radius: 8px 0 0 0;
	border-bottom: 0;
	border-right: 0;
	top: -50px;
}

.tree-rd-bg-fir .tree-rd-fir .before {
	width: 150%;
}

.tree-nd-mid .tree-rd-fir .before {
	width: 110%;
}

.tree-nd-last .tree-rd-fir .before {
	width: 110%;
}

.tree-rd-bg-last .tree-rd-fir .before {
	/* width: 150%; */
	left: 50%;
	right: auto;
}

.tree-rd-bg.child3 .tree-rd-fir .before {
	width: 150%;
}

.tree-rd-bg-rd {
	width: 140px;
	left: -47px;
}

.tree-rd-bg-last .tree-rd-fir2 .before {
	width: 150%;
	height: 50px;
	border: 2px solid #e7e7e7;
	border-radius: 0;
	border-bottom: 0;
	border-right: 0;
	top: -50px;
	left: 50%;
	right: auto;
}

.tree-rd-bg-last .tree-rd-mid .before {
	width: 100%;
	left: 50%;
	right: auto;
}

.tree-rd-mid .before {
	width: 100%;
	height: 50px;
	border: 2px solid #e7e7e7;
	border-radius: 0;
	border-bottom: 0;
	border-right: 0;
	top: -50px;
}

.tree-rd-last .before {
	border: 2px solid #e7e7e7;
	border-bottom: 0;
	border-left: 0;
	border-radius: 0 8px 0 0;
	width: 100%;
	height: 50px;
	left: 0;
	right: 50%;
	top: -50px;
}

@media (max-width: 1300px) and (min-width: 700px) {

	/* 	.tree-fir .tree-nd-fir .before,
	.tree-fir .tree-nd-last .before {
		width: 150px;
	}

	.tree-nd-fir {
		margin-left: 14%;
	}

	.tree-nd-last {
		margin-right: 14%;
	}

	.tree-rd-item {
		width: 50px;
		line-height: 50px;
		margin-right: 12px;
	}

	.tree-rd-last {
		margin-right: 0;
	}

	.tree-nd-fir .tree-rd-bg-fir {
		width: 204px;
		left: -77px;
	}

	.tree-nd-mid .tree-rd-bg {
		width: 132px;
		left: -42px;
	}

	.tree-nd-last .tree-rd-bg-last {
		width: 204px;
		left: -77px;
	} */
}

@media (max-width: 700px) {

	.tree-fir .tree-nd-fir .before,
	.tree-fir .tree-nd-last .before {
		width: 120px;
	}

	.tree-bg {
		padding-right: 0;
	}

	.tree-nd {
		margin-bottom: 390px;
	}

	.tree-nd-fir {
		float: left;
		margin-left: 15%;
	}

	.tree-nd-last {
		float: right;
		margin-right: 15%;
	}

	/* 	.tree-nd-fir .before,
	.tree-nd-last .before {
		width: 220px;
	} */

	.tree-title {
		font-size: 16px;
	}

	.tree-fir .tree-nd-item {
		padding: 6px 16px;
	}

	.tree-nd-item {
		font-size: 14px;
		padding: 16px 6px;
	}

	.tree-rd-bg {
		height: 280px;
		bottom: -380px;
	}

	.tree-rd-bg.child3 {
    left: -52px;
    width: 136px;
	}

	.tree-rd-item {
		font-size: 14px;
		width: 40px;
		height: 280px;
		line-height: 40px;
		margin-right: 8px;
	}

	.tree-rd-last {
		margin-right: 0;
	}

	.tree-rd-mid .before,
	.tree-rd-last .before {
		width: 100%;
	}

	.tree-rd-bg {
		width: 88px;
		left: -31px;
	}

	.tree-rd-bg-fir {
		width: 136px;
		left: -53px;
	}

	/* 	.tree-rd-bg-last {
		width: 136px;
		left: -54px;
	} */
	.tree-rd-only {
		margin: 0;
	}

	.tree-rd-bg-rd {
		width: 88px;
		left: -31px;
	}
}

@media (max-width: 540px) {

	.tree-nd-fir .before,
	.tree-nd-last .before {
		width: 200px;
	}

	.tree-fir .tree-nd-fir .before,
	.tree-fir .tree-nd-last .before {
		width: 80px;
	}

	.tree-bg {
		padding-right: 0;
	}

	.tree-nd {
		margin-bottom: 340px;
	}

	.tree-nd-fir {
		float: left;
		margin-left: 15%;
	}

	.tree-nd-last {
		float: right;
		margin-right: 15%;
	}

	/* 	.tree-nd-fir .before,
	.tree-nd-last .before {
		width: 200px;
	} */

	.tree-title {
		font-size: 14px;
	}

	.tree-fir .tree-nd-item {
		padding: 4px 12px;
	}

	.tree-nd-item {
		font-size: 12px;
		padding: 12px 4px;
	}

	.tree-rd-bg {
		height: 240px;
		bottom: -340px;
	}

	.tree-rd-item {
		font-size: 12px;
		width: 32px;
		height: 240px;
		line-height: 32px;
		margin-right: 6px;
	}

	.tree-rd-last {
		margin-right: 0;
	}

	.tree-rd-mid .before,
	.tree-rd-last .before {
		width: 100%;
	}

	.tree-nd-fir .tree-rd-bg-fir {
		width: 108px;
		left: -42px;
	}

	.tree-rd-bg {
		left: -24px;
		width: 70px;
	}

	.tree-rd-bg.child3 {
    left: -40px;
    width: 108px;
	}

	/* 	.tree-rd-bg-last {
		width: 108px;
		left: -43px;
	} */

	.tree-rd-only {
		margin: 0;
	}

	.tree-rd-bg-rd {
		left: -24px;
		width: 70px;
	}
}

.tree-rd-bg-fir .tree-rd-item{
	width: 50px;
	line-height: 50px;
	    margin-right: 10px;
}
.tree-rd-bg-fir .tree-rd-item:last-child{
	margin: 0;
}
@media (max-width: 700px) {
	.tree-nd-fir{
		margin-left: 17%;
	}
	.tree-nd-last{
		margin-right: 17%;
	}
	.tree-rd-bg-fir {
		width: 148px;
		left: -59px;
	}
	.tree-rd-bg-fir .tree-rd-item{
		width: 34px;
		line-height: 34px;
		margin-right: 4px;
	}
	.tree-rd-bg-fir .tree-rd-item:last-child{
		margin: 0;
	}
}
@media (max-width: 540px) {
	.tree-nd-fir{
		margin-left: 17%;
	}
	.tree-nd-last{
		margin-right: 17%;
	}
	.tree-nd-fir .tree-rd-bg-fir {
		width: 124px;
		left: -50px;
	}
	.tree-rd-bg-fir .tree-rd-item{
		width: 28px;
		line-height: 28px;
		margin-right: 4px;
	}
	.tree-rd-bg-fir .tree-rd-item:last-child{
		margin: 0;
	}
}