/* ---------------------------------------------------------
   1. Breadcrumb & Hero Section
--------------------------------------------------------- */
.zs-breadcrumb {
  padding: 1.5rem 7%;
  background-color: var(--color-bg-soft);
  font-size: 0.875rem;
}

.zs-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
}

.zs-breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.zs-breadcrumb li a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.zs-breadcrumb li a:hover {
  text-decoration: underline;
}

.zs-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-text-subtle);
}

.zs-breadcrumb li[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 500;
}

.zs-pd-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.zs-pd-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.zs-pd-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.zs-pd-hero-content {
  position: relative;
  z-index: 2;
  width: 50%;
  padding-left: 7%;
  color: #fff;
}

.zs-pd-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.zs-pd-hero-content p {
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 400;
}

/* ---------------------------------------------------------
   2. Sticky Navigation
--------------------------------------------------------- */
.zs-pd-nav {
  background-color: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 125px; /* Offset for the full header */
  z-index: 998; /* Just below main header */
  transition: top 0.3s ease;
  display: flex;
  justify-content: center;
}

body.zs-header-scrolled .zs-pd-nav {
  top: 88px; /* Offset for the main header only (5.5rem) */
}

.zs-pd-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.zs-pd-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--color-text-strong);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.zs-pd-nav-link:hover,
.zs-pd-nav-link.is-active {
  color: var(--color-primary);
}

.zs-pd-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.zs-pd-nav-link.is-active::after {
  transform: scaleX(1);
}

/* ---------------------------------------------------------
   3. Content Sections & Interactive Design
--------------------------------------------------------- */


.zs-pd-section--light {
  background-color: var(--color-bg-soft);
}

.zs-pd-section-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
  max-width: 100%; /* 将原本的 1400px 改为 100% 以实现通栏 */
  margin: 0 auto;
}

.zs-pd-section-inner--reverse {
  flex-direction: row-reverse;
}

.zs-pd-image-block {
  flex: 1 1 45%;
  max-width: 50%;
}

.zs-pd-image-block img {
  width: 100%;
  height: auto;
  display: block;
}

.zs-pd-content-block {
  flex: 1 1 45%;
}

.zs-pd-content-block h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-strong);
  margin-bottom: 2.5rem;
  margin-top: 0;
}

.zs-pd-main-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #000;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* ---------------------------------------------------------
   2.5 Info Block Section
--------------------------------------------------------- */
.zs-info-block-section {
  background-color: #fff; /* 背景改成白色 */
  border-bottom: 1px solid var(--color-border); /* 底部加个边框 */
}

.zs-info-block-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.zs-info-block-text {
  flex: 1 1 50%;
  max-width: 50%;
  padding: 6rem 4rem 6rem 7%; /* 上下留白，左侧和页面 7% 对齐，右侧与视频有间距 */
  box-sizing: border-box;
}

.zs-info-block-text h2 {
  font-size: 3rem; /* 加大标题字号 */
  font-weight: 700;
  color: var(--color-text-strong);
  margin-top: 0;
  margin-bottom: 2rem;
}

.zs-info-block-text p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2rem; /* 增加与按钮的间距 */
}

.zs-btn--red-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem; /* 左右留白加宽一些让按钮好看 */
  background-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px; /* 全圆角 */
  transition: background-color 0.3s ease;
}

.zs-btn--red-down:hover {
  background-color: var(--color-primary-hover);
}

.zs-info-block-video {
  flex: 1 1 50%;
  max-width: 50%;
  box-sizing: border-box;
}

.zs-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  width: 100%; /* 确保填满 50% 的区域 */
}

.zs-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 交互式图文区块 (Product Design) */
.zs-pd-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4rem;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  background-color: #fff;
  padding-bottom: 4%;
}

.zs-interactive-left-col {
  flex: 1 1 45%;
  max-width: 50%;
  padding: 4rem 0 0 7%;
  box-sizing: border-box;
}

.zs-interactive-image-block {
  width: 90%;
  position: relative;
}

