/* ===== 通用页面样式 ===== */
@charset "UTF-8";
@media screen and (max-width: 768px) {
  html {
    font-size: 20px;
  }
  .menu-1 .items{
    display: none !important;
  }
 .book{
    display: block !important;
 }
.kuang{
    width:50vw !important;
}
.kuang .right .tip .bb {
    position: relative;
    display: flex;
    align-items: center;
     
    font-size: 1vh !important;
  }
  
  .kuang .right .tip .bb .aa {
    width: 2px !important;
    height: 2px !important;
    border-radius: 50%;
    background-color: #ffcd87;
    margin-left: 5%;
  }
  
   
  
  
  .kuang .right .tip ul li {
     
    font-weight: 100;
    text-align: left;
    line-height: 1.5vh !important;
    font-size: 0.8vh !important;
    height:1.5vh !important;
    box-sizing: border-box;
    padding-left:2vw !important;
  }

}

@media screen and (max-width: 320px) {
  html {
    font-size: 17.06667px;
    
  }
}

/* 自定义羽毛光标 */
html, body {
    cursor: url('https://static.igem.wiki/teams/5881/svg/shubiao.svg')16 16, auto!important;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: url('../static/images/shubiao.svg') no-repeat center/contain;
    pointer-events: none; /* 避免遮挡点击 */
    transform: translate(-50%, -50%);
    z-index: 99999; /* 保证在最上层 */
  }

  body {
    background: url("https://static.igem.wiki/teams/5881/svg/background.webp") repeat center/contain;
    overflow: hidden;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 0;
    
  }

  /* 重置ul、li列表样式 */
  ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

/* 页面基础样式 */
.page-container { 
    max-width: 93.75vw; 
    padding: 0 0.3vw; 
    margin: 0 auto; 
    box-sizing: border-box; 
}

/* 页面布局 */
.page-layout { 
    display: flex; 
    gap: 0.9vw; 
    padding: 0 0rem 1.25vw; 
    justify-content: flex-start; 
    align-items: flex-start; 
    flex-wrap: wrap; 
}

.page-image-container {
    margin-top: 2vw;
    margin-bottom: 2vw;
    display:flex;
    justify-content: space-between;
    align-items: center;
    border: 1vw solid rgba(196, 125, 39, 0.4);
    border-radius: 1vw;
    flex-wrap: wrap;
}

.card-container {
    position: relative;
    width: 20vw;
    margin-left: 1.8vw;
  }
  
  .card {
    width: 20vw;
    height: 25vw;
  }
  
  .card:hover + .zhezhao {
    display: flex;
  }
  
  .member {
    position: absolute;
    top: 2vw;
    left: 2.5vw;
    width: 14vw;
    height: 16vw;
    border-radius: 2vw;
  }
  
  .qianming {
    position: absolute;
    bottom: 2.5vw;
    left: 2.2vw;
    height: 3vw;
    width: 15vw;
    text-align: center;
    font-weight: bold;
    line-height: 3vw;
    font-size: 1.3vw;
    background-color: #785d54;
    color: #e0e8bf;
    border-radius: 2vw;
  }
  
  .starb {
    position: absolute;
    bottom: 4.5vw;
    left: 3vw;
    width: 2vw;
    height: 2vw;
  }
  
  .start {
    position: absolute;
    top: 1.8vw;
    right: 3vw;
    width: 2.3vw;
    height: 2.3vw;
  }
  
  .staro {
    position: absolute;
    top: 0vw;
    right: 0vw;
    width: 2.5vw;
    height: 2.5vw;
  }
  
  .zhezhao {
    position: absolute;
    top: 0.5vw;
    left: 0;
    width: 19.5vw;
    height: 24vw;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5vw;
    display: none;
  }
  
  .zhezhao .txt {
    width: 80%;
    height: 80%;
    font-size: clamp(0.9rem, 1.2vw, 1.4rem);
    font-weight: 400;
    color: #6b5145;
    word-break: break-word;
    font-family: 'Chinese-Optimized', 'TYPOPRO-LATO-REGULAR', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5vw;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
  }
  
  .card-container:hover .zhezhao {
    display: flex;
  }

