body { padding-top: 96px;font-family:Arial,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,Arial, sans-serif;  }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #F498AB !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:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer {
  margin-top: -1px;
}
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }

.navbar-brand {
  height: 80px;
}
.page-nav.navbar {
  background: url("https://static.igem.wiki/teams/5765/home/common/nav-bg.webp") no-repeat;
  background-size: 100% 100%;
  font-family: ArialRoundedMTBold;
}
.page-nav .nav-link {
  color: #FF99A5;
  font-size: 20px;
  padding-left: 30px !important;
  padding-right: 30px !important;
}
.page-nav .nav-link.active {
  color: #F6647B;
}
.page-nav .nav-link::after {
  display: none;
}
.navbar-nav {
  margin-right: 60px;
}
.page-nav .dropdown-menu {
  background: #FFE4E9;
  border-radius: 5px;
  border: none;
  padding-top: 8px !important;
}
.page-nav .dropdown-item {
  color: #FF99A5;
  text-align: center;
  font-size: 20px;
}
.page-nav .dropdown-item:hover,
.page-nav .dropdown-item.active {
  color: #F6647B;
  background: #FFB5C4;
}
/* 全屏加载样式 */
.fullpage-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.home-banner-1 {
  width: 53.2%;
  top: 45%;
  transform: translateY(-50%);
  left: 6.8%;
}
.home-banner-2 {
  width: 38.7%;
  top: -2%;
  right: 6.5%;
}
.home-banner-text {
  bottom: 10%;
  width: 53.2%;
  left: 6.8%;
  font-size: 1.98vw;
}
.home {
  background: url("https://static.igem.wiki/teams/5765/home/bg.webp") no-repeat;
  background-size: 100% 290%;
  overflow-x: hidden;
  font-family: ArialRoundedMTBold;
}
.home-bg-1 {
  background: url("https://static.igem.wiki/teams/5765/home/bg-1.webp") no-repeat;
  background-size: 100% 100%;
  margin-top: -12%;
  padding-bottom: 178%;
  height: 0;
}
.go-top {
  width: 10%;
  position: fixed;
  bottom: 40px;
  right: -2%;
  z-index: 100000;
  cursor: pointer;
}
.f22 {
  font-size: 22px;
}
.f24 {
  font-size: 24px;
}
.f26 {
  font-size: 26px;
}
.f28 {
  font-size: 28px;
}
.f38 {
  font-size: 38px;
}
.f32 {
  font-size: 32px;
}
.home-1 {
  top: 9.84%;
  left: 8.3%;
  font-size: 1.6675vw;
}
.home-2 {
  width: 30.85%;
  left: 17.56%;
  top: 20.4%;
}
.home-3 {
  width: 26.58%;
  left: 39.81%;
  top: 31.73%;
}
.home-4 {
  width: 14.49%;
  left: 11.99%;
  top: 51.74%;
}
.home-5 {
  width: 25.38%;
  left: 32.99%;
  bottom: 19.25%;
}
.home-6 {
  width: 16.52%;
  right: 13.24%;
  bottom: 10%;
}
.home-1-text {
  width: 35.75%;
  font-size: 1.459vw;
  right: 4.69%;
  top: 19.42%;
}
.home-2-text {
  width: 31.47%;
  font-size: 1.459vw;
  left: 5.32%;
  top: 36.77%;
}
.home-3-text {
  width: 31.58%;
  font-size: 1.459vw;
  right: 24.08%;
  bottom: 32.58%;
}
.home-4-text {
  width: 36.22%;
  font-size: 1.459vw;
  left: 13.34%;
  bottom: 6.65%;
}
.text-red {
  color: #F6647B;
}
.text-gray {
  color: #888EA7;
}
/* 图片淡入淡出效果 */
.fade-image {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.fade-image.visible {
    opacity: 1;
    transform: translateY(0);
}
.home-bottom img:nth-of-type(1) {
  width: 15.2%;
  display: block;
  margin: 0 auto 3%;
}
.home-bottom img:nth-of-type(2) {
  width: 74%;
  transform: translateY(-20px);
}
.home-link {
  width: 20%;
  aspect-ratio: 100/94;
}
.home-link-text {
  font-size: 22px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.bottom-link-w {
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 1%;
  padding-bottom: 16.77%;
  background: url("https://static.igem.wiki/teams/5765/home/home-bottom.webp") no-repeat;
  background-size: 100% 100%;
}
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #F0E8E9;
  opacity: 1;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #FFE4E9;
  opacity: 1;
}
.swiper-pagination {
  padding-right: 150px;
  text-align: right;
}
.swiper-slide {
  aspect-ratio: 178/100;
}
.swiper-slide>div {
  height: 100%;
}
.team-page-title {
  width: 45.4%;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}
.team-content {
  padding-top: 80px;
  padding-left: 6%;
  padding-right: 6%;
}
.team-title {
  background: #F36D82;
  box-shadow: 0px 5px 8px 0px rgba(207,75,95,0.55);
  border-radius: 0px 30px 30px 0px;
  display: inline-block;
  margin-bottom: 60px;
  font-size: 30px;
  padding: 20px 70px 20px 50px;
}
.mt-100 {
  margin-top: 100px;
}
.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;
  margin-bottom: 60px;
}
.team-card {
  padding-bottom: 131.43%;
  position: relative;
  background-size: 100% 100%;
  border-radius: 50px;
  box-shadow: 0px 1px 12px 2px rgba(207, 75, 95, 0.55);
}
.team-bg {
  background: url("https://static.igem.wiki/teams/5765/team/team-bg.webp") no-repeat;
  background-size: 100% 100%;
  font-family: ArialRoundedMTBold;
}
.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: 50px;
}
.card-front {
  padding: 0;
  overflow: hidden;
  background: #FE9CB5;
}
.card-front .name {
  padding-top: 20px;
  padding-bottom: 20px;
  background: #FE9CB5;
}

