body {
  padding-top: 85px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --bs-white-rgb: #fcfcfb;
  --bs-body-color: #26394a;
}
.left-aligned {
  margin-left: auto;
}
.bg-dark {
  background-color: #26394a !important;
}
.bg-hero {
  background-color: #45b06cff;
}

/* CALLOUT */
.bd-callout {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e9ecef;
  border-left-width: 0.25rem;
  border-radius: 0.25rem;
}
.bd-callout h4 {
  margin-bottom: 1.25rem;
}
.bd-callout p:last-child {
  margin-bottom: 0;
}
.bd-callout code {
  border-radius: 0.25rem;
}
.bd-callout + .bd-callout {
  margin-top: -0.25rem;
}
.bd-callout-info {
  border-left-color: #5bc0de;
}
.bd-callout-warning {
  border-left-color: #f0ad4e;
}
.bd-callout-danger {
  border-left-color: #d9534f;
}
.text-white {
  color: #fcfcfb !important;
}
.text-dark {
  color: #26394a !important;
}
.f80 {
  font-size: 80px;
}
.f15 {
  font-size: 15px;
}
.f16 {
  font-size: 16px;
}
.f17 {
  font-size: 17px;
}
.f18 {
  font-size: 18px;
}
.f19 {
  font-size: 19px;
}
.f20 {
  font-size: 20px;
}
.f21 {
  font-size: 21px;
}
.f22 {
  font-size: 22px;
}
.f23 {
  font-size: 23px;
}
.f24 {
  font-size: 24px;
}
.f36 {
  font-size: 36px;
}
/* footer */
footer a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}
footer a:hover {
  color: white;
  text-decoration: underline;
}

.navbar {
  --bs-navbar-padding-y: 5px;
  --bs-navbar-color: #fff;
  --bs-nav-link-hover-color: #006d8e;
  --bs-nav-link-active-color: #006d8e !important;
  --bs-navbar-active-color: #006d8e !important;
}
.navbar-expand-lg .navbar-nav .nav-link {
  padding-left: 30px;
  padding-right: 30px;
}
.dropdown-toggle::after {
  display: none;
}
.cp {
  cursor: pointer;
}
/* 闪烁动画效果 */
.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
  position: relative;
  border: none;
  margin-top: 0;
  --bs-dropdown-link-hover-bg: #c0dedf;
  --bs-dropdown-link-color: #484949;
}
.dropdown-item {
  font-size: 20px;
  text-align: center;
  padding-right: var(--bs-navbar-nav-link-padding-x);
  padding-left: var(--bs-navbar-nav-link-padding-x);
}
.navbar-expand-lg .navbar-nav .nav-link {
  font-size: 20px;
}

.bg-home {
  background: url("https://static.igem.wiki/teams/5738/home/bg.webp") no-repeat;
  background-size: 100% 100%;
  padding-bottom: 100px;
  background-position-y: -1px;
}
.home-bg-1 {
  background: url("https://static.igem.wiki/teams/5738/home/home-content-1-bg.webp")
    no-repeat;
  background-size: 100% 100%;
  padding-top: 140px;
  padding-bottom: 140px;
}
.home-bg-1 img {
  width: 100%;
  transform: translateY(40px);
}
.home-bg-2 {
  background: url("https://static.igem.wiki/teams/5738/home/home-content-2-bg.webp")
    no-repeat;
  background-size: 100% 100%;
  padding-top: 130px;
  padding-bottom: 98px;
}
.bottom-link {
  padding: 150px;
  background: url("https://static.igem.wiki/teams/5738/home/home-link-bg.webp")
    no-repeat;
  background-size: 100% 100%;
}
/* 基础样式 */
.fade-image {
  transition: opacity 0.4s ease-out;
  will-change: opacity;
}

