@charset "utf-8";
/* CSS Document */
body {
    font-family: 微軟正黑體, Arial;
    margin: 0 auto;
    padding: 0;
	  position: relative;
    background-color: #f4e3bc;
    background-image: 
       linear-gradient(to right, #c8a17b 1px, transparent 1px),
        linear-gradient(to bottom, #c8a17b 1px, transparent 1px);
      background-size: 30px 30px;
    overflow-x: hidden;
    animation: bgani 30s infinite linear;
}

@keyframes bgani {
    0% { background-position: 0 0; }
    100% { background-position: 0px 500px; }
}

a {
    color: #de507d;
    text-decoration: none;
}
a:hover {
    color: #0CC;
}

.gp {
    display: inline-block;
}

/* 東立選單 */
#nav {
    min-height: 1vh;
    text-align: center;
    margin-bottom: 0;
    z-index: B6DDFE9;
    margin-top: 1em;
}

#nav a {
    color: #572A1B;
    animation: 1s linear 0s normal none infinite jello-horizontal;
    margin: 1%;
    font-size: 1.1em;
    display: inline-block;
    text-decoration: none;
}

@-webkit-keyframes jello-horizontal {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        -webkit-transform: scale3d(0.95, 1.05, 1);
        transform: scale3d(0.95, 1.05, 1);
    }
    75% {
        -webkit-transform: scale3d(1.05, 0.95, 1);
        transform: scale3d(1.05, 0.95, 1);
    }
    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}
/* 東立選單結束 */

p {
    line-height: 2.5em;
    margin: 0% auto;
    text-align: left;
    color: #333;
    font-weight: bolder;
    text-indent:2em;
	letter-spacing:.1em;
	text-shadow:#FFF 1px 1px 5px, #FFF 1px 1px 7px, #FFF 1px 1px 10px;
}

p a {
    text-decoration: none;
}


/* 主視覺
.vicover {
    margin: 0 auto;
    text-align: center;
	position: relative;
}
.visual {
    width: 80%;
    display: block;
    margin: 0 auto;
}
.visual img {
    width: 100%;
    max-width: 1200px;
}

.visual2 {
    width: 80%;
    display: inline-block;
	position:absolute;
	left:10%;
    margin: 0 auto;
}
.visual2 img {
    width: 100%;
    max-width: 1200px;
}
 主視覺結束 */
.vicover {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 背景拼圖容器 */
.visual-shatter {
  position: relative;
  width: 100%;
  aspect-ratio: 1201 / 944; 
  z-index: 1;
}

/* 每塊拼圖設定 */
.piece {
  position: absolute;
  width: 50%;
  height: 50%;
  background-image: url('images/visual.png');
  background-size: 200% 200%;
  background-repeat: no-repeat;
  opacity: 0;
  animation: assemble 1.2s forwards;
  padding: 0.01px;
  background-clip: content-box;
}

/* 每塊的顯示區域設定 */
.piece1 {
  top: 0;
  left: 0;
  background-position: left top; /* 顯示左上 */
  animation-delay: 0s;
}
.piece2 {
  top: 0;
  left: 50%;
  background-position: right top; /* 顯示右上 */
  animation-delay: 0.2s;
}
.piece3 {
  top: 50%;
  left: 0;
  background-position: left bottom; /* 顯示左下 */
  animation-delay: 0.4s;
}
.piece4 {
  top: 50%;
  left: 50%;
  background-position: right bottom; /* 顯示右下 */
  animation-delay: 0.6s;
}

/* 拼圖動畫效果 */

@keyframes assemble {
  0% {
    transform: scale(1.3) rotate(15deg) translateY(40px);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg) translateY(0);
    opacity: 1;
  }
}

/* 上層圖 */
.visual2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1200 / 600;
  z-index: 2;
  pointer-events: none; /* 保證點擊事件不被擋住 */
}
.visual2 img {
  width: 100%;
  height: auto;
  display: block;
}


