body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.highlight {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9em;
    margin-bottom: 25px;
    text-align: left;
}

select, input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background 0.2s;
}

button:hover {
    background: #0056b3;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 按钮样式变体 */
.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

/* 换句按钮样式 */
.btn-skip {
    background: #6c757d;
    color: white;
    margin-top: 15px;
}

.btn-skip:hover {
    background: #5a6268;
}

/* 音频可视化 */
.meter-container {
    width: 80%;
    height: 10px;
    background: #eee;
    margin: 20px auto;
    border-radius: 5px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: #28a745;
    transition: width 0.1s;
}

.hidden {
    display: none;
}

#text-display {
    font-size: 1.4em;
    line-height: 1.5;
    font-weight: 500;
    margin: 30px 0;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
}

#mic-status {
    font-weight: bold;
    font-size: 0.9em;
}

#result-msg {
    margin-top: 15px;
    font-weight: bold;
    min-height: 20px;
}

.error {
    color: #dc3545;
}

.success {
    color: #28a745;
}

/* 音频播放器样式 */
#audio-player {
    width: 80%;
    margin: 10px auto;
}

/* 控制按钮组 */
#recording-controls,
#playback-controls,
#skip-controls {
    margin: 20px 0;
}