html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    touch-action: none;
}
 
body {
    background-image: url('bgimg.gif'); 
    background-size: 100% auto; 
    background-repeat: no-repeat;
    background-position: top center; 
    background-color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: #fff;
    display: flex;
    justify-content: center;
    position: relative; 
}

.amount-box {
    position: absolute;
    top: 25%; 
    left: 50%;
    transform: translateX(-50%);
    padding: 30px 40px; 
    border-radius: 20px;
    text-align: center;
    width: 80%;
    max-width: 300px;
}
 
.amount-value {
    font-size: 50px; 
    font-weight: bold;
    color: #e94459; 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;
    line-height: 1.05; 
}
 
.dw {
    font-size: 22px; 
}
 
@media (max-height: 700px) {
    body {
        background-size: cover; 
    }
    .amount-box {
        top: 30%; 
    }
}
 
@media (max-height: 500px) {
    .amount-box {
        top: 25%; 
        padding: 25px 35px; 
    }
} 
 /* 遮罩层样式 */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5); 
            z-index: 1;
        }

        /* 模态框样式 */
        .alertModal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 30px;
            z-index: 2;
            border-radius: 10px;
            width: 60%;
        }
        
        /*模态框标题*/
        .alertModal .h3-title{
            color: #ee4234;
            text-align: center;
            margin-bottom: 20px;
        }
        
        /*模态框文字*/
        .alertModal p{
            font-size: 16px;
            line-height: 30px;
            text-align: center;
        }
        
        /* 浮动按钮样式 */
        .floating-button {
            position: fixed;
            bottom: 20px;
            right: 20px;
        }
        
        /* 图标样式 */
        .button-icon {
            position: fixed;
            bottom: 24px;
            right: 6px;
            display: inline-block;
            vertical-align: middle;
            width: 62px; /* 图标宽度 */
            height: 62px; /* 图标高度 */
            background-image: url('customize.gif'); /* 图标链接 */
            background-size: cover;
            cursor: pointer;
            z-index: 9999; /* 使按钮浮在最顶层 */
        }
        
        /* 图片弹窗样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7); /* 半透明背景 */
            z-index: 10000; /* 使弹窗在最顶层 */
            display: flex;
            justify-content: center;
            align-items: center;
        }
        

        .modal-content {
            background-color: white;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .modal img {
            max-width: 100%;
            max-height: 100%;
            border-radius: 10px;
        }

        .modal p {
            font-size: 16px;
            font-weight: bold;
            margin-top: 10px;
        }
        
        /* 居中数字显示样式 */
        .center-number {
            position: fixed;
            top: 42%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1000;
            text-align: center;
        }
        
        .number-display {
            font-size: 68px;
            font-weight: bold;
            color: red;
            font-family: 'Arial', sans-serif;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
            white-space: nowrap;
            display: flex;
            align-items: baseline;
            justify-content: center;
            padding-bottom: 50px;
        }
        
        .currency-symbol {
            font-size: 36px;
            margin-left: 8px;
            color: #ff6b35;
            font-weight: bold;
            flex-shrink: 0;
            vertical-align: baseline;
        }
        
        #randomNumber {
            vertical-align: baseline;
        }
        
        .bouncing-text {
            font-size: 22px;
            color: red;
            font-weight: bold;
            margin-top: 110px;
            text-align: center;
            animation: bounce 0.5s infinite;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        @keyframes bounce {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.2);
            }
        }