/* 卡牌样式 */

.card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.card-slot {
    perspective: 1000px;
    width: 200px;
    height: 350px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.card.back {
    transform: rotateY(0deg);
}

.card.flipped {
    transform: rotateY(180deg);
}

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid #64b5f6;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* 翻牌动画 */
@keyframes cardFlip {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(180deg); }
}

.card.flipping {
    animation: cardFlip 0.6s ease-in-out;
}

/* 响应式 */
@media (max-width: 600px) {
    .card-slot {
        width: 140px;
        height: 245px;
    }
    
    .card-container {
        gap: 15px;
    }
}
