text-to-audio-result.wxss 3.63 KB
/**text-to-audio-result.wxss**/

/* 防止横向滚动 */
page {
    width: 100%;
    height: 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);
    }
}

/* 全局移除按钮边框 */
button {
    border: none !important;
    outline: none !important;
}

button::after {
    border: none !important;
}

button::before {
    border: none !important;
}

/* 音频卡片 */
.audio-card {
    margin-bottom: 20rpx;
    padding: 30rpx;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10rpx);
    border-radius: 24rpx;
    box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.audio-card:active {
    transform: translateY(-2rpx);
    box-shadow: 0 12rpx 48rpx rgba(0, 0, 0, 0.12);
}

.audio-text {
    font-size: 32rpx;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24rpx;
    word-break: break-all;
}

.audio-footer {
    display: flex;
    flex-direction: column;
    gap: 20rpx;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 16rpx;
    font-size: 24rpx;
    color: #999;
}

.audio-type {
    padding: 4rpx 12rpx;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8rpx;
    font-size: 22rpx;
}

.audio-date {
    color: #999;
}

.audio-actions {
    display: flex;
    gap: 16rpx;
}

.btn-action {
    flex: 1;
    height: 64rpx;
    line-height: 64rpx;
    font-size: 26rpx;
    border-radius: 32rpx;
    transition: all 0.3s ease;
}

.btn-play {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.4);
}

.btn-play:active {
    transform: scale(0.95);
    box-shadow: 0 2rpx 8rpx rgba(102, 126, 234, 0.4);
}

.btn-download {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4rpx 16rpx rgba(240, 147, 251, 0.4);
}

.btn-download:active {
    transform: scale(0.95);
    box-shadow: 0 2rpx 8rpx rgba(240, 147, 251, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 4rpx 16rpx rgba(255, 107, 107, 0.4);
}

.btn-delete:active {
    transform: scale(0.95);
    box-shadow: 0 2rpx 8rpx rgba(255, 107, 107, 0.4);
}

/* 空状态 */
.empty-state {
    padding: 120rpx 60rpx;
    text-align: center;
}

.empty-icon {
    font-size: 120rpx;
    margin-bottom: 32rpx;
    opacity: 0.6;
}

.empty-text {
    font-size: 32rpx;
    color: #666;
    margin-bottom: 16rpx;
    font-weight: 600;
}

.empty-desc {
    font-size: 28rpx;
    color: #999;
}