﻿@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");

/* ---reset.css--- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, fREigure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1; 
}
ol, ul, li{
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* ---reset.css--- */


a { text-decoration:none;}

html {	
	-webkit-text-size-adjust:none;
	scroll-behavior: smooth; 
}

body{
	width:100%; 
	font-family: 'Noto Sans TC', sans-serif;
	background:#d4c9aa;
}


 	@media screen and ( max-width: 768px ){
		*{
			box-sizing:border-box; /* 讓 padding 與 width 解除關係 */
		}
		html,body{
			-webkit-text-size-adjust:none; /* iPhone 旋轉後 文字不要放大 */
		}
	}

/* --電腦版型------------------------------------- */


#WRAPPER{
	width:1000px; 
	margin:0 auto; 
	background:#FFF;
}

header{
	clear:both;
	width:100%;
	height:350px;
	margin:0 auto;
	background:url(images/header.png) no-repeat;
	}	
	

@media screen and ( max-width: 768px ){

	#WRAPPER{
		width:100%; 
	}
	
header{
	height:100px;
	background:url(images/header_m.png) ;
	background-size:cover;
	}	
	
}

menu{
	width:800px;
	height:120px;
	margin:0 auto;
	text-align:center;
	position: relative;
	top:200px;
}	
menu ul{
	display: grid; /* 預設區塊模式 */
	grid-template-columns: repeat(6, 1fr);
	gap: 20px; /* 間距 */
	margin:0 auto;
}
menu li img{
	width:auto;
	height:90px;
	display:block;
	margin:0 auto;
}
menu ul:first-child{
	border-bottom:1px solid #804e21;
	margin:0 auto 10px auto;
}

menu li a{
	color:#804e21;
	font-size:1.2rem;
	font-weight:550;
}

menu li a:hover ,menu li a.active { 
    color: #fff100;
   paint-order: stroke fill;
    -webkit-text-stroke: 0.2em #40220f;
    text-transform: uppercase;
    /*text-shadow: 0.3em 0.3em 0 cyan;*/
	}	

#TOP-MENU, #SUBMENU{
	display:none;
}


@media screen and ( max-width: 768px ){

	/*MENUTOP選單*/
	menu{
		display:none;
	  }
		#TOP-MENU{
			display:block;
			width:100%;
		}
		
		#TOP-MENU img{
			width:25px;
			height:auto;
		}
		
		#TOP-MENU #BTN{ /* 製作手機版 左上角的按鈕 */
			position: absolute;
			top:80px;
			left:20px;
		}
		
		#SUBMENU{
			background:none;
			margin-top:20px;
			position:fixed; /* position 可以讓 div 跳脫原本在 HTML 內的位置 */
			top:110px;
			z-index:999;
			width:65%; /* 寬高 100% 整個蓋住 */
			height:768px;
			background-color:#FFF;
			display:none; /* 把主選單先關掉 */
			padding-top:30px;
			border-right:#999 solid 1px;
			box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
			padding-left:15px;
			padding-right:15px;
			left:0;
		}
		#SUBMENU li{
			width:100%;
			margin:0;
			padding:15px;
			text-align:left;
			font-size:16px;
			border-bottom:#BBB solid 1px;
		}
		
		#SUBMENU li a {
			font-size: 20px;
			color:#111;	
			text-decoration:none;
		}
		
		#SUBMENU li ul {
			margin:15px 0 5px 10px;
		}
		
		#SUBMENU li ul li{
			border:none;
			padding:5px 0;
			margin:5px 0;
		}
		
		#SUBMENU li ul li a{
			font-size: 17px;
			text-align:left;
			line-height:1.5;
			padding:5px 0;
		}

		#SUBMENU li ul li a:hover{
        background:#cc3366;
        color:#FFF;
			text-align:left;
    }		

}
  
  
  
article{
	width:100%;
	margin:0 auto;
	padding:0 0 40px 0	;
	}

section{
  width: 1000px;
 	height:auto;
	overflow:hidden;
  margin:5px auto;
  padding:10px 0;
 	}	

section div{
	width:800px;
 	height:auto;
	overflow:hidden;
  margin:0 auto 0 auto;
  text-align:center;
 	}	
	
@media screen and ( max-width: 768px ){
	article{
		padding:20px 0 25px 0	;
		}
	
	section{
	  width: 100%;
	 	}	
	
	section div{
		width:95%;
	 	}	
}		
		
