/* 航天风格全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0a0f1f 0%, #0a1a2f 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* 星空背景动画 */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars {
    background: #000 url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMiIgaGVpZ2h0PSIyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgY3g9IjEiIGN5PSIxIiByPSIxIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==') repeat;
    z-index: -2;
    animation: stars-move 100s linear infinite;
}

.twinkling {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNCIgaGVpZ2h0PSI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgY3g9IjIiIGN5PSIyIiByPSIxLjUiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNSIvPjwvc3ZnPg==') repeat;
    z-index: -1;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
    position: relative;
    z-index: 1;
}

/* 航天员图标 */
.astronaut {
    position: relative;
    width: 100px;
    height: 120px;
    margin: 0 auto 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.helmet {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff, #aaddff);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 30px rgba(100, 200, 255, 0.5);
}

.helmet::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 15px;
    left: 15px;
}

.body {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #fff, #ccf0ff);
    margin: -10px auto 0;
    border-radius: 40% 40% 20% 20%;
    position: relative;
}

.body::before, .body::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 40px;
    background: linear-gradient(135deg, #fff, #ccf0ff);
    top: 20px;
}

.body::before {
    left: -20px;
    border-radius: 50% 0 0 50%;
    transform: rotate(10deg);
}

.body::after {
    right: -20px;
    border-radius: 0 50% 50% 0;
    transform: rotate(-10deg);
}

/* 标题样式 */
.title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.glitch {
    position: relative;
    color: #fff;
    text-shadow: 0 0 10px #00a0ff, 0 0 20px #00a0ff, 0 0 30px #00a0ff;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: none; opacity: 1; }
    92% { transform: none; opacity: 1; }
    93% { transform: skew(2deg, 1deg); opacity: 0.8; }
    94% { transform: skew(-2deg, -1deg); opacity: 0.9; }
    95% { transform: none; opacity: 1; }
}

/* 卡片样式 */
.quote-card {
    background: rgba(10, 20, 40, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 0 50px rgba(0, 160, 255, 0.3);
    transition: 0.3s;
}

.quote-card:hover {
    border-color: rgba(100, 200, 255, 0.8);
    box-shadow: 0 0 80px rgba(0, 160, 255, 0.5);
}

.quote-content {
    font-size: 28px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 1px;
}

.quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(100, 200, 255, 0.3);
    padding-top: 20px;
}

.mission {
    color: #8ab8ff;
    font-size: 14px;
    letter-spacing: 2px;
}

.refresh-btn {
    background: linear-gradient(45deg, #0066ff, #00a0ff);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 160, 255, 0.3);
}

.refresh-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 160, 255, 0.6);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #6d8db0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .quote-content {
        font-size: 22px;
    }
    
    .quote-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .title {
        font-size: 28px;
    }
}

/* 方案一：闪烁+渐变效果 */
.glitch-text {
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 
        0.05em 0 0 rgba(255, 0, 0, 0.75),
        -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
        0.025em 0.05em 0 rgba(0, 255, 0, 0.75);
    animation: glitch 500ms infinite;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes glitch {
    0% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
            0.025em 0.05em 0 rgba(0, 255, 0, 0.75);
    }
    14% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
            0.025em 0.05em 0 rgba(0, 255, 0, 0.75);
    }
    15% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 255, 0.75),
            -0.05em -0.05em 0 rgba(0, 255, 0, 0.75);
    }
    49% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 255, 0.75),
            -0.05em -0.05em 0 rgba(0, 255, 0, 0.75);
    }
    50% {
        text-shadow: 
            0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 255, 0.75),
            0 -0.05em 0 rgba(0, 255, 0, 0.75);
    }
    99% {
        text-shadow: 
            0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 255, 0.75),
            0 -0.05em 0 rgba(0, 255, 0, 0.75);
    }
    100% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
            0.025em 0.05em 0 rgba(0, 255, 0, 0.75);
    }
}



/* 方案二：扫描线效果 */
.scan-line {
    font-size: 48px;
    color: #00ffff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 80px #00ffff;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.scan-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 40px #00ffff;
    }
    50% {
        opacity: 0.9;
        text-shadow: 
            0 0 15px #00ffff,
            0 0 30px #00ffff,
            0 0 60px #00ffff,
            0 0 100px #00ffff;
    }
}


/* 方案四：粒子特效 */
.particle-title {
    position: relative;
    display: inline-block;
}

.particle-text {
    font-size: 48px;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave 3s ease-in-out infinite;
    display: inline-block;
}

.particle-particle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle-particle::before,
.particle-particle::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff;
    animation: particleMove 4s linear infinite;
}

.particle-particle::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle-particle::after {
    top: 80%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(5px);
    }
}

@keyframes particleMove {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(50px, -30px) scale(0);
        opacity: 0;
    }
}