body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #000324 0%, #000 100%);
    font-family: 'Arial', sans-serif;
    perspective: 2000px;
    overflow: hidden;
}

.scene {
    position: relative;
    transform-style: preserve-3d;
}

.clock-container {
    position: relative;
    transform-style: preserve-3d;
    animation: tilt 15s infinite ease-in-out;
}

.clock {
    position: relative;
    transform-style: preserve-3d;
}

.layer {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.outer-circle {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(48, 255, 0, 0.5);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(48, 255, 0, 0.3),
        inset 0 0 30px rgba(48, 255, 0, 0.2),
        0 0 50px rgba(48, 255, 0, 0.1),
        0 0 100px rgba(48, 255, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    animation: pulse 4s infinite ease-in-out;
    backdrop-filter: blur(5px);
}

.inner-circle {
    width: 280px;
    height: 280px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    backdrop-filter: blur(5px);
}

.time {
    font-size: 3em;  /* 原来是 4em，改小了 */
    color: #30ff00;
    text-shadow: 
        0 0 10px rgba(48, 255, 0, 0.8),
        0 0 20px rgba(48, 255, 0, 0.4),
        0 0 30px rgba(48, 255, 0, 0.2),
        0 0 40px rgba(48, 255, 0, 0.1);
    transform: translateZ(20px);
    letter-spacing: 1px;
    font-weight: bold;
}

.date {
    font-size: 1.2em;
    color: #30ff00;
    margin-top: 15px;
    opacity: 0.9;
    transform: translateZ(10px);
    letter-spacing: 1px;
    display: flex;
    gap: 10px;
    align-items: center;
    text-transform: uppercase;
}

.date-item {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(48, 255, 0, 0.1);
    border: 1px solid rgba(48, 255, 0, 0.3);
    border-radius: 4px;
    box-shadow: 
        0 0 10px rgba(48, 255, 0, 0.2),
        inset 0 0 5px rgba(48, 255, 0, 0.1);
    animation: datePulse 2s infinite ease-in-out;
}

.date-separator {
    color: #30ff00;
    opacity: 0.7;
    text-shadow: 0 0 5px rgba(48, 255, 0, 0.5);
    animation: separatorGlow 1.5s infinite ease-in-out;
}

.weekday {
    font-weight: bold;
    text-shadow: 
        0 0 5px rgba(48, 255, 0, 0.8),
        0 0 10px rgba(48, 255, 0, 0.4);
    animation: weekdayFloat 3s infinite ease-in-out;
}

@keyframes datePulse {
    0%, 100% {
        transform: scale(1) translateZ(10px);
        box-shadow: 
            0 0 10px rgba(48, 255, 0, 0.2),
            inset 0 0 5px rgba(48, 255, 0, 0.1);
    }
    50% {
        transform: scale(1.05) translateZ(15px);
        box-shadow: 
            0 0 15px rgba(48, 255, 0, 0.3),
            inset 0 0 8px rgba(48, 255, 0, 0.2);
    }
}

@keyframes separatorGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

@keyframes weekdayFloat {
    0%, 100% {
        transform: translateY(0) translateZ(10px);
    }
    50% {
        transform: translateY(-2px) translateZ(15px);
    }
}

.reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        transparent 60%
    );
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(
            circle at center,
            rgba(48, 255, 0, 0.1) 0%,
            transparent 70%
        );
    animation: bgPulse 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes tilt {
    0%, 100% {
        transform: rotateX(20deg) rotateY(10deg) rotateZ(5deg) translateZ(50px);
    }
    50% {
        transform: rotateX(-20deg) rotateY(-10deg) rotateZ(-5deg) translateZ(0px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translateZ(0px);
        box-shadow: 0 0 20px rgba(48, 255, 0, 0.3);
    }
    50% {
        transform: translateZ(30px);
        box-shadow: 0 0 40px rgba(48, 255, 0, 0.5);
    }
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.ripple {
    position: absolute;
    border: 2px solid rgba(48, 255, 0, 0.2);
    border-radius: 50%;
    animation: rippleEffect 4s infinite linear;
}

.ripple:nth-child(1) { animation-delay: 0s; }
.ripple:nth-child(2) { animation-delay: 1s; }
.ripple:nth-child(3) { animation-delay: 2s; }

@keyframes rippleEffect {
    0% {
        width: 300px;
        height: 300px;
        opacity: 0.5;
        transform: translateZ(0);
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        transform: translateZ(-100px);
    }
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
    z-index: -1;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(48, 255, 0, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.glitch {
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0% { transform: translateX(0); }
    2% { transform: translateX(-3px) translateY(2px); }
    4% { transform: translateX(3px) translateY(-2px); }
    6% { transform: translateX(0); }
    100% { transform: translateX(0); }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(48, 255, 0, 0.5);
    border-radius: 50%;
    animation: float-up 15s infinite linear;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.colon {
    animation: blink 1s infinite;
    text-shadow: 0 0 20px rgba(48, 255, 0, 0.8);
}

/* 子弹轨迹效果 */
.bullet-trail {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    perspective: 1000px;
}

.trail {
    position: absolute;
    background: linear-gradient(
        90deg,
        rgba(48, 255, 0, 0) 0%,
        rgba(48, 255, 0, 0.5) 50%,
        rgba(48, 255, 0, 0) 100%
    );
    height: 2px;
    transform-style: preserve-3d;
    animation: trailMove 3s ease-out forwards;
}

.bullet {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #30ff00,
        0 0 30px #30ff00;
    transform-style: preserve-3d;
    animation: bulletMove 3s ease-out forwards;
}

@keyframes trailMove {
    0% {
        width: 0;
        opacity: 0;
        transform: translateZ(0) rotateY(0);
    }
    20% {
        opacity: 1;
    }
    100% {
        width: 200px;
        opacity: 0;
        transform: translateZ(-1000px) rotateY(-45deg);
    }
}

@keyframes bulletMove {
    0% {
        transform: translateZ(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateZ(-1000px) scale(0.1);
        opacity: 0;
    }
}

/* 扭曲空间效果 */
.space-distortion {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    animation: distort 5s infinite;
}

@keyframes distort {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}
