.navbar {
    background-color: black;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.image1{
    width: 30%;
    height: 30%;
}
.to-top-btn {
    background-color: yellow;
    color: black;
    padding: 10px 20px;
    width: 20%;
    text-align: center;
    font-size: 1em;
    cursor: pointer;
}

.container {
    position: relative;
    width: 100%; /* 容器宽度 */
    overflow: hidden; /* 隐藏超出容器的部分 */
}
zt1{
    height: 200%;
}

.image {
    width: 100%;
    height: 100%; /* 保持图片的宽高比 */
    display: block; /* 去除图片下方的间隙 */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    color: white; /* 文本颜色 */
    padding: 20px; /* 内边距 */
    box-sizing: border-box; /* 边框盒模型 */
}

.text1 {
    color: white;
    font-size: 4em; /* 文字大小 */
    text-align: center;
}
.text2 {
    color: white;
    font-size: 2em; /* 文字大小 */
    text-align: center;
}
.text3{
    color: white;
    font-size: 2em; /* 文字大小 */
    text-align: center;
}

.video-container {
    position: absolute;
    margin: 20px auto; /* 上下间距和水平居中 */
    width: 80%; /* 视频宽度 */
    max-width: 600px; /* 最大宽度 */
    z-index: 0; /* 确保视频在文字之下 */
}

video {
    width: 100%; /* 视频宽度 */
    height: auto; /* 保持视频的宽高比 */
}

/* 预留空间示例，这里使用伪元素或额外的div来模拟 */
.spacer-before-video, .spacer-after-video {
    height: 50px; /* 假设每行大约50px高，根据实际需要调整 */
    width: 100%;
    display: block;
}
.additional-text {
    margin-top: 15%; /* 模拟在视频下方添加额外空间 */
}
.text4{
    color: white;
    font-size: 2.5em; /* 文字大小 */
    text-align: center;
}
.countdown-container {
    background-color: yellow;
    color: black;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;

    /* 如果需要固定高度，请取消注释下一行 */
    /* height: 200px; */
}

#countdown span {
    font-size: 2.5em;
    margin: 5px 0; /* 上下添加一些间距 */
}

.container1 {
    position: relative;
    width: 100%; /* 容器宽度 */
    overflow: hidden; /* 隐藏超出容器的部分 */
}
.mk{
    background-color: yellow;
    padding: 10px;
    text-align: center;
}

.button-container {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    height: 10%; /* 使容器占满整个视口高度 */
}

.round-button {
    border: none; /* 去除边框 */
    border-radius: 10px;
    padding: 15px 15%; /* 根据需要调整内边距 */
    background-color: black; /* 背景颜色 */
    color: white; /* 文字颜色 */
    font-size: 2.5em; /* 字体大小 */
    cursor: pointer; /* 鼠标悬停时显示手形图标 */
    transition: background-color 0.3s; /* 过渡效果 */
}
.photo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: black;
    padding: 10px;
}

.photo-item {
    position: relative;
    margin: 10px;
    flex: 1 0 calc(33.333% - 20px); /* 默认每行三张图，减去间隙 */
}

.photo-item img {
    width: 100%;
    height: auto; /* 保持图片原始宽高比 */
    display: block; /* 移除图片下方的默认空间 */
}

.white-container {
    width: 100%;
    height: 35%; /* 或其他你想要的固定高度 */
    background-color: white;
    margin-top: 10px; /* 可选，根据你的设计调整间距 */
}
.white-container1 {
    width: 100%;
    height: 35%; /* 或其他你想要的固定高度 */
    background-color: white;
    margin-top: 10px; /* 可选，根据你的设计调整间距 */
}
.container2 {
    position: relative;
    width: 100%; /* 容器宽度 */
    overflow: hidden; /* 隐藏超出容器的部分 */
}
.text4 {
    color: white;
    font-size: 4em; /* 文字大小 */
    text-align: center;
}
.text5 {
    color: black;
    font-size: 2em; /* 文字大小 */
    text-align: center;
}
.text6 {
    color: black;
    font-size: 1.5em; /* 文字大小 */
    text-align: center;
}
.yy{
    display: block;
}
.round-button1 {
    border: none; /* 去除边框 */
    border-radius: 10px;
    padding: 15px 15%; /* 根据需要调整内边距 */
    background-color: black; /* 背景颜色 */
    color: white; /* 文字颜色 */
    font-size: 2.5em; /* 字体大小 */
    cursor: pointer; /* 鼠标悬停时显示手形图标 */
    transition: background-color 0.3s; /* 过渡效果 */
    position: fixed;
    bottom: 20px; /* 你可以根据需要调整这个值 */
    left: 50%;
    transform: translateX(-50%); /* 水平居中 */
    z-index: 1000; /* 确保按钮在内容之上 */
    display: block; /* 确保按钮可见 */
}

/* 当屏幕高度大于宽度时 */
@media (orientation: portrait) or (max-aspect-ratio: 1/1) {
    .photo-item {
        flex: 1 0 100%; /* 每行一张图 */
    }
    .white-container1 {
        width: 100%;
        height: 13%; /* 或其他你想要的固定高度 */
        background-color: white;
        margin-top: 10px; /* 可选，根据你的设计调整间距 */
    }
    .yy{
        display: none;
    }
    .text1, .text2, .text3, .text4 {
        font-size: 1.5em; /* 减小文字大小以避免溢出 */
    }
}