/* ========== AI 首页（语音模块）专用样式 ========== */

.ai-home-page {
    /* margin-top: 30px; */
    background-color: white;
    padding: 15px;
}

/* 录音容器（居中布局） */
.aiindex-voice-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
}

.aiindex-voice-wrapper canvas{
    /* background: transparent !important; */
    display: none !important;
}

/* 录音状态文字 */
.aiindex-voice-status {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

/* 手动输入区域容器 */
.aiindex-manual-area {
    margin-top: 20px;
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 5 16px;
    box-sizing: border-box;
}

/* 输入标签 */
.aiindex-voice-label {
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

/* 输入框 */
.aiindex-voice-input {
    width: 100%;
    padding: 5px 6px;
    font-size: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.aiindex-voice-input:focus {
    border-color: #1890ff;
}

/* 发送按钮 */
.aiindex-voice-btn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 10px 36px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
}
.aiindex-voice-btn:hover:not(:disabled) {
    background: #40a9ff;
}
.aiindex-voice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 发送结果信息 */
.aiindex-voice-result {
    margin-top: 12px;
    text-align: center;
}

/* 错误信息样式（可与通用错误类共用） */
.aiindex-voice-error {
    color: #ff4d4f;
    background: #fff2f0;
    padding: 10px;
    border-radius: 4px;
}

/* 录音容器（保持透明） */
.aiindex-recorder-wrapper {
    display: inline-block;
    background: transparent;
    padding: 0;
    margin: 0 auto;
}

/* 查询结果区域 */
.aiindex-stats-area {
    margin-top: 24px;
}