body {
    margin: 0;
    background-color: #f0f0f0;
    overflow-x: hidden; /* 禁止横向滚动 */
    overflow-y: scroll; /* 允许纵向滚动 */
}

/* 隐藏滚动条 */
body::-webkit-scrollbar {
    display: none; /* Safari 和 Chrome 隐藏滚动条 */
}

body {
    -ms-overflow-style: none;  /* IE 和 Edge 隐藏滚动条 */
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
}

.start-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    padding: 10px;
    width: 100%;
}

.tile {
    background-color: #ddd;
    height: 300px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s;
}

.tile:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.5s ease;
}

#modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#modal-img {
    max-width: 100%; /* 限制最大宽度 */
    max-height: 100%; /* 限制最大高度 */
    transition: none; /* 初始不带动画 */
    transform-origin: center; /* 默认中心点 */
}
