.my-custom-container {
  padding-left: 5%;
  padding-right: 5%;
}

.logo {
  height: 2em;
  float: left;
  margin: 0 8px;
}

.nav-link {
  color: gray;
  font-weight: normal;
}


a {
  font-weight: bold;
}

a:hover {
  color: white;
}

#background {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#custom-nav {
  z-index: 999;
  position: relative;
  background-color: #fff;
}

#banner {
  flex: 1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-image: url('src/assets/img/background.jpg');
  height: calc(100vh - 70px);
}

.banner-content {
  width: 100%;
  padding-top: 10vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 1.5em;
}


.title-img {
  margin-top: 2em;
  height: auto;
  display: block;
  width: clamp(30vh, 30vw, 75vw);
}

.desc-img {
  max-width: 65em;
  margin-top: -2.5em;
  height: 10vh;
}

.downLoadClass {
  width: auto;
  max-width: 95vw;
  max-height: 35vh;
  min-height: 10em;
  margin-top: -2em;
}

.ad_ds {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #C5D0E8;
  font-size: 1.2em;
  margin-top: -0.5em;
}

.ad {
  width: auto;
  max-width: 95vw;
  max-height: 10vh;
  min-height: 10em;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 0;
  color: #fff;
  font-size: 1.2em;
}

.scroll-indicator p {
  margin-bottom: 1em;
  position: relative;
  left: -50%;
  text-align: center;
}


@media (max-width: 1024px) {
  #banner {
    background-size: cover;
    background-position: left top;
  }

  #banner p {
    height: 4em;
  }

  svg {
    height: 3em;
  }

  .details .plant-grid {
    padding: 0.5vw;
  }

  .details .row {
    padding: 0 0.3vw;
  }

  .details p {
    font-size: 0.7em
  }
  title-img{
    width: clamp(20vh, 40vw, 75vw);
  }

}

.cards {
  transform: translateX(30%) translateY(-15%) scale(0.7);
}

@media (min-width: 1024px) {
  .cards {
    transform: translateX(12%) translateY(-5%) scale(0.8);
  }

  .plant-grid .icon {
    max-width: 10vw;
  }
}

#down {
  animation: slowBlink 1s infinite;
}

@keyframes slowBlink {
  0% {
    transform: translateY(0px);
    opacity: 0.6;
  }

  50% {
    transform: translateY(8px);
    opacity: 1;
  }
  100% {
    transform: translateY(0px);
    opacity: 0.6;
  }
}

:host {
  overflow: hidden; /* 隐藏溢出内容 */
}

/*滚轮吸附*/
.priorityElements {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh; /* 将滚动容器的高度设置为100vh */
  scroll-padding-top: 4em; /* 添加底部内边距 */
  overflow-x: hidden;
}

.priority {
  scroll-snap-align: start;
  height: 80vh; /* 将每个滚动目标的高度设置为80vh */
  /*scroll-snap-stop: normal; !* 在滚动时不停止吸附效果 *!*/
}


/*颜色方案*/
.bg-blue-dark {
  background-color: #021123;
}

.bg-blue-light {
  background-color: #c5d0e8;

}

.text-blue-dark {
  color: #021123;

}


.text-blue-light {
  color: #c5d0e8;
}


.card-one {
  position: relative;
  display: inline;
  transform: rotate(-15deg);
  /*ms-transform: rotate(-15deg);*/
  /*moz-transform: rotate(-15deg);*/
  /*webkit-transform: rotate(-15deg);*/
  /*o-transform: rotate(-15deg);*/
  animation: card-one-move 4s infinite;
  -webkit-animation: card-one-move 4s infinite; /* Safari 与 Chrome */

}

.card-two {
  display: inline;
  position: relative;
  left: -140px;
  top: 20px;
  animation: card-two-move 4s infinite;
  -webkit-animation: card-two-move 4s infinite;
}

