/* css/zltx.css */

/* Keep page-shell 100% viewport height and hide native scrolling on desktop */
html, body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.page-shell {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.site-header {
}

/* Main content: height set by JS based on header height */
.zltx-main {
  position: relative;
  overflow: hidden;
}

/* Footer is shown as the 5th slide on PC; hide only the standalone footer outside the slider */
.page-shell > .site-footer {
  display: none;
}

/* Breadcrumb static overlay */
.your-position-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

.your-position-wrapper .your-position {
  pointer-events: auto;
  padding-top: clamp(20px, calc(40 / 1920 * 100vw), 40px);
  padding-bottom: clamp(10px, calc(20 / 1920 * 100vw), 20px);
  color: #333;
  font-size: 14px;
}

/* Slider Container */
.zltx-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Slider transition track — 5 screens (4 content + 1 footer) */
.zltx-slider-wrapper {
  width: 100%;
  height: 500%;
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Individual slides */
.zltx-slide {
  width: 100%;
  height: 20%;
  flex-shrink: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

/* 5th slide: footer screen */
.zltx-slide-footer {
  background: var(--footer-bg, #1a1a1a);
  align-items: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.zltx-slide-footer .site-footer {
  display: block !important;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Footer slide inner layout */
.zltx-slide-footer .site-footer .inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
}

/* Hide the footer-dot indicator */
.slider-dot-footer {
  display: none;
}

/* Background image assignments */
.slide-1 {
  background-image: url("../image/zltx-bg01.png");
}
.slide-2 {
  background-image: url("../image/zltx-bg02.png");
}
.slide-3 {
  background-image: url("../image/zltx-bg03.png");
}
.slide-4 {
  background-image: url("../image/zltx-bg04.png");
}

/* Vertical layout helper inside slide using standard .inner to match site margins */
.zltx-slide .inner {
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
}

.slide-1 .inner,
.slide-3 .inner {
  justify-content: flex-start;
}

.slide-2 .inner,
.slide-4 .inner {
  justify-content: flex-end;
}

/* Content block styling */
.slide-text-block {
  width: 52%;
  max-width: 680px;
  height: 100%;
  padding-top: clamp(80px, calc(120 / 1920 * 100vw), 140px);
  /* margin-left: clamp(0px, calc(100 / 1920 * 100vw), 100px); */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.slide-title {
  flex: 0 0 auto;
  font-family: var(--font-decorative);
  font-size: clamp(24px, calc(36 / 1920 * 100vw), 36px);
  color: #3b2214;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: clamp(16px, calc(22 / 1920 * 100vw), 22px);
}

.slide-desc {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 15px;
}

/* Custom scrollbar for description text if it overflows */
.slide-desc::-webkit-scrollbar {
  width: 4px;
}
.slide-desc::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}
.slide-desc::-webkit-scrollbar-thumb {
  background: var(--brown-700);
  border-radius: 2px;
}

.slide-desc p {
  font-size: clamp(14px, calc(16 / 1920 * 100vw), 16px);
  line-height: 1.8;
  color: #5d4534;
  text-align: justify;
  margin-bottom: 20px;
}

.slide-desc p:last-child {
  margin-bottom: 0;
}

/* Dots navigation indicators for desktop visual cue */
.slider-dots {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(159, 111, 84, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #7c4b31;
  transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
  .zltx-slide {
    background-image: none !important;
    background-color: #faf7f2;
  }
  .slide-text-block {
    margin-left: 0;
    width: 100%;
    max-width: 80%;
  }
  .slide-1 .inner,
  .slide-2 .inner,
  .slide-3 .inner,
  .slide-4 .inner {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* On mobile, let the slides flow naturally */
  html, body {
    overflow: auto;
    height: auto;
  }
  .page-shell {
    height: auto;
    overflow: visible;
  }
  .zltx-main {
    min-height: calc(100vh - 60px);
    height: auto;
    overflow: visible;
  }
  .zltx-slider-container {
    height: auto;
    overflow: visible;
  }
  .zltx-slider-wrapper {
    height: auto;
    transform: none !important;
  }
  .zltx-slide {
    height: auto;
    min-height: auto;
    /* padding: 20px 15px 40px; */
    padding-bottom: 24px;
    background-attachment: scroll;
  }
  .zltx-slide .inner {
    height: auto;
  }
  .slide-text-block {
    width: 100%;
    max-width: 100%;
    padding-top: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }
  .slide-desc {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  .slider-dots {
    display: none;
  }
  .your-position-wrapper {
    position: relative;
    background: #faf7f2;
    z-index: 99;
  }
  .your-position-wrapper .your-position {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  /* 权重需与 PC 端规则 .page-shell > .site-footer 一致才能覆盖 */
  .page-shell > .site-footer {
    display: block;
  }
  /* On mobile, hide the footer-as-slide; use the regular footer below */
  .zltx-slide-footer {
    display: none;
  }
}
