.error-container {
    height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.error-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 10; 
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.error-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.floating-card {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    pointer-events: none;
}

.card-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0.5s;
    border-color: var(--primary-color);
    animation: float 8s ease-in-out infinite, fadeIn 1s ease 0.5s forwards;
}

.card-2 {
    top: 25%;
    right: 5%;
    animation-delay: 1s;
    border-color: var(--secondary-color);
    animation: float 10s ease-in-out infinite 2s, fadeIn 1s ease 1s forwards;
}

.card-3 {
    bottom: 25%;
    left: 8%;
    animation-delay: 1.5s;
    border-color: var(--accent-color);
    animation: float 9s ease-in-out infinite 1s, fadeIn 1s ease 1.5s forwards;
}

.card-4 {
    bottom: 15%;
    right: 8%;
    animation-delay: 2s;
    border-color: var(--primary-light);
    animation: float 11s ease-in-out infinite 3s, fadeIn 1s ease 2s forwards;
}

/* 简化浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(2deg);
    }
    66% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.8;
    }
}

.card-content {
    text-align: center;
    padding: 0.5rem;
    pointer-events: none;
}

.card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-description {
        font-size: 1.1rem;
    }

    .floating-card {
        width: 100px;
        height: 100px;
    }

    .card-1 {
        top: 10%;
        left: 2%;
    }
    .card-2 {
        top: 20%;
        right: 2%;
    }
    .card-3 {
        bottom: 20%;
        left: 3%;
    }
    .card-4 {
        bottom: 10%;
        right: 3%;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .floating-card {
        width: 80px;
        height: 80px;
        display: none;
    }

    .error-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}