.card-back {
  background-color: #FE9CB5;
  transform: rotateY(180deg);
  padding: 30px 10px;
  font-size: 14px;
  overflow: hidden;
}
.card-back>div::-webkit-scrollbar {
  background: #f6f9fd;
  width: 2px;
  height: 2px;
  border-radius: 2px;
}
.card-back > div::-webkit-scrollbar-thumb {
  background-color: #F36D82;
  border-radius: 2px;
}
.team-card-item {
  background: #dadada;
}
.desc-title {
  font-size: 72px;
  color: #f3f5f5;
  width: max-content;
}
.swiper-container {
  margin-left: 14%;
  margin-right: 14%;

}
.team-banner {
    background: url("https://static.igem.wiki/teams/5765/team/team-bg.webp") no-repeat;
  background-size: 100% 100%;
}
.desc {
  background: url("https://static.igem.wiki/teams/5765/team/team-bg.webp") no-repeat;
  background-size: 100% 100%;
}
.common-banner-1 {
  width: 17.2%;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
}
.common-banner-2 {
  width: 18.65%;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
}
.common-title {
  margin-top: -15%;
}
.desc .content {
  padding-top: 3.5%;
  padding-bottom: 3.4%;
  padding-right: 6%;
}
.desc .navbar {
  box-shadow: none;
  background: transparent !important;
}
.navbar-desc {
  width: 25%;
  float: left;
  border-radius: 20px 20px 5px 5px;
}
.navbar-desc.sticky-top {
  top: 150px;
}
.navbar-desc .nav {
  margin: 0 auto;
  font-size: 20px;
  text-align: left;
  display: block;
}
.scrollspy-example {
  width: 75%;
  margin-left: 25%;
  padding: 3% 2% 5.6% 4%;
  font-size: 14px;
  background: #fff;
  border-radius: 50px;
}
.scrollspy-example-1 {
  width: 85%;
  margin-left: 10%;
}
.scrollspy-example .title {
  font-size: 26px;
  color: #FE9CB5;
  width: fit-content;
  margin-bottom: 30px;
}

