body {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ffffff; /* 背景白色 */
    overflow: hidden; /* 禁用滚动条 */
}
.homepage{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    align-items: center;
}
.start-btn{
    border: #111 solid 2px;
    color: #111;
    border-radius: 5px;
    padding: 8px 25px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}
.container {
    position: relative;
    width: 100%; /* 宽度 100% */
    max-width: 842px; /* 限制最大宽度 */
    aspect-ratio: 842 / 1191; /* 确保比例正确 */
    clip-path: inset(0.5% 0.5% 0.5% 0.5%);
}

#scratchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* 宽度 100% */
    height: auto; /* 高度按比例自动调整 */
}

#resultImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* 宽度 100% */
    height: auto; /* 高度按比例自动调整 */
    user-select: none; /* 禁用选择 */
    pointer-events: none; /* 禁用鼠标事件 */
}

button, .button {
    margin: 50px 10px;
    padding: 9px 10px 7px;
    border: solid #111 2px;
    background: #fff;
    border-radius: 50px;
    cursor: pointer;
}

.d-flex{
    display: flex;
}

a{
    display: block;
}

/* 弹跳视窗样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px 10px;
    z-index: 1000;
    text-align: center;
}

.modal-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-body {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.modal-close-wrap{
    display: flex;
    justify-content: center;
}
.modal-close {
    display: block;
    margin-top: 20px;
    padding: 6px 20px;
    font-size: 12px;
    background-color: #fff;
    color: #111;
    border: solid 1px #111;
    border-radius: 5px;
    cursor: pointer;
    
}
button.modal-close{
    margin-bottom: 0;
}

/* 背景遮罩 */
.overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 全屏弹窗样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明黑色背景 */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.popup-content {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
}

.popup-content h2 {
    margin-top: 0;
    font-size: 24px;
}

.popup-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 10px 0;
}

/* 鼠标点击提示 */
.popup-overlay::after {
    content: "Click anywhere to close";
    position: absolute;
    bottom: 20px;
    font-size: 14px;
    color: white;
}
.intro-icon{
    border-radius: 50px;
    border: #111 solid 1px;
    padding: 5px 5px;
    margin-right: 5px;
}
@media (max-width:1880px) {
    .container{
        max-width: 475px; /* 限制最大宽度 */
    }
}