 @media screen and (min-width: 600px) and (max-width: 1024px) { /*平板*/
/*=========主框架=========*/

#article {
	width: 95%;
	margin: auto;
	overflow: hidden;
}
.cd-main-content {
	padding: 40px 0 0 0;
}
.box_listpage {
	padding: 165px 0 0 0;
}
/*==========上欄==========*/

.header_pic {
	margin: auto;
	text-align: center;
	background-image: url(../image/bg1.png);
	background-repeat: repeat-x;
	background-position: center;
	height: 120px;
	overflow: hidden;
	position: absolute;
	z-index: 999;
	top: 40px;
	float:left;
	width:100%;
}
.header_pic img{
	width:200px;
	margin-top:20px;
}

/*ad box*/

.ad_box {
	background-color: #FFDF5B;
	overflow:hidden;
}

/*logo box*/

.logo_box {
	width: 30%;
	float: left;
}
.logo_box img{
	width: 70%;
	left: 15%;
	position: relative;
	margin-top:45%;
}

/*banner*/

.ad_banner {
	width:70%;
	float:right;
	overflow:hidden;
}
.ad_banner img{
	width:100%;
}
.ad_banner_btnL {
	z-index: 555;
	float: left;
	position: absolute;
	left: 30%;
	width: 4.5%;
	top: 1%;
}
.ad_banner_btnR {
	z-index: 555;
	float: left;
	position: absolute;
	right: 0px;
	width: 4.5%;
	top: 1%;
}

/*==========中欄==========*/

/*好好logo*/
.logo_familysquare {
	width:160px;
	float:left;
	margin-right:15px;
	margin-top: 35px;
}
/*分類顯示*/
.sort {
	width: 50%;
	height: 50px;
	line-height: 50px;
	overflow: hidden;
	float: left;
	font-size:  25px;
	font-weight: bold;
}
.sort li {
	float: left;
	margin-left: 5px;
}
.sort_main {
	color: #fc7a3c;
}

/*現在位置*/
.site {
	width:50%;
	height: 50px;
	line-height: 50px;
	overflow: hidden;
	float:right;
}
.site li {
	float: right;
	margin-left: 5px;
}

/*分類選單－桌機/pad*/
#menu {
	overflow: hidden;
	margin-bottom: 2px;
	margin-top: 15px;
	padding: 10px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	background-color: #DCDDDD;
	font-size:1.2em;
}
.nav-bar ul {
	max-width: 500px;
}
.nav-bar li {
	line-height: 40px;
	display: block;
	float: left;
	height: 40px;
	margin-right: 30px;
	padding-right: 8px;
	background-image: url(../image/class/icon3.png);
	background-repeat: no-repeat;
	background-position: right;
}
.nav-bar li a {
	display: block;
	padding: 0 5px;
	text-decoration: none;
	-webkit-border-top-left-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topright: 5px;
}
.nav-bar li a:hover {
	display: block;
	padding: 0 5px;
	text-decoration: none;
	-webkit-border-top-left-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topright: 5px;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
	background-color: #fff;
}
.nav-bar li a:only-child:hover {
	border-radius: 5px;
	border-radius: 5px;
}
.nav-bar li:hover > ul {
	display: block;
}
.nav-bar li ul {
	position: absolute;
	z-index: 888;
	display: none;
	float: left;
	padding: 0 5px 10px 5px;
	/*-webkit-border-radius: 5px;
           -moz-border-radius: 5px;
                border-radius: 5px;
        -webkit-border-top-left-radius: 0;
        -moz-border-radius-topleft: 0;
                border-top-left-radius: 0;*/
	background-color: #fff;
	box-shadow: 6px 6px 12px -2px rgba(20%,20%,40%,.5);
}
.nav-bar li ul li {
	float: left;
	margin: 0 5px;
	margin-top: 10px;
	padding: 0;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	background-color: #efefef;
	background-image: none;
}
.nav-bar li ul li a:hover {
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	background-color: #ffdf5a;
}
#menu-button {
	display: none;
}
/*-----課程與活動-內容-----*/
.box_CT {
	border: 3px solid #FFDF5A;
	margin-bottom: 30px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	overflow: hidden;
}
.box_CT img {
	max-width: 100%;
}

