:root {
  /* 品牌色彩 */
  --primary-sage: #B2C4B9;
  --secondary-blue: #8E9AAF;
  --secondary-pink: #E9B2A6;
  --neutral-sand: #F9F3E5;
  --neutral-charcoal: #4D5053;
  --white: #FFFFFF;

  /* 字體設定 */
  --font-title: 'Lobster', cursive;
  --font-body: 'Quicksand', sans-serif;
  --font-chinese: 'Noto Sans TC', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-charcoal);
  line-height: 1.6;
  background-color: var(--white);
}

/* --- Header & Nav --- */
.header {
  width: 100%;
  position: fixed;
  padding: 5px 10%;
  z-index: 100; 
  background-color: rgba(178, 196, 185, 0.8);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 200px;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--neutral-sand);
  text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 1001;
}

.hamburger .line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white); 
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* --- 手機版 RWD 修正 (768px 以下) --- */
@media (max-width: 768px) {
  .header {
    padding: 10px 5%;
  }

  .logo img { 
    width: 150px; 
  }

  /* 顯示漢堡按鈕 */
  .hamburger {
    display: flex;
  }

  /* 漢堡動畫：當 JS 切換 .active 類名時 */
  .hamburger.active .line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  /* 手機版全螢幕選單 */
  .nav-links {
    display: flex; 
    position: fixed;
    top: 0;
    right: -100%; /* 平時隱藏 */
    width: 100%;
    height: 100vh;
    background-color: var(--primary-sage);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 1000;
  }

  /* 點擊漢堡後滑入的狀態 */
  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    color: var(--white);
    font-size: 1.8rem;
    padding: 15px 40px;
    display: block;
    width: 100%;
    text-align: center;
  }

  /* 錨點跳轉修正 */
  section {
    scroll-margin-top: 70px;
  }
}


/* --- Hero Section --- */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
              url('../image/pc-bg-1.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.hero-text {
  padding: 56px;
}

.hero-text h1 {
  font-family: var(--font-title);
  font-size: 5rem;
  color: var(--neutral-charcoal);
  line-height: 1.2;
}

.hero-text span {
  color: var(--secondary-pink);
}

.btn-learn {
  margin-top: 30px;
  padding: 12px 35px;
  background-color: rgba(255,255,255,0.3);
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: 25px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-learn:hover {
  background-color: var(--primary-sage);
}

.btn-learn:active, .arrow:active {
  transform: scale(0.95);
  filter: brightness(0.9);
}

.arrow {
  position: fixed;
  bottom: 30px; 
  right: 30px;   
  z-index: 999;
  width: 50px;
  height: 50px;
  background-color: var(--primary-sage);
  color: var(--white);
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.arrow:hover {
  background-color: var(--white);
  color: var(--primary-sage);
  transform: translateY(-5px);
}

/* --- Intro Quote --- */
.intro-quote {
  padding: 160px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; 
}

.intro-quote h2 {
  font-family: var(--font-title);
  font-size: 3rem;
  color: var(--primary-sage);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 2px;
}

/* --- Step Section --- */
.step-section {
  background-color: var(--neutral-sand);
  padding: 200px 16%;
  text-align: center;
  position: relative;
  background: url('../image/bg01.png') no-repeat center bottom / cover;
}

.step-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;  
  pointer-events: none;
}

.step-title h2 {
  font-family: var(--font-title);
  font-size: 4rem;
  color: var(--neutral-charcoal);
  margin-bottom: 20px;
  font-weight: 500;
}

.step-container {
  display: flex;
  justify-content: space-around;
  margin-top: 50px;
  gap: 20px;
}

.step-card {
  flex: 1;
  padding: 20px;
}

.step-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--primary-sage);
  display: block;
  text-align: left;
}

/* --- Journey Section --- */
.journey-section {
  padding: 100px 0 100px 10%; 
  overflow: hidden;
  background-color: var(--white);
}

.journey-container {
  display: grid;
  width: 100%;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: 
    "header mockup"
    "icons  mockup"; 
  align-items: center;
  gap: 0 60px; 
}

.journey-header {
  grid-area: header;
  align-self: end; 
  margin-bottom: 40px;
  margin-right: 100px;
}

.journey-header h2 {
  font-size: 4rem;
  font-family: var(--font-title);
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--neutral-charcoal);
}

.section-desc {
  font-family: var(--font-body);
  color: #767676;
  font-size: 1.1rem;
}

.journey-content {
  flex: 1.2;
}

.journey-content h2 {
  font-size: 4rem;
  font-family: var(--font-title);
  margin-bottom: 20px;
  font-weight: 500;
}

