
.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: 100% 100%; /* 将背景图片拉伸以填满元素 */
  background-position: center;
  background-image: url('src/assets/img/background.jpg');
  height: calc(100vh - 70px); /* 填满视窗，减去导航栏的高度 */
}

@media (max-width: 820px) {
  #banner {
    background-size: cover;
    background-position: left top;
  }
  #banner p{
    height: 18vh;
  }
  svg {
    height: 3em;
  }

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

  .details p {
    font-size: 0.7em
  }

}

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

@media (min-width: 768px) {
  .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: 915px) {

  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%);
  }
}


