/* ===== 富文本编辑器内容统一渲染样式 ===== */
/* 适用范围：所有后台富文本编辑器输出 + 所有前台详情页 */

/* 编辑器基础容器 */
.w-e-text-container { min-height: 300px !important; height: auto !important; overflow: visible !important; }

/* ===== 正文容器 ===== */
.editor-content { display: block; line-height: 1.8; color: #555; }

/* ===== 图片 ===== */
.editor-content img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}
.editor-content p { margin: 16px 0; }

/* ===== 视频容器 ===== */
.editor-content [data-w-e-type="video"],
.editor-content [data-w-e-is-void],
.editor-content .w-e-textarea-video-container {
    display: block !important;
    text-align: center !important;
    margin: 10px 0 !important;
    padding: 5px 0 !important;
    width: 100% !important;
}
.editor-content video {
    display: inline-block !important;
    max-width: 100% !important;
    height: auto !important;
}

/* ===== 编辑器内的视频样式 ===== */
.w-e-textarea-video-container {
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 5px 0 !important;
    text-align: center !important;
}
.w-e-textarea-video-container video {
    max-width: 100% !important;
    display: inline-block !important;
}

/* ===== 通用 video 标签在详情页 ===== */
.editor-content video[src] {
    display: block !important;
    margin: 10px auto !important;
    max-width: 100% !important;
    height: auto !important;
}

/* ===== 视频尺寸快捷按钮 ===== */
.video-size-btns {
    display: flex;
    gap: 4px;
    padding: 2px 8px;
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    flex-wrap: wrap;
}
.video-size-btns .vsb-item {
    padding: 2px 8px;
    font-size: 11px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}
.video-size-btns .vsb-item:hover {
    border-color: #D92121;
    color: #D92121;
    background: #fff5f5;
}
.video-size-btns .vsb-item.active {
    border-color: #D92121;
    color: #D92121;
    background: #fff0f0;
    font-weight: 600;
}
