body {
  padding-top: 92px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
    text-align: justify;
}
.left-aligned {
  margin-left: auto;
}
header {
  text-align: center;
}
.bg-dark {
  background-color: #5ab1fe !important;
}
.bg-hero {
  background-color: #45b06cff;
}
.text-primary {
  color: #5ab1fe !important;
}
.text-yellow {
  color: #FDEE02 !important;
}
/* 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;
}
.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;
}
.f45 {
  font-size: 45px;
}
.f75 {
  font-size: 75px;
  font-style: italic;
}
.text-justify {
  text-align: justify;
}
.mb-50 {
  margin-bottom: 50px;
}
.mb-90 {
  margin-bottom: 90px;
}
/* footer */
footer a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}
footer a:hover {
  color: white;
  text-decoration: underline;
}

.home-banner-title {
  color: #020202;
  font-size: 3.75em;
  bottom: 40px;
  left: 0;
}
.home-1 {
  padding: 100px 0 140px;
}
.home-3 {
  width: 80.9%;
  padding-bottom: 46.85%;
  height: 0;
  background: url("https://static.igem.wiki/teams/5734/home/home3-bg.webp");
  background-size: 100% 100%;
  margin: 6% auto;
}
.home-4 {
  padding: 80px 0;
}
.home-5 {
  background: url("https://static.igem.wiki/teams/5734/home/home5-bg.webp");
  background-size: 100% 100%;
  padding-bottom: 47%;
  width: 100%;
  margin: 6% auto 150px;
}
.home-5-title {
  width: 56.5%;
  top: -14.1%;
  left: 6.5%;
  height: 0;
}
:root {
    --transition-time: 0.4s;
    --scale-factor: 1.2;
    --image-spacing: 20px;
    --shadow-color: rgba(0,0,0,0.2);
    --hover-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
        
.gallery {
  display: flex;
  justify-content: space-between;
  /* gap: var(--image-spacing); */
}

.image-container {
  flex: 1;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform var(--transition-time) ease;
  position: relative;
}

.image-container:hover {
  transform: translateY(-10px);
}

.image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-time) ease;
  transform-origin: center center;
  cursor: pointer;
}
.image-container:hover .gallery-img {
  transform: scale(var(--scale-factor));
}
.image-container:hover .image-wrapper {
  box-shadow: var(--hover-shadow);
}

.navbar {
  --bs-navbar-color: #fff6ff;
}
.gradient-text {
  background: linear-gradient(0deg, #fee5e5 0%, #fecaca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-nav .nav-link:hover {
  background: linear-gradient(0deg, #fee5e5 0%, #fecaca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-nav .nav-link {
  font-size: 24px;
  color: #fff6ff;
  padding: 20px 20px 10px !important;
}
.page-nav .nav-link::after {
  display: none;
}
.page-nav .dropdown-menu {
  background: #5ab1fe;
  border-radius: 0;
  border: none;
}
.page-nav .dropdown-item {
  color: #fff6ff;
  font-size: 18px;
  text-align: center;
}
.page-nav .dropdown-item:hover,
.page-nav .dropdown-item.active {
  color: #5ab1fe;
  background: #fff6ff;
}
.swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  background: #D3D5D6;
}
/* .swiper-pagination-bullet-active {
  background: #fff;
} */
.swiper-pagination {
  padding-right: 100px;
  text-align: right;
}
.team-content {
  margin-top: 80px;
}
.team-title {
  background: url("https://static.igem.wiki/teams/5734/team/team-title.webp") no-repeat;
  background-size: 100% 100%;
  padding: 14px 90px 40px 40px;
  display: inline-block;
  margin-bottom: 60px;
}
.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(92,112,129,0.4);
}