/*廣告*/
.ad_activity{
	background-color:#000;
	overflow:hidden;
}
.ad_activity li{
	float:left;
	width:33.33%;
	z-index: 554;
	float: left;
	/*position: relative;*/
}
.ad_activity li img{
	width:100%;
}
.ad_activity_imgLR{
	opacity:0.5;
}
.ad_activity_btnL{
	z-index: 555;
	float: left;
	position: absolute;
	left: 0px;
	width:3%;
}
.ad_activity_btnR{
	z-index: 555;
	float: left;
	position: absolute;
	right: 0px;
	width:3%;
}
.ad_activity_ct{
	width:100%;
	height: 50px;
	line-height: 50px;
	overflow: hidden;
	color: #000;
	background-color: #ededed;
	padding:0 0 0 2%;
}
.ad_activity_number{
	height:30px;
	width:30px;
	line-height:30px;
	text-align:center;
	background-color:#fff100;
	color:#000;
	-webkit-border-radius: 40px;
	-moz-border-radius: 40px;
	border-radius: 40px;
	float:right;
	margin:10px 10px 0 0;
	font-size:0.9em;
}

/*列表*/
.list_title{
	font-size: 20px;
	line-height: 25px;
	font-weight: bold;
	margin: 10px 0;
	height: 50px;
	overflow: hidden;
	color: #7f4f21;	
	/*text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1; /*行數
	-webkit-box-orient: vertical;*/
}

.listA {
	margin:35px 0 0 4%;
	overflow:hidden;
}
.listA li{
	float: left;
	width: 30%;
	margin-right: 1%;
	margin-left: 1%;
	padding-bottom:30px;
	overflow: hidden;
}
.listA_imgbox {
	height:140px;
	overflow:hidden;
}
.listA img{
	width:100%;
}
.listA_title{
	font-size:20px;
	font-weight:bold;
	margin:10px 0;
}
.listA_ct{
	margin-bottom:10px;
	height: 70px;
	overflow : hidden;
	/*text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3; /*行數
	-webkit-box-orient: vertical;*/
}
.listA_btn{
	margin:auto;
}

.listB {
	margin:50px 0 50px 50px;
	overflow:hidden;
}
.listB li{
	float: left;
	width: 45%;
	margin-right: 5%;
}
.listB_imgbox {
	height:200px;
	overflow:hidden;
}
.listB img{
	width:100%;
	z-index: 1;
	float: left;
	position: relative;
	margin-bottom:15px;
}
.listB_ct{
	margin-bottom:10px;
	height: 70px;
	overflow : hidden;
	/*text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3; /*行數
	-webkit-box-orient: vertical;*/
}
.listB_btn{
	margin:auto;
}
.listB_btn2{
	width: 70px;
	z-index: 2;
	float: left;
	position: absolute;
}
.listB_box {
	margin-top:15px;
}

.listC {
	margin:0 0 50px 0px;
	overflow:hidden;
}
.listC li{
	float: left;
	width: 32%;
	margin-right: 4px;
	margin-left: 4px;
	margin-top: 20px;
	padding: 10px;
	background-color: #EFEFEF;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}
.listC_imgbox {
	height:140px;
	overflow:hidden;
}
.listC img{
	width:100%;
}
.listC_ct{
	margin-bottom:10px;
	height: 70px;
	overflow : hidden;
	/*text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3; /*行數
	-webkit-box-orient: vertical;*/
}
.listC_btn{
	margin:auto;
}
.llistC_box {
	margin-top:15px;
}

/*頁碼*/
.pageBar {
	border-top-width: 1px;
	border-top-style: dotted;
	border-top-color: #CCC;
	padding:30px 0;
	overflow:hidden;
}
.pageBar ul{
	width:156px;
	margin:auto;
}
.pageBar li{
	float: left;
	width: 50px;
	height: 50px;
	line-height: 50px;
	text-align: center;
}
.pageBar li a{
	display:block;
	border: 1px solid #999;
	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
	border-radius: 50px;
}
.pageBar li a:hover{
	text-decoration: none;
	background-color: #FFDF5A;
	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
	border-radius: 50px;
}
.pageBar_info{
	font-size: 20px;
	border: 1 solid #FFF;
}

/*-----課程與活動-內容 end-----*/

/*表格*/
.grid6 {
	margin: 30px 0;
	background-color: #EFEFEF;
	padding: 20px;
	text-align: center;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	overflow: hidden;
}
.grid6_icon {
	height: 30px;
	float: left;
	margin-right: 10px;
}
.grid6_1 {
	height: 30px;
	line-height: 30px;
	font-size: 20px;
	margin: 10px auto;
	overflow: hidden;
}
.grid6_2 {
	width: 220px;
	margin: 5px auto 0 auto;
}

/*==========下欄==========*/

/*版權* 新版全樣式取代*/

/*=========共用=========-*/

}
