/* UPCOMING EVENTS 页面样式 */
.events-container {
    padding: 50px 0;
}

.events-container h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-align: center;
    color: #2e7d32;
}

.events-container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #555;
}

/* 筛选器样式 */
.filters {
    max-width: 900px;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.filter-group label {
    margin-right: 10px;
    font-weight: 600;
    color: #555;
}

.filter-group select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    min-width: 150px;
}

/* 活动列表样式 */
.events-list {
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.event-image {
    flex: 0 0 250px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-details {
    flex: 1;
    padding: 25px;
}

.event-details h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 22px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
}

.event-date,
.event-time,
.event-location {
    display: flex;
    align-items: center;
}

.date-icon,
.time-icon,
.location-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.event-description {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
}

.event-actions {
    display: flex;
    gap: 10px;
}

.yellow-btn {
    background-color: #ffc107;
    color: #333;
}

.yellow-btn:hover {
    background-color: #ffb300;
}

.green-btn {
    background-color: #2e7d32;
    color: white;
}

.green-btn:hover {
    background-color: #1b5e20;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: white;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination a.active {
    background-color: #2e7d32;
    color: white;
}

/* 地图部分样式 */
.map-section {
    margin: 60px 0;
    text-align: center;
}

.map-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2e7d32;
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/* 通讯录部分样式 */
.newsletter-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.newsletter-section p {
    margin-bottom: 25px;
    color: #666;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
    min-width: 200px;
}

.newsletter-form button {
    width: 100%;
    max-width: 200px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }

    .event-image {
        flex: 0 0 200px;
    }

    .filters {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        min-width: auto;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}
.modal h3 {
    margin-top: 0;
    color: #333;
}
.modal p {
    margin-bottom: 20px;
    color: #666;
}
.close-btn {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 125px;
    transition: background-color 0.3s ease;
}
.close-btn:hover {
    background-color: #666;
}

/* 模态框淡入动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}