/* 荣誉展览页面样式 */
.page-title {
    text-align: center;
    margin: 9rem 0 2rem;
    color: #333;
}
.gallery-container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

@media (max-width: 992px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-masonry {
        column-count: 1;
    }
}

.gallery-item {
    position: relative;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(70%);
}

.gallery-item .description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    opacity: 0;
}

.gallery-item:hover .description {
    transform: translateY(0);
    opacity: 1;
}



/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 图片加载动画 */
.gallery-item.loading-item {
    min-height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-animation 0.7s infinite;
}

@keyframes loading-animation {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}