﻿/*特效1*/
.stream-text1 {
    font-size: 35px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #fff;
    background: #1a1a8a; /* 深色背景突出流光 */
    padding: 20px 40px;
    /* 流光阴影：x偏移随动画变化，y偏移0，模糊度10px，彩色 */
    text-shadow: 0 0 10px #00f5d4, 0 0 20px #00f5d4;
    animation: stream 3s linear infinite;
}

/* 流光滚动动画：阴影x偏移从-100%到100% */
@keyframes stream {
    0% {
        text-shadow: -100px 0 10px #00f5d4, -100px 0 20px #00f5d4, -100px 0 30px #7928ca;
    }

    50% {
        text-shadow: 0 0 10px #7928ca, 0 0 20px #7928ca, 0 0 30px #ff0080;
    }

    100% {
        text-shadow: 100px 0 10px #ff0080, 100px 0 20px #ff0080, 100px 0 30px #00f5d4;
    }
}

/*效果2*/
.stream-text3 {
    font-size: 35px;
    padding: 20px 40px;
    margin-top: 40px;
    background-image: linear-gradient(90deg, #ff0000, #00ff00, #0000ff, #ff00ff);
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
    text-align: center;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/*效果3*/
.stream-text2 {
    font-size: 35px;
    font-weight: bold;
    color: #fff;
    padding: 20px 40px;
    background: #ffffff; /* 深色背景突出流光 */
    background-color:blue;
    text-align: center;
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff;
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
    }

    to {
        text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff;
    }
}


/*3D特效*/
/*
 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        
        body {
            min-height: 100vh;
            background: #000;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }
*/
.text-wrapper {
    /*display: flex;*/
    min-height: 10vh;
    position: relative;
    perspective: 10000px;
    background: #000000;
}

.glow-text {
    padding: 0px 0px;
    font-size: 10rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
}

    /* 多层次阴影创造3D效果 */
    .glow-text::before,
    .glow-text::after,
    .glow-text span::before,
    .glow-text span::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        transform-style: preserve-3d;
    }

    /* 第一层阴影 */
    .glow-text::before {
        color: rgba(255, 0, 255, 0.7);
        transform: translateZ(-15px);
        text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
    }

    /* 第二层阴影 */
    .glow-text::after {
        color: rgba(0, 255, 255, 0.7);
        transform: translateZ(-30px);
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }

    /* 第三层阴影 */
    .glow-text span::before {
        color: rgba(0, 255, 0, 0.7);
        transform: translateZ(-45px);
        text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    }

    /* 第四层阴影 */
    .glow-text span::after {
        color: rgba(255, 255, 0, 0.7);
        transform: translateZ(-60px);
        text-shadow: 0 0 20px rgba(255, 255, 0, 0.8);
    }

    /* 主文字样式 */
    .glow-text span {
        display: block;
        background: linear-gradient( 45deg, #ff00ff, #00ffff, #00ff00, #ffff00, #ff00ff );
        background-size: 400% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 0 10px rgba(255, 0, 255, 0.8), 0 0 20px rgba(255, 0, 255, 0.6), 0 0 30px rgba(255, 0, 255, 0.4);
        animation: gradientFlow 15s ease infinite, pulse 3s ease-in-out infinite alternate;
    }

/* 动画效果 */
@keyframes rotate {
    0% {
        transform: rotateY(0deg) rotateX(5deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(5deg);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    from {
        text-shadow: 0 0 10px rgba(255, 0, 255, 0.8), 0 0 20px rgba(255, 0, 255, 0.6);
    }

    to {
        text-shadow: 0 0 20px rgba(255, 0, 255, 0.9), 0 0 40px rgba(255, 0, 255, 0.7), 0 0 60px rgba(255, 0, 255, 0.5);
    }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .glow-text {
        font-size: 8rem;
    }
}

@media (max-width: 900px) {
    .glow-text {
        font-size: 6rem;
    }
}

@media (max-width: 600px) {
    .glow-text {
        font-size: 4rem;
    }
}
