/* 活动卡片容器 */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* 单个活动卡片 */
.activity-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

/* 活动图片区域 */
.activity-image {
    width: 100%;
    height: 160px; /* 固定高度，确保一致 */
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    position: relative;
}

/* 活动内容区域 */
.activity-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 活动标签 */
.activity-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 活动标题 */
.activity-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a1a1a;
    line-height: 1.3;
    word-break: break-word;
}

/* 活动描述 */
.activity-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 16px 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 活动CTA按钮 */
.activity-cta {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #4ECDC4;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #4ECDC4;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.activity-cta:hover {
    background: #4ECDC4;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-cta i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.activity-cta:hover i {
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .activity-card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .activity-image {
        height: 140px;
    }
    
    .activity-content h3 {
        font-size: 1.2rem;
    }
    
    .activity-content p {
        font-size: 13px;
    }
    
    .activity-cta {
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .activity-card {
        border-radius: 12px;
    }
    
    .activity-image {
        height: 120px;
    }
    
    .activity-content h3 {
        font-size: 1.1rem;
    }
    
    .activity-content p {
        font-size: 12px;
    }
}