@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Sans+TC:wght@200;400;600;700;900&family=Lato:wght@300;400;600&display=swap');
/* Smooth scroll */ :root {
  scroll-behavior: smooth;
}
::selection {
  background: #f09845;
  color: #fff;
}
::-moz-selection {
  background: #f09845;
  color: #fff;
}
body {
  font-size: 16px;
  line-height: 1.8;
  background-color: #fff;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}
a {
  color: #161616;
  -webkit-transition: all 0.25s ease-out;
  transition: all 0.25s ease-out;
  text-decoration: none;
}
a:hover {
  color: #17667c;
}
ul {
  padding: 0;
}
article {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  overflow: hidden;
}
section {
  position: relative;
  display: block;
  width: 100%;
  min-width: 1000px;
  margin: 0 auto;
} /* 背景都放在這 */
.place_wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
} /* 內容都放在這 */
.mobile {
  display: none;
}
.pc {
  display: block;
}
.logo {
  position: absolute;
  top: 20px;
  right: 20px;
}
.logo img {
  width: 100px;
  height: auto;
}
@media screen and (max-width: 640px) {
  .logo {
    top: 10px;
    right: 10px;
  }
  .logo img {
    width: 60px;
    height: auto;
  }
}
/*** Footer ***/
#footer {
  margin: 0 auto;
  padding: 16px 0;
  font-size: 12px;
  text-align: center;
  color: #ffffff;
  line-height: 140%;
  background-color: #333;
}
#footer a {
  color: #fff;
}
#footer a:hover, a:focus {
  -webkit-transition-duration: 500ms;
  transition-duration: 500ms;
  text-decoration: none;
  color: #fff000;
}
@media (max-width: 465px) {
  #footer {
    padding: 16px 0 16px 0;
  }
}
.title img {
  width: 100%;
  max-width: 768px;
  height: auto;
}
.kvtitle {
  position: absolute;
  top: 80px;
  left: 120px;
  z-index: 9;
}
.text01 {
  position: absolute;
  top: 302px;
  right: 60px;
  z-index: 9;
}
.text02 {
  position: absolute;
  top: 412px;
  right: 54px;
  z-index: 9;
}
.kvmobile img {
  width: 100%;
  height: auto;
}
.book {
  position: absolute;
  top: 522px;
  right: 150px;
  z-index: 1;
}
.book img {
  width: 130px;
  height: auto;
}
@media (max-width: 1200px) {
	.book {
		display: none;
	}
}
/* -----------------------------------------------------
 各區塊版面底圖設定
-------------------------------------------------------*/
.kv {
  background: url("../images/main.png") center center no-repeat;
  height: 820px;
  z-index: 10;
  top: 0;
  padding: 0;
}
.place1 {
  background: url("../images/part01.png") center center no-repeat;
  height: 960px;
  z-index: 10;
  top: 0;
}
.place2 {
  background: url("../images/part02.png") center center no-repeat;
  height: 960px;
  z-index: 9;
  margin-top: -90px;
}
.place3 {
  background: url("../images/part03.png") center center no-repeat;
  height: 840px;
  z-index: 8;
  margin-top: -30px;
}
.place4 {
  background: url("../images/part04.png") center center no-repeat;
  height: 690px;
  z-index: 7;
	  margin-top: -100px;
}
.place5 {
  background: url(../images/part05.png) center center no-repeat;
  height: 960px;
  z-index: 6;
  margin-top: -0px;
}
.place6 {
  background: url(../images/part06.png) center center no-repeat;
  height: 600px;
  z-index: 5;
  margin-top: -40px;
}
.place7 {
  background: url(../images/part07.png) center center no-repeat;
  height: 700px;
  z-index: 4;
}
.place8 {
  background: url(../images/part08.png) center top no-repeat;
  z-index: 1;
  height: 580px;
}
.place9 {
  background: url(../images/part09.png) center top no-repeat;
  z-index: 5;
 
}
.place10 {
  background: url("../images/part10.png") center center no-repeat;
  z-index: 9;
  margin-top: -40px;
	  height: 626px;
}
.place11 {
  background: url("../images/part11.png") center center no-repeat;
  height: 626px;
  z-index: 9;
}
.place12 {
  background: url("../images/part12.png") center center no-repeat;
  height: 702px;
  z-index: 9;
}
.place13 {
  background: url("../images/part13.png") center top no-repeat;
  height: 900px;
  z-index: 9;
}
.place14 {
  background: url("../images/part14.png") center top no-repeat;
  height: 620px;
  z-index: 10;
}

