@charset "utf-8";
/* CSS Document */
/* ---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;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

html {
  background: url("../images/side_deco.png") top center repeat-y,
    url("../images/all_bg.jpg") top center no-repeat fixed;
  background-size: 100% auto;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

@media screen and (max-width: 991px) {
  html {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../images/all_bg.jpg") top center repeat;
    background-size: cover;
  }
}

/* PC */
.WRAPPER {
  position: relative;
  width: 100%;
  min-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
@media screen and (max-width: 991px) {
  .WRAPPER {
    min-width: 100%;
  }
}
.container {
  overflow: hidden;
}
.topbox {
  position: relative;
  width: 1200px;
  margin: auto;
}
.kv_pc {
  width: 100%;
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  max-width: 1920px;
  margin: auto;
  flex-wrap: wrap-reverse;
}
.kv_pc img {
  display: block;
  text-align: center;
}
.kv_m {
  display: none;
}
.kv_m img {
  display: block;
}
.kv_m a {
  font-size: 0;
  display: block;
}
.for_pc {
  display: block;
}
.for_m {
  display: none;
}
.banner {
  padding: 0 0 0 0;
}

/* m */
@media screen and (max-width: 991px) {
  html,
  body {
    background: url("../images/all_bg.jpg") top center repeat;
    background-size: 100% auto;
  }
  .kv_m {
    display: block;
    width: 100%;
  }
  .kv_m img {
    width: 100%;
  }
  .kv_pc {
    display: none;
  }
  .container {
    width: 100%;
    min-width: auto;
  }
  .for_pc {
    display: none;
  }
  .for_m {
    display: block;
  }

  /* 元件調整 */
  .collect_5x6 .s-row h4 {
    width: 46vw !important;
  }
}

/* =================================================== 共通設定 =================================================== */
/* ------------------ color ------------------ */
.hightlight .font h4,
.alternate ul:nth-child(odd) li:first-child,
.collect_5x6 .s-row li:nth-child(odd) h4 {
  background: url("../images/bg_color1.jpg");
}
.alternate ul:nth-child(even) li:last-child,
.toptitle .font h4,
.collect_5x6 .special,
.collect_5x6 .s-row h4,
.hightlight li:nth-child(even) h4 {
  background: url("../images/bg_color2.jpg");
}

/* ------------------ 架構標 ------------------ */
@font-face {
  font-family: 文鼎疊圓;
  src: url("../font/ARDieYuanB5Ultra.otf");
}

.titleC.btt {
  position: relative;
  margin: 16vw auto -15px;
  padding: 20px 0;
  text-align: center;
  background: url("../images/btt.png") top center no-repeat;
  background-size: contain;
}

.titleC.btt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -92%);
  width: 90%;
  max-width: 959px;
  aspect-ratio: 959 / 203; /* 鎖定圖片比例，防止高度坍塌 */

  background: url("../images/btt_deco.png") center top no-repeat;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}

.titleC h2 {
	font-family: "文鼎疊圓", sans-serif;
	font-size: clamp(2rem, 8vw, 4rem);
	margin: 0;
	background: linear-gradient(to bottom, #2e2d43 50%, #2ecc71 50%);
	background-size: 100% 200%; 
	background-position: 0 0%; 
	
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
  
	animation: charge-up 6s ease-in-out infinite;
  }
  
  @keyframes charge-up {
	0% {
	  /* 顯示上半段：底色 */
	  background-position: 0 0%;
	}
	50%, 80% {
	  /* 往上推，顯示下半段：亮色電量 */
	  /* 在 CSS 中，y 軸設為 100% 會把背景圖往上推 */
	  background-position: 0 100%;
	}
	100% {
	  /* 回到起始狀態 */
	  background-position: 0 0%;
	}
  }

.titleC h3 {
  position: relative;
  display: inline-block;
  padding-left: 60px; /* 留出電池的位置 */
  line-height: 30px;
  font-family: 文鼎疊圓;
  font-size: 3rem;
  color: #2e2d43;
}

/* 電池外框 + 電池頭 */
.titleC h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 20px;
  border: 2px solid #2e2d43;
  border-radius: 4px;
  /* 右側的電池正極 */
  box-shadow: 4px 0 0 -1px #2e2d43;
}

/* 動態進度條 */
.titleC h3::after {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(50% - 7px); /* 垂直置中調整 */
  height: 14px;
  width: 0;
  background-color: #ff4d4d;
  border-radius: 1px;
  /* 套用充電與充滿後的彈跳動畫 */
  animation: charging 3s infinite ease-in-out,
    finish-bounce 3s infinite ease-in-out;
}

