@font-face {
  font-family: "Maple Mono";
  src: url("MapleMonoNormal-Regular.ttf.woff2") format("woff2");
  font-weight: 400;
  font-display: swap; /* 避免布局偏移 */
}
@font-face {
  font-family: "Maple Mono";
  src: url("MapleMonoNormal-Bold.ttf.woff2") format("woff2");
  font-weight: 700;
}
@font-face {
  font-family: "Maple Mono";
  src: url("MapleMonoNormal-Italic.ttf.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
} 

body {
  width: 100%;
  height: 100%;
  padding-top: 104px;
  cursor: url("https://static.igem.wiki/teams/5764/common/cursor-v1.webp"), auto;
  font-family: "Maple Mono", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --bs-body-color: #492009;
}
.dropdown-item {
  cursor: url("https://static.igem.wiki/teams/5764/common/cursor-v1.webp"), auto;
}
.left-aligned {
  margin-left: auto;
}
.bg-dark {
  background-color: #6752ca !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;
}

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

.navbar {
  --bs-navbar-nav-link-padding-x: 0px !important;
  --bs-navbar-padding-y: 0;
  --bs-navbar-color: #6752ca;
  --bs-navbar-active-color: #492009;
  background-color: #fff !important;
  box-shadow: 0px 3px 17px 1px rgba(58, 11, 105, 0.49);
  padding-bottom: 6px;
}

.navbar-dark,
.navbar[data-bs-theme="dark"] {
  --bs-navbar-active-color: #9e9c9c;
  --bs-navbar-color: #fff;
  background-color: #6752ca !important;
  background: url("https://static.igem.wiki/teams/5764/common/nav-bg.webp");
  background-size: 100% 120%;
}
.navbar-brand {
  margin-top: -10px;
}
.navbar-white .nav-header-text {
  display: none;
}
.navbar-dark .nav-header-logo {
  display: none;
}
.nav-item .nav-link {
  /* font-weight: 600; */
  font-size: 16px;
  padding-top: 0;
  padding-bottom: 0;
  cursor: url("https://static.igem.wiki/teams/5764/common/cursor-v1.webp"), auto;
}
.nav-item .nav-link-title {
  margin-top: -0.5em;
  padding-bottom: 0.2em;
  width: 100px;
  text-align: center;
  line-height: 14px;
  font-weight: bold;
}
.nav-item .nav-link-img {
  width: 60%;
  height: 90%;
  left: 50%;
  transform: translateX(-50%);
}
.nav-item .nav-link-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.dropdown-toggle::after {
  position: absolute;
  bottom: 0.5em;
  right: 2px;
  display: none;
}
@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: 0px; 
    top: 100%;
  }
  .dropdown-wrapper {
    box-shadow: 0px 1px 15px 1px rgba(156, 144, 212, 0.35);
    background: #fff;
    border-radius: 10px;
    padding: 10px 4px;
  }
  .dropdown-menu {
    background-color: transparent;
    border: none;
    padding-top: 14px;
  }
}
.dropdown-menu li {
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}

.dropdown-item {
  color: #555456;
  --bs-dropdown-link-hover-color: #6752ca;
  --bs-dropdown-link-hover-bg: #e1dcf6;
  --bs-dropdown-link-active-bg: #e1dcf6;
  border-radius: 11px;
}
.pt50 {
  padding-top: 50px;
}
.rounded-50 {
  border-radius: 50px;
}
.home-nav-title {
  font-weight: bold;
  font-size: 30px;
  color: #ffffff;
}
.color-block {
  aspect-ratio: 10 / 12;
  margin-right: 12px;
  width: calc((100% - 48px)/5);
}
.color-block:last-of-type{
  margin-right: 0;
}
.container .row {
  --bs-gutter-x: 0;
}
.custom-cursor {
  cursor: url("https://static.igem.wiki/teams/5764/common/cursor-v1.webp"), auto;
}
a:-webkit-any-link {
  cursor: url("https://static.igem.wiki/teams/5764/common/cursor-v1.webp"), auto;
}
.go-top {
  width: 90px;
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 100000;
}
/* 全屏加载样式 */
.fullpage-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(249, 244, 232);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  color: #333;
  font-size: 18px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 页面内容样式 - 初始隐藏 */
.page-content {
  opacity: 0;
  transition: opacity 0.5s ease;
}
/* 图片淡入淡出效果 */
.fade-image {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.bg-light-yellow {
  background-color: rgb(254, 251, 244);
}
.bg-content {
  background: url("https://static.igem.wiki/teams/5764/common/content-bg.webp");
  background-size: cover;
  border-bottom: 1px solid transparent;
}
.member-title {
  overflow: hidden;
  /* font-family: Arial; */
  font-weight: bold;
  font-size: 35px;
  background: url("https://static.igem.wiki/teams/5764/team/title-bg.webp");
  background-size: 100% 100%;
  width: fit-content;
  color: #fff;
  padding: 30px 50px 35px;
  margin-left: -20px;
  margin-bottom: 50px;
}
.bg-header {
  background: url("https://static.igem.wiki/teams/5764/common/header-bg.webp");
}
.bg-team-card {
  background: #6752ca;
  border-radius: 20px;
  padding: 10px;
}
.card-wrapper {
  perspective: 1000px;
  transform-style: preserve-3d;
}
.team-card {
  padding-bottom: 131.43%;
  position: relative;
  background-size: 100% 100%;
}

.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;
}
.card-front {
  border-radius: 15px;
  background: rgb(247, 226, 197);
}
.card-back {
  transform: rotateY(180deg);
}