@media screen and (max-width: 1200px) {
  .pc {
    display: none;
  }
  section {
    min-width: auto;
  }
  .kv, .place1, .place2, .place3, .place4, .place5, .place6, .place7, .place8, .place10, .place11, .place12, .place13, .place14 {
    background: none;
    margin-top: 0 !important;
    height: auto !important; /* 讓區塊高度根據內容調整 */
    min-height: inherit; /* 確保不會過小 */
    padding-bottom: 30px; /* 預留一些空間，避免被擠壓 */
  }
  .mobile {
    display: block;
  }
  .items {
    position: static; /* 移除絕對定位，讓 .items 可以正常影響內部元素 */
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 讓內部 .book-item 置中 */
    gap: 15px; /* 書本間距 */
    width: 100%;
    max-width: 660px; /* 讓內容不超過 640px，對齊 4 本書的排列 */
    margin: 0 auto; /* 讓 .items 置中 */
  }
  .book-item {
    position: static !important; /* 解除原本的絕對定位 */
    width: 150px; /* 固定每本書的寬度 */
    text-align: center;
  }
  .place1 .items, .place2 .items, .place3 .items, .place4 .items, .place5 .items, .place6 .items, .place7 .items, .place8 .items, .place10 .items, .place11 .items, .place12 .items, .place13 .items {
    height: inherit;
  }
}
@media screen and (max-width: 768px) {
	.kv{
		padding-bottom: 0;
	}
  .items {
    max-width: 320px; /* 150px * 2 + 10px (間距) */
    gap: 10px; /* 縮小間距 */
  }
  .book-item {
    width: 150px;
  }
}
/* -----------------------------------------------------
各區物件定位 
-------------------------------------------------------*/
.items {
  position: absolute;
  list-style: none;
}
.items li {
  position: absolute;
  -webkit-transition: all 0.25s ease-out;
  transition: all 0.25s ease-out;
}
.items img {
  width: 100%;
  -webkit-transition: all 0.25s ease-out;
  transition: all 0.25s ease-out;
}
.book-item:hover {
  margin-top: -10px;
}
.book-item {
  text-align: center; /* 讓圖片和書名置中 */
  width: 150px; /* 固定每本書的寬度 */
}
.book-item p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.2;
}
.book-item a {
  text-decoration: none;
}
.book-pic {
  width: 150px;
  height: 180px;
  text-align: center;
  vertical-align: bottom;
	
}
.book-pic img {
  max-height: 180px;
  width: auto;
  max-width: 150px;
	
}
/* p0 */
.place0 {
  margin: 0 auto;
  text-align: center;
  padding: 50px 0;
}
.place0 img {
  width: 90%;
  max-width: 720px;
  height: auto;
}
@media screen and (max-width: 1200px) {
	.place0 {
  
  padding: 20px 0;
}
}
/* p1 */
.place1 .items {
  width: 680px;
 
  top: 548px;
  left: 100px;
}
.place1 .book-item01 {
  left: 0px;
}
.place1 .book-item02 {
  left: 166px;
}
.place1 .book-item03 {
  left: 332px;
}
.place1 .book-item04 {
  left: 498px;
}
.place1 .book-item p {
  color: #68b82d;
}
/* p2 */
.place2 .items {
  width: 680px;
  
  top: 314px;
  left: 512px;
}
.place2 .book-item01 {
  left: 0px;
}
.place2 .book-item02 {
  left: 166px;
}
.place2 .book-item03 {
  left: 332px;
}
.place2 .book-item04 {
  left: 498px;
}
.place2 .book-item p {
  color: #ff48b0;
}
/* p3 */
.place3 .items {
  width: 680px;

  top: 328px;
  left: 80px;
}
.place3 .book-item01 {
  left: 0px;
}
.place3 .book-item02 {
  left: 166px;
}
.place3 .book-item03 {
  left: 332px;
}
.place3 .book-item04 {
  left: 498px;
}
.place3 .book-item p {
  color: #eb6b78;
}
/* p4 */
.place4 .items {
  width: 680px;
  
  top: 354px;
  left: 512px;
}
.place4 .book-item01 {
  left: 0px;
}
.place4 .book-item02 {
  left: 166px;
}
.place4 .book-item03 {
  left: 332px;
}
.place4 .book-item04 {
  left: 498px;
}
.place4 .book-item p {
  color: #f37340;
}
/* p5 */
.place5 .items {
  width: 680px;

  top: 198px;
  left: 80px;
}
.place5 .book-item01 {
  left: 0px;
}
.place5 .book-item02 {
  left: 166px;
}
.place5 .book-item03 {
  left: 332px;
}
.place5 .book-item04 {
  left: 498px;
}
.place5 .book-item p {
  color: #eb6b78;
}
/* p6 */
.place6 .items {
  width: 680px;

  top: 224px;
  left: 92px;
}
.place6 .book-item01 {
  left: 0px;
}
.place6 .book-item02 {
  left: 166px;
}
.place6 .book-item03 {
  left: 332px;
}
.place6 .book-item04 {
  left: 498px;
}
.place6 .book-item p {
  color: #64badb;
}
/* p7 */
.place7 .items {
  width: 360px;

  top: 410px;
  left: 700px;
}
.place7 .book-item {
  width: auto;
}
.place7 .book-item p {
  color: #000;
}

