
@font-face {
  font-family: "Architects Daughter";
  src: url("ArchitectsDaughter-Regular.ttf") format("woff2");
  font-weight: 400;
  font-display: swap; /* 避免布局偏移 */
}
body { padding-top: 80px;cursor: url("https://static.igem.wiki/teams/6004/common/cursor-v2.webp"), auto;
font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, sans-serif;
  text-align: justify;
  font-size: 16px;
  }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !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 }
.text-black {
  color: #020202;
}
/* footer */
footer {
  background: url("https://static.igem.wiki/teams/6004/common/footer-bg.webp") no-repeat center center;
  background-size: 100% 100%;
}
footer a { color: #020202; font-weight: bold; text-decoration: none; }
footer a:hover { color: #020202; text-decoration: underline; }

.home-text {
  font-size: 1.6vw;
  font-weight: bold;
}
.text-orange {
  color: #F18200;
}
.text-dark-orange {
  color: #B66405;
}
.w-80 {
  width: 80%;
}
.go-top {
  width: 90px;
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 100000;
}
.custom-cursor {
  cursor: url("https://static.igem.wiki/teams/6004/common/cursor-v2.webp"), auto;
}
a:-webkit-any-link {
  cursor: url("https://static.igem.wiki/teams/6004/common/cursor-v2.webp"), auto;
}
.page-nav {
  background: url("https://static.igem.wiki/teams/6004/header/header-nav-bg.webp") no-repeat center center;
  background-size: 100% 100%;
}
.page-nav .nav-link {
  color: #020202;
  padding: 14px 20px !important;
  font-size: 20px;
}
.page-nav .nav-link::after {
  display: none;
}
.page-nav .dropdown-menu {
  background: #fefefb;
  border-radius: 5px;
  border: 0.15px solid #C79075;
}
.page-nav .dropdown-item {
  color: #555456;
  text-align: center;
  font-size: 20px;
}
.page-nav .dropdown-item:hover,
.page-nav .dropdown-item.active {
  color: #555456;
  background: #F7F2EF;
}


.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #D1D8E0;
  opacity: 0.8;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #FAFCFC;
}
.swiper-pagination {
  padding-right: 150px;
  text-align: right;
}
/* 全屏加载样式 */
.fullpage-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(253, 249, 253);
  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;
}
/* 页面内容样式 - 初始隐藏 */
.page-content {
  opacity: 0;
  transition: opacity 0.5s ease;
}
/* 图片淡入淡出效果 */
.fade-image {
  width: 100%;
  height: auto;
  opacity: 0.2;
  transition: opacity 0.5s ease;
}
.team-bg {
  background: linear-gradient(to bottom, rgb(252, 240, 242), rgb(240, 199, 206));
  padding-bottom: 100px;
}
.team-title {
  color: #0681DF;
  font-size: 60px;
  font-weight: bold;
  text-align: center;
  padding-top: 80px;
  margin-bottom: 50px;
}
.card-wrapper {
  border: 9px solid #D88D98;
  border-radius: 50px;
  background-color: #FEEFF2;
  padding: 40px;
  margin: 0 auto 50px;
}
.member-avatar {
  width: 19%;
  position: relative;
  margin-right: 2.4%;
}
.team-name {
  color: #484646;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}
.team-info {
  color: #484646;
  font-size: 24px;
}
.common-title {
  font-size: 90px;
  color: #545454;
  font-weight: bold;
}

.desc {
  background: linear-gradient(to bottom, rgb(255,254, 255), rgb(241, 203, 210));
}
.desc-title {
  font-size: 72px;
  color: #f3f5f5;
  width: max-content;
}
.desc .content {
  padding-top: 3.5%;
  padding-bottom: 3.4%;
}

.navbar-desc {
  width: 25%;
  float: left;
  border-radius: 20px 20px 5px 5px;
  background-color: #fff;
  border: 2px solid #F8414F;
  border-radius: 20px;
}
.nav-bar-desc-title {
  width: 100%;
  position: relative;
}
.nav-bar-desc-title::after {
  content: "";
  display: block;
  background: url("https://static.igem.wiki/teams/6004/common/nav-title.webp") no-repeat;
  width: 76px;
  height: 65px;
  position: absolute;
  top: 0;
  right: 0;
}
.navbar-desc.sticky-top {
  top: 150px;
  padding-right: 0 !important;
}
.navbar-desc .nav {
  margin: 0 auto;
  font-size: 20px;
  text-align: left;
  flex-direction: column;
  flex-wrap: nowrap;
}
.scrollspy-example {
  width: 73%;
  margin-left: 27%;
  padding: 0% 0% 5.6% 4%;
  font-size: 14px;
}
.scrollspy-example .title {
  font-size: 26px;
  font-weight: 600;
  padding: 0 60px 20px 0px;
  color: #F8414F;
  width: fit-content;
  width: 100%;
}
.nav-pills {
  padding-top: 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-left: 0px;
  margin-left: 0 !important;
}
.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
  color: #F8414F;
  background: #FADBE1;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #F8414F;
  /* border-left: 1px solid currentColor; */
  /* font-size: 24px; */
}
.nav-pills .nav-link {
  padding-left: 10px;
  padding-right: 10px;
  position: relative;
  color: #585857;
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  border-radius: 0;
}
.nav-pills .nav-link:after {
  content: "";
  position: absolute;
  left: 0px;
  width: 2px;
  height: 100%;
  background-color: transparent;
  top: 0;
}
.nav-pills .nav-link.active::after {
  background: #F8414F;
}
.nav-pills .nav-link:hover::after {
  background: #F8414F;
}