.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 {
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.card-front .name {
  padding-top: 30px;
  padding-bottom: 30px;
  background: #5AB1FE;
}

.card-back {
  background-color: #5AB1FE;
  transform: rotateY(180deg);
  padding: 50px 8px;
  font-size: 20px;
}


.desc-title {
  font-size: 72px;
  color: #f3f5f5;
  width: max-content;
}
.desc {
  background: url("https://static.igem.wiki/teams/5734/common/desc-1.webp") no-repeat;
  background-size: inherit;
  background-position-y: 60%;
}
.team-bg {
  background: url("https://static.igem.wiki/teams/5734/team/bg.webp") no-repeat;
  background-size: inherit;
  background-position-y: 60%;
}
.desc .content {
  padding-top: 3.5%;
  padding-bottom: 3.4%;
  
}
.desc .navbar {
  box-shadow: none;
  background: transparent !important;
}
.navbar-desc {
  width: 25%;
  float: left;
  border: 4px solid #5AB1FE;
  border-radius: 20px 20px 5px 5px;
}
.nav-bar-desc-title {
  width: 90%;
  padding: 20px 0;
  background: url("https://static.igem.wiki/teams/5734/common/desc-title.webp") no-repeat;
  background-size: 100% 100%;
  text-align: center;
  margin-top: -10%;
  margin-left: 5%;
}
.navbar-desc.sticky-top {
  top: 120px;
}
.navbar-desc .nav {
  display: block;
  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-size: 24px;
  padding: 10px 60px 10px 20px;
  color: #fff;
  width: fit-content;
  background-color: #2F97F4;
  border-radius: 30px 30px 0px 0px;
  position: absolute;
  top: -2vw;
}

.nav-pills {
  padding-top: 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-left: 20px;
}
.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
  color: #fff;
  background: #5AB1FE;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background: #5AB1FE;
  /* font-size: 24px; */
}
.nav-pills .nav-link {
  padding-left: 10px;
  padding-right: 20px;
  position: relative;
  color: #26394a;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
  cursor: pointer;
}
.nav-pills .sub-title {
  padding: 5px 10px;
  border-radius: 4px;
}
.nav-pills .sub-title:hover {
  cursor: pointer;
  color: #fff;
  background: #5AB1FE;
}
.scrollspy-example .sub-title {
  margin-bottom: 20px;
  font-size: 22px;
}
.nav-pills .nav-link:after {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #000;
  background-color: transparent;
}
.nav-pills .nav-link.active::after {
  background: #000;
}
.nav-pills .nav-link:hover::after {
  background: #000;
}

.nav-pills .nav-link:hover {
  background: #5AB1FE;
}
.desc-module {
  margin-bottom: 9%;
  background: #9FDEFF;
  padding: 50px 30px 20px;
  border-radius: 30px;
  color: #333;
  font-size: 16px;
  position: relative;
}
.desc-module .scrollspy-example-c {
  background: #FAFCFA;
  padding: 30px;
  border-radius: 30px;
}

.desc-module:last-of-type {
  margin-bottom: 0;
}
.desc-module p {
  text-indent: 32px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.desc-module  h3 {
  font-size: 20px;
  margin-bottom: 16px;
}
.desc-module  h1,.desc-module h2 {
  margin-bottom: 20px;
}
.desc-module-1 p {
  text-indent: 0;
}

.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 ul {
  list-style-type: disc;
}
.w-90 {
  width: 90%;
}
.mt-50 {
  margin-top: -10%;
}

 /* 保留缩进与间距 */
ol, ul {
  margin: 0 0 1em 1.8em;
  padding-left: 0;
}
li { margin: 0.3em 0; font-size: 16px;}

/* 一级 */
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) ". ";
}

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

ol[type="1"] > li > ol > li > ol > li::marker {
    content: counter(item) "." counter(subitem) "." counter(subsubitem) ". ";
}

/* 大写字母 A, B, C */
ol[type="A"] li::marker {
  content: counter(list-item, upper-alpha) ". ";
}

ol.lower[type="a"] li::marker {
  content: counter(list-item, lower-alpha) ". ";
}

/* 罗马数字 I, II, III */
ol[type="I"] li::marker {
  content: counter(list-item, upper-roman) ". ";
}

/* 罗马数字 i, ii, iii */
ol[type="i"] li::marker {
  content: counter(list-item, lower-roman) ". ";
}
ol.bracketed li::marker {
  content: "[" counter(list-item) "] ";
}
ol.bracketed1 li::marker {
  content: "(" counter(list-item) ") ";
}
ol.bracketed2 li::marker {
  content: counter(list-item) ") ";
}

/* 无序列表正常圆点 */
ul { list-style-type: disc; }
table {
  word-break: auto-phrase;
}
table p {
  word-break: auto-phrase;
}


@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .dropdown-hover > .dropdown-toggle {
    pointer-events: none;
  }
  /* 启用 hover 触发 */
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* 移除菜单间距 */
    top: 100%;
  }
}
@media (max-width:768px) {
  body {
    padding-top: 70px;
  }
  .mt-50 {
    margin-top: 0px;
  }
  .swiper-slide {
    height: auto !important;
  }
  .swiper-slide img {
    width: 100%;
  }
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
  .home-banner-title {
    font-size: 20px;
    bottom: 20px;
  }
  .home-1 {
    padding: 30px 0;
  }
  .home-3 .f45 {
    font-size: 14px;
  }
  .home-3 .f23 {
    font-size: 12px;
  }
  .home-5 .f16 {
    font-size: 12px;
  }
  .home-5 .f16.w-50 {
    width: 90% !important;
    left: 5% !important;
    bottom: 10px !important;
  }
  .home-5 .f36 {
    font-size: 20px;
  }
  .navbar-desc {
    display: none;
  }
  .scrollspy-example{
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .f75 {
    font-size: 30px;
  }
  .scrollspy-example .title {
    font-size: 18px;
    top: -5%;
  }
  .scrollspy-example-c {
    padding: 10px !important;
  }
  .page-nav .nav-item {
    text-align: center;
  }
  .page-nav .nav-item .nav-link {
    font-size: 20px;
  }
}