
body {
  background: url('https://static.igem.wiki/teams/5223/style/home-background.jpg') no-repeat center 30% fixed;
  background-size: cover;
  background-attachment: scroll;
}

.center-video {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-container {
  margin-top: 150px;
  display: grid;
  grid-template-columns: 40% 40%;
  grid-template-rows: auto auto;
  justify-content: space-between;
  row-gap: 20px;
  position: relative; 
}

.stem-image {
  position: absolute;
  top: -30px;
  left: -165px;
  width: 1390px;
  height: 900px;
  z-index: -1; 
  pointer-events: none; 
}

.left-text h2, .right-text h2 {
  font-size: 27px;
}

.left-text, .right-text {
  opacity: 0;
  transition: all 1s ease-in-out;
  font-size: 18px;
}

.left-text {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  text-align: left;
}

.right-text {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  text-align: right;
}

.slide-in-left {
  position: relative;
  animation: slide-in-left 1s forwards;
}

.slide-in-right {
  position: relative;
  animation: slide-in-right 1s forwards;
}

@keyframes slide-in-left {
  from {
      transform: translateX(-100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

@keyframes slide-in-right {
  from {
      transform: translateX(100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}


.line-box {
  text-align: center;
}

.line {
  height: 6px; 
  background: linear-gradient(90deg, rgba(144, 238, 144, 0.5), rgba(0, 100, 0, 0.5), rgba(144, 238, 144, 0.5)); 
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

.top-line {
  width: 60%; 
  margin: 100px auto 20px auto;
}

.bottom-line {
  width: 60%; 
  margin: 20px auto 0px auto;
}

.text-content {
  display: inline-block;
  text-align: left;
  max-width: 600px; 
  background: rgba(251, 250, 248, 0.8);
  font-size: 16px;
}


.centered-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 20px 0;
}

.art-text {
  font-size: 50px;
  font-weight: bold;
  background: linear-gradient(90deg,lightgreen,darkgreen);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.plant-container {
  position: relative;
  width: 1300px;
  height: 1200px;
  background: url('https://static.igem.wiki/teams/5223/style/tree.png'); 
  background-size: cover;
  margin-left: -140px;
  margin-right: -300px;
  margin-top: 40px;
  z-index: 0; 
}

.leaf {
  position: absolute;
  width: 20%;
  height: 20%;
  transition: filter 0.3s ease;
  background-size: contain; 
  background-repeat: no-repeat; 
  background-position: center;
  z-index: 1; 
}

.leaf1 {
  position: relative;
  top: 10%;
  left: 70%;
}

.leaf1::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -110px;
  width: 190%; 
  height: 200%; 
  background: url('https://static.igem.wiki/teams/5223/style/leaf-1.png') no-repeat; 
  background-size: contain;
  z-index: -1; 
  transition: filter 0.3s ease; 
}

.leaf2 {
  top: 20%;
  left: 30%;
  z-index: 2;
}

.leaf2::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 22px;
  width: 120%;
  height: 120%;
  background: url('https://static.igem.wiki/teams/5223/style/leaf-2.png') no-repeat;
  background-size: contain;
  z-index: -1;
  transition: filter 0.3s ease;
}

.leaf3 {
  top: 30%;
  left: 15%;
  z-index: 1;
}

.leaf3::before {
  content: '';
  position: absolute;
  top: -130px;
  left: -200px;
  width: 260%;
  height: 250%;
  background: url('https://static.igem.wiki/teams/5223/style/leaf-3.png') no-repeat;
  background-size: contain;
  z-index: -1;
  transition: filter 0.3s ease;
}

.leaf4 {
  top: 50%;
  left: 65%;
}

.leaf4::before {
  content: '';
  position: absolute;
  top: -95px;
  left: -102px;
  width: 170%;
  height: 170%;
  background: url('https://static.igem.wiki/teams/5223/style/leaf-4.png') no-repeat;
  background-size: contain;
  z-index: -1;
  transition: filter 0.3s ease;
}

.leaf5 {
  top: 60%;
  left: 20%;
}

.leaf5::before {
  content: '';
  position: absolute;
  top: 35px;
  left: -114px;
  width: 210%;
  height: 200%;
  background: url('https://static.igem.wiki/teams/5223/style/leaf-5.png') no-repeat;
  background-size: contain;
  z-index: -1;
  transition: filter 0.3s ease;
}

.leaf:hover::before {
  filter: drop-shadow(0 0 15px rgba(255, 236, 139, 1)); /* 悬停时背景图发光 */
}


.leaf-img {
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.leaf1 .leaf-img {
  background-image: url('https://static.igem.wiki/teams/5223/style/leaf-des.png');
  width: 100%;
  height: 100%;
  transform: rotate(-20deg);
  top:-40px;
}

.leaf2 .leaf-img {
  background-image: url('https://static.igem.wiki/teams/5223/style/leaf-design.png');
  width: 50%;
  height: 50%;
  transform: rotate(20deg);
  margin-top:90px;
  margin-left:80px;
}

.leaf3 .leaf-img {
  background-image: url('https://static.igem.wiki/teams/5223/style/leaf-hp.png');
  width: 150%;
  height: 150%;
  margin-top:-60px;
  margin-left:-80px;
  transform: rotate(22deg);
}

.leaf4 .leaf-img {
  background-image: url('https://static.igem.wiki/teams/5223/style/leaf-model.png');
  width: 70%;
  height: 70%;
  transform: rotate(-30deg);
  margin-top:-10px;
  margin-left:10px;
}

.leaf5 .leaf-img {
  background-image: url('https://static.igem.wiki/teams/5223/style/leaf-plant.png');
  width: 60%;
  height: 60%;
  transform: rotate(20deg);
  margin-top:70px;
  margin-left:100px;
}

.leaf1 .leaf-img:hover {
  transform: rotate(-20deg) scale(1.2); 
  filter: drop-shadow(0 0 5px rgba(0, 170, 0, 0.8)); 
}

.leaf2 .leaf-img:hover {
  transform: rotate(20deg) scale(1.2); 
  filter: drop-shadow(0 0 5px rgba(0, 139, 255, 0.6)); 
}

.leaf3 .leaf-img:hover {
  transform: rotate(22deg) scale(1.1); 
  filter: drop-shadow(0 0 5px rgba(0, 139, 255, 0.8)); 
}

.leaf4 .leaf-img:hover {
  transform: rotate(-30deg) scale(1.2); 
  filter: drop-shadow(0 0 5px rgba(0, 139, 255, 0.7)); 
}

.leaf5 .leaf-img:hover {
  transform: rotate(20deg) scale(1.1); 
  filter: drop-shadow(0 0 5px rgba(0, 150, 0, 0.8)); 
}