﻿@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{
	font-family: 'Noto Sans TC', sans-serif;

    background: linear-gradient(to right,#f4f7f9 1px,transparent 1px),
     linear-gradient(to bottom,#f4f7f9 1px,transparent 1px);
     background-repeat: repeat;/* 默认为 repeat */
     background-size: 18px 18px;
     
}


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

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


#WRAPPER{
	width:100%; 
	min-width:1100px; 
	margin:0 auto; 
}

header{
	clear:both;
	width:100%;
	margin:0 auto;
	background-color:#727171;
	padding:5px 0;
	}	

header img{
	padding-left:15px;
	}	

	@media screen and ( max-width: 768px ){
	#WRAPPER{ min-width:100%;}
	header img{
	width:60%;
	padding-left:5px;
	}	
}
	
article{
	width:100%;
	margin:0 auto;
	}

#title{
	width:100%;
	height:350px;
	margin:0 auto;
	overflow:hidden;
	text-align:center;
	background:url(images/bg.png) ;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	}	
	
#title_m{
	display:none;
	}

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

#title{
		display:none;
	}		

	#title_m{
		display:block;
		}

	#title_m img{
		width:100%;
		}

	}


section{
  width: 1100px;
 	height:auto;
	overflow:hidden;
  margin:5px auto;
  padding:10px 0;
 	}	
	
section div {
	line-height:1.5;
	text-align:left;
	text-align: justify;
	color:#222;
	letter-spacing:1px;
	}
	
section div span{
	font-size:1.35rem;
	color:#da1884;
	display:block;
	font-weight:550;
}

section div h1 {
	font-size:1.15rem;
	color:#111;
	padding-top:10px;
}
section div h1 span{
	font-size:1.15rem;
	color:#111;
	display:inline-block;
	padding-right:5px;
	font-weight:bold;
}

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

section{
  width: 100%;
  margin:0 auto 20px auto;
  border-radius: 5px;
	}	
	
	
section div{
  width: 85%;
	margin:5px auto 5px 15px;
	}	
	
section div span{
	font-size:1.185rem;
}

section div h1 {
	font-size:1.05rem;
}
section div h1 span{
	font-size:1.05rem;
}
	
}
	
/* 上方選單 */
.tab_nav {
	width:90%;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin:0 ;
}


.tab_nav ul {
	width:auto;
	float:none;
	margin:0 auto ;
	padding:0 ;
	grid-template-columns: repeat(1, 1fr); /* 固定 3 欄 */

}
.tab_nav li {
  background: #e6f0ff;
  color: #007acc;
  border: 1px solid #007acc;
  border-bottom:none;
  transition: background 0.3s ease;
	padding:0;
}


.tab_nav li a {
  color: #007acc;
  transition: background 0.3s ease;
  display:block;
  font-size:1.325rem;
  padding: 5px 10px;
	letter-spacing:0;
}

.tab_nav li a:hover,
.tab_nav li a.active {
  background: #007acc;
  color: #FFF;
  margin:0;
}

.resouce {
  background: #ffc907;
  border: 1px solid #007acc;
  border-bottom:none;
  color: #111;
  transition: background 0.3s ease;
  font-size:1.2rem;
  padding: 6px 5px;
	position: absolute;
	margin-top:-41px;margin-left:844px;
  border-radius: 16px 16px 0 0;
  cursor: pointer;
	
}
a:hover .resouce {
	color:#FFF;
}
	
.content .terms-body {
	width:90%;
	height:auto;
	overflow:hidden;
  border: 1px solid #007acc;
	padding:20px 20px;
	margin:0 0 20px 0;
}


.terms-body h2{
    font-size: 1.45rem;
    font-weight:bold;
     color:#124095;
    padding:0 ;
	margin-bottom:30px;
	letter-spacing:0;
	}	



	
.terms-body span{
    font-size:1.15rem;
    font-weight:450;
		text-shadow:none;
		color:#666;
	display:inline-block;
	}	
	
h2 br{
	display:none;

}

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


	
/* 上方選單 */
.tab_nav {
	display:none;
}

.resouce {
	display:none;
}
	
.content .terms-body {
  width: 100%;
	width:100%;
	margin:0 auto;
	text-align:center;
	padding:10px 0;
}


.terms-body h2{
    font-size: 1.15rem;
	margin:0 auto 20px auto;
	width:85%;
	text-align:center;
	}	


h2 br{
	display:block;

}

	
.terms-body span{
    font-size:0.85rem;
	}	
	
}

.box{
	width:20%;
	float:left;
	margin:10px 25px 0 10px;
	text-align:center;
}

.box img{
	width:180px;
	display:inline-block;
}


.sample{
	width:80%;
	width:auto;
	margin: 0 0 60px 0;
	padding:15px 10px;
	 background:rgba(37,99,235,.05);
}

.sample:last-child{
	width:80%;
	width:auto;
	margin: 0 0 20px 0;
}

.sample ul {
	display: grid; /* 預設區塊模式 */
	grid-template-columns: repeat(5, 1fr); /* 固定 3 欄 */
	gap: 21px; /* 間距 */
	margin:0 auto 0 auto;
	background:none;
	width:auto;
	float:none;
	}
