﻿@charset "UTF-8";

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

/* 1. 全域 reset */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* 2. HTML 基本設定（縮放 + 滑動） */
html {
  scroll-behavior: smooth;
  /* -webkit-text-size-adjust: 100%;  // 要用再打開 */
}

/* 3. 頁面背景（你原本的設定，可移到 layout.css 也可以留這） */
body {
  background: #FFFAFA;
}

/* 4. 列表（如果你確定整站都不需要點點，就留） */
ol, ul {
  list-style: none;
}

/* 5. 表格 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 連結樣式 */
a {
  text-decoration: none;
  /*color: #0066cc;*/
}
a:hover {
  text-decoration: underline;
}

.t-center { text-align: center; }

html {	
	-webkit-text-size-adjust:none;
  font-family: "Noto Sans TC", "微軟正黑體", sans-serif;
	scroll-behavior: smooth;
}

body {
  color: #333;
	line-height: 1; 
  font-size: 1rem;
	letter-spacing: 0.05rem;
}

 	@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:#727171;
	padding:5px 0;
	}	
	
header img{	
	padding-left:15px;
	}


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

article{
	width:100%;
	height:auto;
	margin:0 auto;
}

.title {
	width:100%;
	height:350px;
	display:block;
	margin:0 auto;
	text-align:center;
	background:#00b5c4 url(images/girl.png) no-repeat right ;
	
	}	
	
.BANNER_m{
	display:none;
	}
	
@media screen and (max-width: 768px) {

	article{
		width:100%;
		margin:0 auto;
		height:auto;
		}
		
	.title{
	display:none;
		}	
		
		.BANNER_m{
		display:block;
		width:100%;
	}
	
		.BANNER_m img{
			width:100%;
			}
			
}

.book{
	width:720px;
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:5px 20px 5px 20px;
  color:#111;
  font-size:20px;
  line-height:1.6;
  margin-left:50px;
  margin-top:10px;
  margin-bottom:10px;
}


.book::before{
    content:"書籍\A特色";
  white-space:pre;

  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;

  padding:6px 15px;
  border:3px solid #fff;
  border-radius:14px;
  font-weight:800;
  font-size:20px;
  color:#FFF;
  background:#da1884;
  margin-top:10px;
}


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

.book{
	width:100%;
  display:block
  padding:12px 10px;
  font-size:16px;
  margin:0 auto;
}
.book::before{display:none;
}



	}



