@charset "UTF-8";

.chapter-zh-fly {
  font-family: Noto Serif SC, Noto Serif TC, serif;
  font-weight: 600;
  font-size: 43px;
  line-height: 1;
  color: white;
}

.section-mask {
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.6s ease-out;
}

.section-mask.dimmed {
  background-color: rgba(0, 0, 0, 0.4);
}

.start-mark-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.start-mark-container .start-mark-toggle button {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: 2px solid #00ff00;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-mark-container .start-mark-toggle button:hover {
  background: rgba(0, 255, 0, 0.2);
  border-color: #00ff00;
}

.start-mark-container .start-mark-toggle button.active {
  background: rgba(0, 255, 0, 0.3);
  border-color: #00ff00;
}

.start-mark-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

.start-mark-lines .start-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00ff00 0%, rgba(0, 255, 0, 0.8) 50%, rgba(0, 255, 0, 0.3) 100%);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.start-mark-lines .start-line::before {
  content: attr(data-label);
  position: absolute;
  right: 10px;
  top: -20px;
  background: rgba(0, 0, 0, 0.8);
  color: #00ff00;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-family: monospace;
  white-space: nowrap;
  border: 1px solid #00ff00;
}

.start-mark-lines .start-line::after {
  content: "";
  position: absolute;
  right: 5px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: #00ff00;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.member-benefit-img {
  width: 345px;
  height: 345px;
}

.member-benefits-container {
  gap: 43px;
}

.member-benefit-card .w-\[345px\].h-\[345px\] {
  margin-bottom: 35px;
}