.zs-interactive-image-block .zs-base-image {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* 红点标记样式 (Hotspot) */
.zs-hotspot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
  border-radius: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none; /* 让红点不影响鼠标事件 */
}

/* 红点外圈波纹动画 */
.zs-hotspot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(63, 90, 182, 0.28);
  transform: translate(-50%, -50%);
  animation: hotspot-ripple 1.5s infinite ease-out;
}

@keyframes hotspot-ripple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 1;
  }
  100% {
    width: 300%;
    height: 300%;
    opacity: 0;
  }
}

.zs-hotspot.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* 右侧内容包裹区域 */
.zs-interactive-content-block {
  flex: 1 1 45%;
  position: relative; /* 侧边栏弹窗相对此容器定位 */
  padding: 13rem 12% 0 5%;
}

@media (min-width: 1025px) {
  .zs-pd-section {
    position: relative; /* PC端作为绝对定位的参考 */
  }
  .zs-interactive-content-block {
    position: static; /* PC端取消相对定位，让弹窗相对于 section 定位 */
  }
}

.zs-accordion-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border-strong);
}

.zs-accordion-item {
  padding: .9rem 0;
  border-bottom: 1px solid var(--color-border-strong);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.zs-accordion-item span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-strong);
  text-transform: uppercase;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.zs-accordion-item:hover span,
.zs-accordion-item.is-active span {
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------------------------------------------------------
   3.5 Detail Panel (侧边覆盖弹层)
--------------------------------------------------------- */
.zs-detail-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-soft); /* 浅灰色背景，与原站一致 */
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

@media (min-width: 1025px) {
  .zs-detail-panel {
    /* PC端全高且右侧贴边浏览器 */
    top: 0; /* 抵消 section 的 4rem 顶部内边距，使弹窗与内容区顶部对齐 */
    bottom: 0; /* 抵消 section 的 4rem 底部内边距，使弹窗与内容区底部对齐 */
    left: calc(50% + 2rem); /* 准确从右侧内容区的左边缘开始 */
    right: 0; /* 贴紧 section padding box 的右边缘（即浏览器右边缘） */
    width: auto;
    height: auto;
    border-right: none; /* 右侧贴边，不需要边框 */
  }
}

.zs-detail-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* 左侧指向箭头 */
.zs-detail-arrow {
  position: absolute;
  top: 50%;
  left: -10px; /* 根据边框大小调整 */
  transform: translateY(-50%);
  width: 0; 
  height: 0; 
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent; 
  border-right: 10px solid var(--color-bg-soft); /* 颜色与背景一致 */
  filter: drop-shadow(-2px 0px 1px rgba(0,0,0,0.05)); /* 箭头阴影 */
  z-index: 11;
}

/* 内部滚动区域，以防内容过多 */
.zs-detail-content-scroll {
  width: 100%;
  height: 100%;
  padding: 3rem 2rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.zs-detail-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-text-subtle);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  z-index: 12;
}

.zs-detail-close:hover {
  color: var(--color-primary);
}

#panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.zs-detail-subtitle {
  font-size: 1rem;
  color: var(--color-text-strong);
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.zs-detail-grid {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.zs-detail-col {
  flex: 1;
}

.zs-detail-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.zs-detail-col p {
  font-size: 0.875rem;
  color: var(--color-text-strong);
  line-height: 1.5;
  margin: 0;
}

.zs-detail-image {
  width: 100%;
  background: #fff;
  padding: 1rem;
  box-sizing: border-box;
}

.zs-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Core Design Grid (旧结构保留给Core Design) */
.zs-pd-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
}

.zs-pd-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.zs-pd-feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zs-pd-feature-icon img {
  max-width: 100%;
  max-height: 100%;
}

.zs-pd-feature span {
  font-size: 1rem;
  color: var(--color-text-strong);
  font-weight: 400;
  line-height: 1.4;
}

