:root {
  --swiper-theme-color: #22201f;
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-bullet-border-radius: 12px;
  --card-bg-top: rgb(245 211 113 / 10%);
  --card-bg-bottom: rgb(245 211 113);
  --bg-color: 245 178 58;
}


* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  font-style: normal;
  line-height: 1;
  color: #22201f;
  background-color: #f7f7f3;
  margin: 0;
  padding: 0;
}




.page-wrap {
  height: 100svh;
}



/* header */

.header {
  display: flex;
  align-items: center;
  height: 100px;
  padding:  0 1rem;
  transition: height 0.3s, padding 0.3s;
}
.logo {
  .logo-img {
    max-width: 280px;
  }
  h1 {
    font-size: 0;
    color: transparent;
  }
}



@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* main */
.main {
  height: calc(100% - 100px);
}
.swiper-pagination {
  align-content: center;
  height: 30px;
}
.swiper-pagination-bullet {
  transition: width 0.3s, height 0.3s;
}
.swiper-pagination-bullet-active {
  --swiper-pagination-bullet-width: 40px;
}
.swiper {
  height: calc(100% - 40px);
  .swiper-slide {
    display: flex;
    height: 100%;
    position: relative;
  }
  .slide-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
  }
}
.slide-txt {
  padding: 2.5rem 1.5rem;
  position: absolute;
  z-index: 4;
  .slide-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 900;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
    > span {
      letter-spacing: -2px;
    }
  }
  .slide-desc {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
  }
  .slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 150px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    background: #22201f;
    padding: 4px 16px 4px 4px;
    border-radius: 60px;
    border: 0;
    transition: top 0.3s, box-shadow 0.3s, background-color 0.3s;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    &.btn--link {
      background-color: #d62718;
      > .icon i {
        background-color: #d62718;
      }
    }
    > .icon {
      display: inline-block;
      width: 34px;
      height: 34px;
      background: #fff;
      border-radius: 60px;
      i {
        display: block;
        width: 100%;
        height: 100%;
        mask-size: 100%;
        background-color: #22201f;
        transition: background-color 0.3s;
      }
      &.icon--play i {
        mask-image: url('./../image/ic_play.svg');
      }
      &.icon--link i {
        mask-image: url('./../image/ic_link.svg');
      }
    }
    > span {
      flex: 1;
      text-align: center;
    }
    &:hover {
      top: -2px;
      background-color: rgb(var(--bg-color));
      box-shadow: 0 8px 16px rgb(var(--bg-color) / 0.28);
      > .icon i {
        background-color: rgb(var(--bg-color));
      }
    }
  }
}
.slide-bg-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  .slide-img {
    width: 100%;
    height: 80svh;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    background-size: 120%;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 3;
    transition: background-size 0.5s, background-position 0.5s;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.2s;
    .swiper-slide01 {
      background-size: 130%;
    }
    .swiper-slide03 & {
      background-position-x: 80%;
    }
  }
  .slide-bg-img {
    width: 100%;
    height: 86svh;
    background-position: center bottom;
    background-size: 120%;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.4s;
  }
  .slide-bg-color {
    width: 100%;
    height: 80svh;
    background-image: linear-gradient( 120deg, var(--card-bg-top) 0%, var(--card-bg-bottom) 100%);
    border-radius: 0 68px 0 68px;
    position: absolute;
    z-index: 1;
  }
}
@media (max-width: 375px) {
  .slide-txt {
    padding: 2rem 1.5rem;
    .slide-title {
      font-size: 1.5rem;
    }
    .slide-desc {
      font-size: 13px;
      margin-bottom: 1rem;
    }
    .slide-btn {
      font-size: 13px;
    }
  }
}


@keyframes float1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translate(10px, -15px) scale(1.05);
  }
  50% {
    transform: translate(-5px, -25px) scale(0.7);
    opacity: 1;
  }
  75% {
    transform: translate(-15px, -10px) scale(1.03);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  33% {
    transform: translate(-12px, 20px) scale(1.08);
  }
  66% {
    transform: translate(8px, 15px) scale(0.92);
    opacity: 1;
  }
}
@media (min-width: 576px) {
  .page-wrap {
    max-width: 768px;
    margin: 0 auto;
    &:after, &:before {
      content: '';
      display: block;
      border-radius: 50%;
      background-color: rgb(var(--bg-color));
      position: fixed;
      z-index: -1;
      transition: background-color 1s;
    }
    &:before {
      filter: blur(100px);
      width: clamp(220px, 18vw, 380px);
      height: clamp(220px, 18vw, 380px);
      left: -3%;
      bottom: -3%;
      animation: float1 8s ease-in-out infinite;
    }
    &:after {
      filter: blur(80px);
      width: clamp(120px, 10vw, 280px);
      height: clamp(120px, 10vw, 280px);
      top: -1%;
      right: -1%;
      animation: float2 6s ease-in-out infinite;
    }
  }
  .header {
    height: 120px;
    padding: 0 2rem;
  }
  .logo .logo-img {
    max-width: 380px;
  }
  .main {
    height: calc(100% - 120px);
    position: relative;
  }
  .swiper {
    height: calc(100% - 60px);
    .slide-content {
      padding: 0 2rem;
    }
  }
  .slide-txt {
    padding: 4rem 3rem;
    .slide-title {
      > .br {
        display: none;
      }
    }
  }
  .slide-bg-wrap {
    .slide-img {
      background-size: contain;
    }
    .slide-bg-color {
      height: 76svh;
    }
    .slide-bg-img {
      height: 62svh;
      background-position-y: top;
    }
  }
  .swiper-pagination-vertical.swiper-pagination-bullets {
    top: 40%;
  }
  .swiper-pagination-bullet-active {
    --swiper-pagination-bullet-width: 8px;
    --swiper-pagination-bullet-height: 40px;
  }
}



