body {
    background-image: url('https://static.igem.wiki/teams/5968/general/background-1.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@font-face {
    font-family: "Corben";
    src: url("Corben-Bold-2.ttf");
}


/* 主要内容区域 */

.main-content {
    margin-top: 20px;
    /* 为固定导航栏留出空间 */
    min-height: calc(100vh - 150px);
}


/* 导航栏基础样式 */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background: linear-gradient(to bottom, rgba(25, 39, 109, 1) 0%, rgba(25, 39, 109, 0) 98%);
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-logo {
    margin-right: auto;
}

.nav-logo-img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: #FFC000;
}

.nav-link.active {
    color: #FFC000;
}

.mega-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, rgba(25, 39, 109, 1) 30%, rgba(25, 39, 109, 0) 80%);
    /*background: linear-gradient(to bottom, rgba(25, 39, 109, 1) 0%, rgba(25, 39, 109, 0) 100%);*/
    display: none;
    z-index: 999;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.mega-menu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.mega-menu-item {
    color: white;
    text-decoration: none;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.2s ease;
    text-align: left;
    display: block;
}

.mega-menu-item:hover {
    color: #FFC000;
    transform: translateX(5px);
}


/* 页脚样式 */

.footer {
    background: linear-gradient(to bottom, rgba(25, 39, 109, 0) 0%, rgba(25, 39, 109, 1) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    backdrop-filter: blur(5px);
}

.footer h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: #FFC000;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


/* 响应式设计 */

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        padding: 0.8rem 0;
    }
    .mega-menu {
        position: relative;
        padding: 1rem;
    }
    .main-content {
        margin-top: 150px;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}


/* 左侧导航栏容器 */

.sidebar {
    width: 250px;
    background-color: rgba(42, 59, 118, 0.95);
    padding: 20px;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    z-index: 0;
    backdrop-filter: blur(5px);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}


/* 左侧导航栏样式 - 一级菜单 */

.sidebar>ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.sidebar>ul>li {
    margin-bottom: 8px;
}

.sidebar>ul>li>a {
    color: #c8d4ff;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    background-color: rgba(90, 123, 232, 0.2);
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}


/* 一级菜单展开/折叠图标 */

.sidebar>ul>li>a::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.sidebar>ul>li>a.collapsed::after {
    content: '-';
}

.sidebar>ul>li>a:hover {
    background-color: rgba(90, 123, 232, 0.4);
    color: white;
}

.sidebar>ul>li>a.active {
    background-color: #FF6B35;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.sidebar>ul>li>a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #FF6B35;
    transform: translateX(-10px);
    transition: transform 0.3s ease;
}

.sidebar>ul>li>a:hover::before,
.sidebar>ul>li>a.active::before {
    transform: translateX(0);
}


/* 二级菜单样式 */

.sidebar .submenu {
    list-style-type: none;
    margin: 5px 0 15px 10px;
    padding: 0;
    display: none;
    /* 默认隐藏二级菜单 */
}

.sidebar .submenu.active {
    display: block;
    /* 激活时显示 */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar .submenu li {
    margin-bottom: 5px;
}

.sidebar .submenu li a {
    color: #a8b8ff;
    text-decoration: none;
    padding: 8px 15px 8px 25px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    background-color: rgba(90, 123, 232, 0.1);
    display: block;
    position: relative;
    font-size: 0.95rem;
}

.sidebar .submenu li a:hover {
    background-color: rgba(90, 123, 232, 0.3);
    color: white;
    padding-left: 28px;
}

.sidebar .submenu li a.active {
    background-color: rgba(255, 107, 53, 0.2);
    color: #FFC000;
    border-left: 2px solid #FF6B35;
}


/* 页面内容容器 */

.page-content {
    flex: 1;
    max-width: calc(100% - 250px);
    margin-left: 250px;
    padding: 20px;
    padding-top: 140px;
    /* 为固定导航栏留出空间 */
}


/* 单元标题样式 */

.unit-title {
    font-size: 5rem;
    text-align: center;
    margin: 40px 0 30px;
    color: #ffffff;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.unit-title:after {
    content: "";
    display: block;
    width: 300px;
    height: 4px;
    background: linear-gradient(to right, transparent, #FF6B35, transparent);
    /* 橙色渐变 */
    margin: 15px auto;
    border-radius: 2px;
}


/* 单元内容样式 */

.unit-content {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* 标题样式 */

.title-c1 {
    font-size: 1.8rem;
    margin: 25px 0 15px;
    color: #c8d4ff;
    /* 浅蓝色 */
    margin-top: 60px;
    /* 补偿空间 */
    position: relative;
    font-weight: 600;
}

.title-c1::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 70%;
    background-color: #FF6B35;
    /* 橙色指示条 */
    border-radius: 4px;
}

.title-c2 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    color: #c8d4ff;
    /* 浅蓝色 */
    font-weight: 100;
}


/* 段落样式 */


/* .page-content p {
    margin-bottom: 20px;
    text-align: justify;
    color: #000f42;
    
    font-size: 1.05rem;
} */


/* h1标题样式 */

.page-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    text-align: center;
    margin: 0 0 30px 0;
    color: #192769;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(to right, #192769, #FF6B35, #192769);
    border-radius: 2px;
}


