* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none;
  height: 100%;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
  overflow-y: auto;
  height: 100%;
  overscroll-behavior-y: none;
  scroll-snap-type: y mandatory;
  transition: background-color 0.8s ease;
}

/* 全域改用漢堡選單 (加上淺灰色邊框，固定配色) */
.menu-toggle {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(120, 120, 120, 0.6); /* 白色微透明底確保符號可見 */
  backdrop-filter: blur(10px);
  border-radius: 50%;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 3px solid #acacac; /* 淺灰色邊框 */
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: #ffff; /* 固定黑色線條 */
  transition: all 0.3s ease;
}

.menu-toggle.open .line-1 { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open .line-2 { opacity: 0; }
.menu-toggle.open .line-3 { transform: translateY(-8px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
}

.menu-overlay.active { opacity: 1; visibility: visible; }
.menu-links { list-style: none; text-align: center; }
.menu-links a { 
  font-size: 2.5rem; 
  font-weight: 800; 
  color: #000; 
  text-decoration: none; 
  display: block; 
  margin: 15px 0; 
  transition: opacity 0.3s ease;
}
.menu-links a:hover, .menu-links a.active {
  opacity: 0.5;
}

/* Sections */
section {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color 1s ease, opacity 1s ease;
}

#section1 { background: #fff; }
#section2 { background: #222222; color: #fff; }
#section3 { background: #111; color: #fff; }
#section4 { background: #ffffff; } 
#section5 { background: #fff; }
#section6 { background: #fff; display: block; height: 100vh; overflow: hidden;}

.content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

#section2 .content-wrapper {
  text-align: left;
}

#section2 .content-wrapper p {
  margin-left: 0;
  margin-right: auto;
}

section.visible .content-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 2s ease;
}

section.visible .bg-video {
  opacity: 0.25;
}

.scroll-down-arrow {
  position: absolute;
  bottom: 50px; 
  right: 50px; 
  left: auto;
  transform: none;
  cursor: pointer;
  z-index: 100;
  opacity: 0.4;
  transition: opacity 0.3s ease, color 0.4s ease;
  animation: arrowBounce 2s infinite;
  color: #888888; /* 固定為灰色，適應各種背景 */
}

.scroll-down-arrow:hover {
  opacity: 0.8;
}
.scroll-down-arrow svg {
  width: 50px; 
  height: 50px;
}

@keyframes arrowBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Slider Container (Section 4) */
.slide-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

.slide--zen .slide-video-overlay { opacity: 0.15; mix-blend-mode: multiply;}
.slide--play .slide-video-overlay { opacity: 0.5; mix-blend-mode: none; }
.slide--rest .slide-video-overlay { opacity: 0.3; mix-blend-mode: soft-light; }

.slide-tag {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.slide.active .slide-tag { opacity: 1; transform: translateY(0); }

.logo { width: 100%; max-width: 150px; height: auto; object-fit: cover; }
.main-logo { width: 100%; max-width: 480px; height: auto; margin-bottom: 20px; display: inline-block; }

.showcase-container {
  position: relative;
  width: 100%;
  max-width: 950px;
  margin: 0 auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-image { width: 100%; height: auto; border-radius: 12px; }

.flare-cluster {
  position: absolute;
  top: 15%; 
  right: 18%;
  width: 160px;
  height: 160px;
  pointer-events: none;
  z-index: 10;
}

.flare-star {
  position: absolute;
  background: #FFB300;
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
  opacity: 0;
  box-shadow: 0 0 30px rgba(255, 179, 0, 0.8);
  animation: sparkle 4s infinite ease-in-out;
}

.star-1 { width: 70px; height: 70px; top: 15px; left: 15px; animation-delay: 0s; }
.star-2 { width: 30px; height: 30px; top: -10px; left: 90px; animation-delay: 1.5s; }
.star-3 { width: 40px; height: 40px; top: 65px; left: 55px; animation-delay: 3s; }
.star-4 { width: 20px; height: 20px; top: 40px; left: -5px; animation-delay: 0.7s; }

.flare-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.5) 0%, rgba(255, 179, 0, 0) 70%);
  border-radius: 50%;
  animation: glowPulse 4s infinite ease-in-out;
  filter: blur(8px);
}

