﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  border: none;
  outline: none;
  background: none;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth !important;
}

:root {
  --pri: #E8734A;
  --sec: #1B5E20;
  --prirgb: #F0A28E;
  --secrgb: #003300;
  --swiper-theme-color: #C75B39;
  --warm: #D4586B;
  --rose: #E8A0BF;
  --coral: #F4845F;
  --gold: #D4A574;
  --mint: #7EC8A0;
}

body {
  scroll-behavior: smooth !important;
  background-color: #1a0e0e;
  height: 100vh;
  height: 100dvh;
  position: relative;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/***********      bg-grid      ***********/
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
  pointer-events: none;
}
.bg-grid .bg-cell {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/***********      bg-overlay      ***********/
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(15, 8, 8, 0.55);
  pointer-events: none;
}

/***********      wrapper      ***********/
.wrapper {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 1.3rem;
}
.wrapper.noSpace {
  max-width: auto;
  padding: 0;
}

.inner-content {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding: 0 1rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content {
  position: relative;
  min-height: 600px;
  max-width: 1100px;
  width: 100%;
  background-color: rgba(255, 250, 248, 0.88);
  border-radius: 16px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  text-align: center;
  z-index: 2;
  overflow: hidden;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
  padding-top: 5rem;
  padding-bottom: 1rem;
  box-shadow: 0 8px 40px rgba(232, 115, 74, 0.12), inset 0 1px 0 rgba(255,255,255,0.6);
}
.content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 60%
  );
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}
@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
.content .step-title {
  position: absolute;
  top: 50%;
  left: -10rem;
  transform: translateY(-50%);
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}
.content .step-title li {
  height: 5.5rem;
  min-width: 7rem;
  background-color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 1rem;
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  border-radius: 0 10rem 10rem 0;
  position: relative;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.content .step-title li.active {
  box-shadow: 0 4px 22px rgba(244, 132, 95, 0.4);
}
.content .step-title li.active::after {
  right: -0.4rem;
}
.content .step-title li h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #C75B39;
  letter-spacing: 1px;
}
.content .step-title li:nth-child(2) h4 {
  color: #D4667C;
}
.content .step-title li:nth-child(3) h4 {
  color: #C75B39;
}
.content .step-title li.valueAdded {
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 9rem;
  padding: 0 0.5rem;
}
.content .step-title li.valueAdded .icon {
  height: 0;
  width: 0;
  opacity: 0;
}
.content .step-title li.valueAdded .selectedImage {
  height: 4.6rem;
  width: 4.6rem;
}
.content .step-title li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #F4845F, #E8A0BF);
  height: 5.4rem;
  width: 5.4rem;
  z-index: -1;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(244, 132, 95, 0.3);
}
.content .step-title li .selectedImage {
  height: 0;
  width: 0;
  object-fit: cover;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}