.feature-icons {
  grid-area: icons;
  display: flex;
  gap: 80px;
  align-self: start;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
  gap: 16px;
}

.feature-item p {
  font-family: var(--font-body);
  color: var(--neutral-charcoal);
  font-weight: bold;
}
.icon-circle {
  width: 180px;
  height: 180px;
  background-color: var(--primary-sage);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.icon-circle:hover { transform: translateY(-10px); }
.icon-circle img { width: 100px; }

.journey-mockup {
  grid-area: mockup;
  justify-self: end; 
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.journey-mockup img {
  width: 100%;
  max-width: 850px; 
  display: block;
  margin-right: -2vw; 
  filter: drop-shadow(-20px 20px 50px rgba(0,0,0,0.1)); 
}

/* --- Breathing Section --- */
.breathing-section {
  height: 100vh;
  background: url('../image/bg02.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
}

.breathing-container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.font-title {
  font-weight: 500;
  margin-bottom: -16px;
}

.font-subtitle {
  color: var(--primary-sage);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 16px;
}

.breathing-content {
  max-width: 500px;
}

.breathing-content h2 {
  font-family: var(--font-title);
  font-size: 4rem;
}

/* --- FAQs Section --- */
.faq-section {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
              url('../image/bg03.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 8% 220px 8%;
}

.faq-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-container h2 {
  font-size: 4rem;
  color: var(--neutral-sand);
  font-family: var(--font-title);
  margin-bottom: 10px;
}

.faq-subtitle {
  font-family: var(--font-body);
  color: var(--white);
  margin-bottom: 48px;
}
.faq-list {
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 0;
}

details[open].faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  cursor: pointer;
  padding: 20px 0;
}

.faq-question p {
  flex: 1;
  word-break: break-word;
  color: #ffffff;
}

.icon {
  width: 28px;
  height: 28px;
  border: 1px solid white;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon::before, .icon::after {
  content: "";
  position: absolute;
  background-color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.icon::before { width: 12px; height: 2px; }
.icon::after { width: 2px; height: 12px; }

details[open] .icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 0 25px 48px;
  color: rgba(255, 255, 255, 0.8);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.main-footer {
  background-color: #767676;
  color: #ffffff;
  padding: 0 10% 40px;
  position: relative;
  z-index: 10;
}

.footer-wave {
  position: absolute;
  top: -140px;
  left: 0;
  width: 100%;
  height: 140px; 
  background: url('../image/bg02.png') no-repeat top center / 100% auto;
  z-index: 1;
  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 150px 0 60px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-logo img { height: 40px; }

.footer-nav {
  display: flex;
  gap: 40px;
  margin-top: 10px;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--neutral-sand);
  text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
}

.footer-download {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-btn img {
  height: 50px;
  transition: 0.3s;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.privacy-policy a {
  color: #ffffff;
  text-decoration: none;
}


/* --- 手機版 RWD 設定 (1024px 以下) --- */
@media (max-width: 1024px) {
  .hero-text h1 { 
    font-size: 3.5rem; 
  }
  .journey-container { 
    flex-direction: column; 
    gap: 40px; 
  }
  .journey-mockup { 
    margin-right: 0;
   } 
}



/* --- 手機版 RWD 設定 (768px 以下) --- */
@media (max-width: 768px) {
  /* Header & Nav */
  .logo img { 
    width: 150px; 
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0; 
    background-color: rgba(178, 196, 185, 0.92); 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    right: 0; 
  }

  .nav-links li {
    transform: translateY(20px);
    transition: all 0.5s ease;
  }

  .nav-links.active li {
    transform: translateY(0);
  }

    .menu-control:checked ~ .nav-links {
    display: flex;
    right: 0; 
  }

    .menu-control:checked ~ .hamburger .line:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .menu-control:checked ~ .hamburger .line:nth-child(2) {
        opacity: 0;
    }
    .menu-control:checked ~ .hamburger .line:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .nav-links li a {
    color: var(--white);
    font-size: 1.8rem;
    text-decoration: none;
    }

    .nav-links li a:hover {
    font-weight: 500;
    color: var(--neutral-sand);
    text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
  }

  .arrow:hover {
    background-color: var(--white);
    color: var(--primary-sage);
    transform: translateY(-5px);
  }


/* 針對觸控裝置（手機）點擊瞬間的反饋 */
.arrow:active {
  background-color: var(--white); /* 點下去瞬間變白，給予回饋 */
  transform: scale(0.9);
  transition: 0s; /* 點擊反饋要快，不需要延遲 */
}

  /* Hero Section */
  .hero-section {
    align-items: flex-start; 
    justify-content: flex-start; 
    padding: 140px 10% 0 10%;
    background-size: cover;
    background-position: center;
    background: linear-gradient(
        rgba(0, 0, 0, 0.2), 
        rgba(0, 0, 0, 0.2)
      ), 
      url('../image/pc-bg-1.jpg') no-repeat center center / cover;
  }

  .hero-text {
    padding: 0; 
    text-align: left;
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 3.8rem;
    margin-bottom: 10px;
  }
  
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: var(--white); /* 如果背景壓暗，文字請改回白色 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }


  /* Step Section */
  .step-section {
        padding: 80px 24px 120px 24px !important; 
        position: relative !important;
        overflow: visible !important; 
        
    }

    .step-section::after {
        content: "" !important;
        background-color: var(--white);
        display: block !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 160px !important; 
        pointer-events: none;
        z-index: 11 !important; 
        background: url('../image/bg01.png') no-repeat center bottom !important;
    }

    .step-container {
        display: flex;
        background-color: transparent !important; 
        position: relative;
        z-index: 12; 
        padding: 20px 20px 40px 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

  .step-card {
        flex: 0 0 90%;
        scroll-snap-align: start;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        text-align: left;
        padding: 25px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        margin-bottom: 24px;
    }
    
    .step-card img {
        width: 120px;
        filter: grayscale(20%); 
        margin-bottom: 16px;
    }

  /* 5. Journey Section */
  .journey-section {
    padding: 60px 0; /* 移除左右 padding 以利內部精確置中 */
    display: flex;
    justify-content: center; /* 讓 container 在 section 內水平置中 */
  }

  .journey-container {
    width: 90%; /* 限制寬度，避免文字貼邊 */
    display: grid;
    grid-template-columns: 1fr; /* 單欄模式 */
    grid-template-areas: 
      "header"
      "mockup"
      "icons";
    /* 核心置中語法 */
    justify-items: center; /* 讓所有 Grid 子元素在水平方向置中 */
    align-items: center;   /* 讓所有 Grid 子元素在垂直方向置中 */
    text-align: center;    /* 讓內部的文字、Inline 元素置中 */
    gap: 40px;
  }

  /* 2. 標題與描述區 */
  .journey-header {
    grid-area: header;
    max-width: 100%;
    margin: 10px;
  }

  .journey-header h2 {
    font-size: 3.8rem; /* 手機版標題適中 */
    margin-bottom: 10px;
  }

  .section-desc {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .journey-mockup {
    grid-area: mockup;
    width: 100%;
    display: flex;
    justify-content: right; /* 水平置中 */
    margin-right: -3vh;        /* 移除電腦版的溢出 */
  }

  .journey-mockup img {
    width: 100%;
    max-width: 350px; /* 依照你的示意圖比例，建議設定 300-320px */
    height: auto;
    margin-right: 0;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
  }

  /* 4. 功能圖示區：橫向排列並縮小 */
  .feature-icons {
    grid-area: icons;
    display: flex;
    flex-direction: row; /* 關鍵：圖片中是橫向排列 */
    justify-content: space-around; /* 均勻分佈 */
    align-items: flex-start;
    gap: 10px;
  }

  .feature-item {
    width: 30%; /* 三個圖示平分寬度 */
    gap: 10px;
  }

  .icon-circle {
    width: 70px;  /* 手機版圓圈縮小 */
    height: 70px;
    margin: 0 auto;
  }

  .icon-circle img {
    width: 42px; /* 圖示隨之縮小 */
  }

  .feature-item p {
    font-size: 0.85rem; /* 文字縮小，避免在小螢幕換行難看 */
    white-space: wrap; /* 盡量保持不換行 */
  }
  /* 6. Breathing Section */
  .breathing-section {
    background: url("../image/bg03-M.jpg") no-repeat center center / cover;
    display: flex;
    align-items: flex-start; 
    padding-top: 40px; 
    height: 100vh; 
  }

  .breathing-container {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .breathing-content {
    max-width: 90%; 
  }

  .breathing-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }

  /* 7. FAQs Section */
  .faq-section { 
    padding: 80px 5% 150px 5%; 
  }
  .faq-container h2 { 
    font-size: 2.5rem; 
  }

  /* 8. Footer */
  .footer-container { 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    padding: 100px 0 40px; 
  }
  .footer-nav { 
    flex-direction: column; 
    gap: 20px; 
    margin: 30px 0; 
  }
  .footer-logo {
    display: block;
    align-items: center; 
    text-align: center; 
  }
  .footer-bottom { 
    flex-direction: column; 
    gap: 4px; 
  }
  .footer-wave { 
    top: -80px; 
    height: 80px; 
  } 
  }