ul.allbooks{
	display: grid; /* 預設區塊模式 */
	grid-template-columns: repeat(3, 1fr);
	gap: 80px; /* 間距 */
	margin:0 auto;
}


ul.resources{
	display: grid; /* 預設區塊模式 */
	grid-template-columns: repeat(5, 1fr);
	gap: 20px; /* 間距 */
	margin:0 auto;
	color:#7f4f21;
	font-weight:550;
}

ul.resources img{
	display:block;
	margin:0 auto 5px auto;
}

@media screen and ( max-width: 768px ){

	ul.allbooks{
		gap: 10px; /* 間距 */
	}
	ul.allbooks img{
		width:100px;
		height:auto;	
	}

	ul.resources{
		grid-template-columns: repeat(3, 1fr);
		gap: 10px; /* 間距 */
	}
	
	ul.resources li:nth-child(4){
		width:100%;
		margin: 5px 0 0 50%;
	}
	ul.resources li:last-child{
		width:100%;
		margin: 5px 0 0 60%;
	}
	
	ul.resources img{
		width:40px;
	}

	
}

ul.download{
	display: grid; /* 預設區塊模式 */
	grid-template-columns: repeat(3, 1fr);
	gap: 20px; /* 間距 */
	margin:0 auto;
	color:#7f4f21;
	font-weight:550;
}

ul.download li{
	height:auto;
	overflow:hidden;
	background:#804e21;
	color:#FFF;
 	border-radius: 5px;
 	line-height:2;
 	margin:0 0 30px 0;
}

ul.download li a{
	color:#FFF;
}
ul.download li a:hover{
	 text-decoration: underline;
}

ul.download li:nth-child(4),ul.download li:last-child{
 	margin:0 0 100px 0;
}
ul.download li ul{
	background:#f2efe5;
	color:#FFF;
 	padding: 0 10px ;
 	text-align:left;
}
ul.download li ul li{
	color:#7f4f21;
 	border-radius: 0;
	background:none;
 	padding:5px 0 5px 0;
 	margin:0 0 0 0;
}

ul.download li ul li a{
	color:#7f4f21;
}

ul.download li ul li:last-child{
 	padding:0 0 10px 0;
 	margin:0;
}


ul.resources img{
	display:block;
	margin:0 auto 5px auto;
}

.title{
  font-size:2.5rem;
	color:#e61673;
	font-weight:700;
	padding:50px 0 50px 0;
}




h1{
  font-size:1.425rem;
	color:#000;
	font-weight:700;
	text-align:left;
	padding:5px 0 40px 5px;
}

h1 span{
	font-size:0.95rem;
	color:#111;
	font-weight:500;
	text-align:right;
	display:block;
	float:right;

}
h1 span a{
	color:#FFF;
	background:#ea545d;
	border-radius: 5px;
	padding:1px 5px;
	font-size:0.85rem;
	margin-left:5px;

}

div.detail{
	margin:40px 0 0 0;
}


h2{
  font-size:1.25rem;
	color:#e61673;
	font-weight:600;
	line-height:1.5;
	padding:0 0 40px 0;
}
h2.feature{
	line-height:1;
	padding:0;
}
h2.sbook{
	line-height:1;
	padding:25px 0 0 0;
}
h2.teach{
	line-height:1;
	padding:0 0 20px 0;
}
h2.download{
	line-height:1;
	padding:0 0 10px 20px;
	text-align:left;
}



img.sample{
	width:790px;
	border:1px solid #CCC;
	margin:30px auto;
}
img.sample02{
	width:790px;
	border:1px solid #CCC;
	margin:10px auto 30px auto;
}
img.download_book {
	width:180px;
	margin:0 20px 0 0;
	float:left;
}


p{
  font-size:1.025rem;
  color:#111;
	text-align:left;
 	font-weight: 350;
	padding:0 0 25px 5px;
	line-height:1.5;
	text-align: justify;
}
p span.italic{
 	font-weight: 650;
 	font-style: italic;
 	padding-right:10px;
 }
p span.bold{
 	font-weight: 600;
 }