.card-three {
  display: inline;
  position: relative;
  left: -285px;
  top: 60px;
  transform: rotate(15deg);
  /*ms-transform: rotate(15deg);*/
  /*moz-transform: rotate(15deg);*/
  /*webkit-transform: rotate(15deg);*/
  /*o-transform: rotate(15deg);*/
  animation: card-three-move 4s infinite;
  -webkit-animation: card-three-move 4s infinite;
}

@keyframes card-one-move {
  0% {
    top: 0;
    left: 0
  }
  25% {
    top: 20px;
    left: 10px
  }
  50% {
    top: -20px;
    left: -10px
  }
  100% {
    top: 0;
    left: 0
  }
}

@-webkit-keyframes card-one-move /* Safari 与 Chrome */
{
  0% {
    top: 20px;
  }
  25% {
    top: 10px;
  }
  50% {
    top: 0px;
  }
  100% {
    top: 20px;
  }
}

@keyframes card-two-move {
  0% {
    top: 20px;
  }
  25% {
    top: 10px;
  }
  50% {
    top: -10px;
  }
  100% {
    top: 20px;
  }
}

@-webkit-keyframes card-two-move /* Safari 与 Chrome */
{
  0% {
    top: 20px;
  }
  25% {
    top: 10px;
  }
  50% {
    top: -10px;
  }
  100% {
    top: 20px;
  }
}

@keyframes card-three-move {
  0% {
    top: 60px;
    left: -285px;
  }
  25% {
    top: 40px;
    left: -265px;
  }
  50% {
    top: 20px;
    left: -245px;
  }
  100% {
    top: 60px;
    left: -285px;
  }
}

@-webkit-keyframes card-three-move /* Safari 与 Chrome */
{
  0% {
    top: 20px;
  }
  25% {
    top: 10px;
  }
  50% {
    top: -10px;
  }
  100% {
    top: 20px;
  }
}

.details svg {
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotateY(0deg);
  }
  30% {
    transform: rotateY(180deg);
  }
  60% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

/*轮播图*/
.section-third-pic {
  height: 25vh;
  object-fit: cover;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.section-third-pic:hover {
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.carousel-fade .section-third-pic {
  width: 80vw;
  height: 30vh;
  object-fit: cover;
  overflow: hidden;
  margin-bottom: 1em;
}

/*周边*/
.product-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.image-container {
  position: relative;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  cursor: pointer;
}

.overlay-content {
  text-align: center;
}

.image-container:hover .overlay {
  opacity: 1;
}

.p-s {
  font-size: 1vw;
}

@media (max-width: 768px) {
  .p-s {
    font-size: 0.5em;
  }
}


/* 横屏样式 */
@media screen and (orientation: landscape) and (max-width: 1024px) {

  img {
    max-height: 25vh;
  }

  svg {
    max-height: 12vh;
  }

  #banner img {
    /*max-height: 15vh;*/
    margin: 0 auto;
  }


  h1 {
    margin: 0.4em !important;
  }

  .cards img {
    display: none;
  }

  .detailText {
    width: 40vw;
    display: table-cell;
    transform: translate(0, 2%);
  }
  .scroll-indicator p {

    margin-bottom: -15px;
  }
  .banner-content {
    padding-top: 80px;
  }

  .banner-img {

  }

  .title-img {
  }

  .desc-img {
    margin-top: -1.5em !important;
    width: auto;
  }

  .downLoadClass {
    margin-top: -2.5em !important;
    min-height: 15em;
  }

  .ad_ds {
    margin-top: -3em !important;
    font-size: 1em;
  }

  .ad {
    /*margin-top: -2.5em !important;*/
    min-height: 5em;
  }

  .banner-flex {
    flex-direction: row;
    justify-content: center; /* 保持第一个元素居中 */
    align-items: center;
    width: 100%;
    padding: 0 5vw;
    gap: 2em;
    position: relative; /* 给绝对定位一个参照 */
  }

  .banner-flex > :first-child {
    flex: none;
    margin: 0 auto;
    text-align: center;
  }

  .banner-flex > :nth-child(2) {
    position: absolute;
    right: 0; /* 靠页面最右 */
    flex: none;
  }

}


