/* 强制外层包裹器遵循宽度限制，彻底杜绝溢出列宽 */
.reveal-text-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.reveal-text-container {
    --base-color: #e0e0e0;
    --reveal-color: #2b2b2b;
    color: var(--base-color);
    
    /* 强制换行的终极组合拳 */
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: pre-wrap !important; /* 保留原生空格并允许换行 */
    word-wrap: break-word !important; 
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    
    box-sizing: border-box !important;
}

/* 修复 WYSIWYG 编辑器可能生成的 p 标签撑破布局 */
.reveal-text-container p {
    margin: 0 0 10px 0;
    padding: 0;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    width: 100% !important;
}

.reveal-text-container b, 
.reveal-text-container strong {
    font-weight: 700;
}

/* 必须是 inline 且允许换行 */
.reveal-text-container .char-span {
    color: var(--base-color);
    transition: color 0.15s ease-in-out;
    display: inline !important; 
    white-space: pre-wrap !important;
}

.reveal-text-container .char-span.revealed {
    color: var(--reveal-color);
}