@charset "utf-8";
html{ font-size: 62.5%;} 
body{ font: 62.5% 微軟正黑體,新細明體,"Century Gothic",Arial,sans-serif; line-height: 1;}
audio {
    display: none;
}


/*--header--------------------------------*/
header{ margin-top: 0px; position: relative; overflow: hidden;}
.bgHeaderBao{ display: none;}
.bgHeaderM{ display: block;}

/*--content--------------------------------*/
.areaBox{ padding: 0px; background-position: top center; background-size: cover;}
.areaWidth1{ padding: 0px 0% 0px 0%;}
.areaWidth2{ padding: 0px 0% 0px 0%;}
.areaWidth3{ padding: 30px 0% 30px 0%;}
.areaWidth4{ padding: 0px 0% 30px 0%;}
.areaWidth5{ padding: 50px 5% 20px 5%;}

/*--關閉--------------------------------*/
.a1_m {display: block;}
.a1_pc {display: none;}


	
/*--area--------------------------------*/
.title1{ width: 0%; margin: 0 auto; padding: 0px 0 0px 0px; position: relative;display: none;}
.title1_m{ width: 90%; margin: 0 auto; padding: 0px 0 0px 0px; position: relative;display: block;}

.book1{flex-wrap: wrap; justify-content: center; padding: 0px 0% 0px 0%; margin-top: 0px; border-radius: 10px; display: flex;}
.book1 li{ width: 80%; margin-bottom: 10px; display: flex;}

.title2{ width: 0%; margin: 0 auto; padding: 0px 0 0px 0px; position: relative;display: none;}
.title2_m{ width: 100%; margin: 0 auto; padding: 0px 0 0px 0px; position: relative;display: block;}

.book2{flex-wrap: wrap; justify-content: center; padding: 0px 0% 0px 0%; margin-top: 0px; border-radius: 10px; display: none;}
.book2 li{ width: 100%; margin-bottom: 10px; display: none;}
.book2m{flex-wrap: wrap; justify-content: center; padding: 0px 0% 0px 0%; margin-top: 0px; border-radius: 10px; display: flex;}
.book2m li{ width: 100%; margin-bottom: 10px; display: flex;}

.title3{ width: 90%; margin: 0 auto; padding: 0px 0 0px 0px; display: block;}
.title4{ width: 90%; margin: 0 auto; padding: 0px 0 0px 0px; display: block;}


.bookList{flex-wrap: wrap; justify-content: center; padding: 0px 10% 0px 10%; margin-top: 0px; border-radius: 10px; display: flex; }
.bookList li{ width: 50%; margin-bottom: 10px; display: flex;}


.more3{ width: 78%; padding: 0px 0px 0px 0px;  display: block; margin: 8% auto;}


.title7{ width: 0%; margin: 0 auto; padding: 0px 0 0px 0px; position: relative;display: none;}
.title7_m{ width: 100%; margin: 0 auto; padding: 0px 0 0px 0px; position: relative;display: block;}

/* music */

.gr-audio-btn{
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 10010;
    width: 66px; height: 66px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; border-radius: 999px;
    background: rgba(0,0,0,.6);
    color: #fff;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
  }
  .gr-audio-btn:hover{ transform: translateY(-1px); background: rgba(0,0,0,.7); }
  .gr-audio-btn:active{ transform: translateY(0); }
  .gr-audio-btn:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }

  .gr-audio-btn .gr-icon{ display: none; }
  .gr-audio-btn.is-muted .gr-icon-muted{ display: block; }
  .gr-audio-btn.is-playing .gr-icon-playing{ display: block; }
  .gr-audio-btn img {
	width: 50px; /* 你想要的大小 */
	height: 50px;
  }

/* 動畫 */

.wrongEgg1 {
	animation: glitchPopRed 3s infinite;
	position: relative;
	display: inline-block;
  }

  @keyframes glitchPopRed {
  0%, 95%, 100% {
    transform: none;
    filter: none;
    box-shadow: none;
    opacity: 1;
  }

  96% {
    transform: translate(-4px, 3px) rotate(-0.5deg);
    filter: blur(3px);
    opacity: 0.9;
  }

  97% {
    transform: translate(4px, -3px) rotate(0.5deg);
    filter: blur(4px);
    opacity: 0.8;
  }

  98% {
    transform: translate(-2px, 2px) rotate(-0.2deg);
    filter: blur(2.5px);
    opacity: 0.85;
  }

  99% {
    transform: none;
    filter: none;
    box-shadow: none;
    opacity: 1;
  }
}

