/**
 * 系统名称：ITeacherPlatform
 * 开发公司：斯帝姆智能科技有限公司
 * 程序名：combo.css
 * 功能描述：思维训练中心连击(Combo)系统样式
 * 版本号：v1.0.0
 * 修订历史：
 *   - v1.0.0 (2026-05-31)：初始版本，实现连击计数器和特效样式
 */

/* 连击计数器容器 */
.combo-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9998;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.combo-container.show {
    opacity: 1;
    transform: scale(1);
}

/* 连击数字 */
.combo-count {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    color: #cd7f32;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

/* 连击标签 */
.combo-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #cd7f32;
    margin-top: 4px;
}

/* 连击倍率 */
.combo-multiplier {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 6px;
    display: inline-block;
}

/* 连击弹跳动画 */
.combo-bounce {
    animation: comboBounce 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes comboBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* 铜色连击 (3-4) */
.combo-bronze .combo-count,
.combo-bronze .combo-label {
    color: #cd7f32;
}

/* 银色连击 (5-9) */
.combo-silver .combo-count,
.combo-silver .combo-label {
    color: #c0c0c0;
    text-shadow: 0 2px 10px rgba(192, 192, 192, 0.5);
}

/* 金色连击 (10-19) */
.combo-gold .combo-count,
.combo-gold .combo-label {
    color: #ffd700;
    text-shadow: 0 2px 15px rgba(255, 215, 0, 0.6);
}

.combo-gold .combo-container {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

/* 彩虹连击 (20+) */
.combo-rainbow .combo-count,
.combo-rainbow .combo-label {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 2s linear infinite;
}

@keyframes rainbowShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 连击里程碑闪光 */
.combo-milestone {
    animation: comboMilestone 0.6s ease;
}

@keyframes comboMilestone {
    0% { transform: scale(1); filter: brightness(1); }
    25% { transform: scale(1.6); filter: brightness(2); }
    50% { transform: scale(0.9); filter: brightness(1.5); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* 浮动得分文字 */
.floating-score {
    position: fixed;
    font-size: 20px;
    font-weight: 700;
    color: #ffc107;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 9997;
    animation: floatingScoreUp 1s ease-out forwards;
}

@keyframes floatingScoreUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1.3);
    }
}

/* 连击屏幕震动 */
.screen-shake {
    animation: screenShake 0.3s ease;
}

@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-3px, 2px); }
    50% { transform: translate(3px, -2px); }
    75% { transform: translate(-2px, 3px); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .combo-container {
        top: 70px;
        right: 10px;
    }
    
    .combo-count {
        font-size: 36px;
    }
    
    .combo-label {
        font-size: 12px;
    }
}