.fixed-right-image {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.fixed-right-image.is-hidden {
  opacity: 0;
}

@media (max-width: 768px) {
  .fixed-right-image {
    bottom: 60px;
    right: 15px;
  }

  .fixed-right-image a img {
    width: 90px !important;
    height: 106px !important;
  }
}

.fixed-right-image:hover {
  transform: scale(1.05);
}

.fixed-right-image a {
  display: block;
  cursor: pointer;
}

.fixed-right-image a img {
  width: 119px;
  height: 141px;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 8px;
}

.index-storyWrap {
  background-color: #f9f3ef;
  padding: 145px 0;
}

.member-bg-section-3 {
  margin-top: 215px;
  height: 980px;
  background: url("../images/member-bg-5.png") center center/cover no-repeat;
}

/* .member-promotion-title {
  position: absolute;
  top: -225px;
  left: 270px;
  z-index: 20;
  white-space: nowrap;
} */

/* 跑馬燈動畫效果 - 無縫連續重複 */
.marquee-container {
  width: 100%;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.marquee-text {
  display: inline-block;
  animation: marquee-seamless 40s linear infinite;
  will-change: transform;
}

.marquee {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.75rem;
  will-change: transform;
}

.marquee>li {
  flex: 0 0 auto;
}

.overflow-hidden {
  overflow: hidden;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* 無縫連續跑馬燈動畫 */
@keyframes marquee-seamless {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* 新增滾動固定卡片效果樣式 */
.scroll-pin-section {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* .member-cards-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 450px;
  padding: 0 20px;
  margin-left: 500px;
} */

.member-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 575px;
  height: 280px;
}

.member-card h3 {
  font-size: 1.8rem;
  font-weight: bold;
  font-family: "Noto Serif CJK TC", serif;
}

.member-card .subtitle {
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: "Times New Roman", serif;
  text-transform: uppercase;
  margin-left: 25px;
}

.member-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.member-card .highlight {
  background: linear-gradient(45deg, #a47c4a, #cba671);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.member-card .benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-card .benefit-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.member-card .benefit-list li:before {
  content: "●";
  color: #a47c4a;
  position: absolute;
  left: 0;
  top: 0;
}

/* 禮品項目樣式 */
.gift-items {
  margin-top: 20px;
  margin-left: 25px;
}

.gift-items .gift-item {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid rgba(164, 124, 74, 0.2);
  gap: 50px;
}

.gift-items .gift-item:last-child {
  border-bottom: none;
  margin-top: 10px;
}

.gift-items .gift-item .amount {
  flex-shrink: 0;
  font-size: 2.2rem;
  font-weight: bold;
  color: #a47c4a;
}

.gift-items .gift-item .amount small {
  font-size: 1.2rem;
  font-weight: normal;
}

.gift-items .gift-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
  flex: 1;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.gift-items .gift-item p.second-gift {
  transform: translateY(-22px) translateX(-18px);
  /* 同時調整X和Y位置 */
}

/* 背景裝飾效果 */
.scroll-pin-section:before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(164, 124, 74, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 響應式調整 */
@media (max-width: 768px) {
  .member-cards-container {
    max-width: 90%;
    gap: 25px;
  }

  .member-card {
    padding: 25px 20px;
  }

  .member-card h3 {
    font-size: 1.4rem;
  }

  /* 手機版時改為垂直排列 */
  .scroll-pin-section .container>div:first-child {
    flex-direction: column !important;
    align-items: center !important;
  }

  .member-promotion-title {
    margin-right: 0 !important;
    margin-bottom: 40px;
  }
}

.service-external-link-icon .cls-1 {
  fill: none;
  stroke: #a47c4a;
  stroke-miterlimit: 10;
}

.service-external-link-icon line,
.service-external-link-icon polyline:last-of-type {
  transition: transform 0.3s ease;
  transform-origin: center;
}

a:hover .service-external-link-icon line,
a:focus-visible .service-external-link-icon line,
a:hover .service-external-link-icon polyline:last-of-type,
a:focus-visible .service-external-link-icon polyline:last-of-type {
  transform: translate(6px, -6px);
}

.service-submit-btn {
  font-family: "Crimson Text", serif;
  width: 96px;
  height: 60px;
  background-color: #fff;
  border: 2px solid #a47c4a;
  border-radius: 25px;
  color: #a47c4a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-submit-btn:hover,
.service-submit-btn:focus-visible {
  background-color: #a47c4a;
  color: #fff;
}

.social-media-icon .cls-1 {
  fill: #cba671;
}

.social-media-icon:hover {
  transform: scale(1.1);
}

.social-media-icon:hover .cls-1 {
  fill: #a47c4a;
}

.form-required-icon .cls-1 {
  fill: #a47c4a;
}

#first-gift-hero,
#richflavor-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7e8d9 0%, #f7e8d9 60%, rgba(247, 232, 217, 0) 100%);
}

.fg-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.fg-sticky>img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transform: scale(var(--heroScale));
  transform-origin: center;
  will-change: transform;
}

.fg-mask {
  position: absolute;
  inset: 0;
}

.fg-mask-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center top;
  animation: fg-curtain-breeze 6.5s ease-in-out infinite;
  will-change: transform;
}

.fg-mask-img-mb {
  display: none;
  width: 100%;
  height: auto;
  max-height: 450px;
  transform-origin: center top;
  animation: fg-curtain-breeze 7.2s ease-in-out infinite;
  will-change: transform;
}

@keyframes fg-curtain-breeze {
  0% {
    transform: translate3d(-0.35%, 0.1%, 0) scaleY(1);
  }

  45% {
    transform: translate3d(0.45%, -0.6%, 0) scaleY(1.012);
  }

  70% {
    transform: translate3d(-0.55%, 0.4%, 0) scaleY(0.996);
  }

  100% {
    transform: translate3d(-0.35%, 0.1%, 0) scaleY(1);
  }
}

@media (max-width: 768px) {
  .fg-mask-img {
    display: none;
  }

  .fg-mask-img-mb {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {

  .fg-mask-img,
  .fg-mask-img-mb {
    animation: none !important;
  }
}

@media (max-width: 667px) {
  .pin-spacer {
    margin-top: 0px !important;
  }
}

#first-gift-hero,
#richflavor-hero {
  --waveTranslateY: 0%;
  --waveScale: 1;
  --heroScale: 1;
}

.fg-mask {
  transform: translateY(var(--waveTranslateY)) scale(var(--waveScale));
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

@media (max-width: 640px) {
  .fg-mask {
    transform-origin: center top;
  }
}

#checkbox {
  margin-right: 15px;
  transition: background-color 0.3s ease;
  border-radius: 7px;
}

#checkbox .cls-1 {
  fill: none;
  stroke: #9b7336;
  stroke-miterlimit: 10;
}

#checkbox .checkmark {
  transition: opacity 0.3s ease;
}

#checkbox:hover {
  background-color: rgba(203, 166, 113, 0.1);
}

.privacy-paragraph {
  font-family: "Noto Sans CJK TC", sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #666666;
  letter-spacing: 1px;
  line-height: 1.8;
}

.section-24-solar-terms {
  background-image: url("../images/24_solar_terms-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 360px;
  padding-top: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-24-solar-terms .title-box {
  display: flex;
  align-items: center;
}

.section-24-solar-terms .title-box .m-h2-ch {
  margin-left: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

.section-24-solar-terms .title-box .m-h2-en {
  margin-top: -0.375rem;
  font-size: 43px;
}

.sticky-layout-section {
  height: 100vh;
  overflow: visible;
}

.sticky-container {
  display: flex;
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  transform: translateY(-60px);
}

.sticky-left {
  position: sticky;
  top: 0;
  width: 280px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sticky-left .sticky-content h3 {
  color: #a47c4a;
  font-family: "Noto Serif CJK TC", serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid #cba671;
  padding-bottom: 10px;
}

.sticky-left .sticky-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.sticky-left .sticky-content .svg-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 435px;
}

.sticky-left .sticky-content .svg-container svg {
  width: 126.26px;
  height: 52.15px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sticky-left .sticky-content .svg-container svg .cls-1 {
  fill: #fff;
  stroke: #a47c4a;
  stroke-miterlimit: 10;
  stroke-width: 0.75px;
  transition: all 0.3s ease;
}

.sticky-left .sticky-content .svg-container svg .cls-text {
  fill: #9b7336;
  font-family: "SourceHanSerifTC-SemiBold", "Source Han Serif TC", serif;
  font-weight: 600;
  font-size: 23px;
  transition: all 0.3s ease;
}

.sticky-left .sticky-content .svg-container svg .cls-text-zh {
  opacity: 1;
  font-family: "SourceHanSerifTC-SemiBold", "Source Han Serif TC", serif;
  font-weight: 600;
  font-size: 23px;
  transition: opacity 0.3s ease;
}

.sticky-left .sticky-content .svg-container svg .cls-text-en {
  opacity: 0;
  font-family: "Crimson Text", serif;
  font-weight: 400;
  font-size: 12px;
  transition: opacity 0.3s ease;
}

.sticky-left .sticky-content .svg-container svg:hover,
.sticky-left .sticky-content .svg-container svg.triggered-hover {
  transform: scale(1.5);
}

.sticky-left .sticky-content .svg-container svg:hover .cls-1,
.sticky-left .sticky-content .svg-container svg.triggered-hover .cls-1 {
  fill: #a47c4a;
  stroke: #a47c4a;
}

.sticky-left .sticky-content .svg-container svg:hover .cls-text,
.sticky-left .sticky-content .svg-container svg.triggered-hover .cls-text {
  fill: #fff;
}

.sticky-left .sticky-content .svg-container svg:hover .cls-text-zh,
.sticky-left .sticky-content .svg-container svg.triggered-hover .cls-text-zh {
  opacity: 1;
}

.sticky-left .sticky-content .svg-container svg:hover .cls-text-en,
.sticky-left .sticky-content .svg-container svg.triggered-hover .cls-text-en {
  opacity: 1;
  fill: #ddb47f;
}

.sticky-right {
  position: sticky;
  top: 0;
  width: 280px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sticky-right .sticky-content {
  position: relative;
  overflow: visible;
}

.sticky-right .sticky-content h3 {
  color: #a47c4a;
  font-family: "Noto Serif CJK TC", serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid #cba671;
  padding-bottom: 10px;
}

.sticky-right .sticky-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.sticky-right .sticky-cta {
  position: absolute;
  left: 50%;
  z-index: 210;
}

.sticky-right .podcast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  border: 2px solid #9b7336;
  color: #9b7336;
  background: white;
  border-radius: 999px;
  font-family: "Crimson Text", serif;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0) inset;
}

.sticky-right .podcast-btn:hover {
  background: #9b7336;
  color: white;
  box-shadow: 0 0 0 2px rgba(155, 115, 54, 0.12) inset;
}

#right-photo-1 {
  width: 491px;
  height: 643px;
}

#right-photo-2 {
  width: 651px;
  height: 475px;
}

.center-content {
  flex: 1;
  z-index: 1;
  width: 825px;
  max-width: 825px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  padding-bottom: 350px;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.center-content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.center-content::-webkit-scrollbar-track {
  background: transparent;
}

.center-content::-webkit-scrollbar-thumb {
  background: transparent;
}

.center-content .content-wrapper {
  background: white;
  margin: 20px 0;
}

.center-content .content-wrapper h2 {
  color: #a47c4a;
  font-family: "Noto Serif CJK TC", serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.center-content .content-wrapper h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #a47c4a, #cba671);
  border-radius: 2px;
}

.center-content .content-wrapper>p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: center;
}

.center-content .content-wrapper .content-block {
  padding-bottom: 50px;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.center-content .content-wrapper .content-block:last-child {
  margin-bottom: 0;
}

.center-content .content-wrapper .content-block h3 {
  color: #a47c4a;
  font-family: "Noto Serif CJK TC", serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.center-content .content-wrapper .content-block p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.center-content .content-wrapper .season-block {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.center-content .content-wrapper .season-block img {
  display: block;
  width: 825px;
  max-width: 100%;
  height: auto;
  margin: 0 0 50px 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (max-width: 1200px) {
  .sticky-container {
    flex-direction: column;
    max-width: 90%;
    gap: 30px;
  }

  .sticky-left,
  .sticky-right {
    position: static;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .center-content {
    width: 100%;
    max-width: 100%;
  }

  .center-content .content-wrapper {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .sticky-layout-section {
    padding: 40px 0;
  }

  .sticky-left .sticky-content,
  .sticky-right .sticky-content {
    padding: 20px;
  }

  .sticky-left .sticky-content h3,
  .sticky-right .sticky-content h3 {
    font-size: 1.1rem;
  }

  .sticky-left .sticky-content p,
  .sticky-right .sticky-content p {
    font-size: 0.9rem;
  }

  .center-content .content-wrapper {
    padding: 25px;
  }

  .center-content .content-wrapper h2 {
    font-size: 1.6rem;
  }

  .center-content .content-wrapper .content-block {
    padding: 20px;
  }

  .center-content .content-wrapper .content-block h3 {
    font-size: 1.2rem;
  }

  .center-content .content-wrapper .content-block p {
    font-size: 0.95rem;
  }
}

.summer-description {
  font-family: "Noto Sans CJK TC", sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: #666666;
  line-height: 1.8;
  letter-spacing: 0.5px;
  margin-bottom: 360px;
  margin-left: 50px;
}

.simple-photo {
  z-index: 100;
  transition: all 1.2s ease, opacity 1.2s ease;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.simple-photo.fade-out {
  opacity: 0 !important;
  transition: opacity 0.8s ease !important;
}

.simple-photo.fade-in {
  opacity: 1 !important;
  transition: opacity 1.2s ease !important;
}

body.season-spring #left-photo-1 {
  background-image: url("../images/24_solar_terms-spring.png");
  width: 214px;
  height: 214px;
  z-index: 9999 !important;
}

body.season-spring #left-photo-2 {
  background-image: url("../images/24_solar_terms-left.png");
  width: 450px;
  height: 650px;
  top: -10px !important;
  left: -420px !important;
}

body.season-spring #right-photo-1 {
  background-image: url("../images/24_solar_terms-right-top.png");
  top: -100% !important;
  right: -600px !important;
}

body.season-spring #right-photo-2 {
  background-image: url("../images/24_solar_terms-right-down.png");
  top: 60px !important;
  right: -480px !important;
}

body.season-summer #left-photo-1 {
  background-image: url("../images/24_solar_terms-summer.png");
  width: 214px;
  height: 214px;
  z-index: 9999 !important;
}

body.season-summer #left-photo-2 {
  background-image: url("../images/24_solar_terms-left-summer.png");
  width: 450px;
  height: 650px;
  top: 270px !important;
  left: -425px !important;
}

body.season-summer #right-photo-1 {
  background-image: url("../images/24_solar_terms-right-top-summer.png");
  top: -85% !important;
  right: -645px !important;
}

body.season-summer #right-photo-2 {
  background-image: url("../images/24_solar_terms-right-down-summer.png");
  top: 85px !important;
  right: -435px !important;
}

body.season-autumn #left-photo-1 {
  background-image: url("../images/24_solar_terms-autumn.png");
  width: 214px;
  height: 214px;
  z-index: 9999 !important;
}