.card-back::-webkit-scrollbar {
  background: #f6f9fd;
  width: 2px;
  height: 2px;
  border-radius: 2px;
}
.card-back::-webkit-scrollbar-thumb {
  background-color: #e7b558;
  border-radius: 2px;
}
.team-card-item {
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  height: 86%;
}
.mb150 {
  margin-bottom: 150px;
}
.card-wrapper.flipped .card-front {
  transform: rotateY(180deg);
}

.card-wrapper.flipped .card-back {
  transform: rotateY(0deg);
}
.card-wrapper.placeholder {
  visibility: hidden;
  height: 0;
  margin-bottom: 0;
}
.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;
}
.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 - 200px);
  overflow-y: auto;
}
.navbar-desc.sticky-top {
  top: 150px;
}
.navbar-desc .nav {
  flex-direction: column;
  margin: 0 auto;
  font-size: 20px;
  text-align: left;
  border-left: 2px solid #000202;
}
.scrollspy-example {
  width: 75%;
  margin-left: 25%;
  background: #ffffff;
  border-radius: 30px;
  padding: 3% 4% 5.6% 4%;
  font-size: 14px;
  border: 1px solid #d8c4f9;
}
.scrollspy-example-1 {
  width: 100%;
  margin-left: 0;
}
.scrollspy-example .title {
  font-weight: bold;
  font-size: 30px;
  padding: 10px 20px;
  color: #fff;
  margin-bottom: 3%;
  width: fit-content;
  background-color: rgb(99, 86, 195);
  border-radius: 33px;
  box-shadow: 0px 3px 17px 1px rgba(58, 11, 105, 0.49);
}
.nav-pills {
  padding-top: 20px;
}
.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
  color: #6752ca;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #6752ca;
  background-color: transparent;
}
.sub-title {
  margin-bottom: 18px;
  font-size: 20px;
}
.nav-pills .sub-title {
  padding-left: 20px;
  font-size: 16px;
  margin-bottom: 10px;
}
.nav-pills .sub-title:hover {
  color: #6752ca;
}
.nav-pills .nav-link {
  padding-left: 20px;
  padding-right: 0;
  position: relative;
  color: #492009;
  font-size: 20px;
  margin-bottom: 20px;
}
.nav-pills .nav-link::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #492009;
  left: -8px;
  top: 50%;
  margin-top: -7px;
}
.nav-pills .nav-link.active::after {
  background: #6752ca;
}
.nav-pills .nav-link:hover::after {
  background: #6752ca;
}
.desc-module {
  margin-bottom: 7%;
}
.desc-module:last-of-type {
  margin-bottom: 0;
}
.desc-module p {
  text-indent: 2em;
  margin-top: 12px;
  margin-bottom: 12px;
  text-align: justify;
}

.desc-module table p {
  all: unset; /* 或者覆盖上面的样式 */
  word-break: break-word;
  text-align: center;
}
.desc-module li {
  margin-bottom: 10px;
  text-align: justify;
}
.desc-module ol {
  line-height: 1.75;
  margin-bottom: 10px;
  padding-left: 0;
}
.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;
  text-align: center;
}
 /* 保留缩进与间距 */
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[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.checklist li::marker {
  content: "✔️ "
}
/* 无序列表正常圆点 */
ul { list-style-type: disc; }
table {
  word-break: auto-phrase;
}
table p {
  word-break: auto-phrase;
}
table .red p {
  color: red !important;
}
.blur-border {
  display: inline-block;
  position: relative;
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;

  mask-image: radial-gradient(circle, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
}
.common-img {
  height: auto;
  display: block;
  top: 0;
  object-fit: cover;
  object-position: center bottom;
}
.h-110 {
  height: 110%;
  transform: translateY(-4%);
}
@media screen and (max-width: 1200px) {
  .home-nav-title {
    font-size: 20px;
  }
}
@media screen and (max-width: 992px) {
  body {
    padding-top: 80px !important;
  }
  .go-top {
    width: 40px;
  }
}
@media screen and (max-width: 768px) {
  .mobile-none {
    display: none;
  }
  .navbar-brand img {
    height: 90px !important;
  }
  .nav-item .nav-link-title {
    margin-top: 10px;
    margin-bottom: 20px;
    display: block;
    text-align: center;
    width: 100%;
  }
  .dropdown-toggle::after {
    position: inherit;
    bottom: auto;
    right: auto;
  }
  .members-mobile-view {
    flex-direction: column;
    margin-bottom: 20px;
  }
  .members-mobile-view .card-wrapper {
    width: 100%;
    margin-bottom: 10px;
  }
  .navbar-desc {
    display: none;
  }
  .scrollspy-example {
    margin-left: 0;
    width: 100%;
  }
}
