
/* study999-lesson-action-buttons-v1 */

/* 四个课文操作按钮：保持 38px 高度 */
#app button#all,
#app button#loop,
#app button#stop,
#app button#exam {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 38px !important;
    min-height: 38px !important;
    box-sizing: border-box !important;

    padding: 0 12px !important;
    margin: 4px 6px 4px 0 !important;
    gap: 5px !important;

    border: 0 !important;
    border-radius: 10px !important;

    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    box-shadow: 0 2px 6px rgba(15, 23, 42, .15) !important;
    cursor: pointer !important;
    vertical-align: middle !important;

    transition:
        filter .15s ease,
        transform .15s ease !important;
}

/* 白色图标：23px，按钮背景高度不变 */
#app button#all::before,
#app button#loop::before,
#app button#stop::before,
#app button#exam::before {
    content: "" !important;
    display: inline-block !important;
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    flex: 0 0 23px !important;

    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* 全文朗读：蓝色 */
#app button#all {
    background: #2563eb !important;
}

/* 全文循环：青绿色 */
#app button#loop {
    background: #0d9488 !important;
}

/* 停止：红色 */
#app button#stop {
    background: #dc2626 !important;
}

/* 背诵考试：紫色 */
#app button#exam {
    background: #7c3aed !important;
}

/* 鼠标与触屏反馈 */
#app button#all:hover,
#app button#loop:hover,
#app button#stop:hover,
#app button#exam:hover {
    filter: brightness(1.08);
}

#app button#all:active,
#app button#loop:active,
#app button#stop:active,
#app button#exam:active {
    transform: scale(.97);
}

#app button#all:focus-visible,
#app button#loop:focus-visible,
#app button#stop:focus-visible,
#app button#exam:focus-visible {
    outline: 3px solid #93c5fd !important;
    outline-offset: 3px;
}

/* 手机屏幕较窄时，按钮自然换到下一行 */
@media (max-width: 640px) {
    #app button#all,
    #app button#loop,
    #app button#stop,
    #app button#exam {
        margin-right: 5px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #app button#all,
    #app button#loop,
    #app button#stop,
    #app button#exam {
        transition: none !important;
    }
}

#app button#all::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%204.5%2019%2012%208%2019.5Z%22%20fill%3D%22white%22%20stroke%3D%22white%22%2F%3E%3C%2Fsvg%3E") !important; }
#app button#loop::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%208V4l-3%203h-8a5%205%200%200%200-5%205%22%2F%3E%3Cpath%20d%3D%22M4%2016v4l3-3h8a5%205%200%200%200%205-5%22%2F%3E%3C%2Fsvg%3E") !important; }
#app button#stop::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%2214%22%20height%3D%2214%22%20rx%3D%222%22%20fill%3D%22white%22%20stroke%3D%22white%22%2F%3E%3C%2Fsvg%3E") !important; }
#app button#exam::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%229%22%20y%3D%222.5%22%20width%3D%226%22%20height%3D%2212%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M5.5%2010.5v1.5a6.5%206.5%200%200%200%2013%200v-1.5%22%2F%3E%3Cpath%20d%3D%22M12%2018.5V22M8%2022h8%22%2F%3E%3C%2Fsvg%3E") !important; }