@keyframes sparkle {
  0%, 100% { transform: scale(0.4) rotate(90deg); opacity: 0; filter: blur(3px); }
  50% { transform: scale(1.15) rotate(45deg); opacity: 1; filter: blur(0px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.3); }
}

h1 { font-size: 9rem; font-weight: 900; letter-spacing: -3px; line-height: 0.9; margin-bottom: 20px; }
h2 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
p { font-size: 1.3rem; color: #000000; max-width: 600px; margin: 0 auto; line-height: 1.8; }

.breath-animation {
  animation: breath 3.5s ease-in-out infinite;
  transform-origin: center;
  margin-top: 40px;
}

@keyframes breath {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Slider Container (Section 4) */
.slider-container {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
}
.slider-container::-webkit-scrollbar { display: none; }

.slide {
  min-width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: row; 
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slide-text {
  flex: 1;
  padding: 0 10%;
  text-align: left;
  color: #111;
  position: relative;
  z-index: 10;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-image-container {
  flex: 1.2;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), filter 1.5s ease;
}

.slide-image-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.slide--zen .slide-text        { transform: translateX(-150px); }
.slide--zen .slide-image-container { transform: translateX(100px) scale(0.7); filter: blur(20px) grayscale(1); }
.slide--zen.active .slide-text { opacity: 1; transform: translateX(0); transition-delay: 0.2s; }
.slide--zen.active .slide-image-container { opacity: 1; transform: translateX(0) scale(0.9); filter: blur(0) grayscale(0); transition-delay: 0.1s; }

.slide--play .slide-text        { transform: scale(0.5); filter: blur(10px); }
.slide--play .slide-image-container { transform: scale(1.3) rotate(15deg); filter: blur(30px) brightness(2); }
.slide--play.active .slide-text { opacity: 1; transform: scale(1); filter: blur(0); transition-delay: 0.3s; }
.slide--play.active .slide-image-container { opacity: 1; transform: scale(0.9) rotate(0deg); filter: blur(0) brightness(1); transition-delay: 0.15s; }

.slide--rest .slide-text        { transform: translateY(100px); }
.slide--rest .slide-image-container { transform: scale(0.7) translateY(-50px); filter: blur(25px) sepia(1); }
.slide--rest.active .slide-text { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.slide--rest.active .slide-image-container { opacity: 1; transform: scale(0.9) translateY(0); filter: blur(0) sepia(0); transition-delay: 0.2s; }

.slide-text h3 {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: #000;
  line-height: 1;
}

.slide-text p {
  margin: 0;
  text-align: left;
  line-height: 1.6;
  font-size: 1.2rem;
  color: #333; 
  max-width: 420px;
}

.more-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid #000;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}
.more-link:hover { letter-spacing: 5px; opacity: 0.6; }

.more-link-white {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid #fff;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}
.more-link-white:hover { letter-spacing: 5px; opacity: 0.6; }

/* 更改設計：Section 4 整頁寬度進度條 */
.status-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px; 
  background: rgba(0,0,0,0.1); 
  z-index: 20;
  transition: background-color 0.4s ease;
}
.status-bar-fill { 
  height: 100%; 
  background: #000; 
  width: 0%; 
  transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s ease; 
}

/* Section 5 內部的置中進度條 */
.s5-status-bar-container {
  position: absolute;
  bottom: 20px; 
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 100;
}
.s5-status-bar-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 0.6s ease;
}

#section5 .content-wrapper {
  max-width: 100%;
  width: 100%;
  padding: 0;
  opacity: 0; 
  transform: translateY(30px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section.visible#section5 .content-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.s5-boxes {
  display: flex;
  width: 100%;
  height: 80vh; 
  gap: 16px;
  padding: 110px 70px 40px; 
  box-sizing: border-box;
  position: relative;
}

.s5-box {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px;
  box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
}

.s5-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.s5-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 0 30px 110px; 
  position: relative;
}

.s5-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5); 
  cursor: pointer;
  padding: 20px;
  z-index: 110;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.s5-prev { left: 10px; }
.s5-next { right: 10px; }

.s5-nav svg {
  width: 32px;
  height: 32px;
}

.s5-nav:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.15);
}