body.season-autumn #left-photo-2 {
  background-image: url("../images/24_solar_terms-left-autumn.png");
  width: 450px;
  height: 650px;
  top: 35px !important;
  left: -440px !important;
}

body.season-autumn #right-photo-1 {
  background-image: url("../images/24_solar_terms-right-top-autumn.png");
  top: -580px !important;
  right: -565px !important;
}

body.season-autumn #right-photo-2 {
  background-image: url("../images/24_solar_terms-right-down-autumn.png");
  top: 170px !important;
  right: -365px !important;
}

body.season-winter #left-photo-1 {
  background-image: url("../images/24_solar_terms-winter.png");
  width: 214px;
  height: 214px;
  z-index: 9999 !important;
}

body.season-winter #left-photo-2 {
  background-image: url("../images/24_solar_terms-left-winter.png");
  width: 450px;
  height: 650px;
  top: 125px !important;
  left: -380px !important;
}

body.season-winter #right-photo-1 {
  background-image: url("../images/24_solar_terms-right-top-winter.png");
  top: -565px !important;
  right: -480px !important;
}

body.season-winter #right-photo-2 {
  background-image: url("../images/24_solar_terms-right-down-winter.png");
  top: 85px !important;
  right: -290px !important;
}

.solar-terms-timeline {
  position: fixed;
  right: -180px;
  top: 29%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 200;
}

