:root {
    --primary-green: #198754;
    --secondary-green: #2e8b57;
    --light-green: #e9f5e9;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    padding-top: 76px;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #146c43 100%);
    color: white;
    padding: 50px 0;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header .lead {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* 内容卡片 */
.content-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-green);
}

.content-card h2 {
    color: var(--primary-green);
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 600;
}

.content-card h2 i {
    margin-right: 10px;
}

/* 滚动网格容器 - 用于成员展示 */
.scrollable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-height: 900px; /* 显示大约6个成员的高度 */
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 10px;
}

/* 滚动列表容器 - 用于论文展示 */
.scrollable-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 10px;
}

/* 滚动条样式 */
.scrollable-grid::-webkit-scrollbar,
.scrollable-list::-webkit-scrollbar {
    width: 6px;
}

.scrollable-grid::-webkit-scrollbar-thumb,
.scrollable-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-green);
    border-radius: 3px;
}

.scrollable-grid::-webkit-scrollbar-track,
.scrollable-list::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 3px;
}

/* 滚动提示信息 */
.scroll-info {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #e9ecef;
}

/* 实验室成员样式 */
.member-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 25px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.member-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.15); /* 悬浮时带点淡淡的绿色阴影 */
}

.member-header {
    display: flex;
    flex-direction: column; /* 让内部元素垂直排列 */
    align-items: center;    /* 强制居中对齐 */
    text-align: center;     /* 文字居中 */
    margin-bottom: 15px;
}

/* 绿色圆形头像 */
.member-avatar {
    width: 80px;
    height: 80px;
    background-color: #198754; /* 你的主题绿 */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 12px; /* 🌟 新增：让头像和下面的姓名拉开一点距离 */
}

.member-info h4 {
    font-weight: 700;       /* 稍微加粗一点 */
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.5rem;      /* 🌟 核心修改：从1.1rem放大到1.5rem，更加醒目 */
}
.member-title {
    color: var(--primary-green);
    font-weight: 500;
    font-size: 0.85rem;
}

.member-details {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.member-contact {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.member-contact a {
    color: var(--primary-green);
    font-size: 1rem;
    transition: color 0.3s;
}

.member-contact a:hover {
    color: var(--secondary-green);
}

/* 论文列表样式 */
.paper-item {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-green);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.3s;
}

.paper-item:hover {
    background-color: #e9f5e9;
}

.paper-year {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.paper-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 1.05rem;
}

.paper-authors {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.paper-journal {
    color: var(--secondary-green);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.paper-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.paper-link:hover {
    text-decoration: underline;
}

/* 联系信息样式 */
.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5e9 100%);
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    background: var(--primary-green);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h5 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-details p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 地图容器 */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px 0;
    color: var(--primary-green);
    grid-column: 1 / -1;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    margin-top: 50px;
    padding: 30px 0 20px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-green);
}

/* 返回首页按钮 */
.back-to-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-green);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background: var(--secondary-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.4);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .lead {
        font-size: 1.1rem;
    }

    .content-card {
        padding: 20px;
    }

    .scrollable-grid {
        grid-template-columns: 1fr;
        max-height: 700px;
    }

    .member-header {
        flex-direction: column;
        text-align: center;
    }

    .member-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .scroll-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .content-card h2 {
        font-size: 1.5rem;
    }

    .scrollable-grid {
        max-height: 600px;
    }
}

.highlight-title {
    color: #198754;
    font-size: 1.05rem; /* 比姓名稍小，形成良好的主次层级 */
    font-weight: 500;
    margin-bottom: 10px;
}
.member-intro-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify; /* 两端对齐，大段文字看起来更整齐 */
    margin-bottom: 0;
}

.member-contact a {
    transition: opacity 0.3s;
}
.member-contact a:hover {
    opacity: 0.7;
}