/* ===== 练习阶段（audio-consonant-id）专用样式 ===== */

.acid-wrapper {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
    font-size: 24px;
    line-height: 1.8;
}

.acid-prompt {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* 刺激呈现区域：目前只放音频播放器，预留充足空间。
   正式实验阶段如需插入 <video>，直接放进这个容器即可，不需要改动其余布局结构。 */
.acid-stimulus-area {
    min-height: 220px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.acid-response-area {
    margin-top: 30px;
}

.acid-select-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

/* 自定义下拉框：触发按钮 + 面板。面板的 top / left / max-height 由 JS
   动态计算并写入 inline style，这里只负责外观，不写死展开方向。 */
.acid-dropdown {
    position: relative;
}

.acid-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
}

.acid-chevron {
    font-size: 16px;
    display: inline-block;
    transition: transform 0.15s ease;
}

.acid-dropdown-trigger.acid-open .acid-chevron {
    transform: rotate(180deg);
}

.acid-dropdown-panel {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 6px;
    min-width: 240px;
    z-index: 50;
}

.acid-dropdown-panel.acid-open {
    display: flex;
    flex-direction: column;
}

/* 仅在视口上下都放不下全部选项时，JS 才会加上这个 class 作为兜底，
   平常情况下不会出现滚动条 */
.acid-dropdown-panel.acid-scroll {
    overflow-y: auto;
}

.acid-option-btn {
    background: none;
    border: none;
    text-align: left;
    font-size: 22px;
    padding: 9px 14px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.acid-option-btn:hover {
    background-color: #f0f4ff;
}

.acid-selected {
    font-size: 24px;
    margin: 20px 0;
    color: #333;
}

.acid-feedback {
    font-size: 20px;
    min-height: 28px;
    margin-bottom: 10px;
}

.acid-feedback-error {
    color: #d9534f;
    font-weight: 600;
}

.acid-highlight {
    color: #e67e22; 
    font-weight: 800; 
    font-size: 24px;
    border-bottom: 2px solid #e67e22; 
    padding-bottom: 1px;
}

.acid-dropdown-trigger:disabled {
    background-color: #e0e0e0 !important;
    color: #a0a0a0 !important;
    cursor: not-allowed !important;
    border-color: #d0d0d0 !important;
}