/* ---------------------------------------------------------
   4. Zero Waste Carousel
--------------------------------------------------------- */
.zs-zero-waste-section {
  display: block; /* 覆盖前面的 flex */
  padding-top: 4%;
  padding-bottom: 4%;
  border-top: 1px solid var(--color-border);
}

.zs-pd-section-header {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

.zs-pd-section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-strong);
  margin-bottom: 1rem;
  margin-top: 0;
}

.zs-pd-section-header p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.zs-pd-carousel-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  overflow: visible;
  position: relative; /* 为轮播图控制按钮预留定位 */
}

.zs-pd-carousel {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory; /* 开启滚动对齐 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.zs-pd-carousel::-webkit-scrollbar {
  display: none;
}

.zs-pd-carousel-track {
  display: flex;
  gap: 2rem;
  padding-bottom: 2rem; /* space for scrollbar if any */
}

.zs-pd-carousel-item {
  flex: 0 0 calc(33.333% - 1.333rem); /* 默认显示三个 */
  text-align: center;
  scroll-snap-align: start; /* 滚动对齐点 */
}

.zs-pd-carousel-item img {
  width: 100%;
  height: 400px;
  display: block;
  margin-bottom: 1.5rem;
}

.zs-pd-carousel-item h3 {
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--color-text-strong);
  margin: 0;
}

.zs-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
}

.zs-carousel-arrow:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.zs-carousel-arrow--prev {
  left: 0.75rem;
}

.zs-carousel-arrow--next {
  right: 0.75rem;
}

/* ---------------------------------------------------------
   5. Prev Next Browse
--------------------------------------------------------- */
.zs-pd-browse-wrapper {
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.zs-pd-browse-link {
  min-height: 6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.zs-pd-browse-link:hover {
  color: var(--color-primary-hover);
}

.zs-pd-browse-link--prev {
  border-right: 1px solid var(--color-border-soft);
}

/* ---------------------------------------------------------
   6. Responsive
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .zs-pd-section {
    gap: 1.5rem;
  }
  .zs-pd-hero-content {
    width: 80%;
  }
  .zs-pd-image-block,
  .zs-pd-content-block,
  .zs-interactive-left-col,
  .zs-interactive-content-block,
  .zs-info-block-text,
  .zs-info-block-video {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .zs-pd-section-inner,
  .zs-info-block-inner {
    flex-direction: column;
    gap: 3rem;
  }
  .zs-interactive-left-col {
    padding: 2rem 1.25rem 0 1.25rem;
  }
  .zs-interactive-image-block {
    width: 100%;
  }
  .zs-interactive-content-block {
    padding: 0 1.25rem 0 1.25rem;
  }
  .zs-info-block-inner {
    gap: 1.5rem;
  }
  .zs-info-block-text {
    padding: 2rem 1.25rem 1rem 1.25rem;
  }
  .zs-info-block-video {
    padding: 0 1.25rem 1.5rem 1.25rem;
  }
  .zs-pd-section-inner--reverse {
    flex-direction: column;
  }
  .zs-pd-carousel-item {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .zs-pd-hero-content {
    width: 100%;
    padding: 0 1.25rem;
  }
  .zs-pd-hero-content h1 {
    font-size: 2.5rem;
  }
  .zs-pd-main-title {
    font-size: 2.5rem;
  }
  .zs-info-block-text h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
  }
  .zs-info-block-text {
    padding: 1.25rem 1rem 0.75rem 1rem;
  }
  .zs-info-block-video {
    padding: 0 1rem 1rem 1rem;
  }
  .zs-pd-hero-content p {
    font-size: 1.25rem;
  }
  .zs-pd-nav-list {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }
  .zs-pd-section {
    padding: 3rem 1.25rem;
  }
  .zs-pd-features-grid {
    grid-template-columns: 1fr;
  }
  .zs-pd-carousel-item {
    flex: 0 0 80%;
  }
  .zs-pd-browse-wrapper {
    grid-template-columns: 1fr;
  }
  .zs-pd-browse-link--prev {
    border-right: none;
    border-bottom: 1px solid var(--color-border-soft);
  }
}
