/* 文化活动页面样式 */

/* 页面标题样式 */
.page-title {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/activities-banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-title p {
    font-size: 18px;
    opacity: 0.9;
}

/* 活动日历区域样式 */
.calendar-section {
    padding: 40px 0;
    background-color: #f8f8f8;
}

.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.calendar-nav:hover {
    color: #c41230;
}

.current-month {
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-grid .day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-grid .day:hover {
    background-color: #f0f0f0;
}

.calendar-grid .day.has-event {
    background-color: #fef0f0;
    color: #c41230;
    font-weight: 500;
}

/* 活动列表区域样式 */
.activities-section {
    padding: 60px 0;
}

.activities-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #c41230;
    color: #c41230;
    background-color: #fef0f0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.activity-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
}

.activity-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: rgba(196, 18, 48, 0.9);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.activity-info {
    padding: 20px;
}

.activity-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.activity-time,
.activity-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.icon-calendar,
.icon-location {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-calendar {
    background-image: url('../images/calendar-icon.png');
}

.icon-location {
    background-image: url('../images/location-icon.png');
}

.activity-desc {
    margin: 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.btn-details {
    display: inline-block;
    padding: 8px 20px;
    background-color: #c41230;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-details:hover {
    background-color: #a00f28;
}

/* 活动详情弹窗样式 */
.activity-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

.modal-body {
    display: flex;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-image {
    flex: 1;
    padding: 20px;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.modal-info {
    flex: 1;
    padding: 20px;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.modal-details {
    margin-bottom: 30px;
}

.modal-time,
.modal-location {
    margin-bottom: 10px;
    color: #666;
}

.modal-description {
    line-height: 1.6;
    color: #666;
}

/* 报名表单样式 */
.registration-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.registration-form h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #c41230;
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background-color: #c41230;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #a00f28;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activities-filter {
        flex-wrap: wrap;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image,
    .modal-info {
        flex: none;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .page-title h2 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .calendar-container {
        padding: 10px;
    }

    .activity-card {
        margin: 0 10px;
    }
} 