/* 充電動畫：控制寬度與顏色 */
@keyframes charging {
  0% {
    width: 0;
    background-color: #ff4d4d;
  }
  50% {
    background-color: #f1c40f;
  }
  80%,
  100% {
    width: 34px; /* 滿格寬度 */
    background-color: #2ecc71;
  }
}

/* 彈跳動畫：只在接近 100% 時跳動 */
@keyframes finish-bounce {
  0%,
  75% {
    transform: scale(1);
  }
  85% {
    transform: scale(1.15);
  } /* 充滿瞬間稍微放大 */
  95% {
    transform: scale(1);
  }
}

@media screen and (max-width: 991px) {
  .titleC.btt {
    margin-top: 25vw;
    padding: 1vw 0;
  }
  .titleC.btt::before {
    /* 裝飾太高，可以在這微調 translateY */
    transform: translate(-50%, -92%);
  }

/* --- 手機版專屬微調 (螢幕寬度小於 768px) --- */
@media (max-width: 768px) {
  .titleC h2 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
    animation-duration: 8s; 
    filter: drop-shadow(0 0 3px rgba(46, 204, 113, 0.3));
    -webkit-text-stroke: 0.5px #fff0e5; 
  }
}
  .titleC h3 {
    font-size: 2rem;
  }
}

/* =================================================== 版頭設定 =================================================== */
/* ------------------  版頭動畫  ------------------ */
.kv_pc {
  position: relative;
}
.kv_items {
  position: absolute;
}
.kv_bg {
  width: 100%;
}

.kv_title {
  top: calc((282 / 1920) * 100%);
  left: calc((534 / 1920) * 100%);
  width: calc((690 / 1920) * 100%);
  animation: bounceIn 5s ease-in-out 0.5s;
}

.kv_title_1 {
  top: calc((1102 / 1920) * 100%);
  left: calc((535 / 1920) * 100%);
  width: calc((836 / 1920) * 100%);
  animation: swing 5s ease-in-out 2.5s;
  z-index: 1;
}

.kv_title_2 {
  top: calc((343 / 1920) * 100%);
  left: calc((1138 / 1920) * 100%);
  width: calc((268 / 1920) * 100%);
  animation: headShake 5s linear infinite;
  animation-delay: 1s;
}

@-webkit-keyframes headShake {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  6.5% {
    -webkit-transform: translateX(-6px) rotateY(-9deg);
    transform: translateX(-6px) rotateY(-9deg);
  }

  18.5% {
    -webkit-transform: translateX(5px) rotateY(7deg);
    transform: translateX(5px) rotateY(7deg);
  }

  31.5% {
    -webkit-transform: translateX(-3px) rotateY(-5deg);
    transform: translateX(-3px) rotateY(-5deg);
  }

  43.5% {
    -webkit-transform: translateX(2px) rotateY(3deg);
    transform: translateX(2px) rotateY(3deg);
  }

  50% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

.sale {
  top: calc((1542 / 1920) * 100%);
  left: calc((551 / 1920) * 100%);
  width: calc((776 / 1920) * 100%);
  animation: bounceIn 5s ease-in-out 3s;
  animation-delay: 1.5s;
}

.sale_1 {
  top: calc((1475 / 1920) * 100%);
  left: calc((945 / 1920) * 100%);
  width: calc((179 / 1920) * 100%);
  animation: pulse 2s infinite;
  animation-delay: 1.5s;
}

/* ------------------  攻略  ------------------ */
/*---- 背景 ----*/
  .bg {
	width: 100%;
	position: relative;
	padding:10px 0;
  }
  .bg::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	background: url("../images/bg_color4.jpg") repeat;

	/* 設定漸層消失效果 (遮罩) */
	-webkit-mask-image: linear-gradient(
	  to bottom,
	  rgba(0, 0, 0, 1) 50%,
	  rgba(0, 0, 0, 0) 100%
	);
	mask-image: linear-gradient(
	  to bottom,
	  rgba(0, 0, 0, 1) 50%,
	  rgba(0, 0, 0, 0) 100%
	);
  }

.block_00 ul {
  width: 1200px;
  padding: 0 0 0 0;
  margin: 40px auto;
  display: flex;
  justify-content: space-evenly;
}

.a1 {
  animation: bounceInUp;
  animation-delay: 0s;
}
.a2 {
  animation: bounceInUp;
  animation-delay: 0.5s;
}
.a3 {
  animation: bounceInUp;
  animation-delay: 1s;
}
.a4 {
  animation: bounceInUp;
  animation-delay: 1.5s;
}

