:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --light-color: #f9f9f9;
    --border-color: #eaeaea;
    --text-color: #333;
    --text-light: #7f8c8d;
}

/* 语音朗读功能样式 */
.speech-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.speech-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    gap: 8px;
}

.speech-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.1);
}

.speech-btn:active {
    transform: scale(0.95);
}

.speech-btn.playing {
    color: #e74c3c;
    animation: pulse 1.5s infinite;
}

.speech-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.speech-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 语音控制状态提示 */
.speech-status {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-left: auto;
    padding: 2px 8px;
    background: var(--light-color);
    border-radius: 12px;
}

/* 单词发音图标样式 */
.word-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.word-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.word-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.word-speech-btn {
    background: rgba(52, 152, 219, 0.1);
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    opacity: 0.8;
}

.word-speech-btn:hover {
    background: var(--secondary-color);
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

.word-speech-btn:active {
    transform: scale(0.95);
}

.word-speech-btn.playing {
    color: #e74c3c;
    opacity: 1;
    animation: pulse 1.5s infinite;
}

.word-speech-icon {
    width: 16px;
    height: 16px;
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (min-width: 768px) {
    .speech-icon {
        width: 24px;
        height: 24px;
    }

    .speech-text {
        font-size: 0.85rem;
    }

    .word-speech-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .speech-control {
        margin-top: 8px;
        padding-top: 8px;
    }

    .speech-btn {
        padding: 6px;
    }

    .speech-text {
        font-size: 0.75rem;
    }

    .word-speech-btn {
        padding: 5px;
    }
}