/**
 * 系统名称：ITeacherPlatform
 * 开发公司：斯帝姆智能科技有限公司
 * 程序名：progress.css
 * 功能描述：思维训练中心通用进度条样式
 * 版本号：v1.0.0
 * 修订历史：
 *   - v1.0.0 (2026-05-31)：初始版本，实现进度条动画效果
 */

/* 进度条容器 */
.progress-container {
    width: 100%;
    max-width: 600px;
    margin: 15px auto;
    padding: 0 20px;
}

/* 进度条外框 */
.progress-bar-wrapper {
    position: relative;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 进度条填充 */
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 12px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 进度条流光效果 */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 进度条文字 */
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* 进度条完成状态 */
.progress-bar-fill.complete {
    background: linear-gradient(90deg, #28a745, #20c997);
    animation: progressComplete 0.6s ease;
}

@keyframes progressComplete {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 进度条标签 */
.progress-label {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .progress-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .progress-bar-wrapper {
        height: 20px;
    }
    
    .progress-text {
        font-size: 11px;
    }
}