@media screen and (max-width: 991px) {
	.block_00 ul {
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		padding: 0 0 0 0;
		margin: 5vw auto -5vw;
		justify-content: center;
	}

	.block_00 ul li {margin: 1vw;}
	.block_00 img {display: block;width: 31vw;}
	.block_00 img.for_pc {display: none;}
	.block_00 img.for_m {display: block;width: 100%;}
}

/* =================================================== 版身微調 =================================================== */
/* ------------------  五品特殊  ------------------ */
.special_5p_1 .hightlight_5p {
  width: 1160px;
  margin: 40px auto;
  padding: 10px 0;
  background: url("../images/bg_color1.jpg");
  border-radius: 15px;
}
.special_5p_1 .hightlight_5p ul {
  align-items: flex-end;
}
.special_5p_1 .hightlight_5p ul li {
  height: auto;
  margin-top: 0;
}
.special_5p_1 .hightlight_5p ul li:first-child {
  width: 240px;
  height: auto;
}
.special_5p_1 .hightlight_5p ul li:first-child img {
  width: 240px;
  height: 240px;
}

.special_5p_1 .title_AA h3 {
  font-family: 文鼎疊圓;
  color: #fff;
  border-left: none;
  font-size: 2.6rem;
  letter-spacing: 0;
  padding: 10px 0;
  width: 100%;
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  left: 100px;
  top: 10px;
  background: url("../images/title_AA.png") top center no-repeat;
}
.special_5p_1 .hightlight_5p ul li h4 {
  background: url("../images/bg_color3.jpg");
}
.title_AA .more {
  padding: 10px 0;
  top: 10px;
  right: 20px;
}

@media screen and (max-width: 991px) {
  .special_5p_1 {
    width: 100vw;
  }
  .special_5p_1 .hightlight_5p {
    width: 100vw;
    margin: 0 auto 0;
    padding: 2vw 0;
  }
  .special_5p_1 .hightlight_5p ul li:first-child {
    width: 100%;
  }
  .special_5p_1 .hightlight_5p ul li:first-child img {
    width: 45vw;
    height: 45vw;
  }

  .special_5p_1 .title_AA {
    margin: 2vw auto;
    height: auto;
  }
  .special_5p_1 .title_AA h3 {
    position: relative;
    left: 0;
    padding: 2vw 0;
    top: 0;
    font-size: 2rem;
    text-align: center;
    background-size: contain;
  }
  .title_AA .more {
    padding: 2vw;
    right: 2vw;
  }
}

/* =================================================== 統一設定 =================================================== */
/* ------------------ 錨點微調 ------------------ */
.target-fix {
  position: relative;
  top: 0px;
  display: block;
  height: 0;
  overflow: hidden;
}

@media screen and (max-width: 991px) {
  .target-fix {
    top: -50px;
  }
}

