*,
*:before,
*:after {
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

:root {
  --bg-0: #0b4189;
  --bg-1: #acdbef;
  --light-text: #fff;
  --dark-text: #333;
  --nav-height: 77px;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg-1);
  color: var(--dark-text);
  font-family: "Source Han Sans Chinese", Helvetica, "LiHei Pro", "微軟正黑體",
    sans-serif;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.fade-in {
  opacity: 0;
  transition: opacity 500ms ease-in;
}

.fade-in.active {
  opacity: 1;
}

.slide-in-right {
  transform: translateX(-60px);
  transition: transform 200ms ease-in;
}

.slide-in-right.active {
  transform: translateX(0);
}

.slide-in-left {
  transform: translateX(60px);
  transition: transform 200ms ease-in;
}

.slide-in-left.active {
  transform: translateX(0);
}

.desktop {
  display: block;
  position: relative;
}

.mobile {
  display: none;
  position: relative;
}

.container {
  position: relative;
  width: 1200px;
  margin: 0 auto;
}

body > .container {
  box-shadow: 0px 0px 6px 10px rgb(0, 0, 0, 0.15);
  overflow: hidden;
}

.center {
  display: flex;
  justify-content: center;
}

.subtitle {
  display: flex;
  justify-content: center;
}

.subtitle-2 {
  padding: 0 18px;
  border: 2px solid var(--dark-text);
  border-top: 0;
  border-bottom: 0;
  font-size: 32px;
  line-height: 1;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: transparent;
  box-shadow: none;
}

nav.active {
  background-color: var(--bg-0);
  box-shadow: 0px 2px 6px 4px rgb(0, 0, 0, 0.25);
}

.nav__logo__bk {
  position: absolute;
  top: -40px;
  left: 60px;
  width: 193px;
  height: 193px;
  border-radius: 50%;
  box-shadow: none;
  transition: transform 200ms linear;
}

nav.active .nav__logo__bk {
  transform: translateY(-80px);
  background-color: var(--bg-0);
  box-shadow: 0px 2px 6px 4px rgb(0, 0, 0, 0.25);
}

.nav__logo {
  position: absolute;
  top: 20px;
  left: 82px;
  width: 145px;
  transition: height 0.2s ease;
  cursor: pointer;
  z-index: 101;
  transition: transform 200ms linear;
}

nav.active .nav__logo {
  transform: scale(0.6) translateY(-45px);
}

nav .nav__action {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  height: 100%;
  padding: 0 80px;
  background-color: transparent;
}

nav.active .nav__action {
  background-color: var(--bg-0);
}

nav .nav__action .dark {
  display: none;
}

nav.active .nav__action .dark {
  display: block;
}

nav .nav__action .light {
  display: block;
}

nav.active .nav__action .light {
  display: none;
}

.nav__action__link {
  color: var(--bg-0);
  font-size: 24px;
  font-weight: bold;
}

nav.active .nav__action__link {
  color: var(--light-text);
}

.nav__menu {
  display: none;
  cursor: pointer;
}

.nav__menu__bar {
  width: 35px;
  height: 5px;
  background-color: #fff;
  margin: 6px 0;
  transition: 0.4s;
}

.nav__menu.active .nav__menu__bar.bar-1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.nav__menu.active .nav__menu__bar.bar-2 {
  opacity: 0;
}

.nav__menu.active .nav__menu__bar.bar-3 {
  transform: translate(0, -11px) rotate(45deg);
}

#nav-drawer {
  position: fixed;
  top: var(--nav-height);
  background-color: var(--bg-0);
  right: 0;
  width: 0;
  height: 100%;
  z-index: 99;
  box-shadow: none;
  transition: width 200ms linear;
}

#nav-drawer.active {
  width: 230px;
  box-shadow: 0px 2px 6px 4px rgb(0, 0, 0, 0.25);
}

.nav-drawer__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 230px;
  height: 100%;
  padding: 20px;
}

.nav-drawer__content a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light-text);
  font-size: 18px;
  font-weight: bold;
}

.nav-drawer-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100vh;
  background-color: rgb(0, 0, 0, 0.4);
  z-index: 98;
}