.title1_content_m {
    min-height: 200px; /* 或依照圖片高度調整 */
  }

.title1_content {
	opacity: 0;
	clip-path: inset(0 0 100% 0);
	filter: blur(6px); /* 初始模糊 */
  }
  
  /* WOW.js 加 .wow-animate 後，觸發這個動畫 */
  .title1_content.wow-animate {
	animation: 
	  revealGhosty 1.4s ease-out forwards;
  }
  
  @keyframes revealGhosty {
	0% {
	  clip-path: inset(0 0 100% 0);
	  opacity: 0;
	  filter: blur(6px);
	}
	20% {
	  clip-path: inset(0 0 80% 0);
	  opacity: 0.2;
	  filter: blur(4px);
	}
	40% {
	  clip-path: inset(0 0 60% 0);
	  opacity: 0.4;
	  filter: blur(3px);
	}
	60% {
	  clip-path: inset(0 0 40% 0);
	  opacity: 0.6;
	  filter: blur(2px);
	}
	80% {
	  clip-path: inset(0 0 20% 0);
	  opacity: 0.8;
	  filter: blur(1px);
	}
	100% {
	  clip-path: inset(0 0 0 0);
	  opacity: 1;
	  filter: blur(0);
	}
  }

  /* 關掉第六點連結的所有底線樣式 */
	#Egg6,
	#Egg6:hover,
	#Egg6:focus,
	#Egg6:active,
	#Egg6:visited{
	text-decoration: none !important;
	border-bottom: 0 !important;
	background-image: none !important; /* 有些主題用它畫底線 */
	box-shadow: none !important;       /* 偶爾用陰影模擬底線 */
	color: inherit;                     /* 顏色跟著文字，不變藍 */
	}


  /* 字 */
  @keyframes twitchOnce {
	0%   { transform: translate(0, 0); }
	3%   { transform: translate(-1px, 1px); }
	6%   { transform: translate(1px, -1px); }
	9%   { transform: translate(-1px, 0); }
	12%  { transform: translate(1px, 1px); }
	15%  { transform: translate(0, 0); }
	100% { transform: translate(0, 0); } /* 之後都靜止 */
  }
  
  .subtle-glitch {
	text-decoration: none; /* 移除底線 */
	font-weight: bold;
	color: #fff;
	animation: twitchOnce 10s infinite;
  }
  
  


/*--area1--------------------------------*/
.areaBg0{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg_m.png);}
.areaBg1{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg_m.png);}
.areaBg2{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg2.png);}
.areaBg3{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg4_m.png);}
.areaBg4{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg_m.png);}
.areaBg5{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg4_m.png);}
.areaBg6{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg_m.png);}

.wbtn{ width: 50%; margin: 0 auto; margin: 5% auto;}
.socialList{ padding-bottom: 5%; width: 60%; margin: 0 auto;}

/* 碎片 */

.areaBox.areaBg1 {
	position: relative;

	/* 建議加個 min-height，避免容器太小碎片被擠掉 */
  }
  
  .chip, .chip-sp {
	position: absolute;
	width: 60px;
	cursor: pointer;
	opacity: 0;
	animation-name: fadeIn;
	animation-duration: 1.2s;
	animation-fill-mode: both;
	animation-timing-function: ease;
	transition: transform 0.2s ease;
	animation-delay: 2s; 
  }

.chip-sp:hover {
  transform: scale(1.3) rotate(5deg);
  /* 不要覆蓋 opacity，讓 fadeIn 決定 */
}
  
  /* 碎片位置（可微調） */
  .chip-2 { top: 6%; left: 5%; animation-delay: 0s; }
  .chip-3 { top: 50%; left: 63%; animation-delay: 1s; }
  .chip-4 { top: 75%; left: 70%; animation-delay: 2s; }
  .chip-5 { top: 18%; left: 68%; animation-delay: 0.5s; }
  .chip-6 { top: 97%; left: 57%; animation-delay: 1.2s; }
  .chip-sp { top: 30%; left: 19%; animation-delay: 2.5s; }

  @keyframes fadeIn {
	0% { opacity: 0; }
	100% { opacity: 1; }
  }

