* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* 全屏 Loading 遮罩 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    /* 纯白背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: black;
    z-index: 9999;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

/* 隐藏 loading 画面 */
#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

#heartCanvas {
    width: 210px;
    height: 210px;
    display: block;
}

/* Loading 文字 */
.loading-text {
    text-align: center;
}


/* 添加白色蒙版 */
section::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* 居中文字 */
.overlay-div {
    width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(255, 255, 255);
    z-index: 2;
    text-align: center;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay-text {
    font-weight: bold;
    font-size: 5vw;
}

.small-font {
    font-size: 2vw;
}

section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


section {
    width: 100%;
    /* margin: 3vw auto; */
}

h1 {
    text-align: center;
    margin-bottom: 3vw;
    font-size: 3vw;
    text-transform: capitalize;
}

/* .images-gallery {
    display: flex;
    flex-wrap: wrap;
    overflow-y: hidden;
    height: 100vh;
    position: relative;
} 
*/


/* 1. 图片画廊容器：必须保证水平排列、100%宽度、不换行 */
.images-gallery {
    display: flex; /* 核心：水平Flex布局 */
    flex-wrap: nowrap; /* 关键：禁止换行（6列必须在1行） */
    align-items: flex-start;
    width: 100%; /* 占满父容器，避免宽度不足 */
    height: 100vh;
    overflow: hidden; /* 只隐藏滚动条，不影响列显示 */
}

/* 2. 大屏幕默认列（6列）：必须固定宽度、不自动拉伸 */
.column {
    flex-grow: 0; /* 核心：关闭自动拉伸（否则会覆盖width） */
    flex-shrink: 0; /* 防止列被压缩（关键！避免屏幕略小时列被挤窄） */
    width: 16.6666667%; /* 6列精确宽度：100% ÷ 6 ≈ 16.6666667% */
    padding: 0 0.1vw; /* 统一间距，box-sizing:border-box已全局设置，不影响宽度 */
}

/* 3. 小屏幕响应式（3列）：保持之前的逻辑，只改这里 */
@media (max-width: 768px) {
    #images-gallery .column {
        flex-grow: 0;
        flex-shrink: 0;
        width: 33.3333333%; /* 3列宽度：100% ÷ 3 ≈ 33.3333333% */
    }
    /* 隐藏后3列，只显示前3列 */
    #images-gallery .column:nth-child(n+4) {
        display: none;
    }
}

/* 4. 图片样式：确保填满列容器 */
.column img {
    width: 100%;
    height: auto; /* 保持图片比例，避免变形 */
    display: block;
}

.column:nth-child(odd) {
    padding-right: 0.1vw;
    padding-left: 0.1vw;
}

.column div {
    margin-top: 0.1vw;
    margin-bottom: 0.1vw;
}

@media screen and (max-width: 768px) {
    .overlay-text {
        font-size: 7vw;
    }
}

@media screen and (max-width: 576px) {
    .overlay-text {
        font-size: 8vw;
    }
}