.nav-drawer-overlay.active {
  width: 100vw;
}

.float-link-container {
  position: fixed;
  z-index: 100;
  bottom: 10%;
  right: 10%;
  width: 100px;
  height: 158px;
}

.float-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

#float-link-1,
#float-link-2,
#float-link-3 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100px;
  height: 158px;
}

#float-link-2 {
  z-index: 101;
  opacity: 0;
  animation: floatLink 1s forwards;
  animation-iteration-count: 1;
}

#float-link-3 {
  z-index: 102;
  opacity: 0;
  animation: floatLink 3s forwards 1s;
  animation-iteration-count: 1;
}

@keyframes floatLink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.hero-wrapper {
  position: relative;
  width: 1200px;
  height: 1338px;
}

.hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/desktop/bg_01.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-1 {
  position: absolute;
  top: 340px;
  left: 65px;
}

.hero-1-1 {
  position: absolute;
  top: 340px;
  left: 65px;
  z-index: 10;
  transition: opacity 0s linear 0.8s;
}

.hero-1-2 {
  position: absolute;
  top: 340px;
  left: 65px;
  z-index: 10;
  transition: opacity 0s linear 1s;
}

.hero-2 {
  position: absolute;
  top: 270px;
  left: 420px;
}

.hero-3-wrapper {
  position: absolute;
  top: 340px;
  left: 770px;
  width: 212px;
  height: 226px;
}

.hero-3-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-3 {
  width: 100%;
  height: auto;
}

.hero-4-wrapper {
  position: absolute;
  top: 170px;
  left: 990px;
  width: 212px;
  height: 226px;
}

.hero-4-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-4 {
  width: 100%;
  height: auto;
}

.hero-5 {
  position: absolute;
  top: 745px;
  left: 60px;
}

.hero-6 {
  position: absolute;
  top: 730px;
  left: 255px;
}

.hero-7 {
  position: absolute;
  top: 842px;
  left: 612px;
}

.hero-8 {
  position: absolute;
  top: 948px;
  left: 544px;
  animation: moveUpDown 2s infinite;
}

.hero-9 {
  position: absolute;
  top: 993px;
  left: 750px;
  animation: moveUpDown 3s infinite;
}

.hero-10 {
  position: absolute;
  top: 936px;
  left: 954px;
  animation: moveUpDown 4s infinite;
}

.mask {
  position: absolute;
  width: 100%;
  height: 100%;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="white"/></svg>')
    center/contain no-repeat;
}

.light-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  animation: beamAnimation 1000ms linear infinite;
}

.light-beam.pause {
  animation-play-state: paused;
  animation-delay: 0s;
}

.hero-4-wrapper .light-beam {
  animation-delay: 0.5s;
}

@keyframes beamAnimation {
  0% {
    transform: translate(-100%, 100%) rotate(45deg);
  }
  100% {
    transform: translate(100%, -100%) rotate(45deg);
  }
}

.player-wrapper {
  position: relative;
  width: 1200px;
  height: 2452px;
}

.player-content .hidden {
  display: none;
}

.player-controller {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 8px;
  gap: 8px;
}

.player-controller-dot {
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.7;
}

.player-controller-dot.active {
  opacity: 1;
}

@keyframes moveUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.player {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/desktop/bg_02.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.player-1 {
  position: absolute;
  top: 123px;
  left: 181px;
}

.player-2 {
  position: absolute;
  top: 700px;
  left: 181px;
}

.store {
  position: absolute;
  top: 1463px;
  left: 258px;
  width: 690px;
  height: 590px;
}

.store__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.store .store-subtitle {
  margin-top: 45px;
  margin-bottom: 20px;
}

.store .grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 16px;
  row-gap: 16px;
}

.store .grid .item {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 80px;
  transition: transform 0.2s ease;
}

.store .grid .item:hover {
  transform: scale(1.1);
}

