.category-union-events-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: "Microsoft YaHei", sans-serif;
}

.events-title {
    text-align: center;
    font-size: 2.2em;
    color: #2980b9;
    margin-bottom: 30px;
    border-bottom: 3px solid #2980b9;
    padding-bottom: 10px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.event-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.event-card a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: #333;
}

.event-card .thumbnail-wrapper {
    width: 100%;
    height: 225px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card h3 {
    font-size: 1.4em;
    margin: 10px 0 10px 0;
    color: #2980b9;
    line-height: 1.4;
}

.event-card h3:hover {
    color: #e74c3c;
}

.event-date {
    display: block;
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.event-excerpt {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 12px;
    background: #e6492d;
    color: white;
    font-size: 0.9em;
    border-radius: 4px;
    transition: background 0.3s;
}

.event-card a:hover .btn {
    background: #2980b9;
}

.pagination-wrap {
    text-align: center;
    margin-top: 20px;
}

.pagination-wrap .page-numbers,
.pagination-wrap .current,
.pagination-wrap .next,
.pagination-wrap .prev {
    margin: 0 !important;
    padding: 10px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.pagination-wrap .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.export-button {
    margin-top: 10px;
}

.export-button a.button {
    padding: 8px 16px;
    font-size: 14px;
}
@media (max-width: 768px) {
    .events-title {
        font-size: 1.8em;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pagination-wrap a,
    .pagination-wrap span {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}