body {
    background-color: #f8f9fa;
}

/* 闪卡样式 */
.card {
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
}

.card:hover {
    border-color: #0d6efd;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 按钮样式 */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    margin: 0.5rem;
}

/* 学生照片样式 */
#studentPhoto {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 信息区域动画 */
#studentInfo {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 搜索卡片样式 */
#searchResults .card {
    cursor: pointer;
    transition: transform 0.2s;
}

#searchResults .card:hover {
    transform: translateY(-5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .btn-lg {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    #memoryButtons {
        display: flex;
        flex-direction: column;
    }
}
.navbar-brand {
    font-weight: bold;
}

.btn {
    border-radius: 8px;
}

.flashcard {
    perspective: 1000px;
    width: 100%;
    height: 400px;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.flashcard-back {
    transform: rotateY(180deg);
}

.student-photo {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.action-buttons {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .student-photo {
        max-height: 200px;
    }
    
    .card {
        margin: 10px;
    }
}