.quantum-grid-sp{
    position: absolute;
    width: 100%;
    z-index: 110;
    display: none;
} 
.quantum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    perspective: 2000px;
}

.matrix-cell {
    position: relative;
    clear: both;
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

.matrix-cell::before {
    content: '';
    position: absolute;
    z-index: 180;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.4s;
    mix-blend-mode: screen;
}

.matrix-cell:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(20px);
}

.matrix-cell:hover::before {
    opacity: 1;
    animation: matrixFlow 2s infinite;
}

.matrix-thumb {
    width: 100%;
    height: 320px;
    object-fit: cover;
    filter: saturate(180%) contrast(120%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    clear: both;
}

.holo-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9999;
}

.holo-frame {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    margin: 2vh auto;
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3),
                inset 0 0 10px rgba(0, 255, 255, 0.2);
    animation: holoGlow 3s infinite alternate;
}

@keyframes holoGlow {
    0% { box-shadow: 0 0 10px var(--neon-cyan); }
    100% { box-shadow: 0 0 20px var(--neon-magenta); }
}

.holo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s;
}

.quantum-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 34, 0.8);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--neon-cyan);
}

.quantum-nav:hover {
    background: var(--neon-cyan);
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 30px var(--neon-cyan);
    color: var(--dark-dimension);
}

.quantum-prev { left: 3vw; }
.quantum-next { right: 3vw; }

.quantum-close {
    position: absolute;
    top: 5vh;
    right: 5vw;
    font-size: 2.5em;
    color: var(--neon-magenta);
    text-shadow: 0 0 20px var(--neon-magenta);
    cursor: pointer;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantum-close:hover {
    transform: rotate(180deg) scale(1.2);
    background: var(--neon-magenta);
    color: var(--dark-dimension);
}

/* 高级动效 */
@keyframes matrixFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

@keyframes quantumEntrance {
    from { opacity: 0; transform: scale(0.8) rotateY(30deg); }
    to { opacity: 1; transform: none; }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .quantum-close {
        top: 25vh;
    }
    .quantum-grid { grid-template-columns: 1fr; }
    
    .holo-frame { max-width: 95vw; }
}