/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
/* --- 导师简介版专用 Hero 样式 --- */
.hero {
    min-height: 80vh; /* 稍微减小高度，更显精致 */
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    padding: 8rem 2rem 4rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 桌面端：左文右图 */
    gap: 4rem;
    align-items: center;
}

/* 文字部分 */
.pi-name {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pi-titles {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: block;
}

.pi-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: justify;
}

/* 按钮样式重新定义 */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-secondary { border: 1px solid var(--primary-color); color: var(--primary-color); }

/* 图片轮播 */
.hero-slider-box {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active { opacity: 1; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot { width: 8px; height: 8px; background: rgba(255,255,255,0.4); border-radius: 50%; }
.dot.active { background: white; width: 18px; border-radius: 4px; }

/* --- 移动端修复：彻底解决白边和高度问题 --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr; /* 变成一列 */
        gap: 2rem;
    }

    .hero-slider-box {
        height: 300px; /* 手机端高度 */
        order: -1;     /* 图片在文字上方 */
    }

    .pi-name { font-size: 2rem; }
    .hero-buttons { justify-content: center; }
}
/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/*Recent lab news section */
.news {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.news-list {
    list-style: none;
    margin: 0 left;
    padding: 0 20px;
}

.news-item {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
}


.news-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.news-content {
    flex: 1;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.news-image {
    flex-shrink: 0; /* 防止图片容器被压缩 */
    width: 280px; /* 固定图片容器宽度，保证统一 */
    height: 200px; /* 固定图片容器高度，避免拉伸变形 */
    overflow: hidden; /* 裁剪超出部分 */
    border-radius: 8px; /* 圆角美化，和卡片风格统一 */
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，覆盖容器（不会拉伸变形） */
    display: block; /* 去除图片默认的行内间隙 */
    transition: transform 0.3s ease; /* 鼠标悬浮缩放动画 */
}

.news-image:hover img {
    transform: scale(1.05); /* 悬浮时轻微放大，提升交互感 */
}
.news-content .news-title {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-content .news-time {
    color: #888;
    font-size: 14px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.morenews {
    text-align: center;
    margin-top: 2rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .news-card {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .news-image {
        width: 100%;
        height: auto;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .news-card {
        width: 100%;
    }
}



/* Research Section */
.research {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.research-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.research-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.research-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.research-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.lab-features {
    margin-top: 2rem;
}

.feature {
    margin-bottom: 1.5rem;
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
    margin: 0;
}

.about-image {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-visualization {
    position: relative;
    width: 250px;
    height: 250px;
}

.microscope {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    animation: float 3s ease-in-out infinite;
}

.brain-sample {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50% 30% 50% 30%;
    animation: pulse 2s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0px);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}


/* Publications Section */
.publications {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.publications-list {
    max-width: 800px;
    margin: 0 auto;
}

.publication-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.publication-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.publication-journal {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.publication-summary {
    color: var(--text-secondary);
    line-height: 1.6;
}




/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .nav {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .research-card,
    .team-member,
    .publication-item {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
.list{
    width: 90%;
   max-width: 1200px;
   margin: 40px auto;
   padding: 0 20px;
   box-sizing: border-box;
 }
 /* 内容容器，增加内边距与背景 */
 div.list-content {
   background-color: #ffffff;
   padding: 30px;
   border-radius: 8px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }
 /* 标题样式 */
 h2.list-title {
   color: #2c3e50;
   font-size: 20px;
   margin-bottom: 15px;
   padding-bottom: 8px;
   border-bottom: 2px solid #3498db;
 }
 /* 文献条目样式 */
 p.list-subtitle {
   color: #34495e;
   font-size: 15px;
   line-height: 1.6;
   margin: 10px 0;
   padding-left: 10px;
   border-left: 3px solid #3498db;
   word-break: break-all; /* 防止长标题溢出 */
 }
 @media (max-width: 768px) {
    /* 1. 核心：将并排改为上下堆叠 */
    .hero-content {
        display: flex;
        flex-direction: column; /* 垂直排列 */
        gap: 1.5rem;
        padding-top: 2rem;
    }

    /* 2. 让文字正常显示，不要被挤压 */
    .hero-text {
        width: 100%;
        order: 1; /* 让文字排在上面 */
        text-align: left; /* 保持左对齐或居中 */
    }

    /* 3. 解决“只露出最下边”：给图片容器明确的高度 */
    .hero-image {
        width: 100%;
        height: 50vh; /* 强制手机端图片高度为300px，这样就能看到大部分图片了 */
        order: 2;      /* 让图片排在文字下面 */
        position: relative;
        overflow: hidden;
        border-radius: 1rem;
    }

    /* 4. 确保轮播图在容器内填满 */
    .slide {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover; /* 关键：这会让图片像背景一样铺满容器而不变形 */
        object-position: center; /* 居中显示图片核心内容 */
    }
    
    .hero-title {
        font-size: 2rem; /* 缩小手机端标题，避免遮挡 */
        line-height: 1.2;
    }
}
/* 1. 调大整体行间距 */
.join-content {
    line-height: 1.8; /* 推荐 1.8，阅读感最好 */
}

/* 2. 设置段落之间的间距，避免挤在一起 */
.join-content p {
    margin-bottom: 20px;
}

/* 3. 让下划线 <u> 变成蓝色 */
.join-content u {
    text-decoration-color: #007bff; /* 漂亮的科技蓝 */
    text-underline-offset: 4px;      /* 让下划线离文字远一点，更好看 */
    color: inherit;                  /* 保持文字颜色不变，只变线下 */
}

/* 4. 优化列表项的间距 */
.join-content li {
    margin-bottom: 10px;
}