/* ============================================================
   index.css - 首页内容区样式
   前缀标识: zs
============================================================ */

/* ============================================================
   Banner 轮播区
============================================================ */
.zs-banner {
  position: relative;
  width: 100%;
  height: 570px;
  overflow: hidden;
}

.zs-banner-list {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.zs-banner-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.zs-banner-item.zs-banner-active {
  opacity: 1;
  z-index: 2;
}

.zs-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Banner 导航点 - 对齐产品板块背景右边缘 */
.zs-banner-dots {
  position: absolute;
  bottom: 80px;
  z-index: 10;
  display: flex;
  gap: 8px;
  right: calc(50% - 670px);
}

.zs-banner-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  padding: 0;
}

.zs-banner-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.zs-banner-dot.zs-dot-active {
  background: #ffffff;
  width: 36px;
}

/* Banner 左右箭头 */
.zs-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
  opacity: 0;
  backdrop-filter: blur(4px);
}

.zs-banner:hover .zs-banner-arrow {
  opacity: 1;
}

.zs-banner-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.zs-banner-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zs-banner-prev {
  left: calc(50% - 700px + 20px);
}

.zs-banner-next {
  right: calc(50% - 700px + 20px);
}

/* ============================================================
   产品板块
============================================================ */
.zs-product {
  position: relative;
  padding: 0 30px;
  background: transparent;
  margin-top: -50px;
  z-index: 5;
}

.zs-product-inner {
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
  padding: 50px 120px 60px; /* 左右内边距与网格列间距保持一致 */
  background: rgba(30, 20, 64, 0.82);
  border-radius: 16px;
  overflow: hidden;
}

.zs-product-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/bg-product.png") center center / cover no-repeat;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

/* 产品网格：首页 6 条，一行 3 个 */
.zs-product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px 120px; /* 行间距 列间距 */
}

.zs-product-grid .zs-product-card {
  width: auto;
  max-width: none;
  margin: 0;
}

/* 产品卡片 */
.zs-product-card {
  background: transparent;
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.zs-product-card:hover {
  transform: translateY(-4px);
}

.zs-product-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 产品卡片图片区域 - 白色圆角容器 */
.zs-product-card-img {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.zs-product-card:hover .zs-product-card-img {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.zs-product-card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.zs-product-card:hover .zs-product-card-img img {
  transform: scale(1.04);
}

/* 产品名称 - 白色文字居中 */
.zs-product-card-name {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.4;
  text-align: center;
  transition: color 0.3s ease;
}

.zs-product-card:hover .zs-product-card-name {
  color: #00D4AA;
}

/* ============================================================
   About Us 介绍
============================================================ */
.zs-about-section {
  margin-top: 60px;
}

.zs-about-intro {
  padding: 50px 30px 40px;
  background: #ffffff;
}

.zs-about-intro-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.zs-about-intro-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #1e1440;
  margin-bottom: 24px;
  font-family: 'Georgia', 'Times New Roman', serif;
  letter-spacing: 3px;
}

.zs-about-intro-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #555555;
  text-align: left;
}

.zs-about-intro-more {
  text-align: right;
  margin-top: 16px;
}

.zs-about-intro-more a {
  font-size: 13px;
  color: #5B4A9E;
  font-weight: 500;
  transition: color 0.3s ease;
}

.zs-about-intro-more a:hover {
  color: #4a3b8a;
}

/* ============================================================
   About Us 大图Banner
============================================================ */
.zs-about-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.zs-about-banner-img {
  width: 100%;
}

.zs-about-banner-img img {
  width: 100%;
  height: auto;
  display: block;
}

.zs-about-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 0 50px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.zs-about-banner-text {
  font-size: 40px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  font-style: italic;
  font-family: 'Georgia', 'Times New Roman', serif;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  padding: 0 30px;
}

.zs-about-banner-text em {
  font-style: italic;
}

/* ============================================================
   响应式 - Banner
============================================================ */
@media screen and (max-width: 1280px) {
  .zs-product-inner {
    padding: 40px 90px 50px;
  }

  .zs-product-grid {
    gap: 45px 90px;
  }

  .zs-banner-prev {
    left: 24px;
  }

  .zs-banner-next {
    right: 24px;
  }

  .zs-banner-dots {
    right: 60px;
  }
}

@media screen and (max-width: 1024px) {
  .zs-banner {
    height: 420px;
  }

  .zs-about-section {
    margin-top: 40px;
  }

  .zs-about-banner-text {
    font-size: 32px;
  }

  .zs-about-intro {
    padding: 40px 20px 30px;
  }

  .zs-about-intro-title {
    font-size: 22px;
  }

  .zs-product {
    margin-top: -40px;
  }

  .zs-product-inner {
    padding: 36px 60px 44px;
  }

  .zs-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 60px;
  }

  .zs-product-card-name {
    font-size: 13px;
    margin-top: 10px;
  }
}

@media screen and (max-width: 768px) {
  .zs-banner {
    height: 220px;
  }

  .zs-banner-arrow {
    display: none;
  }

  .zs-banner-dots {
    bottom: 16px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .zs-product {
    margin-top: -20px;
    padding: 0 12px;
  }

  .zs-product-inner {
    max-width: 100%;
    padding: 20px 32px 28px;
    border-radius: 12px;
  }

  .zs-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 32px;
  }

  .zs-product-card-img {
    border-radius: 8px;
  }

  .zs-product-card-name {
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.3;
  }

  .zs-about-section {
    margin-top: 24px;
  }

  .zs-about-intro {
    padding: 30px 16px 24px;
  }

  .zs-about-intro-inner {
    padding: 0;
  }

  .zs-about-intro-title {
    font-size: 22px;
    margin-bottom: 14px;
    letter-spacing: 2px;
  }

  .zs-about-intro-desc {
    font-size: 12px;
    line-height: 1.7;
  }

  .zs-about-banner-text {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .zs-about-banner-overlay {
    padding: 24px 0 30px;
  }
}

@media screen and (max-width: 480px) {
  .zs-banner {
    height: 180px;
  }

  .zs-product {
    margin-top: -16px;
    padding: 0 10px;
  }

  .zs-product-inner {
    padding: 16px 12px 24px;
    border-radius: 10px;
  }

  .zs-product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .zs-product-card-name {
    font-size: 11px;
    margin-top: 6px;
  }

  .zs-about-section {
    margin-top: 20px;
  }

  .zs-about-intro {
    padding: 24px 12px 20px;
  }

  .zs-about-intro-title {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .zs-about-intro-desc {
    font-size: 11px;
  }

  .zs-about-banner-text {
    font-size: 16px;
    letter-spacing: 0.5px;
  }

  .zs-about-banner-overlay {
    padding: 16px 0 22px;
  }
}
