#speech-component {
    display: none;
    position: absolute;
    bottom: var(--header-height);
    width: 100%;
    height: 100%;
}

#speech-component .speech-shadow-box {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background: white;
    opacity: 0.5;
    z-index: 12;
}

#speech-component .speech-container {
    background: white;
    position: absolute;
    width: 100%;
    height: 2.38rem;
    z-index: 13;
    display: grid;
    /* 定义三列：左边占1份，中间自适应，右边占1份 */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    /* 垂直居中 */

    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#startBtnContainer #listenBtn {
    width: 1.64rem;
    height: 1.64rem;
    cursor: pointer;
    overflow: visible;
}

.speech-notice {
    justify-self: center;
    color: var(--, #333);
    font-family: Avenir;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-size: clamp(12px, 2vw, 32px);
}

#listenBtn.recording .outer {
    transform-box: fill-box;
    /* ★ 非常关键 */
    transform-origin: center;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

#listenBtn:hover .microphone {
    fill: #ea4335;
}

@media screen and (max-width: 1025px) {
    .mian-sam-language-selection {
        margin-left: 0.3rem !important;
    }

    .mobile-speech-box {
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .mobile-speech-box svg {
        width: 0.44rem;
        height: 0.44rem;
    }

    #speech-component .speech-container {
        height: 100vh;

        place-items: center;
        grid-auto-flow: row;
        row-gap: 20px;
        grid-template-columns: none;
    }

    #startBtnContainer #listenBtn {
        width: 2.1rem;
        height: 2.1rem;
    }
    .speech-notice {
        font-size: 32px;
        word-break: break-word;
    }
}