.modal-overlay {
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 弹窗内容框 */
.modal-content {
    width: 90%;
    max-width: 894px;
    min-height: 0;
    /* 限制高度，避免超出视口导致移动端无法滚动到底部 */
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: linear-gradient( 180deg, #D8FEFF 0%, #FDE3FF 100%);
    box-shadow: 0px 2px 4px 0px rgba(164,164,164,0.5);
    animation: fadeIn 0.4s;
}


.min-box, .sec-box {
    background: linear-gradient( 0deg, #7930FF 0%, #D747FF 100%);
    text-shadow: 1px 1px 0px #8A2C1C;
    font-family: DIN Next LT Pro, DIN Next LT Pro;
}

.limited-time-buy-btn {
    background: linear-gradient( 88deg, #FFA434 0%, #FF9000 100%);
    box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.25), inset 0px 3px 3px 0px #FBFF93;
}

.limited-time-buy-btn:hover {
    background: linear-gradient( 180deg, #FFA434 0%, #FF9000 100%);
}

.footer-link:hover .modal-footer-text {
    text-decoration: underline;
}

/* 简单的淡入动画 */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 639.98px) {
    .close-btn {
        right: 16px;
        font-size: 40px;
    }
}