.sample ul li{
	padding:0;
	border:1px solid #ECE;
	line-height:1;
}

.sample img{
	width:100%;
}

.box span{
	display:inline-block;
	padding:0 5px;
	color:#cd004b;
	font-weight:bold;
	font-size:1.25rem;  
}

button {
    width:auto;
    font-size: 1.35rem;
    background: #ea545d;
    color: #fff;
    padding: 5px 20px;
    margin:  10px 0 10px 10px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

span.helloet{
    font-size: 1.35rem;
    font-weight:bold;
	display:block;
	}	


a.helloet button  {
    font-size: 1.115rem;
    padding: 5px 5px;
    margin:  10px 5px 15px 5px;
}

button:hover {
    background: #d43d4a;
}


		#active_box {
		width:100%;
		padding:0px;
		}

       #active_box li {
		   width:30%;
		   padding:0;
		   float:left;
				margin:5px 15px;
		}	
		#active_box img {
			width:100%;
		}

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

.box{
	width:100%;
	float:none;
	margin:5px 0 0 0;
	text-align:center;
	padding: 0;
}
.box img{
	width:200px;
	display:block;
	margin:0 auto;
}

.sample{
	width:100%;
	margin: 5px 0 5px 0;
	padding:15px 0;
}

.sample:last-child{
	width:100%;
	width:auto;
	margin: 0 auto;
}

.sample ul {
	grid-template-columns: repeat(2, 1fr); /* 固定 3 欄 */
	gap: 20px; /* 間距 */
	}
.sample ul li{
	width:100%;
	padding:0;
	border:1px solid #ECE;
	line-height:1;
}


.box span{
	font-size:1.15rem;  
}

button {
    font-size: 1.15rem;
    padding: 5px 20px;
    margin:  10px auto;
}
button.allbuy {
	width:100%;
}

span.helloet{
    font-size: 1.25rem;
	}	


a.helloet button  {
    font-size: 1.05rem;
    padding: 5px 5px;
    margin:  10px 5px 15px 5px;
}

		#active_box {
		width:100%;
		padding:0px;
		}

       #active_box li {
		   width:45%;
				margin:5px 2%;
		}	
		
.tab-content {
		width:100%;
		margin:0;
		padding:10px;
		
}
}

footer{
	clear:both;
	width:100%;
	margin:0 auto;
	background:#4B3100;
	color:#FFF;
	padding:8px 0;
	text-align:center;
	font-size:0.85rem;
	line-height:1.5;
}



/* ---- 可調整的主色 ---- */
:root{
  --card-bg: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --row-alt: #fafafa;
  --accent: #2563eb;
  --accent-soft: #eaf1ff;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* 深色模式自動調整（可刪） */
@media (prefers-color-scheme: dark){
  :root{
    --card-bg:#0f172a;
    --text:#e5e7eb;
    --muted:#94a3b8;
    --border:#1f2937;
    --row-alt:#0b1223;
    --accent:#60a5fa;
    --accent-soft:#0b1a32;
    --shadow:0 8px 20px rgba(0,0,0,.35);
  }
}

/* 外層讓小螢幕可以左右滑 */
.table-wrap{
  width: 100%;
  display:inline-block;
  margin:15px auto;
}
	
.table-wrap ul{
	width:50%;
	float:left;
	font-size:1.1rem;  
	display: grid; /* 預設區塊模式 */
	grid-template-columns: repeat(2, 1fr); /* 固定 3 欄 */
	gap: 20px; /* 間距 */
	margin:15px 25px 25px auto;
	}	
	
.table-wrap ul li {
	background:rgba(212,236,223,0.5);
	padding:15px 5px;
	text-align:center;
	}	
.table-wrap ul li span{
	color:#cd004b;
	font-weight:bold;
	font-size:1.25rem;  
	
}

/* 表格卡片化 */
.gh-table{
  width: 40%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* 表頭 */
.gh-table thead th{
  position: sticky; /* 長表格滾動時保留表頭 */
  top: 0;
  background:
    radial-gradient(var(--accent-soft) 2px, transparent 2px) 12px 12px/24px 24px no-repeat,
    linear-gradient(180deg, rgba(37,99,235,.08), rgba(37,99,235,.0));
  color: var(--text);
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align:center;
}

/* 優雅的第一欄（書名） */
.gh-table tbody td:first-child{
  font-weight: 600;
  color: var(--text);
}

/* 內容儲存格 */
.gh-table td{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
  text-align:center;
}

/* 斑馬紋 */
.gh-table tbody tr:nth-child(odd){
  background: var(--row-alt);
}

/* 滑過行高亮 */
.gh-table tbody tr{
  transition: background .2s ease, transform .05s ease;
}
.gh-table tbody tr:hover{
  background: color-mix(in oklab, var(--accent-soft) 55%, transparent);
}

/* 圓角只套在上下邊緣 */
.gh-table thead tr th:first-child{ border-top-left-radius:16px; }
.gh-table thead tr th:last-child{ border-top-right-radius:16px; }
.gh-table tbody tr:last-child td:first-child{ border-bottom-left-radius:16px; }
.gh-table tbody tr:last-child td:last-child{ border-bottom-right-radius:16px; }

/* 將第2~4欄做成小徽章樣式 */
.gh-table tbody td:nth-child(2),
.gh-table tbody td:nth-child(3),
.gh-table tbody td:nth-child(4){
  font-weight: 600;
}
.gh-table tbody td:nth-child(2) span,
.gh-table tbody td:nth-child(3) span,
.gh-table tbody td:nth-child(4) span{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 20%, var(--border));
  font-size: 12px;
  line-height: 1;
}

/* 直接把儲存格文字包成徽章（不改HTML也能用）*/
.gh-table tbody td:nth-child(2)::before,
.gh-table tbody td:nth-child(3)::before,
.gh-table tbody td:nth-child(4)::before{
  content: attr(data-badge);
  display: none; /* 預設關閉：若想純CSS產生徽章可改成 inline-block */
}

/* 小尺寸微調 */
@media (max-width: 768px){

/* 外層讓小螢幕可以左右滑 */
.table-wrap{
  width: 98%;
   display:inline-block;
  margin:15px auto;
}
	
.table-wrap ul{
	width:100%;
	float:none;
	font-size:1rem;  
	gap: 10px; /* 間距 */
	margin:10px 25px 25px auto;
	}	
	
.table-wrap ul li {
	padding:10px 5px;
	text-align:left;
	}	
.table-wrap ul li span{
	font-size:1.1rem;  
	
}

  .gh-table thead th,
  .gh-table td{
    padding: 12px 10px;
    font-size: 14px;
  }
}


/* -- sidemanu for pc -- */
.side-menu{
	position: fixed;
	width: 50px;
	top:38%;
	right:0;
	padding: 0;
	box-sizing: border-box;
	opacity:0.7; 
	display: flex;
	flex-direction: column;
	transform: translateX(0);
	transition: .3s;
	z-index:999999;
	font-size:0.95rem;
	text-align:center;
}
label a{
	display: block;
	color: #FFF;
	text-decoration: none;
	font-weight: 550;
	letter-spacing: 2px;
	margin:15px 0;
	background:#e50061;
	padding: 8px 3px;
}

label ul.area2 li{ 
	margin:5px 0;
}
label ul.area2 li:nth-last-child(1){ 
}



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

	
/* -- sidemanu for pc -- */
.side-menu{
	width: 40px;
	top:25%;
	font-size:0.85rem;
}

}