/*导航菜单样式*/
.menu-1 {
    width: 100%;
    height: 10%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 2s ease-out forwards;
    opacity: 0;
  }
  .menu-1 img{
    width: auto;
    height: 75%;
    margin-left:4vw;
    margin-right:2vw;
  }
    .menu-1 img:hover{
    transform: scale(1.1);
  }
.menu-1 .items {
    display: flex;
    max-width: 80%;
    justify-content: flex-end;
    align-items: center;
    margin-right: 5vw;
  }
  .menu-1 .items .item {
    margin-left: 2vw;
    margin-right: 2vw;
    font-size: 1.4rem;
    color: rgb(211, 169, 113);
    position: relative;
  }
  .menu-1 .items .item a {
    text-decoration: none;
    color: inherit;
    outline: none;
    cursor: pointer;
    user-select: none;
    text-align: center;
  }
  .menu-1 .items .item:hover,
  .menu-1 .items .item:focus {
    color: #fff;
    background: url("https://static.igem.wiki/teams/5881/menu/menu-bottom.webp") no-repeat center/contain;
  }
  .menu-1 .items .item .dropdown-menu {
    position: absolute;
    background: rgba(196, 71, 8, 0.8);
    border-radius: 10px;
    top: 100%;
    left: -1vw;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .menu-1 .items .item:hover .dropdown-menu {
    visibility: visible;
    transform: translateY(0);
    animation: fadeIn 0.4s ease-out forwards;
  }
  .menu-1 .items .item .dropdown-menu li {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .menu-1 .items .item .dropdown-menu li:hover {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
  }

/* 侧边导航 */
.page-sidenav { 
    width: 18vw; 
    background: linear-gradient(135deg, 
        rgba(196, 125, 39, 0.15) 0%, 
        rgba(143, 96, 56, 0.08) 50%, 
        rgba(196, 125, 39, 0.12) 100%); 
    border: 0.15vw solid rgba(196, 125, 39, 0.4);
    border-radius: 1vw; 
    box-shadow: 
        0 0.8vw 2.5vw rgba(196, 125, 39, 0.2),
        0 0.3vw 0.8vw rgba(143, 96, 56, 0.15),
        inset 0 0.1vw 0.3vw rgba(255, 255, 255, 0.1); 
    padding: 1.2vw 0; 
    position: sticky; 
    top: 20vh; 
    height: max-content; 
    max-height: calc(100vh - 6.9vh); 
    overflow: auto;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.page-sidenav:hover {
    transform: translateY(-0.2vw);
    box-shadow: 
        0 1.2vw 3.5vw rgba(196, 125, 39, 0.25),
        0 0.5vw 1.2vw rgba(143, 96, 56, 0.2),
        inset 0 0.1vw 0.3vw rgba(255, 255, 255, 0.15);
}

.page-content { 
    flex: 0 0 70%; 
    max-width: 70%; 
    background: transparent; 
    padding: 2vw 3vw 2vw 3vw; 
    color: rgb(68,40,21); 
}

/* 侧边导航样式 */
.page-sidenav ul { 
    list-style: none; 
    margin: 0; 
    padding-left: 0; 
    position: relative;
}

.page-sidenav ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.8vw;
    width: 0.15vw;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(196, 125, 39, 0.3) 0%, 
        rgba(143, 96, 56, 0.2) 50%, 
        rgba(196, 125, 39, 0.3) 100%);
    border-radius: 0.075vw;
}

.page-sidenav li { 
    position: relative; 
    padding: 0.2vw 0.8vw; 
    margin: 0.1vw 0;
}

.page-sidenav li::before {
    content: '';
    position: absolute;
    left: 0.6vw;
    top: 50%;
    transform: translateY(-50%);
    width: 0.3vw;
    height: 0.3vw;
    background: rgba(196, 125, 39, 0.4);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.page-sidenav li:hover::before {
    background: rgba(196, 125, 39, 0.8);
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 0.3vw rgba(196, 125, 39, 0.6);
}

.page-sidenav li.active::before {
    background: rgba(196, 125, 39, 1);
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 0.5vw rgba(196, 125, 39, 0.8);
}

.page-sidenav a { 
    font-family: 'TYPOPRO-LATO-REGULAR', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: block; 
    padding: 0.3vw 0.8vw; 
    border-radius: 0.6vw; 
    color: rgb(68,40,21); 
    text-decoration: none; 
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 0.3vw solid transparent;
    position: relative;
    overflow: hidden;
}

.page-sidenav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.page-sidenav a:hover { 
    background: linear-gradient(135deg, 
        rgba(196, 125, 39, 0.25), 
        rgba(143, 96, 56, 0.15)); 
    color: rgb(68,40,21);
    border-left: 0.3vw solid rgba(196, 125, 39, 0.8);
    transform: translateX(0.4vw) scale(1.02);
    box-shadow: 
        0 0.3vw 0.8vw rgba(196, 125, 39, 0.3),
        inset 0 0.1vw 0.2vw rgba(255, 255, 255, 0.2);
}

.page-sidenav a:hover::before {
    left: 100%;
}

.page-sidenav li.active > a { 
    background: linear-gradient(135deg, 
        rgba(196, 125, 39, 0.4), 
        rgba(143, 96, 56, 0.25)); 
    color: rgb(68,40,21); 
    border-left: 0.3vw solid rgba(196, 125, 39, 1);
    font-weight: 700;
    box-shadow: 
        0 0.2vw 0.6vw rgba(196, 125, 39, 0.4),
        inset 0 0.1vw 0.2vw rgba(255, 255, 255, 0.3);
    transform: translateX(0.2vw);
}

/* 导航栏标题样式 */
.page-sidenav::before {
    display: block;
    font-family: 'TYPOPRO-LATO-REGULAR', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(1.2rem, 1.3vw, 1.4rem);
    font-weight: 700;
    color: rgb(68,40,21);
    text-align: center;
    padding: 0.3vw 0.5vw 0.3vw 0.5vw;
    margin-bottom: 0.5vw;
    background: linear-gradient(135deg, 
        rgba(196, 125, 39, 0.2), 
        rgba(143, 96, 56, 0.1));
    border-radius: 0.6vw;
    border-bottom: 0.15vw solid rgba(196, 125, 39, 0.3);
    position: relative;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.page-sidenav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 0.1vw;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(196, 125, 39, 0.5), 
        transparent);
}

    /* 二级导航样式 */
    .nav-item-with-submenu {
        position: relative;
    }
    
    .nav-main-link {
        position: relative;
        cursor: pointer;
    }
    
    .submenu {
        list-style: none;
        margin: 0;
        padding: 0;
        background: rgba(196, 125, 39, 0.1);
        border-radius: 0.3vw;
        margin-top: 0.3vw;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .submenu li {
        margin: 0;
    }
    
    .submenu a {
        display: block;
        padding: 0.4vw 0.8vw 0.4vw 1.2vw;
        color: rgb(68,40,21);
        text-decoration: none;
        font-size: 0.9em;
        border-left: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .submenu a:hover {
        background: rgba(196, 125, 39, 0.2);
        border-left-color: rgba(196, 125, 39, 0.5);
    }



/* 内容区域 */
.page-section { 
    margin-bottom: 2.5vw; 
    scroll-margin-top: 12vh; 
}

/* 标题样式 */
.page-h1 { 
    font-size: clamp(1.7rem, 2vw, 2.3rem); 
    margin: 5vw 0 3.5vw 0; 
    padding: 0.2vw 0.75vw; 
    background-color: rgba(196, 125, 39, 0.65);
    color: rgb(68,40,21);
    border-radius: 1.75vw;
    display: block;
    width: fit-content;
    font-weight: 900;
    box-shadow: 0 0.125vw 0.25vw rgba(0,0,0,0.1);
    position: relative;
    animation: breathe-h1 4s ease-in-out infinite;
}

.page-h1::after {
    content: '';
    position: absolute;
    bottom: -0.6vw;
    left: 0.125vw;
    right: 0.5vw;
    height: 0.1vw;
    background-color: rgb(143, 96, 56);
}

.page-h4 { 
    font-family: 'TYPOPRO-LATO-REGULAR', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(1.5rem, 1.4vw, 1.6rem); 
    margin: 1.2vw 0 0.8vw 0; 
    color: rgb(68,40,21); 
    font-weight: 700;
    padding: 0.3vw 0.6vw;
    background-color: rgba(196, 125, 39, 0.15);
    border-radius: 0.4vw;
    display: block;
    width: fit-content;
    animation: breathe-h4 5s ease-in-out infinite;
}

.page-h5 { 
    font-family: 'TYPOPRO-LATO-REGULAR', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(1.4rem, 1.3vw, 1.5rem); 
    margin: 1vw 0 0.6vw 2vw; 
    color: #7a6d60; 
    font-weight: 600;
    padding: 0.2vw 0.4vw;
    background-color: rgba(196, 125, 39, 0.6);
    border-radius: 0.3vw;
    display: block;
    width: fit-content;
    animation: breathe-h5 6s ease-in-out infinite;
}

/* 表格标题样式 */
.table-title {
    font-family: 'TYPOPRO-LATO-REGULAR', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(1.2vw, 1.1vw, 1.4vw);
    font-weight: 700;
    color: rgb(68, 40, 21);
    margin: 1.5vw auto 0.8vw auto;
    padding: 0.4vw 0.8vw;
    border-radius: 0.5vw;
    display: block;
    text-align: center;
    width: fit-content;
}



/* 表格样式 */
.table-responsive {
    margin: 1vw auto 2vw auto;
    border-radius: 0.6vw;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(196, 125, 39, 0.15);
    border: 0.1vw solid rgba(196, 125, 39, 0.2);
    max-width: 60%;
    text-align: center;
}

.table-responsive .table {
    margin-bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-collapse: collapse;
    width: 100%;
}

.table-responsive .table thead th {
    background-color: rgba(196, 125, 39, 0.8);
    color: rgb(68, 40, 21);
    font-weight: 700;
    font-size: clamp(0.9vw, 1vw, 1.1vw);
    padding: 0.8vw 1vw;
    border: 0.1vw solid rgba(196, 125, 39, 0.3);
    text-align: center;
}

.table-responsive .table tbody td {
    color: rgb(68, 40, 21);
    font-size: clamp(0.85vw, 0.9vw, 1vw);
    padding: 0.6vw 1vw;
    border: 0.1vw solid rgba(196, 125, 39, 0.2);
    vertical-align: middle;
}

.table-responsive .table tbody tr:nth-child(even) {
    background-color: rgba(196, 125, 39, 0.05);
}

.table-responsive .table tbody tr:hover {
    background-color: rgba(196, 125, 39, 0.1);
    transition: background-color 0.3s ease;
}

.page-p { 
    font-family: 'TYPOPRO-LATO-REGULAR', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin-bottom: 0.85vw; 
    text-align: justify; 
    color: rgb(68,40,21); 
    font-size: 1.3rem; 
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* 英雄区域 */
.page-hero {
    background-image: url('https://static.igem.wiki/teams/5881/pages/pages/header/header.webp');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}


    /* 英雄区域切换按钮样式 */
    .hero-buttons {
        position: absolute;
        bottom: 12vh;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: row;
        gap: 1.5vw;
        z-index: 10;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90vw;
    }
    
    .hero-btn {
        background: rgba(255, 255, 255, 0.9);
        border: 0.2vw solid #E5602C;
        color: #E5602C;
        border-radius: 3.5vw;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-btn:hover {
        background: #E5602C;
        color: white;
        transform: translateY(-0.3vh);
        box-shadow: 0 0.4vh 1.5vh rgba(229, 96, 44, 0.3);
    }
    
    .hero-btn.active {
        background: #E5602C;
        color: white;
        box-shadow: 0 0.4vh 1.5vh rgba(229, 96, 44, 0.3);
    }
    
    /* 隐藏不同内容 */
    .content-section {
        display: none;
    }
    
    .content-section.active {
        display: block;
    }



/* 动画效果 */
@keyframes breathe {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-50%) scale(1.05);
        opacity: 1;
    }
}

.book-animation {
    animation: breathe 3s ease-in-out infinite;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.book-animation:hover {
    transform: translateY(-50%) scale(1.2) !important;
    opacity: 1 !important;
    animation-play-state: paused;
}

@keyframes pageBreathe {
    0%, 100% {
        transform: translateY(-250px) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-250px) scale(1.05);
        opacity: 1;
    }
}

.page-animation {
    animation: pageBreathe 3s ease-in-out infinite;
    margin-top: 17vh;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.page-animation:hover {
    transform: translateY(-250px) scale(1.2) !important;
    opacity: 1 !important;
    animation-play-state: paused;
}

/* 标题呼吸动画 */
@keyframes breathe-h1 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0.125vw 0.25vw rgba(0,0,0,0.1);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0.2vw 0.4vw rgba(0,0,0,0.15);
    }
}

@keyframes breathe-h4 {
    0%, 100% {
        transform: scale(1);
        background-color: rgba(196, 125, 39, 0.15);
    }
    50% {
        transform: scale(1.03);
        background-color: rgba(196, 125, 39, 0.2);
    }
}

@keyframes breathe-h5 {
    0%, 100% {
        transform: scale(1);
        background-color: rgba(196, 125, 39, 0.3);
    }
    50% {
        transform: scale(1.03);
        background-color: rgba(196, 125, 39, 0.35);
    }
}

/* 响应式设计 */
@media (max-width: 975px) {
    .page-layout { 
        flex-direction: column; 
        padding: 0 1.25vw 0.9vw; 
    }
    .page-sidenav { 
        width: 100%; 
        position: static; 
        max-height: none; 
        overflow: visible;
        margin-bottom: 2vw;
        border-radius: 1.2vw;
        box-shadow: 
            0 0.6vw 2vw rgba(196, 125, 39, 0.15),
            0 0.2vw 0.6vw rgba(143, 96, 56, 0.1);
    }
    .page-sidenav ul::before {
        display: none;
    }
    .page-sidenav li::before {
        display: none;
    }
    .page-content { 
        flex: 1; 
        max-width: 100%; 
        padding: 1.25vw; 
    }
}

@media (max-width: 768px) {
    .page-sidenav { 
        display: none; 
    }
    .page-content { 
        flex: 1; 
        max-width: 100%; 
        padding: 1vw; 
    }
    .page-h1 { 
        font-size: clamp(1.1rem, 1.2vw, 1.5rem); 
        margin-bottom: 0.8vw; 
        padding: 0.3vw 0.6vw; 
    }
    .page-h4 { 
        font-size: clamp(0.9rem, 0.9vw, 1.2rem); 
        margin: 0.8vw 0; 
    }
    .page-h5 { 
        font-size: clamp(0.8rem, 0.8vw, 1rem); 
        margin: 0.6vw 0; 
    }
    .page-p { 
        margin-bottom: 0.6vw; 
        font-size: 1rem; 
    }
    
    /* 移动端 .txt 样式优化 */
    .zhezhao .txt {
        font-size: clamp(0.8rem, 1vw, 1.1rem);
        line-height: 1.5;
        padding: 0.3vw;
        letter-spacing: 0.01em;
    }
}

@media (max-width: 480px) {
    .page-sidenav { 
        display: none; 
    }
    .page-content { 
        flex: 1; 
        max-width: 100%; 
        padding: 0.8vw; 
    }
    .page-h1 { 
        font-size: clamp(1rem, 1.4vw, 1.3rem); 
        margin-bottom: 0.6vw; 
        padding: 0.25vw 0.5vw; 
    }
    .page-h4 { 
        font-size: clamp(0.8rem, 1vw, 1.1rem); 
        margin: 0.6vw 0; 
    }
    .page-h5 { 
        font-size: clamp(0.7rem, 0.9vw, 0.9rem); 
        margin: 0.5vw 0; 
    }
    .page-p { 
        margin-bottom: 0.5vw; 
        font-size: 1rem; 
    }
    
    /* 小屏幕设备 .txt 样式优化 */
    .zhezhao .txt {
        font-size: clamp(0.7rem, 0.9vw, 1rem);
        line-height: 1.4;
        padding: 0.2vw;
        letter-spacing: 0.005em;
        word-break: break-all;
    }
}

    /* 定义TYPOPRO-LATO-REGULAR字体 */
    @font-face {
        font-family: 'TYPOPRO-LATO-REGULAR';
        src: url('https://static.igem.wiki/teams/5881/fonts/typopro-lato-regular.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }

    /* 中文字体优化 */
    @font-face {
        font-family: 'Chinese-Optimized';
        src: local('PingFang SC'), local('Microsoft YaHei'), local('微软雅黑'), local('SimSun'), local('宋体');
        font-display: swap;
    }

    /* 定义References字体 */
    @font-face {
        font-family: 'References';
        src: url('https://static.igem.wiki/teams/5881/fonts/references.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }

    /* References部分样式 使用字体References*/
    .references-section .page-p {
        font-family: 'References', 'TYPOPRO-LATO-REGULAR', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    /* 图片容器样式 */
    .page-image-container {
        margin: 1vw 0 1vw 0;
        text-align: center;
        background: transparent;
        border: none;
        border-radius: 1vw;
        padding: 1vw;
        box-shadow: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .page-image {
        max-width: 55%;
        height: auto;
        border-radius: 0.5vw;
        box-shadow: 0 0.2vw 0.6vw rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: block;
        margin: 0 auto;
    }

    .page-image:hover {
        transform: scale(1.02);
        box-shadow: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.15);
    }

    .page-image-caption {
        font-family: 'TYPOPRO-LATO-REGULAR', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 0.9rem;
        color: rgb(68, 40, 21);
        margin-top: 1vw;
        font-style: italic;
        font-weight: 500;
        opacity: 0.8;
    }

    /* figcaption图注样式 */
    figcaption {
        font-family: 'TYPOPRO-LATO-REGULAR', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 1.1rem;
        color: rgb(68, 40, 21);
        margin-top: 1vw;
        text-align: center;
        font-weight: 500;
        opacity: 0.8;
        padding: 0.5vw 7vw;
    }

    /* 白色背景图片样式 */
    .page-image.white-bg {
        background-color: white;
        padding: 1vw;
    }

    /* ===== 返回顶部按钮 ===== */
    .back-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: url('https://static.igem.wiki/teams/5881/pages/pages/context/back.webp') no-repeat center/contain;
        background-size: 40px 40px;
        background-color: rgba(196, 125, 39, 0.8);
        border: 2px solid rgba(196, 125, 39, 0.6);
        border-radius: 50%;
        cursor: pointer;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .back-to-top:hover {
        background-color: rgba(196, 125, 39, 1);
        border-color: rgba(196, 125, 39, 0.8);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:active {
        transform: translateY(-1px) scale(0.95);
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        .back-to-top {
            bottom: 20px;
            right: 20px;
            width: 45px;
            height: 45px;
            background-size: 35px 35px;
        }
    }

    @media (max-width: 480px) {
        .back-to-top {
            bottom: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
            background-size: 30px 30px;
        }
    }


/* ===== 页脚 ===== */
.footer {
    background: url('static/images/footer/bg.png') no-repeat center/cover;
    color: #f7f3f0;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}


.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #f7f3f0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #f7f3f0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}


/* 添加加载指示器 */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #7a8a7d;
}

.spinner {
    border: 4px solid rgba(136, 160, 125, 0.3);
    border-radius: 50%;
    border-top: 4px solid #88a07d;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* ===== 不同宽度屏幕响应式设计 ===== */
@media (max-width: 900px) {
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1vh;
        bottom: 8vh;
    }
    
    .hero-btn {
        min-width: 80vw;
        max-width: 90vw;
        font-size: 0.9rem;
        padding: 1vh 2vw;
    }
}

/* 大屏幕设备样式 */
@media screen and (min-width: 1025px) {
    .hero-buttons {
        gap: 2vw;
        bottom: 18vh;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: 90vw;
    }
    
    .hero-btn {
        min-width: 16vw;
        max-width: 25vw;
        font-size: clamp(1.6rem, 1.8vw, 2.1rem);
        padding: 0.7vh 1vw;
    }
}

/* 平板设备样式 */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .hero-buttons {
        gap: 1vw;
        bottom: 10vh;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-btn {
        min-width: 18vw;
        max-width: 22vw;
        font-size: clamp(0.7rem, 1vw, 1rem);
        padding: 0.6vh 1vw;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* 图片滑动展示样式 */
.image-slider-section {
    width: 80%;
    margin: 3vh auto;
    padding: 2vh 0;
    display: flex;
    justify-content: center;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1vw;
    box-shadow: 0 0.5vh 2vh rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    cursor: grab;
    transition: transform 0.2s ease;
}

.slider-container:hover {
    transform: scale(1.02);
    box-shadow: 0 0.8vh 3vh rgba(0, 0, 0, 0.2);
}

.slider-container:active {
    cursor: grabbing;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 60vh;
    min-height: 400px;
}

.slider-image {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5vw;
}

.slider-controls {
    position: absolute;
    bottom: 1vh;
    left: 1vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5vh;
    background: rgba(0, 0, 0, 0.7);
    padding: 1vh 1vw;
    border-radius: 2vw;
    color: white;
    font-size: 0.9rem;
}

.slider-indicator {
    font-weight: 600;
    font-size: 1rem;
}


/* 响应式设计 */
@media screen and (max-width: 768px) {
    .slider-wrapper {
        height: 50vh;
        min-height: 300px;
    }
    
    .slider-controls {
        bottom: 0.5vh;
        left: 1vw;
        padding: 0.8vh 1.5vw;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .slider-wrapper {
        height: 40vh;
        min-height: 250px;
    }
    
    .slider-controls {
        bottom: 0.3vh;
        left: 1vw;
        padding: 0.6vh 1vw;
        font-size: 0.7rem;
    }
}

/* PDF显示样式 */
.pdf-section {
    width: 60%;
    border-radius: 0.5vw;
    overflow: hidden;
    box-shadow: 0 0.2vh 1vh rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

#pdfIframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 0.5vw;
    background: #f8f9fa;
}

/* 响应式PDF显示 */
@media screen and (max-width: 768px) {
    #pdfIframe {
        height: 70vh;
    }
}

@media screen and (max-width: 480px) {
    #pdfIframe {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo {
        padding: 8px 15px;
    }
}

@media (max-width: 992px) {
    .navbar {
        
        height: auto;
        padding: 15px 5%;
    }
    
    .nav-menu {
        width: 100%;
        
    }
    
    .nav-item {
        width: 100%;
        margin: 5px 0;
    }
    
    .dropdown-menu {
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;   /* 1. 让元素可见 */
        transform: none;
        max-height: none;      /* 2. 去掉折叠高度 */
        overflow: visible;     /* 3. 内容正常溢出 */
        position: static;      /* 4. 避免绝对定位造成的遮挡 */
        display: block;        /* 5. 确保它占文档流 */
        margin-top: 4px;       /* 可选：和父项留一点间距 */
    }
    
    .nav-item:hover .dropdown-menu {
        max-height: 500px;
    }
    }



    .active .nav-link {
        color: #4fc3f7;
        position: relative;
    }

    .active .nav-link:after {
        content: "";
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background: #4fc3f7;
        border-radius: 50%;
    }

/* ===== 动画 ===== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.three-container-glb {
    width: 100%;
    height: 400px;
    border: 1px solid #ccc;
}

/* Safety页面正文部分恢复圆点显示 */
[data-page="safety"] .page-section ul {
    list-style: disc;
    margin-left: 2.5em;
    padding-left: 0;
}

[data-page="safety"] .page-section li {
    list-style: disc;
    margin-bottom: 0.5em;
}



.book {
  display: none;
  position: absolute;
  top: 1vw;
  right:1vw;
  width: 9vw;
  
  animation: fadeIn 2s ease-out forwards;
   
  animation-delay: 0.3s;
  z-index: 1060 ;
}


/* 悬浮导航栏 */
.kuang:hover{
  visibility: visible;
}
.kuang {
  background-color: #843519;
  border: 4px solid #cc6c25;
  border-radius: 10px;
  width: 30vw;
  visibility: hidden;
  position: absolute;
  top:10%;
  right:4.5vw;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  color: white;
   
  z-index: 1040;
}

.kuang .left {
  width: 33%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.8vw;
  text-align: center;
  line-height: 100%;
  color: white;
}

.kuang .left::after {
  content: "";
  position: absolute;
  bottom: 5%;
  left: 33%;
  width: 0.5px;
  height: 90%;
  background-color: #d6a154;
}

.kuang .left .img {
  position: absolute;
  top: 5%;
  left: 0;
  height: 5%;
}

.kuang .right {
  padding: 8%;
  padding-top:1%;
  padding-bottom:1%;
  width: 67%;
  height: 100%;
}

.kuang .right .tip {
  margin-top:6%;
}

.kuang .right .tip .bb {
  position: relative;
  display: flex;
  align-items: center;
   
  font-size: 1.1vw;
}

.kuang .right .tip .bb .aa {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #ffcd87;
  margin-left: 5%;
}

.kuang .right .tip .bb::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background-color: #ffcd87;
}

.kuang .right .tip ul {
  list-style: none;
  padding-left: 0;
  margin-top: 4%;
  margin-left: 20%;
}

.kuang .right .tip ul li {
   
  font-weight: 100;
  text-align: left;
  line-height: 1.6vw;
  font-size: 0.9vw;
  height:1.6vw;
  box-sizing: border-box;
  padding-left:10px;
}

 .kuang .right .tip ul li a{
  /* 移除下划线 */
  text-decoration: none;
  /* 继承父元素的文字颜色（避免默认的蓝色） */
  color: inherit;
  /* 移除点击时的默认轮廓 */
  outline: none;
  /* 保持鼠标悬停时的指针样式（可选，默认就是pointer） */
   
  /*移除光标*/
  user-select: none;
  text-align: center;
  width:auto;
  white-space: nowrap;
}
.kuang .right .tip ul li:hover {
   border-radius: 1vw;
  background: rgba(255, 255, 255, 0.2);
}

.on:hover +.kuang, .on:focus +.kuang{
  visibility: visible;
}
.left a{
    /* 移除下划线 */
    text-decoration: none;
    /* 继承父元素的文字颜色（避免默认的蓝色） */
    color: inherit;
    /* 移除点击时的默认轮廓 */
    outline: none;
    /* 保持鼠标悬停时的指针样式（可选，默认就是pointer） */
     
    /*移除光标*/
    user-select: none;
    text-align: center;
    width:auto;
    white-space: nowrap;
  }