.nav-pills {
  padding-top: 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-left: 0px;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background: #FE9CB5;
  /* font-size: 24px; */
}
.nav-pills .nav-link {
  padding-left: 4px;
  padding-right: 20px;
  position: relative;
  color: #817C7D;
  font-size: 20px;
  margin-top: 10px;
  font-weight: bold;
  cursor: pointer;
}
.nav-pills .sub-title {
  padding-left: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 10px;
}
.nav-pills .sub-title:hover {
  background: #FE9CB5;
  color: #fff;
}

.nav-pills .nav-link:hover {
  background: #FE9CB5;
  color: #fff;
}
.desc-module {
  margin-bottom: 9%;
  color: #333;
  font-size: 14px;
  position: relative;
  text-align: justify;
}
.desc-module .sub-title {
  margin-top: 0.8em;
  margin-bottom: 1em;
  font-size: 20px;
}
.desc-module:last-of-type {
  margin-bottom: 0;
}
.desc-module p {
  margin-top: 12px;
  margin-bottom: 12px;
  color: #645f60;
}
.desc-module strong {
  /* font-size: 18px; */
}
.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-module table.test1  tr:nth-of-type(2n) td {
  background-color: rgb(233, 226, 233);
}
.desc-module table.test1  tr:nth-of-type(2n+1) td {
  background-color: rgb(255, 240, 243);
}
.desc-module table.test1  tr:first-of-type td {
  background-color: rgb(247, 165, 197);
}
.desc-module table.test1  tr td:first-of-type {
  background-color: rgb(247, 165, 197);
}
.desc h3,.desc h4 {
  color: #333 !important;
  font-size: 18px;
  margin-bottom: 1em;
}
.desc table td,
.desc table th {
  border: 2px solid;
  padding: 4px 6px;
  text-align: center;
}
.desc-module ul ul {
  list-style-type: disc;
}
 /* 保留缩进与间距 */
ol, ul {
  margin: 0 0 1em 1.8em;
  padding-left: 0;
}
li { margin: 0.3em 0; font-size: 16px;color: #645f60;}
ol.bracketed li::marker {
  content: "[" counter(list-item) "] ";
}
ol.bracketed1 li::marker {
  content: "(" counter(list-item) ") ";
}
ol.bracketed2 li::marker {
  content: counter(list-item) ") ";
}
ol[type="A"] li::marker {
  content: counter(list-item, upper-alpha) ". ";
}
ol[type="a"] li::marker {
  content: counter(list-item, lower-alpha) ". ";
}

/* 一级 */
ol[type="1"] > li {
    counter-increment: item;
}

ol[type="1"] > li::marker {
    content: counter(item) ". ";
}
/* 二级 */
ol[type="1"] > li > ol > li {
    counter-increment: subitem;
}
ol[type="1"] > li > ol > li::marker {
    content: counter(item) "." counter(subitem) ". ";
}
.indent0 p {
  text-indent: 0;
}
@media (max-width: 1400px) {
  .page-nav .nav-link {
    font-size: 16px;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .page-nav .dropdown-item {
    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%;
  }
}
@media (max-width: 768px) {
  .common-title {
    margin-top: 0%;
  }
  .navbar-brand>div {
    left: 10px !important;
  }
  
  .f38 {
    font-size: 16px;
  }
  .f22 {
    font-size: 14px;
  }
  .f32 {
    font-size: 16px;
  }
  /* .home-bg-1 {
    background: none;
    padding-bottom: 0;
    height: auto;
  } */
  .fade-image.visible {
    transform: translateY(40%);
  }
  .home-link-text {
    font-size: 12px;
  }
  .bottom-link-w .container {
    padding: 0;
  }
  .navbar-desc {
    display: none;
  }
  .scrollspy-example {
    width: 100%;
    margin-left: 0;
  }
}