.solar-terms-timeline .timeline-start,
.solar-terms-timeline .timeline-end {
  font-family: "Crimson Text", serif;
  font-size: 24px;
  font-weight: 700;
  color: #9b7336;
  letter-spacing: 2px;
}

.solar-terms-timeline .timeline-line {
  position: relative;
  width: 3px;
  height: 225px;
  background: #c1b9a7;
  margin: 20px 0;
  border-radius: 2px;
}

.solar-terms-timeline .timeline-line .timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-image: url("../images/24_solar_terms-dot.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: none;
}

@keyframes timeline-pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@media (max-width: 1200px) {
  .solar-terms-timeline {
    right: 30px;
  }

  .solar-terms-timeline .timeline-start,
  .solar-terms-timeline .timeline-end {
    font-size: 28px;
  }

  .solar-terms-timeline .timeline-line {
    height: 300px;
    margin: 15px 0;
  }
}

@media (max-width: 768px) {
  .solar-terms-timeline {
    right: 20px;
  }

  .solar-terms-timeline .timeline-start,
  .solar-terms-timeline .timeline-end {
    font-size: 24px;
  }

  .solar-terms-timeline .timeline-line {
    height: 200px;
    margin: 10px 0;
    width: 2px;
  }

  .solar-terms-timeline .timeline-line .timeline-dot {
    width: 12px;
    height: 12px;
  }
}

.stack-cards_item img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.stack-cards_item:nth-child(1) img,
.stack-cards_item:nth-child(1) .lazy_list-inner {
  height: 100%;
}

.stack-cards_item:nth-child(2) img,
.stack-cards_item:nth-child(2) .lazy_list-inner {
  height: 820px;
}

.stack-cards_item:nth-child(3) img,
.stack-cards_item:nth-child(3) .lazy_list-inner {
  height: 730px;
}

.stack-cards_item:nth-child(4) img,
.stack-cards_item:nth-child(4) .lazy_list-inner {
  height: 640px;
}

@media (min-width: 1921px) and (max-width: 2560px) {

  .stack-cards_item:nth-child(1) img,
  .stack-cards_item:nth-child(1) .lazy_list-inner {
    height: 100%;
  }

  .stack-cards_item:nth-child(2) img,
  .stack-cards_item:nth-child(2) .lazy_list-inner {
    height: calc(820px + 10vh);
  }

  .stack-cards_item:nth-child(3) img,
  .stack-cards_item:nth-child(3) .lazy_list-inner {
    height: calc(730px + 10vh);
  }

  .stack-cards_item:nth-child(4) img,
  .stack-cards_item:nth-child(4) .lazy_list-inner {
    height: calc(640px + 10vh);
  }
}

.lazy_list-inner {
  position: absolute;
  top: 0;
  /* 貼齊圖片底部 */
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0px;
  color: #fff;
}

.lazy_list-tittle {
  font-family: "Source Han Serif", "思源宋體", serif;
  font-size: 33px;
  font-weight: 700;
  transition: font-size 0.5s ease;
}

.lazy_list-subtittle {
  font-family: "Crimson Text", serif;
  font-size: 23px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  transition: font-size 0.5s ease, opacity 0.5s ease;
}