.content .step-title li .icon {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: contain;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}
.content .custom-button {
  padding: 0.7rem 2rem;
  background: linear-gradient(135deg, #E8734A, #D4586B);
  color: #FFFFFF;
  font-size: 1.05rem;
  border-radius: 3rem;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 4px 18px rgba(232, 115, 74, 0.45);
  transition: all 0.3s ease;
  animation: btnGlow 2s ease-in-out infinite;
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(232, 115, 74, 0.45); }
  50% { box-shadow: 0 6px 28px rgba(212, 88, 107, 0.75); }
}
.content .custom-button:hover {
  background: linear-gradient(135deg, #C75B39, #BF4D60);
  box-shadow: 0 6px 28px rgba(212, 88, 107, 0.7);
  transform: translateY(-2px);
}
.content #intro {
  max-width: 1000px;
  padding: 1rem;
}
.content #intro h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}
.content #intro p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.content #intro p strong {
  color: #2E7D32;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  font-weight: 700;
}
.content #loadingScreen {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}
.content #loadingScreen h2 {
  font-size: 2.3rem;
  margin-bottom: 4rem;
  max-width: 700px;
  font-weight: 700;
  background: linear-gradient(135deg, #E8734A, #D4586B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideIn 0.6s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.content #loadingScreen .progress-bar-area {
  height: 1rem;
  width: 20rem;
  background-color: #D9D9D9;
  margin-top: 3rem;
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
}
.content #loadingScreen .progress-bar-area #progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #C75B39, #E8734A, #E8A0BF);
  border-radius: 2rem;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
  box-shadow: 0 0 12px rgba(232, 115, 74, 0.55);
}
.content #loadingScreen ul {
  margin-top: 4rem;
}
.content #loadingScreen ul li {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #D4667C;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.content .step {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.content .step.profile h2 {
  font-size: 1.8rem;
}
.content .step.profile .option-list {
  align-items: flex-start;
  margin-top: 1rem;
  gap: 3rem;
}
.content .step.profile .option-list button {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}
.content .step.profile .option-list button:hover .image::after {
  top: 53%;
  transform: translate(-50%, -50%) scale(1.17);
}
.content .step.profile .option-list button .image {
  height: 8rem;
  width: 8rem;
  border-radius: 50%;
}
.content .step.profile .option-list button .image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50%;
  z-index: 5;
}
.content .step.profile .option-list button .image img {
  border-radius: 50%;
}
.content .step.profile .option-list button .image::after {
  border-radius: 50%;
  background-color: #66BB6A;
}
.content .step.profile .option-list button .name {
  max-width: 7rem;
}
.content .step h2 {
  font-size: 2.4rem;
  margin-bottom: 2.2rem;
  max-width: 750px;
  font-weight: 800;
  background: linear-gradient(135deg, #C75B39, #D4586B, #3D7A3D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: 1px;
}
.content .step .opening-text {
  font-size: 1.35rem;
  background: linear-gradient(135deg, #F4845F, #D4586B, #E8A0BF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  animation: textPulse 2.5s ease-in-out infinite;
}
@keyframes textPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}
.content .step .option-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.content .step .option-list button {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.content .step .option-list button:hover {
  transform: translateY(-4px);
}
.content .step .option-list button:hover .image::after {
  transform: translate(-50%, -50%) scale(1.18);
}
.content .step .option-list button:hover .image img {
  box-shadow: 0 8px 30px rgba(244, 132, 95, 0.5);
}
.content .step .option-list button .image {
  position: relative;
  height: 13rem;
  width: 100%;
  margin-bottom: 1rem;
}
.content .step .option-list button .image::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 90%;
  width: 90%;
  border-radius: 20px;
  background: linear-gradient(135deg, #E8734A, #E8A0BF);
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
  z-index: 1;
  box-shadow: 0 4px 22px rgba(232, 115, 74, 0.35);
}
.content .step .option-list button img {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: box-shadow 0.3s ease;
}
.content .step .option-list button .name {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
  background: linear-gradient(135deg, #C75B39, #D4667C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-shadow: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.content .step .option-list button:nth-child(2) .name {
  background: linear-gradient(135deg, #D4586B, #E8A0BF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content .step .option-list button:nth-child(3) .name {
  background: linear-gradient(135deg, #E8734A, #F4845F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content .step .option-list button:hover .name {
  transform: scale(1.08);
  filter: brightness(1.2);
}
.content #thankYouPage {
  max-width: 650px;
  text-align: left;
}
.content #thankYouPage h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.content #thankYouPage p {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 130%;
}
.content #thankYouPage h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.content #thankYouPage h4 {
  font-size: 1.3rem;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  margin-bottom: 2rem;
}
.content #thankYouPage ul {
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.content #thankYouPage ul li {
  list-style: decimal;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  font-weight: 600;
}

/* ========== 手機端自適應 ========== */
@media only screen and (max-width: 768px) {
  body {
    align-items: flex-start;
    padding: 3vw;
    padding-top: 2vh;
  }
  .inner-content {
    align-items: flex-start;
    padding-top: 1vh;
  }
  .content {
    padding: 4vw !important;
    min-height: 70vh;
    border-radius: 12px;
    padding-top: 14vw !important;
  }
  .content .sticky-button {
    position: fixed;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    border-radius: 0.5rem !important;
    background: linear-gradient(135deg, #E8734A, #D4586B) !important;
    padding: 3vw !important;
    color: #FFFFFF;
    font-size: 5vw !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 18px rgba(232, 115, 74, 0.55);
    letter-spacing: 2px;
    z-index: 100 !important;
    text-align: center !important;
  }
  /* 側邊欄改為頂部進度條 */
  .content .step-title {
    top: 3vw;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    opacity: 0;
    width: 100%;
    padding: 0 4vw;
  }
  .content .step-title li {
    height: 11vw;
    width: 11vw;
    min-width: auto;
    border-radius: 50%;
    margin-bottom: 0;
  }
  .content .step-title li.active::after {
    right: auto;
    height: 110%;
    width: 110%;
  }
  .content .step-title li.valueAdded {
    flex-direction: column;
    justify-content: center;
    min-width: auto;
    padding: 0;
    gap: 0.5vw;
  }
  .content .step-title li.valueAdded .selectedImage {
    height: 6vw;
    width: 6vw;
  }
  .content .step-title li .icon {
    height: 5vw;
    width: 5vw;
  }
  .content .step-title li::after {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    height: 92%;
    width: 92%;
  }
  .content .step-title li h4 {
    font-size: 2.5vw;
  }

  /* 開頭語 */
  .content .step .opening-text {
    font-size: 4vw;
    letter-spacing: 1px;
    margin-bottom: 3vw;
  }
  /* 問題標題 */
  .content .step h2 {
    font-size: 5.5vw;
    margin-bottom: 4vw;
    max-width: 90vw;
  }
  /* 選項列表 */
  .content .step .option-list {
    gap: 3vw;
    margin-top: 3vw;
    width: 100%;
  }
  .content .step .option-list button {
    width: calc(50% - 2vw);
    max-width: 44vw;
  }
  .content .step .option-list button .name {
    font-size: 3.8vw;
  }
  .content .step .option-list button .image {
    height: 28vw;
    width: 100%;
    margin-bottom: 2vw;
  }

  /* 載入畫面 */
  .content #loadingScreen {
    padding: 4vw;
  }
  .content #loadingScreen h2 {
    font-size: 5vw;
    margin-bottom: 6vw;
  }
  .content #loadingScreen .progress-bar-area {
    width: 75vw;
    max-width: 20rem;
  }
  .content #loadingScreen ul li {
    font-size: 3.5vw;
    margin-bottom: 3vw;
  }

  /* 按鈕 */
  .content .custom-button {
    font-size: 3.5vw;
    padding: 2.5vw 5vw;
  }

  /* 關閉桌面流光 */
  .content::before {
    animation: none;
    display: none;
  }

  /* iOS Safari 微調 */
  @supports (-webkit-touch-callout: none) {
    .content .step-title {
      top: 3vw;
    }
    .content .step .option-list button .image {
      margin-bottom: 1.5vw;
    }
  }
}

/* ========== 小屏手機微調 ========== */
@media only screen and (max-width: 380px) {
  .content {
    padding-top: 16vw !important;
  }
  .content .step .opening-text {
    font-size: 3.8vw;
  }
  .content .step h2 {
    font-size: 5vw;
  }
  .content .step .option-list button {
    width: 100%;
    max-width: 100%;
  }
  .content .step .option-list button .image {
    height: 36vw;
  }
  .content .step .option-list button .name {
    font-size: 4vw;
  }
}
