index.wxss 2.51 KB
/**index.wxss**/

/* 防止横向滚动 */
page {
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 动态背景样式 */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(120px);
    z-index: -1;
}

.ball {
    position: absolute;
    border-radius: 50%;
}

.ball-1 {
    width: 400rpx;
    height: 400rpx;
    background-color: #4472c4;
    animation: move-1 8s ease-in-out infinite;
}

.ball-2 {
    width: 500rpx;
    height: 500rpx;
    background-color: #00b050;
    animation: move-2 10s ease-in-out infinite;
}

@keyframes move-1 {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(500rpx, 600rpx);
    }
    50% {
        transform: translate(-300rpx, 1000rpx);
    }
    75% {
        transform: translate(-400rpx, 400rpx);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes move-2 {
    0% {
        transform: translate(100rpx, 100rpx);
    }
    25% {
        transform: translate(-500rpx, -200rpx);
    }
    50% {
        transform: translate(400rpx, 800rpx);
    }
    75% {
        transform: translate(600rpx, 200rpx);
    }
    100% {
        transform: translate(100rpx, 100rpx);
    }
}

.container-custom {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20rpx;
}

/* 主内容区 */
.main-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title {
    font-size: 48rpx;
    font-weight: 600;
    letter-spacing: 4rpx;
    margin-bottom: 80rpx;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: text-shine 3s linear infinite;
}

@keyframes text-shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.nav-button {
    padding: 24rpx 80rpx;
    font-size: 32rpx;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50rpx;
    box-shadow: 0 12rpx 32rpx rgba(102, 126, 234, 0.4), inset 0 2rpx 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-button:active {
    transform: translateY(4rpx) scale(0.98);
    box-shadow: 0 6rpx 16rpx rgba(102, 126, 234, 0.4);
}