.lazy_list-detail {
  font-family: "Noto Sans TC", serif;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.lazy_list-info {
  position: absolute;
  bottom: 14%;
  left: 125px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, top 0.5s ease, bottom 0.5s ease, left 0.5s ease;
}

.u-en {
  font-family: "Heebo", sans-serif;
  font-size: 80px;
  transition: font-size 0.5s ease, top 0.5s ease, left 0.5s ease, opacity 0.5s ease;
}

.list-cover,
.list-num {
  display: flex;
  align-items: center;
  /* 垂直置中數字與文字 */
  gap: 4px;
  /* 文字和數字之間的間距 */
  margin-left: 90px;
}

.vertical-text {
  display: inline-block;
  font-family: "Crimson Text", serif;
  transform: rotate(90deg);
  transform-origin: left top;
  font-size: 18px;
  color: #fff;
  margin-bottom: 40px;
  margin-left: 23px;
  transition: opacity 0.5s ease;
}

/* 讓卡片固定在頂部 */
.stack-cards {
  list-style: none;
  --stack-cards-gap: 90px;
  /* 增加卡片間距，露出更多 */
}

.stack-cards_item {
  position: sticky;
  top: 0px;
  height: 100lvh;
}

.stack-cards_item.is-fold .lazy_list-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 60px 20px 90px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
  transition: background 0.5s ease;
}

.stack-cards_item.is-fold .list-num {
  margin-left: 0;
  margin-right: 50px;
  flex-shrink: 0;
}

.stack-cards_item.is-fold .u-en {
  position: absolute;
  font-size: 56px;
  line-height: 1;
  top: 20px;
  left: 110px;
}

.stack-cards_item.is-fold .vertical-text {
  display: none;
}

.stack-cards_item.is-fold .lazy_list-info {
  opacity: 1;
  transform: none;
  position: absolute;
  flex-direction: row;
  align-items: baseline;
  gap: 30px;
  top: 20px;
  left: 190px;
}

.stack-cards_item.is-fold .lazy_list-tittle {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  transition: font-size 0.5s ease;
}

.stack-cards_item.is-fold .lazy_list-subtittle {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
  letter-spacing: 0.1em;
  transition: font-size 0.5s ease, opacity 0.5s ease;
}

.stack-cards_item.is-fold .lazy_list-detail {
  display: none;
}

.homeServices_right_bg_00 {
  background-image: url("../images/recruit-img.png");
  background-size: cover;
  background-position: center;
  width: 1088px;
  height: 670px;
}

.benefits-right-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 1080px;
}

.benefits-left-wrap {
  width: calc(100% - 1080px);
  min-width: 460px;
  margin-right: 260px;
}

.benefits-interactive {
  position: relative;
  width: 1080px;
  height: 690px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin-left: auto;
}

.benefits-interactive .benefits-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.benefits-interactive .benefits-segment {
  cursor: pointer;
  transition: background-color 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits-interactive .benefits-segment:hover,
.benefits-interactive .benefits-segment.is-active {
  background-color: rgba(0, 0, 0, 0.06);
}

.benefits-label {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.benefits-label-zh {
  font-family: "Source Han Serif TC", serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.benefits-label-en {
  font-family: "Crimson Text", serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
}

.benefits-pagination {
  position: relative !important;
  display: flex;
  justify-content: center;
  gap: 12px;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
}

#benefits-prev:hover,
#benefits-next:hover {
  transform: scale(1.1);
}

#benefits-next {
  transform: rotateY(180deg);
}

#benefits-next:hover {
  transform: rotateY(180deg) scale(1.1);
}

.benefits-left-panel {
  position: relative;
  text-align: center;
  --benefits-body-max: 560px;
}

.benefits-left-panel .benefits-copy {
  display: none;
}

.benefits-left-panel .benefits-copy.is-active {
  display: block;
  animation: benefits-fade-in 0.35s ease;
}

.benefits-subtitle {
  font-family: "Source Han Serif TC", serif;
  font-weight: 600;
  font-size: 21px;
  color: #957f6c;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.benefits-hr {
  width: 300px;
  height: 1px;
  background: #cba671;
  opacity: 0.6;
  margin: 12px auto 18px;
}

.benefits-body {
  font-family: "Noto Sans CJK TC", sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #666666;
  text-align: justify;
  border-block: 1px solid #cba671;
  padding: 12px 0;
  letter-spacing: 3px;
  line-height: 2;
  width: 80%;
  /* 固定線條長度 */
  margin: 0 auto;
  /* 讓它在區塊中置中 */
  box-sizing: border-box;
  display: block;
}

.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  position: relative;
  font-family: "Noto Sans CJK TC", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #666666;
  letter-spacing: 1px;
  padding-left: 16px;
}

.benefits-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #957f6c;
  line-height: 1;
}

.sticky-showcase {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: clip;
}

.sticky-showcase .sticky-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  background: url("../images/recurit-9.jpg") center/cover no-repeat fixed;
}

