/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Heiti SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: #2d5091;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 15px;
    text-align: center;
    font-size: 2.2rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #b6cbe9;
}

/* 各部分内容样式 */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #2d5091;
}

/* 介绍部分 */
.intro-section {
    background-color: #eaf2fd;
    text-align: center;
}

.intro-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* 内容部分通用样式 */
.story-content,
.research-content,
.participate-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.story-text,
.research-text,
.participate-text {
    flex: 1;
}

.image {
    flex: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.image img:hover {
    transform: scale(1.03);
}

/* 爷爷的故事部分 */
.story-section {
    background-color: white;
}

/* 研究部分 */
.research-section {
    background-color: #f3f7fd;
}

.research-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* 如何参与部分 */
.participate-section {
    background-color: white;
}

.participate-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* 页脚样式 */
footer {
    background-color: #2d5091;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .story-content,
    .research-content,
    .participate-content {
        flex-direction: column;
    }
    
    .research-content {
        flex-direction: column-reverse;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    section {
        padding: 40px 0;
    }
} 