* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background: transparent;
}

.container {
    max-width: 800px;
    min-height: calc(100vh - 40px);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 球的动画样式 */
.animation-container {
    width: 400px;
    height: 200px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: white;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ball {
    width: 30px;
    height: 30px;
    background-color: cornflowerblue;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: ball-move 4s linear infinite;
}

@keyframes ball-move {
    0% {
        left: 0;
        transform: translateY(-50%) scale(1);
    }
    25% {
        left: 25%;
        top: 20%;
        transform: translateY(-50%) scale(1.25);
    }
    50% {
        left: 50%;
        top: 50%;
        transform: translateY(-50%) scale(1.5);
    }
    75% {
        left: 75%;
        top: 80%;
        transform: translateY(-50%) scale(1.75);
    }
    100% {
        left: 100%;
        transform: translateY(-50%) scale(2);
    }
}

/* 响应式设计 - 内容区域 */
@media (max-width: 600px) {
    .animation-container {
        width: 90vw;
        height: calc(90vw * 9 / 16);
    }
    
    .container {
        padding: 0 10px;
    }
}