.s5-shop-container {
  padding-bottom: 60px;
  text-align: center;
  z-index: 10;
}

.s5-shop-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #000;
  border: 1px solid #000;
  border-radius: 6px; 
  padding: 16px 48px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.s5-shop-btn:hover {
  background: #000;
  color: #fff;
  padding-left: 56px;
  padding-right: 56px;
}

.s5-slide-content {
  text-align: left;
  z-index: 5;
  opacity: 1;
  transform: none;
  transition: color 0.5s ease;
}

.s5-slide-title {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  line-height: 1;
  color: #ffffff; /* 統一為白色字體以適應影像背景 */
}

.s5-slide-desc {
  font-size: 1.1rem;
  max-width: 320px;
  line-height: 1.2;
  opacity: 0.85;
  color: #ffffff;
}

#section6 .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 50px 80px;
  height: 100%;
  align-items: start;
}

.contact-info {
  text-align: left;
}

.contact-info h2 {
  font-size: 5rem;
  letter-spacing: -3px;
  line-height: 0.85;
  margin-bottom: 40px;
  color: #000;
}

.contact-info p {
  margin: 0 0 40px 0;
  font-size: 1rem;
  color: #666;
  max-width: 400px;
}

.contact-details {
  list-style: none;
  padding: 0;
}

.contact-details li {
  margin-bottom: 30px;
}

.contact-details label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-details a, .contact-details span {
  font-size: 1.4rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-details a:hover {
  opacity: 0.5;
}

.contact-form {
  text-align: left;
}

.form-group {
  margin-bottom: 35px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000;
  margin-bottom: 12px;
  font-weight: 700;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd;
  font-size: 1.1rem;
  font-family: inherit;
  color: #000;
  outline: none;
  transition: border-color 0.4s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: #000;
}

.form-group textarea {
  height: 120px;
  resize: none;
}

.submit-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 20px 60px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px;
}

.submit-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: none;
}
.form-status.success { color: #2ecc71; display: block; }
.form-status.error { color: #e74c3c; display: block; }

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.footer-text { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #999; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { font-size: 0.7rem; text-decoration: none; color: #000; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; transition: color 0.3s ease; }
.footer-socials a:hover { color: #7a7a7a; }

/* ── 手機板排版設定 ── */
@media (max-width: 991px) {
  .main-logo { max-width: 280px; }
  h1 { font-size: 4rem; }
  h2 { font-size: 2rem; }
  
  #section6 { height: auto; display: block; overflow: visible; }
  #section6 .contact-grid { grid-template-columns: 1fr; gap: 60px; padding: 120px 30px 100px; }
  .contact-info h2 { font-size: 3.5rem; }
  .footer { padding: 30px; flex-direction: column; gap: 20px; position: static; }

  #section2 .content-wrapper { padding: 90px 20px 0px !important; display: flex; flex-direction: column; justify-content: flex-start; height: 100%; overflow: hidden; }
  
  #section2 .content-wrapper p,
  #section3 .content-wrapper p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #section4 { 
    height: auto; 
    min-height: 0; 
    overflow: visible !important; 
    scroll-snap-align: none; 
  }
  
  .slider-container {
    display: block; 
    overflow: visible !important; 
  }

  .slide { 
    display: flex;
    flex-direction: column; 
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start; 
    scroll-snap-stop: always;
  }

  .slide-text, .slide-image-container {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .slide-text {
    padding: 100px 30px 20px; 
    text-align: center;
  }

  .slide-text h3 {
    font-size: 2.5rem;
  }

  .slide-text p {
    margin: 0 auto;
    text-align: center;
  }

  .slide-image-container {
    height: 50vh;
    padding: 20px;
  }

  .status-bar-container { display: none; }

  .s5-boxes { flex-direction: column; height: auto; padding: 110px 30px 40px; }
  .s5-box { height: 75vh; }
}