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

html,
body {
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-image: url(../img/bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  --primary-normal-color:                   #d3b599;
  --primary-gradient-color-1:               #f2d6b3;
  --primary-gradient-color-2:               #d5b292;
  --primary-text-color:                     #d6b494;
  --swiper-pagination-bullet-color-active:  #d7b494;
  --swiper-pagination-bullet-color:         #dbdbdb;
  --tutorial-bottom-sheet-title-color:      #5c5c5c;
}

[v-cloak] {
  display: none;
}

.header {
  height: 44px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.logo {
  width: auto;
  height: 100%;
  max-height: 50px;
  margin: 0 auto;
}

.main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100% - 44px - 50px - 110px); /** 100% - header - logo - bottom action area */
}

.swiper {
  width: 100%;
  height: calc(100% - 12px - 10px - 90px); /** 100% - swiper margin-top - partner margin-top */
  margin-top: 12px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media screen and (max-height: 660px), screen and (min-width: 768px) {
  .swiper-slide img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.swiper-pagination {
  margin-bottom: 4px;
  --swiper-pagination-bottom: -6px;
  --swiper-pagination-bullet-inactive-opacity: 0.9;
}

.swiper-pagination-bullet {
  background: var(--swiper-pagination-bullet-color);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.swiper-pagination-bullet-active {
  background: var(--swiper-pagination-bullet-color-active);
  border-radius: 20px;
  width: 15px;
  height: 6px;
}

.app-v-hint {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  position: absolute;
  font-size: 10px;
  line-height: 17px;
  left: 16px;
  bottom: 15%;
  background: rgba(255, 255, 255, 0.8);
  color: #717171;
  border: 1px solid #ECECEC;
  border-radius: 30px;
  z-index: 99;
  white-space: nowrap;
}

.partner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
  margin-top: 10px;
}
.partner > img {
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
}

/* 客製化特殊按鈕區 */
.special-action {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 12px 0;
  height: auto;
  width: calc(100% - 24px);
}
.special-action > div {
  flex: 1;
}
.special-action > div:not(:last-child) {
  margin-right: 12px;
}
.special-action a {
  cursor: pointer;
}
.special-action img {
  width: 100%;
  height: auto;
  max-height: 55px;
  object-fit: contain;
  cursor: pointer;
}
.special-action.only-app img {
  max-height: 78px;
}

.action {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  padding: 10px 25px 0;
}

@media screen and (max-width: 360px) {
  .action {
    padding: 10px 12px 0;
  }
}

.app-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  max-width: 640px;
}

.download-area {
  position: relative;
  display: inline-flex;
  flex: 1
}

.button-group {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 10px;
}
.download-area > .button-group:nth-child(n) {
  margin-left: 0;
}
.download-area > .button-group + .button-group {
  margin-left: 10px;
}

.tour-clipboard-tip {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.70);
  background-color: #4E75FF;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0 auto 12px;
  white-space: nowrap;
}

.tour-clipboard-tip img {
  width: 16px;
  height: 16px;
  margin-right: 2px;
}

.tour-arrow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  width: 38px;
  height: 38px;
}

.button,
.outline-button {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  white-space: nowrap;
  cursor: pointer;
}
.button {
  background: linear-gradient(180deg, var(--primary-gradient-color-1) 0%, var(--primary-gradient-color-2) 100%);
  border: none;
  color: white;
}
.outline-button {
  border: 1px solid var(--primary-normal-color);
  background: transparent;
  color: var(--primary-normal-color);
  text-decoration: none;
}

.button[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.button img {
  object-fit: contain;
  display: block;
  margin-right: 4px;
  margin-top: -1px;
}

.enterH5 {
  margin-left: 24px;
}

.progress-button {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 44px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--primary-normal-color);
  color: #fff;
  font-weight: 400;
  font-size: 18px;
  line-height: 16px;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.progress-button .progress {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  border-radius: 8px;
  height: 42px;
  background: linear-gradient(180deg, var(--primary-gradient-color-1) 0%, var(--primary-gradient-color-2) 100%);
  border-radius: 8px 0px 0px 8px;
  transition: width 2s linear;
  z-index: 1;
}
.progress-button .progress span {
  padding: 0 8px 0 0;
}
.progress-button .cancel {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  text-align: end;
  color: var(--primary-normal-color);
}

.hint {
  height: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-top: 15px;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  color: var(--primary-text-color);
}

.hint svg {
  animation: slideUpDown 1.2s ease-in-out infinite;
  margin-right: 4px;
}

.tutorial-bottom-sheet .backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease-in-out;

  opacity: 0;
  pointer-events: none;
}

.tutorial-bottom-sheet .bottom-sheet {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  height: 86%;
  width: 100%;
  position: absolute;
  z-index: 999;
  border-radius: 16px 16px 0 0;
  transition: all 0.2s ease-in-out;
  padding-bottom: 10px;

  left: 50%;
  transform: translateX(-50%);
  bottom: -110%;
}
.tutorial-bottom-sheet .bottom-sheet .indicator {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 5px;
  background: #d9d9d9;
  border-radius: 9px;
}
.tutorial-bottom-sheet .bottom-sheet > span {
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--tutorial-bottom-sheet-title-color);
  margin: 47px auto 17px;
}
.tutorial-bottom-sheet .bottom-sheet > img {
  width: 100%;
  height: auto;
}
.tutorial-bottom-sheet.show .backdrop {
  opacity: 1;
  pointer-events: all;
}
.tutorial-bottom-sheet.show .bottom-sheet {
  bottom: 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal.show {
  display: block;
}

.modal .modal-content {
  position: relative;
  background-color: #ffffff;
  margin: auto;
  padding: 20px;
  border: none;
  border-radius: 16px;
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal .modal-content > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  color: #5c5c5c;
}

.modal-content .close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.modal-content > div > :nth-child(2) {
  margin: 12px 0 6px;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  color: var(--primary-text-color);
}
.modal-content > div > :nth-child(3) {
  margin: 0;
}

.trusted-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
}
