/* 全局重置与基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* 轻微灰色背景 */
    color: #333;
}

/* 导航栏 (Navbar) 样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #ffffff; /* 白色背景 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #004d99; /* 实验室主色调 */
}

.navbar nav a {
    text-decoration: none;
    color: #333;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: #004d99;
}

/* 通用内容区样式 */
.page-section {
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-section h2 {
    text-align: center;
    color: #004d99;
    font-size: 2em;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Home 页面样式 - 英雄区 (Hero Section) */
.hero {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #e6f0ff; /* 浅蓝色背景 */
}

.hero h1 {
    font-size: 3em;
    color: #004d99;
}

/* People 成员列表样式 */
.member-list, .album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.member-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.member-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

/* Footer 样式 */
.footer {
    padding: 20px;
    text-align: center;
    background-color: #333;
    color: #fff;
    font-size: 0.9em;
}


/* Activities 页面样式 */

/* 1. 网格布局：实现多列展示 */
.album-grid {
    /* 使用 CSS Grid 实现多列，每列最小宽度 300px */
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* 卡片之间的间距 */
    padding: 20px 0;
}

/* 2. 相册卡片样式 */
.album-card {
    display: block; /* 确保链接占据整个卡片区域 */
    text-decoration: none; /* 移除链接下划线 */
    color: inherit;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* 确保图片圆角或不超出卡片范围 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 鼠标悬停效果：轻微抬升 */
.album-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 3. 图片样式：作为封面图 */
.album-card img {
    width: 100%;
    /* 封面图高度固定，使用 object-fit 确保不变形 */
    height: 200px; 
    object-fit: cover; 
    display: block;
}

/* 4. 文字信息样式 */
.album-info {
    padding: 15px;
}

.album-info h3 {
    margin: 0 0 5px 0;
    color: #004d99;
    font-size: 1.2em;
}

.album-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}