.sticky-showcase .sticky-panel {
  position: absolute;
  left: 50%;
  width: 1015px;
  height: 1488px;
  transform: translateX(-50%) translateY(60vh);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-panel-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.sticky-panel-image {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
  object-fit: contain;
}

.sticky-floating-top {
  position: absolute;
  top: -3%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  pointer-events: auto;
}

.sticky-panel-title {
  font-family: "Source Han Serif TC", serif;
  font-weight: 600;
  font-size: 28px;
  color: #957f6c;
  letter-spacing: 2px;
}

.sticky-panel-text {
  font-family: "Noto Sans CJK TC", sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #666;
  text-align: center;
  line-height: 1.8;
  max-width: 720px;
}

.sticky-panel-desc {
  font-family: "Noto Sans CJK TC", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #666666;
  letter-spacing: 2px;
  line-height: 2.2;
  max-width: 760px;
  text-align: left;
  margin: 0 auto 14px;
}

/* 說明文字下方 70px 的 2x2 圖片區塊 */
.sticky-panel-gallery {
  position: absolute;
  top: 25%;
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(2, 365px);
  grid-auto-rows: 240px;
  -moz-column-gap: 18px;
  column-gap: 18px;
  /* 左右各 9px => 欄間距 18px */
  row-gap: 85px;
  /* 上下 85px */
}

.sticky-panel-gallery .gallery-item {
  width: 365px;
  height: auto;
}

.sticky-panel-gallery .gallery-img {
  width: 365px;
  height: 240px;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.gallery-caption-zh {
  margin-top: 14px;
  font-family: "Noto Sans CJK TC", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #4d4d4d;
  letter-spacing: 1.2px;
}

.gallery-caption-en {
  margin-top: 4px;
  font-family: "Crimson Text", serif;
  font-weight: 500;
  font-size: 13px;
  color: #adadad;
  letter-spacing: 1px;
}

.sticky-panel-footer {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
}

/* 9 張相片 3x3 圖庫：417x278，左右 35px，上下 100px */
.rich-gallery {
  display: grid;
  grid-template-columns: repeat(3, 417px);
  grid-auto-rows: minmax(278px, auto);
  -moz-column-gap: 35px;
  column-gap: 35px;
  /* 左右間距 */
  row-gap: 100px;
  /* 上下間距 */
  margin-bottom: 150px;
}

.rich-gallery-item {
  width: 417px;
}

.rich-gallery-img {
  width: 417px;
  height: 278px;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.rich-caption-zh {
  margin-top: 14px;
  font-family: "Noto Sans CJK TC", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #4d4d4d;
  letter-spacing: 1px;
}

.rich-caption-en {
  margin-top: 6px;
  font-family: "Crimson Text", serif;
  font-size: 11px;
  font-weight: 600;
  color: #9b7336;
  letter-spacing: 1px;
}

@keyframes benefits-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1400px) {
  .benefits-right-wrap {
    width: 55%;
  }

  .benefits-interactive {
    width: 880px;
    height: 562px;
  }
}

@media (max-width: 1200px) {
  .benefits-right-wrap {
    width: 100%;
    margin-top: 30px;
  }

  .benefits-interactive {
    width: 720px;
    height: 460px;
  }
}

@media (max-width: 992px) {
  .benefits-interactive {
    width: 100%;
    max-width: 680px;
    height: 434.452px;
  }
}

@media (max-width: 768px) {
  .benefits-interactive {
    max-width: 100%;
    height: 48vw;
    min-height: 240px;
  }

  .benefits-label-zh {
    font-size: 18px;
  }

  .benefits-label-en {
    font-size: 12px;
  }
}

.corporate-image-wrapper {
  width: 1500px;
  height: 700px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.corporate-image-wrapper img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.fly-card {
  position: relative;
  display: block;
  border-radius: 16px;
  outline: 1px solid transparent;
  outline-offset: 8px;
  transition: outline-color 0.3s ease;
}

.fly-card .fly-bg {
  transition: background-color 0.3s ease;
}

.fly-card .fly-border {
  transition: border-color 0.3s ease;
}

.fly-card:hover {
  outline: 1px solid #9b7336;
}

.fly-card:hover .fly-bg {
  background-color: #ffffff !important;
}

.fly-card:hover .fly-border {
  border-color: #9b7336 !important;
}

.fly-card-active {
  outline: 1px solid #9b7336 !important;
}

.fly-card-active .fly-bg {
  background-color: #ffffff !important;
}

.fly-card-active .fly-border {
  border-color: #9b7336 !important;
}

.corporate-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  opacity: 0;
}

.corporate-mask[data-aos=fade].aos-animate {
  opacity: 1;
}

.corporate-content {
  position: absolute;
  top: 40%;
  left: 35%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  color: white;
  letter-spacing: 2px;
}

.corporate-title {
  font-family: "Noto Sans CJK TC", sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 60px;
  color: white;
  margin-bottom: 0;
  letter-spacing: 2px;
}

.corporate-desc {
  font-family: "Noto Sans CJK TC", sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: white;
  margin-bottom: 40px;
  line-height: 13px;
  letter-spacing: 0;
}

.fg-steps-connector::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #957f6c;
  z-index: 1;
  pointer-events: none;
  will-change: width;
  animation: fgLineFill 10s ease-in-out 0.5s infinite;
}

@keyframes fgLineFill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.corporate-btn {
  background: transparent;
  background: #9b7336;
  padding: 15px 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 35px;
}

.corporate-btn span {
  font-family: "Noto Sans CJK TC", serif;
  font-size: 18px;
  font-weight: 500;
  color: white;
  letter-spacing: 2px;
}

.corporate-btn:hover {
  background: #ffffff;
}

.corporate-btn:hover span {
  color: #a47c4a !important;
}

#wedding-hero-pin {
  overflow: visible;
  margin-bottom: 40vh;
}

#wedding-hero {
  will-change: transform;
  backface-visibility: hidden;
}

.scroll-fade {
  transition: all 0.8s ease-out;
}

.scroll-fade.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.scroll-container {
  height: auto;
  overflow: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* optional: 自訂右側卷軸樣式 */
.scroll-container::-webkit-scrollbar {
  width: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #d6c2a6;
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.fly-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); */
}

.fly-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