/* h2标题样式 */

.page-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 40px 0 20px 0;
    color: #192769;
    position: relative;
    padding-left: 20px;
    font-weight: 600;
}

.page-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 80%;
    background: #FF6B35;
    border-radius: 4px;
}


/* h3标题样式 */

.page-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 30px 0 15px 0;
    color: #192769;
    position: relative;
    padding-left: 15px;
    font-weight: 600;
}

.page-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background: #FF6B35;
    border-radius: 3px;
}


/* h4标题样式 */

.page-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 25px 0 12px 0;
    color: #192769;
    position: relative;
    padding-left: 12px;
    font-weight: 500;
}

.page-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #FF6B35;
    border-radius: 2px;
}


/* 段落样式 */

.page-content p {
    font-weight: 500;
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #0a0d43;
    text-align: justify;
    /* font-family: "Corben"; */
}

.page-content img {
    margin: 0 auto;
    display: block;
}


/* 列表样式 */

.page-content ul {
    list-style-type: none;
    padding: 0;
    margin: 25px 0;
}

.page-content ul li {
    padding: 12px 15px 12px 45px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.page-content ul li:hover {
    border-left: 3px solid #FF6B35;
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.9);
}

.page-content ul li::before {
    content: '•';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF6B35;
    font-size: 1.5rem;
}

strong {
    color: #FFC000;
    /* text-shadow: 1px 1px 2px black; */
    /* 橙色强调色 */
}

.page-content iframe {
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    width: 60%;
    height: 80vh;
}


/* 容器样式 */

.table-contant {
    max-width: 1200px;
    margin: 0 auto;
}


/* 表格标题样式 */

.table-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    font-size: 1.3rem;
}

.table-title i {
    margin-right: 10px;
    color: #3498db;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}


/* 表格基本样式 */

.experiment-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}


/* 表头样式 */

.experiment-table th {
    background-color: #3498db;
    color: white;
    text-align: left;
    padding: 12px 15px;
    font-weight: bold;
}


/* 表格单元格样式 */

.experiment-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}


/* 交替行背景色 - 提高可读性 */

.experiment-table tr:nth-child(even) {
    background-color: #f2f9ff;
}


/* 行悬停效果 */

.experiment-table tr:hover {
    background-color: #e8f4fd;
    transition: background-color 0.2s ease;
}


/* 引物名称加粗 */

.primer-name {
    font-weight: bold;
}


/* 在原有CSS中添加 */

.page-content .img-nav {
    max-width: 70%;
    margin: 15px auto 0;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    color: #000000;
    line-height: 1.6;
    padding: 8px 0;
}

.page-content .img-nav span {
    max-width: 70%;
    color: #202020;
    font-weight: 400;
}


/* 响应式设计 */

@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    .page-content {
        max-width: calc(100% - 200px);
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: static;
        top: auto;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    .page-content {
        max-width: 100%;
        margin-left: 0;
        padding-top: 100px;
    }
    .sidebar>ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .sidebar>ul>li {
        margin: 0 5px 10px;
        flex: 1;
        min-width: 140px;
    }
    .sidebar .submenu {
        position: absolute;
        z-index: 100;
        background-color: rgba(42, 59, 118, 0.98);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        padding: 10px;
        min-width: 200px;
    }
    .members-container {
        gap: 20px;
    }
    .member-card {
        width: 100%;
        max-width: 350px;
    }
}