@keyframes subtleShake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-2px); }
	40% { transform: translateX(2px); }
	60% { transform: translateX(-2px); }
	80% { transform: translateX(2px); }
  }
  
  /* ✅ 錯的碎片點下去抖一下，不吸睛、不放大 */
  .chip:active {
	animation: subtleShake 0.25s ease;
	filter: brightness(0.8) grayscale(0.5);
  }
  
	
  
/*--sweetAlert-----------------------------------------*/
.custom-html-container{ margin: 1em 0 0.3em;}
.custom-btn-close{ font-size: 4.5rem; margin-top: -9%; margin-right: -4%; box-shadow: none; color:black;}
.custom-btn-close:focus{ box-shadow: none;}
.custom-btn-styled { font-size: 1.4rem; cursor: pointer;}
/* .sweetBtn{ padding: 3px 10px; font-size: 1.5rem !important; font-weight: bold !important; cursor: pointer; font: 62.5% 微軟正黑體,新細明體,"Century Gothic",Arial,sans-serif;} */

/*按鈕(關閉)*/
.custom-btn-styled,
.custom-btn-styled:active,
.custom-btn-styled:hover{ background-color: transparent !important; background-image: none !important;}
.custom-btn-styled:focus{ border: 0 !important; box-shadow: none;}
.custom-btn-styled{ box-shadow: none !important;}
.custom-btn-styled .sweetBtn{ margin: 0; display: inline-block; margin: 8px auto 0 auto; padding: 20px 20px 22px 20px; min-width: 200px; font-size: 2rem; color: #fff; line-height: 1;
font-weight: bold; /*font-style: italic;*/ text-decoration: none; font-family: 微軟正黑體,新細明體,"Century Gothic",Arial,sans-serif; background-color: #790303; border-radius: 5px;
/* text-shadow: rgb(255, 255, 255) 0 0px 10px; border: #fff 1px solid; box-shadow: inset rgb(255, 255, 255) 0px 0px 28px, rgb(255, 255, 255) 0 0px 10px; cursor: pointer;*/} 

/*分享鈕*/
.shareIconList{ display: flex; flex-wrap: wrap; justify-content: space-between; width: 90%; max-width: 350px; margin: 25px auto 10px auto;}
.shareIcon{ display: block; width: 20%; transition: 0.4s;}
.shareIcon:hover{ transform: scale(0.9);}