@property --gradient-color-1 {
  syntax: '<color>';
  initial-value: rgb(248, 176, 55);
  inherits: false;
}
@property --gradient-color-2 {
  syntax: '<color>';
  initial-value: rgb(67, 182, 117);
  inherits: false;
}
@property --gradient-color-3 {
  syntax: '<color>';
  initial-value: rgb(66, 127, 217);
  inherits: false;
}
@media (min-width: 1200px) {
  .topbar {
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--gradient-color-1) 0%, var(--gradient-color-2) 50%, var(--gradient-color-3) 100%);
    background-size: 100% 100%;
    transition: --gradient-color-1 1s, --gradient-color-2 1s, --gradient-color-3 1s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
  }
  .page-wrap {
    width: 100%;
    height: 100%;
    max-width: 1330px;
    padding: 0 2rem;
  }
  .header {
    width: 100%;
    height: auto;
    padding-top: 5rem;
  }
  .main {
    height: calc(100svh - 200px);
    min-height: 680px;
    max-height: 920px;
    padding-bottom: 6vh;
  }
  .swiper {
    height: 100% !important;
    .slide-content {
      justify-content: center;
    }
  }
  .slide-bg-wrap {
    width: 900px;
    height: 500px;
    margin-left: auto;
    .slide-bg-color {
      height: 500px;
      bottom: 10%;
      overflow: hidden;
    }
    .slide-bg-img {
      height: 120%;
      background-size: cover;
    }
    .slide-img {
      height: 100%;
    }
  }
  .slide-txt {
    padding: 0;
    padding-top: 10rem;
    .slide-title {
      font-size: 4rem;
    }
    .slide-title .br {
      display: block;
    }
    .slide-btn {
      min-width: 200px;
      font-size: 20px;
      margin-top: 4rem;
      position: relative;
      top: 0;
      > .icon {
        width: 52px;
        height: 52px;
      }
    }
  }
  .swiper-pagination-vertical.swiper-pagination-bullets {
    --swiper-pagination-right: -2%;
    top: 46%;
    transform: translateY(-46%);
  }
}

@media (min-width: 960px) and (max-width: 1920px) {
  .page-wrap {
    &:before {
      filter: blur(180px);
    }
    &:after {
      filter: blur(120px);
    }
  }
}
@media (min-width: 1921px) {
  .page-wrap {
    &:before {
      filter: blur(200px);
    }
    &:after {
      filter: blur(120px);
    }
  }
}








/* 橫向螢幕提示 */
.orientation-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f7f7f3;
  color: #22201f;
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  svg {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    color: #22201f;
    animation: rotate 2s ease-in-out infinite;
  }
  h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
  }
  p {
    font-size: 1rem;
    opacity: 0.6;
    line-height: 1.5;
    margin: 0;
  }
}

@keyframes rotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(90deg);
  }
}
@media (orientation: landscape) and (max-width: 1024px) and (max-height: 768px) and (pointer: coarse) {
  body {
    background-color: #f7f7f3;
  }
  .page-wrap {
    display: none;
  }
  .orientation-message {
    display: flex !important;
  }
}


/* Video Modal */
.video-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
  padding: 0;
}

.video-modal-close:hover {
  background: #fff;
  transform: scale(1.1);
}

.video-modal-close:active {
  transform: scale(0.95);
}

.video-modal-close svg {
  width: 24px;
  height: 24px;
  color: #22201f;
}

.video-player {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  background: #000;
  outline: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    max-height: 80vh;
  }
  
  .video-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
  }
  
  .video-modal-close svg {
    width: 20px;
    height: 20px;
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  .video-modal-content {
    border-radius: 16px;
  }
}



/* Page Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f7f7f3;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-spinner-bg {
  width: 60px;
  height: 60px;
  background-image: url('./image/loader.svg');
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}
.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #F8B037;
  border-left-color: #43B675;
  border-radius: 50%;
  animation: loader-spin 1s linear infinite;
}
@keyframes loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}