
/* 自动移动模块样式 */
.auto-move-module {
    position: fixed;
    height: 60px;
    --item-height: 60px;
    --item-width: 240px;
    width: 240px;
    max-width: 600px;
    background: red;
    padding: 16px 24px;
    border-radius: 2px;
    /*box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);*/
    cursor: pointer;
    z-index: 9999;
    overflow: hidden;
    will-change: transform, left, bottom;
}

.auto-move-module:hover {
    animation-play-state: paused !important;
    box-shadow: 0 6px 16px rgba(255, 77, 79, 0.6);
}

.move-content {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.move-text {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 动画定义 - 沿屏幕边缘浮动效果（带反弹） */
@keyframes floatMove {
    /* 第一圈：外边缘 */
    0% {
        left: 25%;
        bottom: calc(100% - var(--item-height))
    }
    10% {
        left: 0%;
        bottom: 60%;
    }
    20% {
        left: 35%;
        bottom: 0%;
    }
    32% {
        left: calc(100% - var(--item-width));
        bottom: 40%;
    }
    40% {
        left: 55%;
        bottom: calc(100% - var(--item-height));
    }
    50% {
        left: 35%;
        bottom: 0%;
    }

    60% {
        left: 0%;
        bottom: 60%;
    }
    70% {
        left: 40%;
        bottom: calc(100% - var(--item-height));
    }
    80% {
        left: calc(100% - var(--item-width));
        bottom: 50%;
    }
    90% {
        left: 55%;
        bottom: 0%;
    }
    100% {
        left: 25%;
        bottom: calc(100% - var(--item-height));
    }
}

.auto-move-module.animating {
    animation: floatMove 95s linear infinite;
}
.move-text {
    padding-top: 1%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auto-move-module {
        bottom: 60px;
        padding: 12px 16px;
        max-width: 100%;
    }

    .move-text {
        font-size: 14px;
        padding-top: 20px;
    }
}
