/* 功能工具栏 */
.function-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #f8fbff;
    border-bottom: 1px solid #e3f2fd;
    flex-wrap: wrap;
    justify-content: center;
}

/* 参数调节区域 */
.params-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.params-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
}

.param-group {
    margin-bottom: 1.5rem;
}

.param-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.param-label i {
    margin-right: 0.5rem;
    color: #1976d2;
}

.param-value {
    background: #1976d2;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #666;
}

/* 情绪选择器样式 - 与全局主题保持一致 */
.emotion-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emotion-selector .param-select {
    margin-bottom: 0;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    color: #333;
    transition: all 0.2s ease;
    cursor: pointer;
}

.emotion-selector .param-select:hover {
    border-color: #667eea;
}

.emotion-selector .param-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.emotion-level-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.emotion-level-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    min-width: 40px;
}

.emotion-level-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    color: #333;
    transition: all 0.2s ease;
    cursor: pointer;
}

.emotion-level-select:hover {
    border-color: #667eea;
}

.emotion-level-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.emotion-level-select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.emotion-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.emotion-preview-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    min-width: 60px;
}

.emotion-preview-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    background: #f8fafc;
    color: #667eea;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    transition: all 0.2s ease;
}

.emotion-preview-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.emotion-preview-input::placeholder {
    color: #999;
    font-style: italic;
}

/* 合成按钮区域 */
.synthesis-section {
    margin-top: auto;
}

/* 状态容器 */
.status-container {
    margin-bottom: 1rem;
}

.status-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 4px;
    background: #f0f8ff;
    color: #1976d2;
    font-size: 0.9rem;
    border: 1px solid #e3f2fd;
}

/* 进度条 */
.progress-container {
    margin-bottom: 1.25rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #1976d2;
    width: 0%;
    transition: width 0.3s ease;
}

/* 音频容器 */
.audio-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audio-player {
    width: 100%;
    border-radius: 4px;
}

.audio-controls {
    display: flex;
    justify-content: center;
}

/* 控制组 */
.controls-row {
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.control-label i {
    color: #1976d2;
    width: 14px;
}

.sliders-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.slider-label i {
    color: #1976d2;
    width: 14px;
    margin-right: 0.5rem;
}

.slider-value {
    background: #1976d2;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    min-width: 2rem;
    text-align: center;
}

/* 多音字标注样式 */
.phoneme-marked {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    margin: 0 1px;
    white-space: nowrap;
}

.phoneme-marked:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* 拼音显示在字符后面 */
.phoneme-pinyin {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.1rem 0.25rem;
    border-radius: 2px;
    font-size: 0.65rem;
    margin-left: 0.15rem;
    display: inline-block;
    vertical-align: baseline;
    white-space: nowrap;
    position: relative;
    top: -0.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-weight: normal;
    letter-spacing: normal;
}

/* 搜索框清除按钮 */
#clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: none;
}

#clear-search:hover {
    color: #666;
}

/* 搜索框容器 */
.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-container input {
    padding-right: 35px;
}