.firstGet{ width: 100%; margin: 2% auto 2% auto; text-align: center; /*background-color: rgb(51, 226, 154);*/ font-size: 1.9rem; color: #000000; font-weight: bold; border-radius: 8px;}
.firstGet b{ color: #7a0505;}
.firstGet a{ font-size: 1.4rem; color: #ff2020; text-decoration: underline;}
.firstGet a:hover{ text-decoration: none;}
.firstContent{ margin-bottom: 3%;}
.firstGet1{ width: 100%; margin: 2% auto 4% auto; text-align: center; /*background-color: rgb(51, 226, 154);*/ font-size: 2.1rem; color: #ffffff; font-weight: bold; border-radius: 8px;background-color: #790303;}


/*手機下載*/
.resultPicNote{ margin-top: 10px; font-size: 1.3rem; color: #3f3f3f; font-weight: bold; text-align: center;}





@keyframes sideBtn{ from {transform:translateX(calc(-100% - 40px));} to {transform:translateX(0);}}



/*--767up(Pc)------------------------*/
@media screen and (min-width:767px) {
    .bgHeaderBao{ display: block;}
	.headerGiftBao,.bgHeaderM{ display: none;}
	
	/*--滑鼠滑入效果(縮小)--------------------------------*/
    .hover1 li a{ display: block; transition: 0.4s;}
    .hover1 li a:hover{ transform: scale(0.9);}/*滑入縮小*/
	
	/*--滑鼠滑入效果(變淡)--------------------------------*/
	.hover2 li a img {
		opacity: 1;
		transition: opacity 0.5s ease;
	  }
	  
	  /* 滑過去：變淡並加入動畫 */
	  .hover2 li a:hover img {
		opacity: 0.3;
		animation: shakeInfinite 0.2s infinite;
	  }
	  

	  .hover3 li a img {
		opacity: 1;
		transition: opacity 0.3s ease;
	  }
	  
	  /* 滑過時：變淡 + 抖動 + 閃爍 */
	  .hover3 li a:hover img {
		opacity: 0.3;
		animation: shakeInfinite 0.2s infinite, flashGlitch 0.15s infinite;
	  }
	  
	  /* 抖動動畫 */
	  @keyframes shakeInfinite {
		0% { transform: translate(0, 0); }
		25% { transform: translate(-2px, 1px); }
		50% { transform: translate(2px, -1px); }
		75% { transform: translate(-1px, 1px); }
		100% { transform: translate(0, 0); }
	  }
	  
	  /* 閃爍動畫：亮度 or 透明度切換 */
	  @keyframes flashGlitch {
		0%   { filter: brightness(1) opacity(1); }
		25%  { filter: brightness(1.4) opacity(0.7); }
		50%  { filter: brightness(0.8) opacity(0.5); }
		75%  { filter: brightness(1.2) opacity(0.8); }
		100% { filter: brightness(1) opacity(0.9); }
	  }
	  
	  /* 抖動動畫定義 */
	  @keyframes shakeInfinite {
		0% { transform: translate(0, 0); }
		25% { transform: translate(-2px, 1px); }
		50% { transform: translate(2px, -1px); }
		75% { transform: translate(-1px, 1px); }
		100% { transform: translate(0, 0); }
	  }
	  .hover4 li a img {
		opacity: 1;
		transition: opacity 0.3s ease;
	  }
	  
	  /* 滑過：變淡 + 閃爍（像訊號錯亂） */
	  .hover4 li a:hover img {
		opacity: 0.3;
		animation: flashGlitch 0.15s infinite;
	  }
	  
	  /* 閃爍動畫 */
	  @keyframes flashGlitch {
		0%   { filter: brightness(1) opacity(1); }
		25%  { filter: brightness(1.4) opacity(0.7); }
		50%  { filter: brightness(0.8) opacity(0.5); }
		75%  { filter: brightness(1.2) opacity(0.8); }
		100% { filter: brightness(1) opacity(0.9); }
	  }


	/*--關閉--------------------------------*/	
	.a1_m { display: none;}
    .a1_pc { display: block;}
	
    /*--content--------------------------------*/
    .areaBox{ overflow: hidden; padding: 0; background-attachment: fixed;}
    .areaWidth1{ max-width: 80%;  margin: 0 auto; margin-top: 50px; margin-bottom: 0px; padding-bottom: 0px;}
	.areaWidth2{ max-width: 1200px;  margin: 0 auto; margin-top: 0px; margin-bottom: 0px; padding-bottom: 0px;}
	.areaWidth3{ max-width: 60%;  margin: 0 auto; margin-top: 0px; margin-bottom: 0px; padding-bottom: 0px;}
	.areaWidth4{ max-width: 60%;  margin: 0 auto; margin-top: 60px; margin-bottom: 80px; padding-bottom: 0px;}
	.areaWidth5{ max-width: 1000px;  margin: 0 auto; margin-top: 60px; margin-bottom: 80px; padding-bottom: 0px;}
	.areaWidth6{ max-width: 1000px;  margin: 0 auto; margin-top: 60px; margin-bottom: 80px; padding-bottom: 0px;}
	.areaWidth7{ max-width: 100%;  margin: 0 auto; margin-top: 50px; margin-bottom: 0px; padding-bottom: 0px;}
	
	/*--area--------------------------------*/
	.areaBg0{ background-color: #000000; background-image: url(https://cp-img.bookwalker.com.tw/event/2024/20240804_ghostmoon/images/bg_00.png);}
	.areaBg1{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg1.png);}
	.areaBg2{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg2.png);}
	.areaBg3{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg3.png);}
	.areaBg4{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg4.png);}
	.areaBg5{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg5.png);}
	.areaBg6{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg6.png);}

	.areaBg1 {
		position: relative; /* ← 這句是關鍵 */
		z-index: 1;
		overflow: hidden;   /* 建議加上，避免 after 超出邊界 */
	  }
	
	.areaBg1::after {
		content: '';
		position: absolute;
		top: 0; left: 0;
		width: 100%; height: 100%;
		background: url('https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/an1.gif'); /* 雜訊動畫 */
		background-size: cover;
		pointer-events: none;
		opacity: 0.08;
		z-index: 2;
		mix-blend-mode: screen;
	  }


	  /* 碎片 */


	  /* 碎片位置（可微調） */
	  .chip-2 { top: 19%; left: 16%; }
	  .chip-3 { top: 28%; left: 68%; }
	  .chip-4 { top: 43%; left: 28%; }
	  .chip-5 { top: 9%; left: 80%; }
	  .chip-6 { top: 85%; left: 67%; }
	  .chip-sp { top: 83%; left: 16%; }



    /*--area--------------------------------*/
	.title1{ width: 100%; padding: 0px 0px 50px 0px; display: block;}
	.title1_m{ width: 0%; padding: 0px 0px 0px 0px; display: none;}
	
	.book1{ flex-wrap: wrap; justify-content: center; padding: 0px 0px 0px 0px; margin-top: 50px; margin-right: 50px; display: flex;}
    .book1 li{ width: 40%; padding: 0px 0px 0px 0px; display: block;}
	
	.title2{ width: 100%; padding: 0px 0px 0px 0px; display: block;}
	.title2_m{ width: 0%; padding: 0px 0px 0px 0px; display: none;}
	
	.book2{ flex-wrap: wrap; justify-content: center; padding: 0px 0px 0px 0px; margin-top: 50px; margin-right: 50px; display: flex;}
    .book2 li{ width: 40%; padding: 0px 0px 0px 0px; display: block;}
	.book2m{ flex-wrap: wrap; justify-content: center; padding: 0px 0px 0px 0px; margin-top: 50px; margin-right: 50px; display: none;}
    .book2m li{ width: 40%; padding: 0px 0px 0px 0px; display: none;}

	.wbtn{ width: 80%; margin: 0 auto; padding-bottom: 50px;}

	.title3{ width: 90%; padding: 0px 0px 0px 0px; display: block;}
	.title4{ width: 80%; padding: 0px 0px 0px 0px; display: block;}



	.book3{ flex-wrap: wrap; justify-content: center; padding: 0% 13% 0px 13%; display: flex;}
    .book3 li{ width: 25%; padding: 0px 0px 0px 0px; display: block;}
	

	.more3{ width: 78%; padding: 0px 0px 0px 0px; margin-bottom: 5%; display: block;}
	.more3_m{ width: 0%; padding: 0px 0px 0px 0px; display: none;}	
	
	.socialList{ padding-bottom: 10%; width: 80%; margin: 5% auto;}

	 /*--sweetAlert-----------------------------------------*/
	 .custom-btn-close{ font-size: 5.5rem; margin-top: -9%; margin-right: -2.5%;}

	
    /*--hover animate--------------------------------*/
    @-webkit-keyframes hoverAni { from {transform:translateY(0);} to {transform:translateY(-10px);}}
    @-moz-keyframes hoverAni { from {transform:translateY(0);} to {transform:translateY(-10px);}}

    /*area5*/.brand li:hover{ animation:hoverAni 0.5s forwards;}
}

