/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #4a90e2;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #357abd;
}

.btn-secondary {
    display: inline-block;
    background-color: #f39c12;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #e67e22;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(rgba(74, 144, 226, 0.8), rgba(74, 144, 226, 0.9)), 
                url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=happy%20elderly%20people%20outdoor%20activity&image_size=landscape_16_9') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 6rem 0;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 特色功能样式 */
.features {
    padding: 4rem 0;
    background-color: white;
    margin-bottom: 3rem;
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.feature-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-card h4 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: #333;
}

.feature-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* 活动预览样式 */
.activity-preview {
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.activity-preview h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.activity-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.activity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-card h4 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: #333;
}

.activity-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

.activity-preview .btn-secondary {
    display: block;
    width: 200px;
    margin: 0 auto;
    text-align: center;
}

/* 活动页面样式 */
.activities {
    padding: 4rem 0;
    background-color: white;
    margin-bottom: 3rem;
}

.activities h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.activities p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

.activity-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background-color: #f1f1f1;
    border: none;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: #4a90e2;
    color: white;
}

.category-btn.active {
    background-color: #4a90e2;
    color: white;
}

.activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.activity-list .activity-card {
    display: flex;
    flex-direction: column;
}

.activity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-info h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: #333;
}

.activity-date {
    padding: 0 1.5rem 0.5rem;
    color: #4a90e2;
    font-weight: bold;
}

.activity-location {
    padding: 0 1.5rem 0.5rem;
    color: #666;
    font-style: italic;
}

.activity-description {
    padding: 0 1.5rem 1rem;
    color: #666;
    flex: 1;
}

.activity-tags {
    padding: 0 1.5rem 1rem;
}

.tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.activity-info .btn-secondary {
    margin: 0 1.5rem 1.5rem;
    align-self: flex-start;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-btn {
    background-color: #f1f1f1;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.3rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: #4a90e2;
    color: white;
}

.page-btn.active {
    background-color: #4a90e2;
    color: white;
}

/* 用户心声样式 */
.testimonials {
    padding: 4rem 0;
    background-color: #f5f5f5;
    margin-bottom: 3rem;
}

.testimonials h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card p {
    margin-bottom: 2rem;
    font-style: italic;
    color: #666;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

/* 关于我们样式 */
.about {
    padding: 4rem 0;
    background-color: white;
    margin-bottom: 3rem;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
}

.about-text ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: #666;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* 团队介绍样式 */
.team {
    padding: 4rem 0;
    background-color: #f9f9f9;
    margin-bottom: 3rem;
}

.team h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.team > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

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

.team-member {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.team-member p {
    margin-bottom: 0.5rem;
    color: #666;
}

/* 发展历程样式 */
.timeline {
    padding: 4rem 0;
    background-color: white;
    margin-bottom: 3rem;
}

.timeline h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

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

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    width: calc(50% - 30px);
}

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

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 30px);
}

.timeline-date {
    position: absolute;
    top: 1.5rem;
    font-weight: bold;
    color: #4a90e2;
    font-size: 1.1rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    left: calc(100% + 15px);
}

.timeline-item:nth-child(even) .timeline-date {
    right: calc(100% + 15px);
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.timeline-content p {
    color: #666;
}

@media (max-width: 768px) {
    .timeline-items::before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .timeline-date {
        left: 20px !important;
        right: auto !important;
        top: 0;
    }
}

/* 联系我们样式 */
.contact {
    padding: 4rem 0;
    background-color: #4a90e2;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.contact h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info p {
    margin: 0;
}

/* 页脚样式 */
footer {
    background-color: #333;
    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-logo h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #ccc;
}

.footer-links h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

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

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

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

.footer-social h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 1rem;
    }
    
    .nav-links li {
        margin: 0 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .activity-list {
        grid-template-columns: 1fr;
    }
    
    .feature-grid,
    .activity-grid,
    .testimonial-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .features,
    .activity-preview,
    .testimonials,
    .about,
    .team,
    .timeline,
    .activities {
        padding: 2rem 0;
    }
    
    .feature-card,
    .activity-card,
    .testimonial-card,
    .team-member {
        margin-bottom: 1.5rem;
    }
}

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

.feature-card,
.activity-card,
.testimonial-card,
.team-member {
    animation: fadeIn 0.6s ease forwards;
}

.feature-card:nth-child(2),
.activity-card:nth-child(2),
.testimonial-card:nth-child(2),
.team-member:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3),
.activity-card:nth-child(3),
.testimonial-card:nth-child(3),
.team-member:nth-child(3) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(4),
.activity-card:nth-child(4),
.testimonial-card:nth-child(4),
.team-member:nth-child(4) {
    animation-delay: 0.6s;
}
