/* 活动列表页面样式 */

/* 页面标题 */
.activities-header {
    padding: 30px 0 30px;
}

.activities-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: left;
    margin: 0;
    position: relative;
    padding-left: 20px;
}

.activities-header h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: #4CAF50;
    border-radius: 2px;
}

/* 活动内容区域 */
.activities-content {
    padding: 0 0 30px;
}

/* 活动列表 */
.activities-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 活动项目 */
.activity-item {
    background: white;
    padding: 30px 0;
    display: grid;
    grid-template-columns: 280px 20px 1fr auto;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid rgb(166,235,188);
    transition: all 0.3s ease;
}


.activity-item:last-child {
    border-bottom: none;
}

/* 活动图片 */
.activity-image {
    width: 280px;
    height: 180px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 彩色方块 */
.activity-color-block {
    width: 30px;
    height: 50px;
    margin-top: 5px;
    background-color: rgb(230,206,228);
}


/* 活动信息 */
.activity-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 日期样式 */
.activity-date {
    font-size: 16px;
    font-weight: 500;
    color: #a6ebbc;
    display: inline-block;
}

.activity-content h3.activity-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.activity-content p.activity-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 报名按钮 */
.register-btn {
    background: white;
    border: 2px solid #333;
    color: #666;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 5px;
}

.register-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

/* 分页控制器 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    padding: 0 20px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.page-btn.current {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.page-btn.prev,
.page-btn.next {
    font-weight: 600;
}

.page-btn.prev:disabled,
.page-btn.next:disabled,
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.page-btn.prev:disabled:hover,
.page-btn.next:disabled:hover,
.page-btn:disabled:hover {
    background: #f8f9fa;
    color: #666;
}

.dots {
    color: #999;
    font-size: 14px;
    padding: 0 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .activities-header {
        padding: 40px 0 30px;
    }
    
    .activities-header h1 {
        font-size: 28px;
        text-align: left;
        padding-left: 18px;
    }
    
    .activities-header h1::before {
        width: 3px;
        height: 26px;
    }
    
    .activities-content {
        padding: 30px 0;
    }
    
    .activities-list {
        padding: 0 15px;
    }
    
    .activity-item {
        padding: 25px;
        grid-template-columns: 200px 20px 1fr;
        gap: 15px;
    }
    
    .activity-image {
        width: 200px;
        height: 130px;
    }
    
    .register-btn {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 15px;
    }
    
    .activity-content h3.activity-title {
        font-size: 16px;
    }
    
    .activity-content p.activity-description {
        font-size: 13px;
    }
    
    .pagination {
        margin-top: 40px;
        gap: 6px;
    }
    
    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .activities-header {
        padding: 30px 0 20px;
    }
    
    .activities-header h1 {
        font-size: 24px;
        padding-left: 16px;
    }
    
    .activities-header h1::before {
        width: 3px;
        height: 22px;
    }
    
    .activities-content {
        padding: 25px 0;
    }
    
    .activities-list {
        padding: 0 10px;
    }
    
    .activity-item {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 12px;
        position: relative;
    }
    
    .activity-image {
        width: 100%;
        height: 200px;
        margin-bottom: 10px;
    }
    
    .activity-color-block {
        position: absolute;
        top: 20px;
        left: 20px;
        width: 25px;
        height: 40px;
        z-index: 1;
    }
    
    .activity-info {
        grid-column: 1;
    }
    
    .register-btn {
        grid-column: 1;
        justify-self: center;
        margin-top: 10px;
    }
    
    .activity-date {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .activity-content h3.activity-title {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .activity-content p.activity-description {
        font-size: 12px;
    }
    
    .register-btn {
        padding: 8px 16px;
        font-size: 13px;
        margin-top: 10px;
    }
    
    .pagination {
        margin-top: 30px;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .dots {
        font-size: 12px;
        padding: 0 4px;
    }
} 