.jumbotron{
    cursor: pointer;
    width: 10rem; /* 设置宽度为300px */
    height: 10rem; /* 设置高度为300px，与宽度相等，确保为正方形 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* 取消默认的内边距 */
}
#recentlyLearning { display: none; }

.continue-learning-card {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.continue-learning-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}

.continue-learning-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.continue-learning-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.continue-learning-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.progress-bar-bg {
    flex: 1;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #4a90d9;
    border-radius: 2px;
    transition: width 0.3s;
}
.progress-bar-fill.completed { background: #28a745; }
.progress-text {
    font-size: 0.75rem;
    color: #6c757d;
    min-width: 32px;
    text-align: right;
}

.continue-learning-time {
    font-size: 0.75rem;
    color: #adb5bd;
}
.jumbotron {
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 140px;
    max-width: 170px;
}
.jumbotron:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
#card-container {
    flex-wrap: wrap;
    gap: 20px;
}

/* 学习时长排行榜 */
.leaderboard-card {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}
.leaderboard-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 10px;
}
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.leaderboard-rank {
    width: 18px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
}
.leaderboard-rank.rank-1 { color: #f5a623; }
.leaderboard-rank.rank-2 { color: #a0a0a0; }
.leaderboard-rank.rank-3 { color: #cd7f32; }
.leaderboard-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e9ecef;
}
.leaderboard-name {
    flex: 1;
    font-size: 0.8rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leaderboard-duration {
    font-size: 0.75rem;
    color: #6c757d;
    flex-shrink: 0;
}
.leaderboard-empty {
    font-size: 0.8rem;
    color: #adb5bd;
    text-align: center;
    padding: 8px 0;
}

/* 名人名言遮罩层样式 - 简约白色风格 */
.quote-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* 默认隐藏 */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.5s ease-in-out;
}

.quote-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.6s ease-out;
}

.quote-content {
    margin-bottom: 30px;
}

.quote-text {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.quote-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.countdown {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

#countdownNumber {
    color: #999;
    font-weight: bold;
    font-size: 0.9rem;
}

.quote-controls .dont-show-again {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
}

.quote-controls .dont-show-again input[type="checkbox"] {
    width: 13px;
    height: 13px;
    cursor: pointer;
}

.close-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: scale(1.1);
}

.close-btn:active {
    transform: scale(0.95);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 767px) {
    #recentlyLearning { margin-top: 1rem !important; }
}
@media (max-width: 768px) {
    .quote-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .quote-author {
        font-size: 1rem;
    }
    
    .quote-controls {
        flex-direction: column;
        gap: 15px;
    }
}