@media screen and ( max-width: 768px ){


.title{
  font-size:1.5rem;
	padding:25px 0 25px 0;
}

h1{
  font-size:1.25rem;
	padding:5px 0 40px 10px;
}
	
div.detail{
	margin:30px auto 0 auto;
}

h2{
  font-size:0.925rem;
	padding:0 0 30px 0;
}
h2.feature{
  font-size:1.125rem;
	line-height:1;
	padding:0;
}
h2.sbook{
	line-height:1;
	padding:25px 0 0 0;
  font-size:1.125rem;
}
h2.teach{
  font-size:1.125rem;
}
h2.download{
  font-size:1.125rem;
	text-align:center;
	padding:0;
}

img.sample{
	width:100%;
}
img.sample02{
	width:100%;
}
img.download_book {
	width:180px;
	margin:20px auto 30px auto;
	float:none;
}

ul.download{
	display:block;
}

ul.download li{
	width:46%;
 	margin:0 2% 25px 2%;
 	float:left;
	height:auto;
	overflow:hidden;
}

ul.download li:nth-child(4){
	width:46%;
 	margin:0 2% 20px 2%;
}
ul.download li:last-child{
	width:46%;
 	margin:0 2% 100px 2%;
}

ul.download li ul li{
	width:100%;
 	float:none;
}

ul.download li ul li:last-child{
	width:100%;
}

p{
  font-size:1rem;
}

 
}

footer{
	clear:both;
	width:100%;
	margin:0 auto;
	background:#ffe225;
	padding:15px 0;
}
footer p{
	color:#7f4f21;
	text-align:center;
	font-size:0.825rem;
	line-height:1.5;
	padding:0;
}	
	
footer br{
	display:none;
}	
footer p a{
color:#7f4f21;
	}	
footer p a:hover{
text-decoration:underline;
	}	
	
.top{
	position: relative;
	top: 8px;
	left: 860px;
	z-index:1;
}

.car{
	position: fixed;
	width: 60px;
	top:55%;
	margin-left: 940px;
	z-index:1;
}

	
@media screen and ( max-width: 768px ){


footer{
	padding:10px 0;
}

footer p:first-child{
	display:none;
}	
	
footer br{
	display:block;
}	


.top{
	position: relative;
	top: 8px;
	left: 85%;
	z-index:1;
}

.car{
	position: absolute;
	width: 40px;
	top:80px;
	left: 85%;
	margin: 0;
	z-index:111;
}

}

	
/*表格*/
table{
	width:700px;
	border-collapse:collapse; 
	margin:10px auto 50px auto;
}
table.funtable{
	margin:0 auto;
}
table.Schedule{
	margin:10px auto 50px auto;
}
table.Schedule:last-child{
	margin:10px auto 0 auto;
}

table th, table td{
  border-bottom: 3px solid #FFF;
  padding: 10px 0;
  vertical-align: middle;
	border-right:3px solid #FFF;
}
table.Schedule td{
  padding: 10px 0 10px 25px;
  text-align:left;
}

thead {
  color: #fff;
  font-weight:550;
  font-size:1.1rem;
}

tbody {
  display: table-row-group;
  vertical-align: middle;
  font-size:0.95rem;
}

tbody tr:nth-child(even) {
  background: #eeefef;
}

tfoot {
}

tfoot td {
}

th:first-child, td:first-child {
	width:200px;
}


table.Schedule td:first-child {
	width:135px;
	color:#FFF;
	font-weight:bold;
}

.funtable br{
	display:none;
}

@media screen and ( max-width: 768px ){

	
/*表格*/
table{
	width:100%;
}

table th, table td{
	line-height:1.5;
}

th:first-child, td:first-child {
	width:20%;
}


table.Schedule td:first-child {
	width:35%;
}

table.Schedule td{
  padding: 10px 0 10px 15px;
}
.funtable br{
	display:block;
}

}
.gray{ 
	background:#9fa0a0;
}

tbody tr.gray{ 
	background:#c9c9ca;
}
.green{ 
	background:#6eb92b;
}
tbody.green tr:nth-child(odd) {
  background: #e7f2d9;
}
.blue{ 
	background:#007bc7;
}
tbody.blue tr:nth-child(odd) {
  background: #dfe9f7;
}
.purple{ 
	background:#924898;
}
tbody.purple tr:nth-child(odd) {
  background: #ede5f1;
}

h3{
  font-size:1.125rem;
	font-weight:600;
	line-height:1.5;
	padding:50px 0 20px 0;
}