.place7 .book-item01 {
  left: 0px;
}
/* p7 影片 */
.place7 .items-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}
.place7 .video-container {
  position: absolute;
  top: 290px;
  left: 30px;
  width: 640px;
  height: 360px;
}
.place7 .items {
  flex: 1;
  max-width: 45%;
  position: relative;
}
@media screen and (max-width: 1200px) {
  .place7 .items-wrapper {
    flex-direction: column; /* 小螢幕時將影片和書籍排成一列 */
    align-items: center;
  }
  .place7 .video-container, .place7 .items {
    max-width: 90%; /* 限制寬度，避免過大 */
    position: static; /* 移除小螢幕的絕對定位，讓元素正常顯示 */
  }
}
@media screen and (max-width: 640px) {
  .place7 .video-container {
    width: 360px;
    height: 200px;
  }
}
/* p8 作者 */
.place8 {
  padding: 50px 0 50px 0;
  background-color: #fff;
}
.place8 .swiper-container {
  width: 100%;
  max-width: 768px;
  margin: 200px auto 50px auto;
}
.place8 .swiper-wrapper {
  display: flex;
  align-items: center;
}
.place8 .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.place8 .author-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 10px auto;
}
.place8 .author-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.place8 .author-title {
  font-size: 14px;
  line-height: 1.3;
  color: #642728;
  transition: color 0.5s ease-in-out; /* 添加顏色過渡 */
}
.place8 .swiper-slide-active .author-pic {
  width: 180px;
  height: 180px;
}
.place8 .swiper-slide-active .author-title {
  font-size: 18px;
  font-weight: bold;
  color: #FFDF47; /* 當選中時的顏色 */
  margin-bottom: 60px;
}
/* 分頁點設置 */
.place8 .swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}
.place8 .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s;
}
.place8 .swiper-pagination-bullet-active {
  background-color: #FFDF47;
  transform: scale(1.2);
}
.place8 .swiper-pagination-bullet:hover {
  background-color: #ff9a8b;
  transform: scale(1.1);
}
@media screen and (max-width: 1200px) {
  .place8 .swiper-container {
    margin: 20px auto 10px auto;
  }
  .place8 {
    padding: 50px 0 50px 0;
    background-color: #eb6b78;
  }
}
/* p9 */
.place9 {
  margin: -60px auto 40px auto;
  text-align: center;
  padding: 60px 0 60px 0;
	
}