ul.book li {
	width:200px;
	height:350px;
	float:left; 
  padding:10px 5px;
  margin:3px 15px 10px 15px;
	background:#f8f7f4;
  border-radius:20px;
	text-align:center;
}


ul.book li img {
	width:100%;
	height:195px;
	object-fit:contain;
	margin:0 auto;
	text-align:center;
}

ul.book li h2{
	height:40px;
	font-size:1rem;
  align-content: center; 
	text-align:center;
	line-height:1.3;
    position: static;
}
ul.book li h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background:none;
    z-index: -1;
}
ul.book li h3{
	font-size:0.95rem;
	color:#333;
	line-height:1.5;
}
ul.book li h3 span{
	font-size:1.25rem;
	color:#d20962;
	font-weight:700;
}

ul.book li img.shop {
	width:35px;
	height:auto;
	margin:8px auto 0 auto;
}

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


ul.book {
	width:100%;
	margin:0 auto;
	
}

ul.book li {
	width:47%;
	height:380px;
  padding:10px 5px;
  margin:3px 1.5% 10px 1.5%;
}


ul.book li img {
	width:80%;
	height:180px;
}

ul.book li h2{
	height:auto;
	font-size:0.985rem;
    margin:0 auto;
}
ul.book li h3{
	font-size:0.85rem;
}
ul.book li h3 span{
	font-size:1.15rem;
}

ul.book li img.shop {
	width:30px;
}



}

#car{ /* 購物車 */
	width:145px;
  position:fixed;
  z-index:999999;
}

#car a{ /* 購物車 */
width:25px;
  height:auto;
	margin:0 auto;
	border-radius: 15px;
	background: #ff4f81;
  color:#FFF;
  font-size:1.15rem;
  text-align:center;
  padding:5px 3px;
  position:fixed;
	display:inline-block;
  top:42px;
	right:5px;
	box-shadow: 0 5px 15px #193047;
  border:1px solid #EEE;
  font-weight:800;
  line-height:1.2;
}


iframe{ /* 購物車 */
width:140px;
  position:fixed;
  right:40px;
  top:42px;
  height:180px;
  overflow:hidden;
}  


.tab-content iframe{
	width:100%;
	height:600px;
  position:static;
	}


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

	#car{ /* 購物車 */
		width:auto;
	}
	
	#car a{ /* 購物車 */
	width:35px;
	  height:auto;
		margin:0 auto;
		border-radius: 5px;
	  font-size:1.15rem;
	  top:80%;
	  line-height:1.5;
	}

	iframe{
	display:none;
	}

.tab-content iframe{
	width:100%;
	height:600px;
  position:static;
	display:block;
	}


}


