/* 听写模式专用样式 */
.dictation-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    color: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.dictation-page input {
    -webkit-user-select: text;
    user-select: text;
    background: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 12px;
    font-size: 18px;
    width: 100%;
    max-width: 500px;
    margin: 20px 0;
}

.dictation-page .dictation-status {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.dictation-page .countdown {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
    color: #ffcc00;
}

.dictation-page .dictation-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.dictation-page .dictation-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    color: #333;
    font-size: 12px;
}

.dictation-page .dictation-footer a {
    color: #555;
    text-decoration: none;
}

/* 评分结果页面 */
.result-page {
    background: #111;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.result-score {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    margin: 20px 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.result-item.correct {
    color: #4cd964;
}

.result-item.wrong {
    color: #ff3b30;
}