/* 容器样式 */
.fade-container {
  position: relative;
  overflow: hidden;
}
.team-title {
  background: url("https://static.igem.wiki/teams/5738/team/team-title-bg.webp")
    no-repeat;
  font-family: Arial;
  font-weight: bold;
  font-size: 36px;
  color: #fcfcfc;
  padding: 35px 0 35px 42px;
  margin-bottom: 60px;
}
.team-card-item {
  background: rgba(224, 226, 224, 1);
}
.card-wrapper.flipped .card-front {
  transform: rotateY(180deg);
}

.card-wrapper.flipped .card-back {
  transform: rotateY(0deg);
}
.card-wrapper {
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: pointer;
}
.team-card {
  padding-bottom: 131.43%;
  position: relative;
  background-size: 100% 100%;
  border-radius: 15px;
  box-shadow: 0px 10px 10px 5px rgba(5, 110, 117, 0.36);
}

.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  border-radius: 15px;
}
.card-front {
  background: #fff;
  padding: 40px 30px;
}
.card-back {
  background-color: #486b7f;
  transform: rotateY(180deg);
  padding: 20px 10px;
}
.team-bg {
  background: url("https://static.igem.wiki/teams/5738/team/team-bg.webp");
  background-size: 100% auto;
}
.desc {
  text-align: justify;
}
.desc-title {
  font-size: 72px;
  color: #f3f5f5;
  width: max-content;
}
.desc .content {
  padding-top: 3.5%;
  padding-bottom: 3.4%;
}
.desc .navbar {
  box-shadow: none;
  background: transparent !important;
}
.navbar-desc {
  width: 25%;
  float: left;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}
