* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url("image/bg.png");
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.image-wrapper {
    width: 200px;
    perspective: 1000px;
}

.image-container {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.5s ease-out;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-container:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.35);
}

.image-container img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s ease-out;
    z-index: 1;
    position: relative;
}

.voronoi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 8px;
    mix-blend-mode: screen; /* 改为screen模式，显示效果更好 */
    z-index: 2;
}

.reflection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 8px;
    z-index: 3;
}

.footer {
    font-family: arial;
    color: gray;
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
    padding-bottom: 20px;
}

.footer a {
    text-decoration: none;
    color: gray;
}

/* 原有样式保持不变... */

/* 为最后三张图片创建强制换行 */
.image-gallery::after {
    content: '';
    width: 100%;
    height: 0;
    order: 1;
}

/* 最后三张图片放在第二行 */
.image-wrapper:nth-last-child(-n+3) {
    order: 2;
}