/* 校园活动页面样式 */

/* 主容器样式 */
.school-life-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 页面标题样式 */
.school-life-header {
    margin-bottom: 40px;
    text-align: center;
}

.school-life-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.school-life-header h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #f39800;
}

/* 活动网格布局 */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 活动项目卡片样式 */
.activity-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 图片占位符样式 */
.image-placeholder {
    width: 100%;
    height: 220px;
    background-color: #f5f5f5;
   
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 日期标签样式 */
.date {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: #111;
    border: 2px solid rgba(255, 173, 97, 0.5);
    line-height: 1.15;
    text-align: center;
    padding: 6px 14px 11px;
    position: absolute;
    left: 30px;
    top: 24px;
}

.date .date-tag {
    font-size: 14px;
}

.date .date-day {
    font-size: 30px;
}

/* 活动内容样式 */
.activity-content {
    padding: 20px;
}

.activity-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.activity-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 查看详情链接样式 */
.read-more-btn {
    /* width: 100%; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.read-more-btn:hover {
    width: 100%;
    height: 100%;
    color: #fff;
}

.read-more-btn .read-more {
    max-width: 40%;
    /* display: inline-block; */
    border: 1px solid #f39800;
    border-right: none;
    border-left: none;
    padding: 10px 20px;


    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    font-size: 14px;
    white-space: nowrap;
    color: #f39800;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #fff;
    background-image: linear-gradient(to right, rgb(255, 106, 0) 1%, rgb(255, 142, 22) 100%);
}

/* 分页导航样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-flex
;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 36px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 8px;
}

.pagination .active a {
    background-color: #f39800;
    color: #fff;
}

.pagination a:hover:not(.active) {
    background-color: #e0e0e0;
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .school-life-header h1 {
        font-size: 28px;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-placeholder {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .school-life-container {
        padding: 20px 15px;
    }

    .school-life-header {
        margin-bottom: 25px;
    }

    .school-life-header h1 {
        font-size: 24px;
    }

    .activity-content h3 {
        font-size: 16px;
    }

    .activity-content p {
        font-size: 13px;
    }

    .pagination a {
        width: 32px;
        height: 32px;
        margin: 0 3px;
    }
}