.cms-ueditor-wrap,
.product-ueditor-wrap {
    position: relative;
    min-width: 0;
    overflow: visible !important;
    box-sizing: border-box;
}

.cms-ueditor-status {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 10px;
    padding: 7px 11px;
    border: 1px solid #dbe7f4;
    border-radius: 9px;
    background: #f8fbff;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.cms-ueditor-status[data-state="ready"] {
    border-color: #d1fae5;
    background: #f0fdf4;
    color: #047857;
}

.cms-ueditor-status[data-state="fallback"] {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.cms-ueditor-fallback {
    width: 100%;
    min-height: 360px;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font: 14px/1.8 Consolas, "Microsoft YaHei", sans-serif;
    resize: vertical;
}

.cms-ueditor-wrap .edui-editor,
.product-ueditor-wrap .edui-editor,
.cms-ueditor-wrap .edui-editor-toolbarbox,
.product-ueditor-wrap .edui-editor-toolbarbox,
.cms-ueditor-wrap .edui-editor-iframeholder,
.product-ueditor-wrap .edui-editor-iframeholder {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.cms-ueditor-wrap .edui-editor,
.product-ueditor-wrap .edui-editor {
    border-color: #dbe4ef !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

@media (max-width: 768px) {
    .cms-ueditor-status { align-items: flex-start; }
    .cms-ueditor-wrap .edui-editor-toolbarboxouter,
    .product-ueditor-wrap .edui-editor-toolbarboxouter { overflow-x: auto; }
    .cms-ueditor-wrap .edui-toolbar,
    .product-ueditor-wrap .edui-toolbar { min-width: 680px; }
    .cms-ueditor-fallback { min-height: 300px; font-size: 13px; }
}

@media (max-width: 1100px) {
    .page-container > form > div[style*="grid-template-columns"],
    .article-feature-page form > div[style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .page-container > form > div[style*="grid-template-columns"] > div:last-child {
        position: static !important;
    }
}