/* 遮罩容器 */
.fly-mask {
  position: absolute;
  top: 455px;
  left: 0;
  width: 101%;
  height: 100%;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 左右半圓 */
.fly-mask-left,
.fly-mask-right {
  position: absolute;
  width: 100%;
  height: 200%;
  /* top: 1px; */
  background: #9b7336;
  border-radius: 50%;
}

.fly-mask-left {
  left: 0;
  clip-path: inset(0 50% 50% 0);
  transform: rotateZ(0deg);
}

.fly-mask-right {
  right: 0;
  clip-path: inset(0 0 50% 50%);
  transform: rotateZ(0deg);
}

.expdetail-hero {
  position: relative;
  width: 100%;
  background: #000;
}

.expdetail-hero .hero-inner {
  position: relative;
}

.expdetail-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  filter: brightness(0.92);
  opacity: 1;
  animation: heroFadeIn 1.6s ease-out forwards 0s;
}

.expdetail-hero .hero-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: maskFadeIn 3.6s ease-out forwards 0.8s;
  width: 100%;
  height: 100%;
}

.expdetail-hero .hero-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
  opacity: 0;
  animation: titleRise 3.6s ease-out forwards 0.8s;
  letter-spacing: 0;
}

.expdetail-hero .hero-fly {
  opacity: 0;
  animation: heroFlyFadeIn 5.6s ease-out forwards 3.7s;
}

.expdetail-fullbleed .m-h2-ch {
  color: #ffffff;
}

.expdetail-fullbleed .m-h2-en {
  color: #9b7336;
}

.expdetail-hero .hero-title-zh {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "Noto Serif TC", serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: 0;
}

.expdetail-hero .hero-title-en {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Crimson Text", serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
}

/* Hover-expand card row: hovered card grows, siblings shrink */
.exp-cards {
  display: flex;
  gap: 2rem;
}

.exp-cards .exp-card {
  width: 379px;
  transition: width 1000ms ease;
}

.exp-cards:hover .exp-card {
  width: 340px;
}

.exp-cards .exp-card:hover {
  width: 692px;
}

/* Also expand when hovering the outer group (e.g., title row) */
.group:hover .exp-cards .exp-card {
  width: 692px;
}

@media (max-width: 768px) {
  .exp-cards {
    display: block;
  }

  .exp-cards .exp-card,
  .exp-cards:hover .exp-card,
  .exp-cards .exp-card:hover,
  .group:hover .exp-cards .exp-card {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .expdetail-hero .hero-title-zh {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .expdetail-hero .hero-title-zh {
    font-size: 40px;
    letter-spacing: 4px;
  }

  .expdetail-hero .hero-title-en {
    font-size: 14px;
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes maskFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translate(-50%, -46%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes heroFlyFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rws-space {
  display: none;
}

@media (max-width: 768px) {
  .expdetail-hero .hero-inner {
    height: 64vh;
  }

  .rws-space {
    display: block;
    height: 120px;
  }
}

/* 桌面版：給卡片容器和標題區域固定高度，防止 hover 時 footer 跳動 */
@media (min-width: 1200px) {

  #exp-card-wrapper-1,
  #exp-card-wrapper-2,
  #exp-card-wrapper-3,
  #exp-card-wrapper-4 {
    height: 515px;
  }

  /* 標題區域固定高度 */
  #exp-card-wrapper-1>div:last-child,
  #exp-card-wrapper-2>div:last-child,
  #exp-card-wrapper-3>div:last-child,
  #exp-card-wrapper-4>div:last-child {
    height: 86px;
  }

  /* 當其他卡片展開時，隱藏當前卡片下方的圖標和標題 */
  #exp-card-wrapper-1.dimmed>div:last-child,
  #exp-card-wrapper-2.dimmed>div:last-child,
  #exp-card-wrapper-3.dimmed>div:last-child,
  #exp-card-wrapper-4.dimmed>div:last-child {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease-out;
  }
}

/* 手機板：預約卡片展開效果 */
@media (max-width: 600px) {
  .exp-cards {
    width: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
  }

  #exp-reserve-card-1,
  #exp-reserve-card-2,
  #exp-reserve-card-3,
  #exp-reserve-card-4 {
    width: 254px;
    margin: 0 auto;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }

  #exp-reserve-card-1.expanded,
  #exp-reserve-card-2.expanded,
  #exp-reserve-card-3.expanded,
  #exp-reserve-card-4.expanded {
    width: 95vw !important;
    border-radius: 15px !important;
    /* 從中心向兩側展開：計算需要向左右各擴展多少 */
    margin-left: calc((254px - 100vw) / 2) !important;
    margin-right: calc((254px - 100vw) / 2) !important;
  }

  #exp-reserve-card-1 img,
  #exp-reserve-card-2 img,
  #exp-reserve-card-3 img,
  #exp-reserve-card-4 img {
    width: 100%;
    height: 254px;
    -o-object-fit: cover;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* 預設隱藏文字和按鈕 */
  #exp-reserve-content-1,
  #exp-reserve-content-2,
  #exp-reserve-content-3,
  #exp-reserve-content-4 {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    pointer-events: none;
  }

  /* 照片展開時顯示文字和按鈕 */
  #exp-reserve-content-1.show,
  #exp-reserve-content-2.show,
  #exp-reserve-content-3.show,
  #exp-reserve-content-4.show {
    max-height: 500px;
    /* 足夠大的高度以容納內容 */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* 第一張圖片下方的描述文字 */
  #exp-diy-description {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    pointer-events: none;
  }

  /* 當圖片展開時顯示描述文字 */
  #exp-diy-description.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ================================================
   三張圖片展開效果 (experience_detail_kao.php)
   ================================================ */
