/* 黑客加载动画样式 */
#hacker-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 术语掉落容器 */
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 单个术语列 */
.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    animation: fall linear infinite;
    text-shadow: 0 0 8px currentColor;
}

/* 绿色术语 */
.matrix-column.green {
    color: #0f0;
}

/* 青色术语 */
.matrix-column.cyan {
    color: #0ff;
}

/* 红色警告术语 */
.matrix-column.red {
    color: #f00;
}

/* 紫色术语 */
.matrix-column.purple {
    color: #f0f;
}

@keyframes fall {
    to {
        top: 110%;
    }
}

/* 中央加载区域 */
.loader-center {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* HACKING NOW 容器 */
.hacking-text {
    font-family: 'Courier New', monospace;
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
}

/* 静态 HACKING */
.hacking-static {
    color: #0ff;
    text-shadow:
        0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 30px #0ff,
        0 0 40px #00f,
        0 0 70px #00f,
        0 0 80px #00f,
        0 0 100px #00f;
    display: inline-block;
    letter-spacing: 8px;
}

/* 动态闪烁 NOW */
.hacking-glitch {
    color: #f0f;
    display: inline-block;
    margin-left: 20px;
    letter-spacing: 8px;
    animation: glitch 0.3s infinite, colorShift 0.5s infinite;
    text-shadow:
        -2px 0 #f00,
        2px 0 #0ff,
        0 0 20px #f0f,
        0 0 40px #f0f,
        0 0 60px #f0f;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        opacity: 1;
    }

    20% {
        transform: translate(-3px, 3px);
        opacity: 0.8;
    }

    40% {
        transform: translate(3px, -3px);
        opacity: 1;
    }

    60% {
        transform: translate(-3px, -3px);
        opacity: 0.9;
    }

    80% {
        transform: translate(3px, 3px);
        opacity: 0.7;
    }

    100% {
        transform: translate(0);
        opacity: 1;
    }
}

@keyframes colorShift {
    0% {
        color: #f0f;
        text-shadow:
            -2px 0 #f00,
            2px 0 #0ff,
            0 0 20px #f0f;
    }

    25% {
        color: #0ff;
        text-shadow:
            -2px 0 #0f0,
            2px 0 #f00,
            0 0 20px #0ff;
    }

    50% {
        color: #f00;
        text-shadow:
            -2px 0 #f0f,
            2px 0 #0f0,
            0 0 20px #f00;
    }

    75% {
        color: #0f0;
        text-shadow:
            -2px 0 #0ff,
            2px 0 #f0f,
            0 0 20px #0f0;
    }

    100% {
        color: #f0f;
        text-shadow:
            -2px 0 #f00,
            2px 0 #0ff,
            0 0 20px #f0f;
    }
}

/* 加载进度条 */
.loader-bar-container {
    width: 500px;
    height: 6px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 0 10px #0ff,
        inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #0ff, #f0f, #0ff);
    background-size: 200% 100%;
    animation: loading 2s ease-in-out, shimmer 1s infinite;
    box-shadow: 0 0 20px #0ff;
}

@keyframes loading {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

/* 加载状态文字 */
.loader-status {
    margin-top: 30px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    letter-spacing: 3px;
}

.loader-status::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* 警告符号 */
.warning-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.warning-symbol {
    position: absolute;
    color: #f00;
    font-size: 24px;
    font-weight: bold;
    animation: warningBlink 0.5s infinite, warningFloat 3s ease-in-out infinite;
    text-shadow:
        0 0 10px #f00,
        0 0 20px #f00,
        0 0 30px #f00;
}

@keyframes warningBlink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0.3;
    }
}

@keyframes warningFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 扫描线效果 */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ff, transparent);
    animation: scan 3s linear infinite;
    box-shadow: 0 0 10px #0ff;
}

@keyframes scan {
    from {
        top: 0;
    }

    to {
        top: 100%;
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .hacking-text {
        font-size: 36px;
    }

    .loader-bar-container {
        width: 300px;
    }

    .matrix-column {
        font-size: 12px;
    }
}