/* 各內容區塊樣式 */
.block {
    position: relative;
    width: 100%;
    margin-top: -2%;
    text-align: center;
}
h1 {
    color: #000;
    margin: 2% auto;
    margin-top: 1.5em;
    text-align: center;
    font-size: 40px;
}
.block3 {
    display: block;
    margin: auto;
    width: 65%;
}

.book{ width:80%; margin:3% auto; display:block; box-shadow: #c8a17b 5px 5px 10px; padding:2%; border-radius:2em; background:rgba(255,255,255,0.5); max-width:800px}
.book h2{ font-size:1.8em; line-height:1.2em; color:#49619b; text-shadow:#FFF 2px 2px 0px; letter-spacing:0.1em}
.book h2 span{ font-size:0.8em}
.bookimg{ width:35%; display:inline-block; vertical-align:top; margin-right:2%; box-shadow:#c8a17b 2px 2px 10px}
.booktxt{ width:60%; display:inline-block; text-align:center;}
.book p{ text-align:left; text-indent:2em;}

.bookimg:hover{ animation:big 0.2S ease-in both;}
.gift:hover{ animation:big 0.2S ease-in both;}
@keyframes big {
    0% { transform: none; }
    100% { transform: scale(1.05); }
}
@media (max-width: 600px) {
.bookimg{ width:90%; display:block;  margin:3% auto;}
.booktxt{ width:95%; display:block; margin:1% auto; }
}

.book {
    width: 80%;
}
.regular {
    margin: 2% auto;
}

.copyright {
    display: block;
    color: #49619b;
    font-size: 12px;
    margin: 1% auto;
    letter-spacing: .1em;
    line-height: 2em;
    text-align: center;
}

.price {
    text-align: center;
    margin: 2% auto;
    color: #FFF;
    line-height: 2em;
	background:#49619b;
	width:60%
}

@keyframes big {
    0% { transform: none; }
    100% { transform: scale(1.05); }
}

.gift {
    width: 90%;
    display: block;
    max-width: 1000px;
    margin: 1% auto;
    z-index: 99;
}

.ml3 {
    font-weight: 900;
    font-size: 4em;
    margin: 3% auto;
}

.logo {
    width: 100%;
    z-index: 99;
    top: 0;
    display: inline-block;
    position: absolute;
    left: 0;
}
.stitle {
    width: 100%;
    z-index: 99;
    display:block;
    position: relative;
	margin:2% auto;
	top: -15%;
}
.bgdeco{ z-index:-1;
position: absolute; display: inline-block ; width:100%}
.up{ top:0; left:0}
.down{ bottom:0; left:0;}

@keyframes rot {
    0% { transform: rotate(0); }
    50% { transform: rotate(-2deg); }
    100% { transform: rotate(0); }
}

/* shop */
.btn {
    font-size: 1.2em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1% 2%;
    border: 2px solid #000;
    border-radius: 10em;
    background: transparent;
    overflow: hidden;
    margin: 1% 1%;
    position: relative;
    display: inline-block;
    color: #000;
    width: 16%;
    z-index: 5;
    transition: all 0.5s;
    cursor: pointer;
}

.btn:hover {
    color: #FFF;
    text-shadow: #49619b 1px 1px 4px, #49619b 0px 0px 10px, #49619b 0px 0px 10px, #49619b 0px 0px 10px;
    animation: swoosh 0.4s ease-out 0.2s;
    border: 2px solid #49619b;
}

.btn:before,
.btn:after {
    content: "";
    background-color: #49619b;
    height: 100%;
    width: 100%;
    opacity: .9;
    position: absolute;
    top: 0;
    left: -100%;
    z-index: -1;
    transition: all 0.4s ease-out 0.1s;
}

.btn:after {
    opacity: 0;
    transform: scale(0.9, 0.7);
    left: 0;
    transition: all 0.3s ease-out 0s;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover:after {
    opacity: .7;
    transform: scale(1);
}

@keyframes swoosh {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50% { box-shadow: 0 0 0 8px rgba(73, 97, 155, 0.5); }
}

/* shop over */

.gradient2 {
    color: #FFF;
    letter-spacing: .05em;
    line-height: 2em;
    font-size: 1.8em;
    text-align: center;
    margin-top: 4em;
    font-weight: bold;
}

 
/* 漸層效果 */
.gradient3 {
  background: linear-gradient(90deg, rgba(0, 175, 236, 0) 0%, rgba(0, 175, 236, 0.6) 15%, rgba(0, 175, 236, 0.6) 85%, rgba(0, 175, 236, 0) 100%);
  color: #FFF;
  width: 80%;
  margin: 2% auto;
  font-size: 1.3em;
  letter-spacing: 0.1em;
  font-weight: bolder;
}

/* Text shadow, line height, and font size adjustments */
.gradient4 {
  color: #FFF;
  font-size: 1.5em;
  letter-spacing: 0.1em;
  font-weight: bolder;
  margin: 1% auto;
  line-height: 2em;
  text-align: center;
  text-shadow: 0 0 4px #c8a17b, 0 0 7px #c8a17b, 0 0 10px #c8a17b, 0 0 15px #c8a17b;
}

.gradient4 span {
  position: relative;
  display: inline-block;
  letter-spacing: 0.05em;
  color: #c8a17b;
  font-size: 0.8em;
  text-shadow: 0 0 4px #FFF, 0 0 7px #FFF, 0 0 10px #FFF;
  animation: jump 1s ease infinite;
}

.gradient4 span:nth-child(2) {
  animation-delay: 0.14s;
}
.gradient4 span:nth-child(3) {
  animation-delay: 0.28s;
}
.gradient4 span:nth-child(4) {
  animation-delay: 0.42s;
}
.gradient4 span:nth-child(5) {
  animation-delay: 0.56s;
}
.gradient4 span:nth-child(6) {
  animation-delay: 0.7s;
}
.gradient4 span:nth-child(7) {
  animation-delay: 0.84s;
}

/* Glitch effect */
.glitch {
  font-size: 5em;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.2em;
  position: relative;
  color: #FFF;
  text-shadow: 0.05em 0 0 #000, -0.03em -0.04em 0 #eb6d8e, 0.025em 0.04em 0 #c8a17b;
  animation: glitch 725ms infinite;
}

.glitch span {
  position: absolute;
  top: 0;
  left: 22.5%;
}

.glitch span:first-child {
  animation: glitch 500ms infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-0.04em, -0.03em);
  opacity: 0.75;
}

.glitch span:last-child {
  animation: glitch 375ms infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(0.04em, 0.03em);
  opacity: 0.75;
}

/* Keyframes for glitch effect */
@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 #fff000, -0.03em -0.04em 0 #000, 0.025em 0.04em 0 #c8a17b;
  }
  15% {
    text-shadow: 0.05em 0 0 #fff000, -0.03em -0.04em 0 #000, 0.025em 0.04em 0 #c8a17b;
  }
  16% {
    text-shadow: -0.05em -0.025em 0 #fff000, 0.025em 0.035em 0 #eb6d8e, -0.05em -0.05em 0 #c8a17b;
  }
  49% {
    text-shadow: -0.05em -0.025em 0 #000, 0.025em 0.035em 0 #eb6d8e, -0.05em -0.05em 0 #c8a17b;
  }
  50% {
    text-shadow: 0.05em 0.035em 0 #000, 0.03em 0 0 #eb6d8e, 0 -0.04em 0 #c8a17b;
  }
  99% {
    text-shadow: 0.05em 0.035em 0 #000, 0.03em 0 0 #eb6d8e, 0 -0.04em 0 #c8a17b;
  }
  100% {
    text-shadow: -0.05em 0 0 #000, -0.025em -0.04em 0 #eb6d8e, -0.04em -0.025em 0 #c8a17b;}
 }
@media (max-width:767px){
.btn{ width:50%; display:block; margin:3% auto}
.gift{ width:90%}
.block3{  width:90% }
.stitle{  top:-5%;} 
.glitch {  font-size: 3em;}
.gradient2 {font-size: 1.4em; margin-top: 2em;}
.visual{ width:100%}
}