.navbar-desc.sticky-top {
  top: 110px;
}
.navbar-desc .nav {
  flex-direction: column;
  margin: 0 auto;
  font-size: 20px;
  text-align: left;
}
.scrollspy-example {
  width: 75%;
  margin-left: 25%;
  padding: 3% 2% 5.6% 4%;
  font-size: 14px;
}
.scrollspy-example-1 {
  width: 100%;
  margin-left: 0;
}
.scrollspy-example .title {
  font-weight: bold;
  font-size: 30px;
  padding: 10px 20px;
  color: #486b7f;
  margin-bottom: 3%;
  width: fit-content;
  background-color: #f1d0a5;
  border-radius: 5px 20px 5px 0px;
}
.scrollspy-example .sub-title {
  font-weight: bold;
  font-size: 26px;
  margin-bottom: 20px;
  margin-top: 20px;
  /* padding-left: 30px; */
}
.nav-pills {
  padding-top: 20px;
}
.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
  color: #26394a;
  background: url("https://static.igem.wiki/teams/5738/common/nav-bg-active.webp")
    no-repeat;
  background-size: 100% 100%;
  background-size: 100% 100% !important;
  /* font-size: 24px; */
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #26394a;
  background: url("https://static.igem.wiki/teams/5738/common/nav-bg-active.webp")
    no-repeat;
  background-size: 100% 100% !important;
  /* font-size: 24px; */
}
.nav-pills .nav-link {
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  color: #26394a;
  font-size: 18px;
  margin-top: 20px;
  font-weight: 900;
  cursor: pointer;
  background: url("https://static.igem.wiki/teams/5738/common/nav-bg.webp")
    no-repeat;
  background-size: 100% 100%;
  min-height: 73px;
  align-items: center;
  display: flex;
  justify-content: center;
  width: fit-content;
}
.nav-pills .sub-title {
  background: url("https://static.igem.wiki/teams/5738/common/nav-bg.webp")
    no-repeat;
    padding: 8px 10px 8px 20px;
    font-size: 16px;
    font-weight: bold;
    background-size: 100% 100%;
    width: fit-content;
}
.nav-pills .sub-title:hover,
.nav-pills .nav-link:hover {
  background: url("https://static.igem.wiki/teams/5738/common/nav-bg-active.webp")
    no-repeat;
    background-size: 100% 100%;
}
.desc-module {
  margin-bottom: 7%;
  background: #486b7f;
  padding: 50px;
  border-radius: 100px 5px 100px 5px;
  border: 5px solid #f1d0a5;
  color: #fff;
  position: relative;
}
.desc-module a, .desc-module h3 {
  color: #f1d0a5 !important;
}
.desc-module h3 {
  font-size: 20px;
}
.desc-module:nth-of-type(2n) {
  background: #f1d0a5;
  border: 5px solid #486b7f;
  color: #1b1b1b;
}
.desc-module:nth-of-type(2n) .title {
  background-color: #486b7f;
  color: #f1d0a5;
}
.desc-module:nth-of-type(2n) a {
  color: #486b7f;
}
.default-a a {
  color: currentColor !important;
}
.desc-module:nth-of-type(4n + 1)::after {
  content: "";
  position: absolute;
  top: -1%;
  right: 50px;
  z-index: 111;
  display: block;
  width: 15%;
  padding-bottom: 57.3%;
  background: url("https://static.igem.wiki/teams/5738/common/content-1png.webp")
    no-repeat;
  background-size: contain;
}
.desc-module:nth-of-type(4n)::after {
  content: "";
  position: absolute;
  top: -9%;
  right: -10%;
  z-index: 111;
  display: block;
  width: 16.2%;
  /* padding-bottom: 93.6%; */
  aspect-ratio: 93.6/100;
  background: url("https://static.igem.wiki/teams/5738/common/content-2.webp")
    no-repeat;
  background-size: contain;
}
.desc-module:last-of-type {
  margin-bottom: 0;
}
.desc-module p {
  text-indent: 32px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.desc-module table p {
  all: unset; /* 或者覆盖上面的样式 */
}
.desc-module li {
  margin-bottom: 10px;
}
.desc-module ol {
  line-height: 1.75;
  margin-bottom: 10px;
  padding-left: 0;
}
.desc-module .li-decimal {
  list-style-type: decimal;
}
.desc-module table {
  border: 2px solid;
  max-width: 100%;
  margin-top: 6px;
  margin-bottom: 10px;
}
.desc table td,
.desc table th {
  border: 2px solid;
  padding: 4px 6px;
}
.desc-module ul li {
  list-style-type: disc;
}

.mt-190 {
  margin-top: 190px;
}
.mb-50 {
  margin-bottom: 50px;
}
.top-80 {
  top: -80%;
}
 /* 保留缩进与间距 */
ol, ul {
  margin: 0 0 1em 1.8em;
  padding-left: 0;
}
li { margin: 0.3em 0; font-size: 16px;}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 20px;
  }
  .dropdown-hover > .dropdown-toggle {
    pointer-events: none;
  }
  /* 启用 hover 触发 */
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0px; /* 移除菜单间距 */
    top: 100%;
    padding-top: 8px;
  }
}
@media (max-width: 786px) {
  .navbar {
    width: 100vw;
  }
  .home-banner-text {
    font-size: 30px !important;
    top: 40%;
  }
  .navbar-header {
    display: block !important;
  }
  #navbarSupportedContent .pulse {
    display: none;
  }
  .bottom-link {
    padding: 50px 20px;
  }
  .bottom-link .nav-link {
    width: 16%;
  }
  .bottom-link .nav-link img {
    width: 100%;
  }
  .bottom-link .nav-link .title {
    font-size: 12px;
  }
  .mt-190 {
    margin-top: 40px;
  }
  .home-bg-1, .home-bg-2 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  .home-bg-1 img {
    width: 100%;
  }
  .f36 {
    font-size: 24px;
  }
  .f22 {
    font-size: 16px;
  }
  .mb-50 {
    margin-bottom: 15px;
  }
  .top-80 {
    top: 20%;
  }
  .navbar-desc {
    display: none;
  }
  .scrollspy-example {
    width: 100%;
    margin-left: 0;
    padding: 3% 2% 5.6% 4%;
  }
  .f80 {
    font-size: 30px;
  }
}