/* ------------------  前往ＯＯＯ館的按鈕 ------------------ */
.btn {
  max-width: 1200px;
  margin: 0 auto;
}
.btn ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.btn ul li {
  width: 40%;
  background: url("../images/bg_color1.jpg");
  text-align: center;
  padding: 10px 0;
  border-radius: 60px;
  margin: 10px;
}
.btn ul li a {
  text-align: center;
  color: #fff;
  line-height: 100px;
  font-size: 48px;
  font-family: 文鼎疊圓;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn .arrow {
  margin-left: 0.5rem;
  margin-top: 0.8rem;
  width: 5rem;
  -webkit-animation: arrowMove 1s ease infinite;
  animation: arrowMove 1s ease infinite;
}
@keyframes arrowMove {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  30% {
    -webkit-transform: translate3d(1.33333vw, 0, 0);
    transform: translate3d(1.33333vw, 0, 0);
  }
  60% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@media screen and (max-width: 991px) {
  .btn ul {
    margin: 2vw auto;
  }
  .btn ul li {
    width: 85vw;
    margin: 1vw auto;
    padding: 1vw 0;
  }
  .btn ul li a {
    padding: 2vw;
    font-size: 2.2rem;
    line-height: 1.8;
  }
  .btn .arrow {
    margin-left: 0.3rem;
    margin-top: 0.3rem;
    width: 4rem;
  }
}

/* ------------------ menu ------------------ */
@media only screen and (min-width: 992px) {
  .menustyle2 {
    width: 160px;
    display: flex;
    flex-wrap: wrap;
    background:url("../images/time-table.png")top center no-repeat;
    z-index: 999;
    height: auto;
    position: fixed;
    top: 200px;
    right: 10px;
    border-radius: 10px;
    height: auto;
    padding: 40px 0 20px 35px;
  }

  .menustyle2 ul {
    width: 160px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 5px;
    flex-wrap: wrap;
  }

  .menustyle2 ul li {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border-bottom: 1px dotted #fff; */
  }

  .menustyle2 ul li a span {
    display: block;
  }

  .menustyle2 ul li:last-child {
    border-bottom: none;
  }

  .menustyle2 ul li a {
    text-align: center;
    margin: 0 auto;
    text-decoration: none;
    font-size: 18px;
    color: #0a5f92;
    font-family: 文鼎疊圓;
    letter-spacing: 0;
    /* font-weight: 500; */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0px;
    flex-wrap: wrap;
    line-height: 1.3;
  }

  .menustyle2 ul li:hover,
  #TopMenu2 ul li a:hover {
    background:url("../images/bg_color2.jpg");
    transform: scale(1);
    color: #fff !important;
  }

  .menustyle2 ul .active {
    color: #fff !important;
    background: #673bb7;
    width: 100%;
    height: 100%;
  }
}

@media screen and (max-width: 991px) {
  .menustyle2::-webkit-scrollbar {
    display: none;
  }

  .menustyle2 {
    width: 100%;
    z-index: 998;
    padding: 1vw 1vw;
    display: block;
    background: url("../images/bg_color1.jpg");
    flex-direction: column;
    flex-wrap: wrap;
    position: absolute;
    overflow-x: auto;
    justify-content: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    height: auto;
  }

  .menustyle2 ul {
    flex-wrap: nowrap;
    display: flex;
    gap: 0.5em;
    padding: 1vw 0;
  }

  .menustyle2 ul li {
    width: auto;
    font-size: 20px;
    color: #2e2d43;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  .menustyle2 ul li a {
    font-size: 1.1rem;
    letter-spacing: 0px;
    font-weight: 500;
    color: #2e2d43;
    font-family: "Noto Sans TC", "微軟正黑體", "Microsoft JhengHei", Helvetica,
      Verdana, Arial;
    box-sizing: border-box;
    padding: 1.7vw 3.5vw;
    border-radius: 100px;
    background: #fff;
  }

  .menustyle2 ul .active {
    color: #fff !important;
    background:url("../images/bg_color2.jpg");
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .menustyle2 ul li a:hover {
    color: #fff !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url("../images/bg_color2.jpg");
}

  .sticky {
    position: fixed;
    top: 0;
  }
}

/* ------------------ 下拉選單 ------------------ */
#TopMenu {
  transition: background-color 1s, opacity 1s, visibility 1s;
  opacity: 1;
  visibility: visible;
  z-index: 998;
  position: relative;
}
#TopMenu.show {
  opacity: 1;
  visibility: visible;
  position: fixed;
  top: 0;
}

/* ------------------ 手機版選單下滑出現 ------------------ */
@media screen and (max-width: 991px) {
  #TopMenu2 {
    transition: background-color 1s, opacity 1s, visibility 1s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    position: absolute;
    top: 0;
  }
  #TopMenu2.show {
    opacity: 1;
    visibility: visible;
    position: fixed;
    top: 0;
  }
}

/* ------------------ goto top--(哆重製版) ------------------ */
#gotop {
  display: inline-block;
  background-color: #000;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 50%;
  background-size: contain;
  position: fixed;
  bottom: 0px;
  right: 0px;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  margin: 30px;
}

#gotop::after {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: FontAwesome;
  content: "　";
  font-weight: normal;
  font-style: normal;
  font-size: 1em;
  line-height: 100%;
  color: #fff;
  opacity: 0.5;
  background: url("../images/top.png") center no-repeat;
  background-size: contain;
  background-position: 100% 100%;
}

#gotop:hover {
  cursor: pointer;
  background-color: #666;
}

#gotop:active {
  background-color: #ccc;
}

#gotop.show {
  opacity: 0.4;
  visibility: visible;
}

@media screen and (max-width: 991px) {
  #gotop {
    bottom: 70px;
    right: 0;
    margin: 2vw;
  }
}

/* ------------------ share url (哆重製版) ------------------ */
#share {
  display: inline-block;
  background-color: #000;
  opacity: 0.4;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 50%;
  position: fixed;
  bottom: 50px;
  right: 0px;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  margin: 30px;
}

#share::after {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: FontAwesome;
  content: "　";
  font-weight: normal;
  font-style: normal;
  font-size: 1em;
  color: #fff;
  opacity: 0.5;
  background: url("../images/share.png") center no-repeat;
  background-size: contain;
}

#share:hover {
  cursor: pointer;
  background-color: #666;
}
#share:active {
  background-color: #666;
}

@media screen and (max-width: 991px) {
  #share {
    bottom: 115px;
    right: 0;
    margin: 2vw;
  }
}

@media screen and (max-width: 991px) {
  html {
    padding-bottom: 80px;
  }
}