.place9 img {
  width: 90%;
  max-width: 640px;
  height: auto;
}
@media screen and (max-width: 1200px) {
	.place9 {
		 margin: -30px auto 0px auto;
	}
}
/* p10 */
.place10 .items {
  width: 680px;

  top: 334px;
  left: 492px;
}
.place10 .book-item01 {
  left: 0px;
}
.place10 .book-item02 {
  left: 166px;
}
.place10 .book-item03 {
  left: 332px;
}
.place10 .book-item04 {
  left: 498px;
}
.place10 .book-item p {
  color: #ff48b0;
}
/* p11 */
.place11 .items {
  width: 680px;

  top: 324px;
  left: 480px;
}
.place11 .book-item01 {
  left: 0px;
}
.place11 .book-item02 {
  left: 166px;
}
.place11 .book-item03 {
  left: 332px;
}
.place11 .book-item04 {
  left: 498px;
}
.place11 .book-item p {
  color: #f37340;
}
/* p12 */
.place12 .items {
  width: 680px;

  top: 420px;
  left: 492px;
}
.place12 .book-item01 {
  left: 0px;
}
.place12 .book-item02 {
  left: 166px;
}
.place12 .book-item03 {
  left: 332px;
}
.place12 .book-item04 {
  left: 498px;
}
.place12 .book-item p {
  color: #6fba2b;
}
/* p13 */
.place13 .items {
  width: 846px;
  
  top: 554px;
  left: 22px;
}
.place13 .book-item01 {
  left: 0px;
}
.place13 .book-item02 {
  left: 166px;
}
.place13 .book-item03 {
  left: 332px;
}
.place13 .book-item04 {
  left: 498px;
}
.place13 .book-item05 {
  left: 664px;
}
.place13 .book-item p {
  color: #ff48b0;
}
.place14 {
  margin: -80px auto 0 auto;
}
@media screen and (max-width: 1200px) {
 
  .place14 {
    padding: 0;
    background-color: #f08402;
  }
}
/* 桌布下載區 */
.wallpaper-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 300px;
}
.wallpaper-item {
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.wallpaper-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}
.wallpaper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.wallpaper-item:hover .wallpaper-thumb img {
  transform: scale(1.05);
}
.wallpaper-item p {
  margin-top: 12px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #fff;
}
@media (max-width: 1200px) {
	.wallpaper-list{
		padding-top: 0;
	}
}
/* 手機版：一張一排 */
@media (max-width: 768px) {
  .wallpaper-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}
/* 桌布遮罩 DOWNLOAD */
.wallpaper-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125,71,5,0.35);
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
/* hover 顯示遮罩 */
.wallpaper-item:hover .wallpaper-overlay {
  opacity: 1;
}
/* hover 時圖片微放大（你前面已有可共用） */
.wallpaper-item:hover .wallpaper-thumb img {
  transform: scale(1.05);
}
/* 手機版：預設顯示 DOWNLOAD（避免沒有 hover） */
@media (max-width: 768px) {
  .wallpaper-overlay {
    opacity: 1;
    font-size: 1rem;
 
  }
}
/* 返回頂部按鈕樣式 */
.scroll-to-top {
  position: fixed;
  width: 36px;
  height: 36px;
  bottom: 20px;
  right: 20px;
  background-color: #5CACCD;
  color: #fff;
  border: none;
  padding: 8px 8px;
  font-size: 20px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  display: none;
  transition: background-color 0.3s ease;
  z-index: 10;
}
.scroll-to-top:hover {
  background-color: #EDA118;
  color: #fff;
}
.scroll-to-top.show {
  display: block;
}

@media (max-width: 1200px) {
  
  .book-list,
  .books,
  .place .items {
    position: static !important;
    transform: none !important;
  }
}
@media (max-width: 1200px) {
  .items {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
  }

  .items .book-item {
    width: 100%;
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .items {
    gap: 12px;
  }

  .items .book-item {
    max-width: 150px;
  }
}

@media (max-width: 1200px) {
  .arrow-left,
  .arrow-right,
  .deco,
  .line,
  .hand-draw,
  .bg-deco {
    display: none !important;
  }
}
