/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}



/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out forwards;
}

/* About Us 页面样式 */
.aboutus-container {
    padding: 50px 20px;
}

.aboutus-container h1 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.aboutus-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.aboutus-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.aboutus-text {
    max-width: 800px;
    text-align: left;
    margin-top: 20px;
}

.aboutus-text p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* 团队部分样式 */
.team-section {
    margin-bottom: 50px;
}

.team-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.team-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

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

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

.team-member h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.team-member p {
    color: #666;
    font-size: 14px;
}

/* 历史部分样式 */
.history-section {
    margin-bottom: 50px;
}

.history-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-date {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2e7d32;
}

.timeline-content {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    margin-bottom: 10px;
}

/* 影响部分样式 */
.impact-section {
    margin-bottom: 50px;
}

.impact-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.impact-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    width: 200px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .team-members {
        flex-direction: column;
        align-items: center;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }
}


.image-gallery {
    width: 90%;
    max-width: 1000px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-image-container {
    position: relative;
    padding: 20px;
    text-align: center;
}

.fade {
    animation: fade 0.8s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

.image-description {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.thumbnails-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.thumbnail {
    width: 100px;
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: translateY(-5px);
}

.thumbnail img {
    width: 100px;
    height: 100px;
    border-radius: 4px;
}

.thumbnail.active {
    border-color: #4285f4;
}

/* 添加过渡效果 */
#main-image {
    width: 500px;
    height: 500px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    margin: auto;
}

#main-image.fade {
    opacity: 0;
}