/* 活动网格布局样式 */
.events-section {
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

/* 网格布局 */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    justify-content: center;
    padding:0 80px;
}

/* 活动卡片样式 */
.event-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 图片容器 */
.event-image-container {
    position: relative;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image-container img {
    transform: scale(1.05);
}

/* 日期标签 */
.event-date {
    position: absolute;
    top: 205px;
    right: -12px;
    background-color: #B13C58;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: DM Sans, DM Sans;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.event-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #B13C58 0%, #9E0D30 100%);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.event-card:hover .event-date::before {
    opacity: 1;
}

/* 内容区域 */
.event-content {
    font-family: DM Sans, DM Sans;
    padding: 26px 0;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0;
    line-height: 1.4;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card:hover .event-title {
    color: #B13C58;
}

#pagination-wrapper {
    text-align: center;
    margin-top: 50px;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* 调整间距 */
    color: #333;
    font-size: 16px;
}

.pagination-separator {
    color: #ccc;
    margin: 0 4px;
}

.pagination-btn {
    text-decoration: none;
    color: #333;
    padding: 4px 8px;
    transition: all 0.3s;
}

/* 深红色正方形高亮 */
.pagination-btn.active {
    background: #9E0D30; /* 你的主题深红色 */
    color: #fff !important;
    border-radius: 4px;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 禁用状态：对应首页/上一页在第一页时的效果 */
.pagination-btn.disabled {
    color: #bbbbbb !important;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn:not(.disabled):hover {
    color: #9E0D30;
}