/*--768-1023(Pad)------------------------*/
@media screen and (min-width:768px) and (max-width:1023px) {
	.areaWidth3{ width: 90%;}
	.areaBg1,.areaBg2,.areaBg3,.areaBg4,.areaBg5,.areaBg6 {
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center top;
		background-attachment: inherit;
	}
	.areaBg0{ background-color: #000000; background-image: url(https://cp-img.bookwalker.com.tw/event/2024/20240804_ghostmoon/images/bg_00.png);}
	.areaBg1{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg1.png);}
	.areaBg2{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg2.png);}
	.areaBg3{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg3.png);}
	.areaBg4{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg4.png);}
	.areaBg5{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg5.png);}
	.areaBg6{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg6.png);}

}

@media screen and (min-width: 1024px) and (max-width: 1366px) {
	/* 調整 iPad Pro 橫向樣式 */
	.areaBg1,.areaBg2,.areaBg3,.areaBg4,.areaBg5,.areaBg6 {
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center top;
		background-attachment: inherit;
 
	}
	.areaBg0{ background-color: #000000; background-image: url(https://cp-img.bookwalker.com.tw/event/2024/20240804_ghostmoon/images/bg_00.png);}
	.areaBg1{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg1.png);}
	.areaBg2{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg2.png);}
	.areaBg3{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg3.png);}
	.areaBg4{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg4.png);}
	.areaBg5{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg5.png);}
	.areaBg6{ background-image: url(https://cp-img.bookwalker.com.tw/event/2025/20250812_ghostrule/images/bg6.png);}


  }