.store .grid .sub-item {
  height: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.store .grid img {
  max-width: 100%;
  max-height: 100%;
}

.product-wrapper {
  position: relative;
  width: 1200px;
  height: 5407px;
}

.product {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url("../images/desktop/bg_03.png");
  background-repeat: no-repeat;
  background-position: top center;
}

.product-wrapper__title {
  position: absolute;
  top: -110px;
  left: 220px;
}

.product-wrapper-2 {
  position: relative;
  width: 1200px;
  height: 1333px;
}

.product-2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/desktop/bg_04.png");
  background-repeat: no-repeat;
  background-position: top center;
}

.product-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 100px;
  gap: 32px;
}

.product-item.vertical {
  flex-direction: column;
  justify-content: space-between;
}

.product-item__desc {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  z-index: 10;
}

.product-item__action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.product-item__action img {
  height: 37px;
}

.product-item-1,
.product-item-3,
.product-item-5,
.product-item-7,
.product-item-9 {
  justify-content: flex-start;
  padding-top: 80px;
}

.product-item-1 {
  padding-top: 215px;
}

.product-item-5 {
  padding-top: 240px;
}

.product-item-7 {
  padding-top: 200px;
}

.product-item-9 {
  padding-top: 160px;
}

.product-item-2,
.product-item-4,
.product-item-6,
.product-item-8,
.product-item-10 {
  justify-content: flex-end;
  padding-top: 80px;
}

.product-item-4 {
  padding-top: 140px;
}

.product-item-8 {
  padding-top: 200px;
}

.product-item-10 {
  padding-top: 40px;
}

.product-item-wrap-1 {
  padding-top: 120px;
}

.product-tag {
  padding: 5px 10px;
  background-color: var(--bg-0);
  border-radius: 15px;
  color: #fff;
  white-space: nowrap;
  font-size: 10px;
}

.footer {
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 16px;
  color: #eee;
  font-size: 14px;
  text-align: center;
  background-color: var(--bg-0);
}

.embla {
  overflow: hidden;
}