/* 桌面版：三張並排圖片 hover 展開效果 */
@media (min-width: 1200px) {

  /* 第一張圖片 hover 時展開 */
  #image-card-1:hover {
    width: 60% !important;
  }

  /* 如果只有兩張圖片（台南館），第一張展開得更大 */
  .desktop\:flex:not(:has(#image-card-3)) #image-card-1:hover {
    width: 75% !important;
  }

  .desktop\:flex:not(:has(#image-card-3)):has(#image-card-1:hover) #image-card-2 {
    width: 25% !important;
  }

  /* 第一張圖片 hover 時，其他兩張縮小 */
  #image-card-1:hover~#image-card-2,
  #image-card-1:hover~#image-card-3 {
    width: 20% !important;
  }

  /* 其他兩張圖片顯示白色遮罩 */
  #image-card-1:hover~#image-card-2 .overlay,
  #image-card-1:hover~#image-card-3 .overlay {
    background-color: rgba(255, 255, 255, 0.6);
  }

  /* 其他兩張圖片隱藏標題 */
  #image-card-1:hover~#image-card-2 .card-title,
  #image-card-1:hover~#image-card-3 .card-title {
    opacity: 0;
  }

  /* 其他兩張圖片顯示右下角 icon */
  #image-card-1:hover~#image-card-2 .card-icon,
  #image-card-1:hover~#image-card-3 .card-icon {
    opacity: 1;
  }

  /* 第二張圖片 hover 時展開 */
  #image-card-2:hover {
    width: 60% !important;
  }

  /* 如果只有兩張圖片（台南館），第二張展開得更大 */
  .desktop\:flex:not(:has(#image-card-3)) #image-card-2:hover {
    width: 75% !important;
  }

  .desktop\:flex:not(:has(#image-card-3)):has(#image-card-2:hover) #image-card-1 {
    width: 25% !important;
  }

  /* 第二張圖片 hover 時，第一張縮小（使用 + 選擇器無效，需要 JavaScript 或改用其他方式） */
  /* 改用 has 選擇器或在容器層級處理 */
  #image-card-2:hover~#image-card-3 {
    width: 20% !important;
  }

  /* 當第二張 hover 時，第三張顯示白色遮罩 */
  #image-card-2:hover~#image-card-3 .overlay {
    background-color: rgba(255, 255, 255, 0.6);
  }

  /* 當第二張 hover 時，第三張隱藏標題 */
  #image-card-2:hover~#image-card-3 .card-title {
    opacity: 0;
  }

  /* 當第二張 hover 時，第三張顯示右下角 icon */
  #image-card-2:hover~#image-card-3 .card-icon {
    opacity: 1;
  }

  /* 第三張圖片 hover 時展開 */
  #image-card-3:hover {
    width: 60% !important;
  }

  /* 使用容器的 :has 選擇器來處理前面兄弟元素的樣式 */
  .desktop\:flex:has(#image-card-2:hover) #image-card-1,
  .desktop\:flex:has(#image-card-3:hover) #image-card-1,
  .desktop\:flex:has(#image-card-3:hover) #image-card-2 {
    width: 20% !important;
  }

  .desktop\:flex:has(#image-card-2:hover) #image-card-1 .overlay,
  .desktop\:flex:has(#image-card-3:hover) #image-card-1 .overlay,
  .desktop\:flex:has(#image-card-3:hover) #image-card-2 .overlay {
    background-color: rgba(255, 255, 255, 0.6);
  }

  /* 使用 :has 選擇器處理前面兄弟元素的標題隱藏 */
  .desktop\:flex:has(#image-card-2:hover) #image-card-1 .card-title,
  .desktop\:flex:has(#image-card-3:hover) #image-card-1 .card-title,
  .desktop\:flex:has(#image-card-3:hover) #image-card-2 .card-title {
    opacity: 0;
  }

  /* 使用 :has 選擇器處理前面兄弟元素的右下角 icon 顯示 */
  .desktop\:flex:has(#image-card-2:hover) #image-card-1 .card-icon,
  .desktop\:flex:has(#image-card-3:hover) #image-card-1 .card-icon,
  .desktop\:flex:has(#image-card-3:hover) #image-card-2 .card-icon {
    opacity: 1;
  }
}

/* 手機版：三張大圖展開效果（與 experience_detail.php 完全相同） */
@media (max-width: 600px) {

  /* 手機版描述文字預設隱藏 */
  #mobile-desc-1,
  #mobile-desc-2,
  #mobile-desc-3 {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    pointer-events: none;
  }

  /* 展開時顯示描述文字 */
  #mobile-desc-1.show,
  #mobile-desc-2.show,
  #mobile-desc-3.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* 分類按鈕 active 狀態 */
.cataBox-fly ul li.active {
  background-color: #9b7336;
  color: white;
}

.cataBox-fly ul li:not(.active) {
  background-color: white;
  color: #9b7336;
}

.cataBox-fly ul li:not(.active):hover {
  background-color: #9b7336;
  color: white;
}

.cataBox ul li.active img:first-of-type {
  opacity: 0;
}

.cataBox ul li.active img:last-of-type {
  opacity: 1;
  --tw-scale-x: 1.05;
}

.cataBox ul li.active .normal-25 {
  font-family: "Source Han Serif TC", serif;
  color: #fff;
  letter-spacing: 0.2em;
}

.cataBox ul li.active .normal-25 .text-\[\#DDB47F\] {
  display: inline-block;
}

.cataBox li:hover .normal-25 {
  font-family: "Source Han Serif TC", serif;
  color: #fff;
  letter-spacing: 0.2em;
}

/*# sourceMappingURL=fly.css.map */