/* 404 页面独立容器：所有背景特效和样式被严格限制在此容器内，不污染全局 */
.dpjet-404-page {
    position: relative;
    min-height: 100vh;
    background-color: #030712;
    color: #f8fafc;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 背景特效专属容器：绝对定位在 404 页面内部，不超出头部和页脚之外 */
.dpjet-bg-fixed-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.dpjet-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(6, 182, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
}

.dpjet-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 60%);
    filter: blur(90px);
    top: -200px;
    left: -150px;
    animation: dpjet-floatGlow 8s ease-in-out infinite;
}

.dpjet-bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16), transparent 60%);
    filter: blur(80px);
    bottom: -150px;
    right: -100px;
    animation: dpjet-floatGlow 10s ease-in-out infinite reverse;
}

.dpjet-scan-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(6, 182, 212, 0.04) 50%,
            transparent 100%
    );
    background-size: 100% 12px;
    animation: dpjet-scanLine 3s linear infinite;
}

.dpjet-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.dpjet-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(6, 182, 212, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.9);
    animation: dpjet-drift 18s linear infinite;
}

.dpjet-neon-path {
    position: absolute;
    width: 2px;
    height: 120px;
    background: linear-gradient(180deg, transparent, #06b6d4, transparent);
    box-shadow: 0 0 10px #06b6d4;
    animation: dpjet-neonPath 6s ease-in-out infinite;
}

.dpjet-digital-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.dpjet-rain-column {
    position: absolute;
    width: 14px;
    color: rgba(6, 182, 212, 0.35);
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    animation: dpjet-rainFall linear infinite;
    white-space: nowrap;
}

.dpjet-hud-ring {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 50%;
    animation: dpjet-rotateRing 20s linear infinite;
}

.dpjet-hud-ring-2 {
    width: 200px;
    height: 200px;
    animation-duration: 16s;
    opacity: 0.25;
}

/* 页面布局层级：提高层级确保内容显示在背景动画之上 */
.dpjet-page-wrap {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dpjet-404-container {
    width: 100%;
    max-width: 800px;
    padding: 40px 24px;
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpjet-404-card {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 28px;
    padding: 64px 36px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.dpjet-404-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), transparent 50%);
    pointer-events: none;
}

.dpjet-404-number {
    font-size: clamp(6rem, 18vw, 10.5rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #06b6d4, #22d3ee, #06b6d4);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    user-select: none;
    animation: dpjet-gradientFlow 4s linear infinite;
}

.dpjet-404-title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 600;
    margin-bottom: 14px;
}

.dpjet-404-desc {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 38px;
}

.dpjet-404-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.dpjet-404-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.dpjet-404-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.45);
}

.dpjet-404-btn:active {
    transform: translateY(0);
}

.dpjet-404-btn--outline {
    background: transparent;
    color: #22d3ee;
    border: 1px solid #06b6d4;
}

.dpjet-404-btn--outline:hover {
    background-color: rgba(6, 182, 212, 0.12);
}

/* 动画声明：优化下落轨迹，从视口上方直至完全落出视口下方 */
@keyframes dpjet-floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(40px, 30px) scale(1.08);
        opacity: 0.85;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
}

@keyframes dpjet-scanLine {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(12px);
    }
}

@keyframes dpjet-drift {
    0% {
        transform: translateY(100%) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100%) translateX(30px);
        opacity: 0;
    }
}

@keyframes dpjet-neonPath {
    0%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 1;
        transform: translateY(20px);
    }
}

@keyframes dpjet-rainFall {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

@keyframes dpjet-rotateRing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dpjet-gradientFlow {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@media (max-width: 480px) {
    .dpjet-404-card {
        padding: 42px 22px;
    }

    .dpjet-404-btn {
        width: 100%;
    }

    .dpjet-bg-glow, .dpjet-bg-glow-2 {
        width: 320px;
        height: 320px;
    }

    .dpjet-hud-ring {
        width: 180px;
        height: 180px;
    }

    .dpjet-hud-ring-2 {
        width: 140px;
        height: 140px;
    }
}