.embla__container {
  display: flex;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.embla__button {
  -webkit-appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
}

.embla__button {
  z-index: 1;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 4rem;
  height: 4rem;
}

.embla__button--prev {
  left: 0;
}

.embla__button--next {
  right: 0;
}

.embla__button:disabled {
  opacity: 0.3;
}

.embla__button__svg {
  width: 65%;
  height: 65%;
}

@media screen and (max-width: 768px) {
  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  .container {
    width: 100%;
  }

  .subtitle-2 {
    font-size: 24px;
  }

  .nav__logo__bk {
    top: -45px;
    left: 0;
    width: 143px;
    height: 143px;
  }

  nav.active .nav__logo__bk {
    transform: translateY(-30px);
  }

  .nav__logo {
    left: 29px;
    width: 83px;
  }

  nav.active .nav__logo {
    transform: scale(0.8) translateY(-10px);
  }

  nav .nav__action {
    padding: 0 30px;
  }

  .nav__menu {
    display: inline-block;
  }

  /* .float-link {
    display: none;
  } */

  .hero-wrapper {
    position: relative;
    width: 100%;
    height: auto;
  }

  .hero-wrapper::before {
    content: "";
    display: block;
    padding-bottom: 180.46875%;
  }

  .hero {
    background-image: url("../images/mobile/m_bg_01.png");
  }

  .hero-1 {
    position: absolute;
    width: 55%;
    top: 10%;
    left: 25%;
  }

  .hero-1-1 {
    top: 10%;
    left: 20%;
  }

  .hero-1-2 {
    top: 10%;
    left: 20%;
  }

  .hero-2 {
    position: absolute;
    width: 55%;
    top: 32%;
    left: 25%;
  }

  .hero-3-wrapper {
    top: 27%;
    left: 3%;
  }

  .hero-3-container {
    width: 38%;
    height: 38%;
  }

  .hero-4-wrapper {
    top: 38%;
    left: 80%;
  }

  .hero-4-container {
    width: 38%;
    height: 38%;
  }

  .hero-5 {
    position: absolute;
    width: 20%;
    top: 68%;
    left: 3%;
  }

  .hero-6 {
    position: absolute;
    width: 25%;
    top: 70%;
    left: 23%;
  }

  .hero-7 {
    position: absolute;
    width: 45%;
    top: 72%;
    left: 50%;
  }

  .hero-8 {
    position: absolute;
    width: 17%;
    top: 78%;
    left: 51%;
  }

  .hero-9 {
    position: absolute;
    width: 17%;
    top: 81%;
    left: 66%;
  }

  .hero-10 {
    position: absolute;
    width: 17%;
    top: 77%;
    left: 82%;
  }

  .player-wrapper {
    width: 100%;
    height: auto;
  }

  .player-wrapper::before {
    content: "";
    display: block;
    padding-bottom: 190.234375%;
  }

  .player {
    background-image: url("../images/mobile/m_bg_02.png");
  }

  .player-container {
    position: relative;
    width: 80%;
    margin: 10% auto 0;
  }

  .player-container::before {
    content: "";
    display: block;
    padding-bottom: 55.0458716%;
  }

  .player-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .player-controller {
    display: flex;
  }

  .store {
    position: relative;
    top: unset;
    left: unset;
    width: 100%;
    height: auto;
    margin-top: 10%;
  }

  .store__content {
    padding: 20px;
    margin-bottom: 0;
    gap: 16px;
  }

  .store-title {
    width: 50%;
  }

  .store .store-subtitle {
    margin-top: 0;
    margin-bottom: 0;
  }

  .store .grid {
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 0;
    row-gap: 0;
  }

  .store .grid-online {
    height: 84.41px;
  }

  .store .grid-shop {
    height: 115.81px;
  }

  .product-wrapper {
    width: 100%;
    height: auto;
  }

  .product-wrapper::before {
    content: "";
    display: block;
    padding-bottom: 1210.546875%;
  }

  .product {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../images/mobile/m_bg_03.png"),
      url("../images/mobile/m_bg_04.png");
    background-repeat: no-repeat, no-repeat;
    background-position: top center, bottom center;
    background-size: contain, contain;
  }

  .product-wrapper__title {
    width: 80%;
    top: 0;
    left: 10%;
  }

  .product-item {
    flex-direction: column;
    gap: 0;
    width: 45%;
    padding: 0;
  }

  .product-item-1,
  .product-item-3,
  .product-item-5,
  .product-item-7,
  .product-item-9 {
    justify-content: center;
    flex-flow: column-reverse;
  }

  .product-item-1 {
    padding-top: 35%;
  }

  .product-item-3 {
    padding-top: 23%;
  }

  .product-item-5 {
    padding-top: 23%;
  }

  .product-item-5 .product-item__image {
    width: 70%;
  }

  .product-item-7 {
    padding-top: 25%;
    width: 65%;
  }

  .product-item-7 .product-item__image {
    width: 70%;
  }

  .product-item-7 .product-item__desc {
    display: flex;
    align-items: center;
  }

  .product-item-7 .product-item__desc > img {
    width: 80%;
  }

  .product-item-9 {
    padding-top: 37%;
  }

  .product-item-2,
  .product-item-4,
  .product-item-6,
  .product-item-8,
  .product-item-10 {
    justify-content: center;
  }

  .product-item-2 {
    padding-top: 25%;
  }

  .product-item-4 {
    padding-top: 23%;
  }

  .product-item-6 {
    padding-top: 25%;
  }

  .product-item-8 {
    padding-top: 35%;
    width: 65%;
  }

  .product-item-8 .product-item__image {
    width: 70%;
  }

  .product-item-8 .product-item__desc {
    display: flex;
    align-items: center;
  }

  .product-item-8 .product-item__desc > img {
    width: 80%;
  }

  .product-item-10 {
    padding-top: 25%;
  }

  .product-item-wrap-1 {
    padding-top: 25%;
  }

  .product-wrapper-2 {
    width: 100%;
    height: auto;
  }

  .product-wrapper-2::before {
    content: "";
    display: block;
    padding-bottom: 138.0208333%;
  }

  .product-2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../images/mobile/m_bg_05.png");
  }

  .embla {
    margin-top: 30%;
  }

  .embla__slide .product-item__image,
  .embla__slide .product-item__desc {
    width: 60%;
  }

  .embla__slide .product-item-12 {
    width: 35%;
  }

  .embla__slide .product-item-action-11 {
    margin-top: 8px;
  }
}