h3.feature{
  font-size:1.185rem;
	font-weight:600;
	line-height:1;
	padding:0 0 10px 5px;
	text-align:left;
	color:#0069a0;
}

table td a {
	background:#fff100;
	border-radius: 50px;
	padding:0 15px;
	color:#000;
}
h4{
  font-size:1.05rem;
	font-weight:500;
	padding:10px 0;
}

h4 span{
	color:#c30d23;
}

h4 button {
    width:auto;
    font-size: 1.05rem;
    background: #ea545d;
    color: #fff;
    padding: 5px 20px;
    margin: 0 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #d43d4a;
}

@media screen and ( max-width: 768px ){

		h4{
		  font-size:0.985rem;
		    text-align:center;
		}
		
		
		h4 button {
		    font-size: 1rem;
		    margin: 15px auto 0 auto;
		}
		

}

/* 彈跳視窗背景 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* 彈跳視窗內容 */
.modal-content {
    background: white;
    padding: 10px;
    border-radius: 10px;
    width: 600px;
    margin: 5% auto 5% auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

/* 關閉按鈕 */
.close {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}


/* 連結 */
.modal-content a {
    color: #f47721;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.9rem;
    background:none;
}



/* form */


form{
	width:470px;
	height:auto;
	overflow:hidden;
	font-size:1.1rem;
	margin:20px auto 0 auto;
	border:1px solid #d4c9aa;
	padding:25px 35px 25px 35px; 	/* 上 右 下 左 */
    }
    
.modal-content form{
	margin:10px auto 10px auto;
	padding:15px 25px 15px 25px; 	/* 上 右 下 左 */
}

.center{
	text-align:center;
	font-weight:550;
}

form div{
	width:100%;
  margin:0 auto 20px auto;
  display:inline-block;
}

label{
  width:20%;
	padding:0 5px 0 5px;
  display:inline-block;
	text-align:center;
}
input[type=text], input[type=password] {
  width:75%;
  padding: 12px 10px;
  border: 1px solid #999;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=submit] {
  width: 80px;
  height:35px;
	font-size:1rem;
  margin:0 auto;
  background: #ea545d;
  color: #FFF;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top:10px;
  display:block;
}


input[type=radio] {
  height: 15px;
  width: 15px;
  margin-right:5px;
}

form .col_other{
  width:100px;
  height:30px;
  }
form .col_code{
  width:100px;
  }
form .code_img{
  width:55px;
  border:none;
  margin:-3px 10px;	/* 上 右 下 左 */
    }
	
		.flag mark{
			background:none;
		
			}
	
iframe{
width:500px;
height:600px;
text-align:left;
display:block;
margin:0;
} 	


@media screen and ( max-width: 768px ){

		
		.modal-content {
		    padding: 10px 5px;
		    width: 95%;
		    margin: 5% auto 5% auto;
		    text-align:center;
		}
		
		/* 關閉按鈕 */
		.close {
		    float: right;
		    font-size: 1.5rem;
		    font-weight: bold;
		    cursor: pointer;
		}
		
		
		/* 連結 */
		.modal-content a {
		    color: #f47721;
		    text-decoration: none;
		    margin-left: 10px;
		    font-size: 0.9rem;
		    background:none;
		}
		


		form{
			width:100%;
			padding:15px 15px 15px 15px; 	/* 上 右 下 左 */
		    border:none;
		    }
		    
		.modal-content form{
			margin:10px auto 10px auto;
			padding:15px 25px 15px 25px; 	/* 上 右 下 左 */
		}
		
		form div{
			width:100%;
		  margin:0 auto 20px auto;
		  display:inline-block;
		}
		
		label{
			display:none;
		}
		input[type=text], input[type=password] {
		  width:90%;
		  font-size:1rem;
		}
		form .col_code{
		  width:68%;
		  }
		.flag{
			width:90%;
		  background:#eee9dd;
		  }
		.flag label{
			width:100%;
			text-align:left;
			display:block;
			padding:10px 15px  ;
		  font-size: 1rem;
		}
		.flag mark{
			display:block;
			text-align:left;
			padding:10px 15px;
		  font-size:1rem;
			}
		form .col_other{
		  width:40%;
  		padding: 8px 10px;
		  }
			
iframe{
width:100%;
height:450px;
text-align:center;
margin:0 auto;
} 	

}