/* 页面主体样式 */
.activities-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* 页面标题样式 */
.page-header {
    position: relative;
    height: 400px;
    margin-bottom: 50px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.header-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.header-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-content p {
    font-size: 24px;
    opacity: 0.9;
}

/* 活动筛选样式 */
.activities-filter {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: #333;
    font-weight: 500;
}

.filter-group select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.view-switch {
    display: flex;
    gap: 10px;
}

.switch-btn {
    padding: 8px 15px;
    border: 2px solid #c41230;
    border-radius: 4px;
    background: none;
    color: #c41230;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.switch-btn.active,
.switch-btn:hover {
    background: #c41230;
    color: #fff;
}

/* 日历视图样式 */
.calendar-view {
    display: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.calendar-view.active {
    display: block;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.calendar-header button:hover {
    color: #c41230;
}

.calendar-header h2 {
    font-size: 24px;
    color: #333;
}

.calendar-grid {
    display: grid;
    gap: 1px;
    background: #eee;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f8f8;
}

.weekdays div {
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day {
    background: #fff;
    min-height: 120px;
    padding: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.day:hover {
    background: #f8f8f8;
}

.day.today {
    background: #fff3f3;
}

.day.has-events::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #c41230;
    border-radius: 50%;
}

.day-number {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.day.other-month .day-number {
    color: #999;
}

.day-events {
    font-size: 12px;
    color: #666;
}

/* 列表视图样式 */
.list-view {
    display: none;
}

.list-view.active {
    display: block;
}

.activity-list {
    display: grid;
    gap: 30px;
}

.activity-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: transform 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-5px);
}

.activity-image {
    position: relative;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-item:hover .activity-image img {
    transform: scale(1.1);
}

.activity-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    background: rgba(196, 18, 48, 0.9);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
}

.activity-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.activity-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.activity-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.activity-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.activity-meta i {
    color: #c41230;
}

.activity-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.activity-actions {
    display: flex;
    gap: 15px;
}

.btn-details,
.btn-register {
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-details {
    background: none;
    border: 2px solid #c41230;
    color: #c41230;
}

.btn-details:hover {
    background: #c41230;
    color: #fff;
}

.btn-register {
    background: #c41230;
    border: none;
    color: #fff;
}

.btn-register:hover {
    background: #a01028;
}

/* 弹窗样式 */
.activity-modal,
.register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    z-index: 1;
}

.modal-body {
    padding: 30px;
}

.modal-image {
    margin: -30px -30px 30px;
    height: 400px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-schedule,
.modal-notice {
    margin-bottom: 30px;
}

.modal-schedule h3,
.modal-notice h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.modal-schedule ul,
.modal-notice ul {
    list-style: none;
    padding: 0;
}

.modal-schedule li,
.modal-notice li {
    color: #666;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.modal-schedule li::before,
.modal-notice li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #c41230;
    border-radius: 50%;
    transform: translateY(-50%);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-actions {
    text-align: right;
}

.btn-submit {
    padding: 12px 30px;
    background: #c41230;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background: #a01028;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-item {
    animation: fadeIn 0.6s ease forwards;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .activity-item {
        grid-template-columns: 1fr;
    }

    .activity-image {
        height: 300px;
    }

    .modal-content {
        margin: 30px 15px;
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        height: 300px;
    }

    .header-content h1 {
        font-size: 36px;
    }

    .header-content p {
        font-size: 18px;
    }

    .activities-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .day {
        min-height: 80px;
    }
}

@media screen and (max-width: 480px) {
    .page-header {
        height: 200px;
    }

    .header-content h1 {
        font-size: 28px;
    }

    .activity-info {
        padding: 20px;
    }

    .activity-meta {
        flex-direction: column;
        gap: 10px;
    }

    .activity-actions {
        flex-direction: column;
    }
} 