* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background: transparent;
}

/* 主容器 */
.container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.cube-container {
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background: rgba(25, 25, 35, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 15s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.face:hover {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.5);
}

.front {
    transform: translateZ(100px);
    background: linear-gradient(45deg, #ff0080, #ff8c00);
    opacity: 0.8;
}

.back {
    transform: rotateY(180deg) translateZ(100px);
    background: linear-gradient(45deg, #00ff8c, #00bfff);
    opacity: 0.8;
}

.right {
    transform: rotateY(90deg) translateZ(100px);
    background: linear-gradient(45deg, #8c00ff, #0080ff);
    opacity: 0.8;
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
    background: linear-gradient(45deg, #ffff00, #00ff00);
    opacity: 0.8;
}

.top {
    transform: rotateX(90deg) translateZ(100px);
    background: linear-gradient(45deg, #ff00ff, #ff0080);
    opacity: 0.8;
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
    background: linear-gradient(45deg, #00ffff, #0080ff);
    opacity: 0.8;
}

@keyframes rotate {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@media screen and (max-width: 768px) {
    .cube-container {
        height: 300px;
        margin: 30px auto;
    }
    
    .cube, .face {
        width: 150px;
        height: 150px;
    }
    
    .front { transform: translateZ(75px); }
    .back { transform: rotateY(180deg) translateZ(75px); }
    .right { transform: rotateY(90deg) translateZ(75px); }
    .left { transform: rotateY(-90deg) translateZ(75px); }
    .top { transform: rotateX(90deg) translateZ(75px); }
    .bottom { transform: rotateX(-90deg) translateZ(75px); }
}