
/* study999-exam-emotions-v1 */
/* 只作用于背诵考试完成后的结果，不影响录音中的实时识别文字。 */

#app #result .study999-exam-emotions {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;

    margin: 12px 0 18px;
    padding: 15px;
    border-radius: 16px;
    overflow: hidden;

    background: #f1f5f9;
}

#app #result .study999-exam-emotions-copy {
    flex: 1 1 190px;
    min-width: 0;
}

#app #result .study999-exam-emotions
.study999-result-score {
    margin: 0 0 8px !important;
    font-size: 22px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
}

#app #result .study999-exam-emotions-message {
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    font-weight: 700 !important;
}

/* 四档成绩的卡片底色、文字颜色 */

#app #result .study999-exam-emotions.study999-score-band-low {
    background: #fff0f0;
    color: #c52525;
}

#app #result .study999-exam-emotions.study999-score-band-pass {
    background: #fff5e9;
    color: #bc6505;
}

#app #result .study999-exam-emotions.study999-score-band-great {
    background: #edf5ff;
    color: #225ec4;
}

#app #result .study999-exam-emotions.study999-score-band-excellent {
    background: #eaf9ee;
    color: #16813c;
}

#app #result .study999-exam-emotions
.study999-result-score,
#app #result .study999-exam-emotions-message {
    color: inherit !important;
}

/* 动态表情区域 */

#app #result .study999-exam-emotions-stage {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 95px;
    width: 95px;
    height: 95px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
}

#app #result .study999-exam-emotion {
    display: none;
    font-size: 67px;
    line-height: 1;
    transform-origin: 50% 75%;
}

/* 每个成绩等级只显示对应的表情 */

#app #result .study999-score-band-low
.study999-emotion-low {
    display: block;
    animation: study999-power 1.15s ease-in-out infinite;
}

#app #result .study999-score-band-pass
.study999-emotion-pass {
    display: block;
    animation: study999-happy 1.3s ease-in-out infinite;
}

#app #result .study999-score-band-great
.study999-emotion-great {
    display: block;
    animation: study999-wow 1.7s ease-in-out infinite;
}

#app #result .study999-score-band-excellent
.study999-emotion-excellent {
    display: block;
    animation: study999-party 1.45s ease-in-out infinite;
}

/* 星星和彩纸仅在对应等级出现 */

#app #result .study999-exam-spark,
#app #result .study999-exam-confetti {
    display: none;
    position: absolute;
    pointer-events: none;
    line-height: 1;
}

#app #result .study999-score-band-great
.study999-exam-spark {
    display: block;
    font-size: 21px;
    animation: study999-twinkle 1.2s ease-in-out infinite;
}

#app #result .study999-spark-one {
    top: 2px;
    right: 4px;
}

#app #result .study999-spark-two {
    bottom: 4px;
    left: 0;
    animation-delay: .5s !important;
}

#app #result .study999-score-band-excellent
.study999-exam-confetti {
    display: block;
    font-size: 18px;
    animation: study999-float 1.65s ease-out infinite;
}

#app #result .study999-confetti-one {
    top: 4px;
    left: 5px;
}

#app #result .study999-confetti-two {
    top: 0;
    right: 3px;
    animation-delay: .35s !important;
}

#app #result .study999-confetti-three {
    bottom: 2px;
    right: 3px;
    animation-delay: .7s !important;
}

/* 四种表情的运动方式 */

@keyframes study999-power {
    0%, 100% {
        transform: rotate(-20deg) scale(.94);
    }
    48% {
        transform: translateY(-8px) rotate(18deg) scale(1.13);
    }
    70% {
        transform: rotate(-9deg) scale(1.02);
    }
}

@keyframes study999-happy {
    0%, 100% {
        transform: translateY(4px) scale(1);
    }
    42% {
        transform: translateY(-13px) scale(1.13);
    }
    68% {
        transform: translateY(2px) scale(.96);
    }
}

@keyframes study999-wow {
    0%, 100% {
        transform: scale(1) rotate(-7deg);
    }
    35% {
        transform: scale(1.2) rotate(8deg);
    }
    65% {
        transform: scale(1.06) rotate(-5deg);
    }
}

@keyframes study999-party {
    0%, 100% {
        transform: translateY(3px) rotate(-13deg) scale(.98);
    }
    35% {
        transform: translateY(-11px) rotate(14deg) scale(1.16);
    }
    70% {
        transform: translateY(-3px) rotate(-9deg) scale(1.05);
    }
}

@keyframes study999-twinkle {
    0%, 100% {
        transform: scale(.35) rotate(-35deg);
        opacity: .15;
    }
    50% {
        transform: scale(1.2) rotate(25deg);
        opacity: 1;
    }
}

@keyframes study999-float {
    0% {
        transform: translateY(9px) rotate(0deg) scale(.5);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateY(-30px) rotate(110deg) scale(1.2);
        opacity: 0;
    }
}

/* 手机屏幕适配 */

@media (max-width: 390px) {
    #app #result .study999-exam-emotions {
        padding: 11px;
    }

    #app #result .study999-exam-emotions-stage {
        flex-basis: 80px;
        width: 80px;
        height: 80px;
    }

    #app #result .study999-exam-emotion {
        font-size: 57px;
    }

    #app #result .study999-exam-emotions-message {
        font-size: 15px !important;
    }
}

/* 用户在系统中要求减少动态效果时，尊重该设置。 */

@media (prefers-reduced-motion: reduce) {
    #app #result .study999-exam-emotion,
    #app #result .study999-exam-spark,
    #app #result .study999-exam-confetti {
        animation: none !important;
    }
}
