/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f8ff;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 布局样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页眉 */
header {
    background-color: #006d77;
    color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lab-logo {
    font-size: 14px;
    font-weight: bold;
    margin-right: 20px;
}

/* 导航栏 */
nav {
    background-color: #83c5be;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.nav-links li a {
    color: #fff;
    font-size: 16px;
    padding: 8px 12px;
    transition: all 0.3s;
    border-radius: 4px;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: rgba(255,255,255,0.2);
}

.menu-toggle {
    display: none;
    background-color: #006d77;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* 主要内容 */
main {
    padding: 40px 0;
}

.lab-intro {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: left; /* 新增的样式 */
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    color: #0066cc;
}

/* 科学家信息 */
.scientists-section {
    display: none;
}

.scientists-section.active {
    display: block;
}

.scientist-card {
    background-color: #fafafa;
    border: 1px solid #d8f3f0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    gap: 30px;
}

.scientist-photo {
    width: 150px;
    height: 200px;
    background-color: #ddd;
    border-radius: 5%;
    border: 2px solid #83c5be;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #999;
}

.scientist-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #0066cc;
}

.scientist-info p {
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 页脚 */
footer {
    background-color: #f0f8ff;
    color: rgb(0, 0, 0);
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .scientist-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .scientist-photo {
        margin-bottom: 5px;
    }
}