.book ol{
  margin:0;
  padding:0;
  list-style:none;          /* 拿掉預設 1. 2. 3. */
  margin:0 auto;      /* ⭐ 整個置中 */
}
.book ol li{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

/* 行距 */
.book ol li + li{
  margin-top:6px;
}
.book ol li::before{
  content:"";
  width:12px;
  height:12px;
  border-radius:50%;
  margin-top:8px;
  flex:0 0 12px;
}

/* 不同顏色 */
.book ol li:nth-child(1)::before{ background:#ff7a1a; } /* 橘 */
.book ol li:nth-child(2)::before{ background:#6a2ca0; } /* 紫 */
.book ol li:nth-child(3)::before{ background:#7a4a1a; } /* 棕 */


.main-wrap {
	width:100%;
	margin: 0 auto;
	padding: 0 0 ;
	background:#bbe2ed url(images/bg.png) ;
	background-size:cover;
	background-attachment: fixed;
}

.main-wrap .menu {
	width:1200px;
	margin: 10px auto ;
	padding: 10px 0 0 0;
}


/* =========================
   2. TOP NAV / TABS (桌機+手機)
========================= */

/* 外層整條 nav 是 sticky */
.top-nav {
	background: #ffffff;
	border-bottom: 1px solid #e5e6eb;
	box-shadow: 0 4px 20px rgba(0,0,0,.06);
	position: sticky;
	top: 0;
	z-index: 1000;
}

div.sticky {
  position: sticky;
  bottom: 0;
  z-index:999;
  width:100%;
  font-size:28px;
  height:auto;
  text-align:center;
    font-weight: bold;	
    background: rgba(255,245,129,.95);
    padding:15px 0;
}

div.sticky span{
	color:#ea0085;
	padding:0 5px 0 10px;
}

div.sticky span.origin{
	color:#999;
  font-size:18px;
	padding:0 25px 0 5px;
  text-decoration: line-through;
}

.btn {
    border-radius: 14px;
    background-color: #16a085;
    color: #ffffff;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    transition-duration: 0.4s;
    padding: 15px 25px;
    box-shadow: 0 5px 15px #193047;
  letter-spacing: 3px;
  display:inline-block;
}
.btn:hover {
    background: #ffffff;
    box-shadow: 0px 2px 10px 5px #1abc9c;
    color: #000000;
}


/* 這層用來啟用手機版橫向捲動 */
.top-nav-scroll {
	max-width: 1200px;
	margin: 0 auto 0 auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* 內層按鈕容器 */
.top-nav-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 25px;
	padding: 12px 16px;
	min-width: max-content;

}

/* 單一導覽 tab */
.nav-item {
	position: relative;
	flex-shrink: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #444;
	background: #f5f6ff;
	border: 1px solid #d5d9ff;
	border-radius: 10px;
	padding: 10px 16px;
	line-height: 1.2;
	text-align: center;
	min-width: 150px;
	user-select: none;
	cursor: pointer;
	transition: all .18s ease;
	box-shadow: 0 4px 10px rgba(0,0,0,.04);

}
.nav-item .sub {
	display: block;
	margin-top: 5px;
	font-size: .85rem;
	font-weight: 500;
	line-height: 1.2;
	color: #6b6f85;
}

/* hover 效果 */
.nav-item:hover {
	background: #4a6cff;
	border-color: #4a6cff;
	color: #fff;
	box-shadow: 0 10px 24px rgba(74,108,255,.3);
}
.nav-item:hover .sub {
	color: #fff;
}

/* active tab */
.nav-item.active {
	background: #4a6cff;
	border-color: #4a6cff;
	color: #fff;
	box-shadow: 0 10px 24px rgba(74,108,255,.3);
}
.nav-item.active .sub {
	color: #fff;
}

/* 手機：橫向滑條、tab 拉寬、左對齊文案 */
@media (max-width: 768px) {

.main-wrap {
	padding: 0 0 10px 0;
}
div.sticky {
  position: -webkit-static;
  position: static;
  font-size:20px;
    padding:10px 0;
}

div.sticky span{
	display:block;
  font-size:1.5rem;
	padding:10px;
}

div.sticky span.origin{
  font-size:18px;
	padding:0 0 5px 0;
}

.btn {
    font-size: 23px;
    padding: 15px 18px;
    margin-top:10px;
}
.top-nav {
	position: static;
}

	.top-nav-inner {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 12px;
		min-width: max-content;
	}

	.nav-item {
		min-width: 180px;
		text-align: left;
		line-height: 1.4;
		font-size: 1rem;
	}

	.nav-item .sub {
		white-space: normal;
		font-size: .7rem;
		margin-top: 4px;
	}

	.top-nav-scroll::-webkit-scrollbar {
		height: 4px;
	}
	.top-nav-scroll::-webkit-scrollbar-thumb {
		background: #c6c9ff;
		border-radius: 999px;
	}
	.top-nav-scroll::-webkit-scrollbar-track {
		background: transparent;
	}
}


.section-block {
	width:1100px;
	display: none;
	background: #fff;
	border: 1px solid #e5e6eb;
	box-shadow: 0 10px 24px rgba(0,0,0,.05);
	padding: 0 24px;
	margin:0 auto;

}
.section-block.active {
	display: block;
}


/* 主要版型 */
.page-layout {
  display: flex;
  gap: 10px;
  border-top:1px solid #CCC;
  padding:30px;
}

/* 左側 */
aside {
  width: 300px;
   flex-shrink: 0;
}

/* 右側 */
main {
	flex: 1;
  width: 600px;
  font-size:20px;
	margin:0 auto;
	line-height:1.5;
}


aside div{
  font-size:20px;
	text-align:center;
	margin:0 auto;
	line-height:1.5;
}
aside img{
	width:200px;
	text-align:center;
	margin:0 auto 10px auto ;
	display:block;
}

aside div span{
	color:#0268b8;
	padding:0 5px;
	display:inline-block;
	font-weight:bold;
  font-size:25px;
}

aside div span.origin{
	color:#999;
  font-size:18px;
	font-weight:450;
  text-decoration: line-through;
	display:block;
  
}

main span{
	font-size:25px;
	color:#FFF;
	font-weight:bold;
	line-height:1.5;
	background-color:#ec4b17; border-radius:15%; 
	margin:5px;
	padding:3px 5px 3px 5px;
}


main ul{
		text-align: center;
		display: grid; /* 預設區塊模式 */
		grid-template-columns: repeat(4,1fr);
		gap: 12px; /* 間距 */
		margin-top:20px;
	}

main ul li {
		text-align: center;
		border: 1px solid #CEC;
		}	
main ul li img {
		width: 100%;
		height:auto;
		}


.btn01 {
		width:50%;
    border-radius: 4px;
    background-color: #8B658B;
    color: #ffffff;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    transition-duration: 0.4s;
    padding: 5px 10px;
  letter-spacing: 3px;
  display:block;
  margin:10px auto;
}
.btn01:hover {
    background: #ffffff;
    box-shadow: 0px 2px 10px 5px #8B658B;
    color: #000000;
}

/* =========================
   7. 閱讀｜聽力 商品格 (reading-grid)
========================= */
.books{
	width:1150px;
	height:auto;
	overflow:hidden;
	margin:30px auto 0 auto;
	padding:30px auto;
	text-align: center;
	background:#FFF;
}

.books h1{
	font-size:1.5rem;
	color:#FFF;
	font-weight:bold;
	background:#00b6c4;
	padding:10px;
	margin-bottom:15px;
}

.reading-card {
	width: 250px;
	height:auto;
	overflow:hidden;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 16px rgba(0,0,0,0.06);
	padding: 16px 16px 20px;
	box-sizing: border-box;
	text-align: center;
	display: flex;
	flex-direction: column;
	transition: all 0.18s ease;
	float:left;
	margin:20px 15px 0 15px;
}

.reading-card:hover {
	box-shadow: 0 12px 28px rgba(0,0,0,0.08);
	transform: translateY(-4px);
}

.reading-cover {
	width: 100%;
	height: 185px;
	border: 1px solid #ccc;
	background: #f5f5f7;
	border-radius: 8px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .8rem;
	color: #999;
	font-weight: 500;
}

.reading-cover a img {
max-width:100%;
	height: 182px;
border-radius:6px;
}

.reading-title {
	font-size: 1rem;
	font-weight: 600;
	color: #222;
	line-height: 1.4;
	min-height: 2.8em; /* 兩行高度，避免高度不齊 */
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	display:block;
}

.reading-priceblock {
	font-size: 1rem;
	line-height: 1.5;
	margin-bottom: 12px;
}
.reading-priceblock .sale {
	color: #d9534f;
	font-weight: 700;
}
.reading-priceblock small {
	font-size: .95rem;
	color: #999;
	font-weight: 400;
	margin-left: .25em;
}
.reading-priceblock .list {
	color: #555;
	font-size: .85rem;
}

.reading-cartbtn {
	appearance: none;
	border: none;
	border-radius: 8px;
	background: #e53935;
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	padding: 8px 10px;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(229,57,53,.4);
	transition: all .18s ease;
}
.reading-cartbtn a{
	
	color: #fff;
}

.reading-cartbtn:hover {
	background: #c62828;
	box-shadow: 0 6px 14px rgba(229,57,53,.5);
}

/* reading-grid RWD */
@media (max-width: 768px) {

.reading-grid {
	gap: 30px;
	margin:0 auto;
}

.reading-card {
	width: 46%;
	height:500px;
	padding: 5px;
	margin:5px;
}

.reading-cover {
	width: 100%;
	height: auto;
	margin-bottom: 20px;
}

.reading-cover a img {
max-width:100%;
	height: auto;
border-radius:6px;
}

.reading-title {
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 10px;
}

.reading-priceblock {
	line-height: 1.5;
	margin-top: 20px;
	margin-bottom: 12px;
}
}


/* 特價提示塊 */
.book_sale img {
	width: 30%;
	margin: 10px;
}

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

.section-block {
	width:98%;
  padding:5px 0;
}
.page-layout {
  display: block;
}

aside {
  width: 100%;
}

main {
  width: 100%;
  margin-top:30px;
}
main ul{
		grid-template-columns: repeat(2,1fr);
	}

.books{
	width:100%;
}
.product-grid{
  grid-template-columns: repeat(2, 1fr);
  
  gap:15px;
}
.item-card {
  width: 100%;
  padding: 16px 10px 14px 10px;
}
.book_sale img {
	width: 45%;
	margin: 0 5px;
}
}


/* footer */
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;
}


/* -- sidemanu for pc -- */
.side-menu{
	position: fixed;
	width: 100px;
	top:45%;
	right:0;
	padding: 0;
	box-sizing: border-box;
	opacity:0.75; 
	display: flex;
	flex-direction: column;
	transform: translateX(0);
	transition: .3s;
	z-index:999999;
	font-size:1.05rem;
	text-align:center;
}

label a{
	display: block;
	color: #FFF;
	font-weight: 550;
	margin:15px 0;
	background:#e50061;
	padding: 8px ;
}

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{display:none;
}

}

/* 浮動購物車 */
#car {
	width: 145px;
	position: fixed;
	z-index: 999999;
}
#car a {
	position: fixed;
	top: 42px;
	right: 5px;

	display: inline-block;
	width: 25px;
	padding: 5px 3px;

	background: #ff4f81;
	border: 1px solid #EEE;
	border-radius: 15px;
	box-shadow: 0 5px 15px #193047;

	color: #FFF;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

/* cart iframe (桌機版右上角的小購物車總覽) */
iframe {
	width: 140px;
	position: fixed;
	right: 40px;
	top: 42px;
	height: 180px;
	overflow: hidden;
	border: 0;
}

/* tab-content 裡的 iframe (如果內頁嵌東西用) */
.tab-content iframe {
	width: 100%;
	height: 600px;
	position: static;
	border: 0;
}

/* cart RWD: 手機時只留粉紅按鈕，隱藏右上iframe */
@media screen and (max-width: 768px) {
	#car {
		width: auto;
	}
	#car a {
		width: 35px;
		border-radius: 5px;
		top: 80%;
		line-height: 1.5;
	}
	iframe {
		display: none;
	}
}
.anchor{
  scroll-margin-top: 170px; /* header 高度 */
}