.desc-module {
  color: #333;
  font-size: 16px;
  position: relative;
  margin-bottom: 1%;
}
.scrollspy-example-c {
  padding: 30px 0 20px 20px;
  border-radius: 0 0 50px 50px;
}
.desc-module:last-of-type {
  margin-bottom: 0;
}
.desc-module p {
  /* text-indent: 32px; */
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 20px;
  word-break: break-word;
}

.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;
}
.f35 {
  font-size: 35px;
}
.nav-item .sub-title {  
  color:#585857;
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
}
.nav-item .sub-title:after {
  content: "";
  position: absolute;
  left: 0px;
  width: 2px;
  height: 100%;
  background-color: transparent;
  top: 0;
}
.nav-item .sub-title:hover::after {
  background: #F8414F;
}
.nav-item .sub-title:hover {
  color: #F8414F;
  background: #FADBE1;
}
.desc-module .sub-title {
  font-size: 24px;
  margin-bottom: 20px;
}
.scrollspy-example {
   /* 保留缩进与间距 */
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 > strong {
  margin-bottom: 1em;
  display: inline-block;
}
ol[type="1"] > li::marker {
    content: counter(item) ". ";
}

/* 二级 */
ol[type="1"] > li > ol > li {
    counter-increment: subitem;
}
ol[type="1"] > li > ol > li > strong {
  margin-bottom: 1em;
  display: inline-block;
}

ol[type="1"] > li > ol > li::marker {
  content: counter(item) "." counter(subitem) " ";
    /* 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) ". ";
}

/* 罗马数字 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) ") ";
}
ol.bracketed2 li>strong {
  margin-bottom: 10px;
}

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

/* 无序列表正常圆点 */
ul.disc li {
  /* font-size: 20px; */
}
ul.disc li::marker {
  content: "• ";
  /* font-size: 20px; */
}
ul { list-style-type: disc !important; }
}
.scrollspy-example-1 {
  width: 100%;
  margin-left: 0;
}
@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: -10px; /* 移除菜单间距 */
    top: 100%;
  }
}

@media (max-width:768px) {
  .home-text {
    font-size: 12px;
  }
  .team-title {
    font-size: 30px;
  }
  .card-wrapper {
    padding: 16px;
    border-width: 2px;
  }
  .team-name {
    margin-bottom: 10px;
  }
  .team-name, .team-info {
    font-size: 14px;
  }
  .navbar-desc {
    display: none;
  }
  .scrollspy-example {
    width: 100%;
    margin-left: 0;
  }
  .common-title {
    font-size: 24px;
  }
  .scrollspy-example .title {
    padding-right: 20px;
    margin-bottom: 10px;
  }
  .scrollspy-example-c {
    padding: 0 0 10px 0px;
  }
}
@media (min-width: 1440px) {
  .container .home-5-img {
    left: -4% !important;
  }
  .home-text {
    font-size: 26px;
  }
}