/* 文章正文工具栏：严格采用参考图的 40px 白色单行图标布局。 */
.article-rich-toolbar.article-toolbar-reference{height:40px;min-height:40px;padding:0 8px!important;gap:0;overflow:visible;border:0;border-bottom:1px solid #eceff3;background:#fff;color:#303741;white-space:nowrap}
.article-toolbar-reference .article-tool,.article-toolbar-reference .article-color-tool,.article-toolbar-reference .article-reference-fontsize{box-sizing:border-box;height:39px!important;min-width:30px!important;margin:0;padding:0 7px!important;border:0!important;border-radius:0;background:#fff!important;color:#303741;line-height:39px;vertical-align:top;cursor:pointer}
.article-toolbar-reference button.article-tool:hover,.article-toolbar-reference summary.article-tool:hover,.article-toolbar-reference .article-color-tool:hover{background:#f1f3f5!important}
.article-toolbar-reference .article-tool.active{background:#e2e5e9!important}
.article-toolbar-reference .article-tool:focus-visible,.article-toolbar-reference summary:focus-visible{outline:1px solid #94a3b8;outline-offset:-2px}
.article-toolbar-reference .article-tool svg{width:17px;height:17px;margin:auto;stroke:#303741;stroke-width:1.8}
.article-toolbar-reference .article-tool b,.article-toolbar-reference .article-tool i,.article-toolbar-reference .article-tool u,.article-toolbar-reference .article-tool s{font-size:16px;font-style:normal;font-weight:600;text-decoration-thickness:1px}
.article-toolbar-reference .toolbar-separator{width:1px;height:23px;margin:8px 4px;background:#e1e5ea}
.article-toolbar-reference .article-reference-fontsize{width:80px!important;min-width:80px!important;padding:0 24px 0 10px!important;font-size:13px;appearance:auto}
.article-toolbar-reference .article-color-tool{position:relative;display:inline-flex;align-items:center;justify-content:center;width:37px!important;padding:0!important}
.article-toolbar-reference .article-color-tool>b{font-size:16px;font-weight:500}.article-toolbar-reference .article-color-tool>i{position:absolute;left:10px;bottom:7px;width:14px;height:2px;background:#3f4b59}.article-toolbar-reference .article-color-tool.background>b{font-size:0}.article-toolbar-reference .article-color-tool.background>b:before{content:'ab';font-size:12px;color:#fff;background:#4b5563;padding:1px 2px}.article-toolbar-reference .article-color-tool.background>i{display:none}
.article-toolbar-reference .article-color-tool input{position:absolute;inset:0;width:100%!important;height:100%!important;opacity:0;cursor:pointer}
.article-toolbar-reference [data-tip]:hover:after{top:42px}
.article-toolbar-reference .article-tool-dropdown{position:relative;height:39px;flex:none}.article-toolbar-reference .article-tool-dropdown>summary{display:flex;align-items:center;justify-content:center;gap:4px;list-style:none}.article-toolbar-reference .article-tool-dropdown>summary::-webkit-details-marker{display:none}.article-toolbar-reference .article-tool-caret{width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #87919e}
.article-toolbar-reference .article-tool-menu{position:absolute;z-index:80;top:39px;left:0;display:grid;min-width:138px;padding:5px;border:1px solid #cfd6df;background:#fff;box-shadow:0 4px 12px #26344524}.article-toolbar-reference .article-tool-menu-item{display:block!important;width:100%!important;height:30px!important;min-width:128px!important;padding:0 10px!important;border:0!important;text-align:left;background:#fff!important;color:#303741!important;line-height:30px}.article-toolbar-reference .article-tool-menu-item:hover{background:#eef2f6!important}.article-toolbar-reference .article-tool-menu-item span{font-size:13px;font-weight:400}
.article-toolbar-reference .article-quote-icon{font-family:Georgia,serif;font-size:24px!important;line-height:1}.article-toolbar-reference .article-line-icon{display:block;width:15px;height:1px;background:#303741}.article-toolbar-reference .article-code-icon{font-size:13px!important;letter-spacing:-1px}
.article-toolbar-reference .article-tool-menu-item.primary{background:#fff!important;color:#303741!important}
.article-toolbar-reference .article-color-dropdown{position:relative}.article-toolbar-reference .article-color-dropdown>summary{display:flex;align-items:center;justify-content:center;list-style:none}.article-toolbar-reference .article-color-dropdown>summary::-webkit-details-marker{display:none}.article-toolbar-reference .article-text-color-icon{position:relative;font-weight:500}.article-toolbar-reference .article-text-color-icon:after{content:'';position:absolute;left:0;right:0;bottom:-4px;height:2px;background:#303741}.article-toolbar-reference .article-bg-icon{padding:1px 3px;background:#4b5563;color:#fff;font-size:11px!important}.article-toolbar-reference .article-color-panel{position:absolute;z-index:95;top:39px;left:0;box-sizing:border-box;width:242px;padding:10px;border:1px solid #d4dae2;background:#fff;box-shadow:0 4px 14px #26344526}.article-toolbar-reference .article-color-panel>span{display:block;margin-bottom:7px;color:#87919e;font-size:13px}.article-toolbar-reference .article-color-swatches{display:grid;grid-template-columns:repeat(11,17px);gap:4px}.article-toolbar-reference .article-color-swatches button{position:relative;box-sizing:border-box;width:17px!important;min-width:17px!important;height:17px!important;padding:0!important;border:1px solid #e0e4e9!important;background:var(--swatch)!important}.article-toolbar-reference .article-color-swatches button.no-color:after{content:'';position:absolute;left:1px;top:7px;width:14px;height:1px;background:#ef4444;transform:rotate(-45deg)}.article-toolbar-reference .article-more-color{display:grid;grid-template-columns:26px 1fr 54px;gap:7px;margin-top:11px;padding-top:10px;border-top:1px dashed #dfe4ea}.article-toolbar-reference .article-more-color input[type="color"]{box-sizing:border-box;width:26px!important;height:26px!important;padding:0;border:0}.article-toolbar-reference .article-more-color input[type="text"]{box-sizing:border-box;width:100%;height:26px;padding:0 7px;border:1px solid #d6dce4}.article-toolbar-reference .article-more-color button{height:26px!important;padding:0 8px!important;border:1px solid #d6dce4!important;background:#fff!important}
.article-toolbar-reference .article-table-tool{position:relative;display:inline-flex;height:39px;flex:none}.article-toolbar-reference .article-table-grid-picker{position:absolute;z-index:90;top:39px;left:0;box-sizing:border-box;width:227px;padding:8px 10px 10px;border:1px solid #d4dae2;background:#fff;box-shadow:0 4px 14px #26344526}.article-toolbar-reference .article-table-grid-picker>b{display:block;height:24px;font-size:13px;font-weight:400;line-height:20px;color:#303741}.article-toolbar-reference .article-table-grid{display:grid;grid-template-columns:repeat(10,18px);gap:3px}.article-toolbar-reference .article-table-grid button{box-sizing:border-box;width:18px!important;min-width:18px!important;height:18px!important;padding:0!important;border:1px solid #e2e7ed!important;border-radius:1px;background:#f8fafb!important}.article-toolbar-reference .article-table-grid button.selected{border-color:#b7dfc3!important;background:#d8f2df!important}
.article-rich-editor .article-product-card,.article-phone-preview .article-product-card{display:flex;align-items:center;gap:10px;margin:12px 0;padding:10px;border:1px solid #dce3eb;border-radius:4px;background:#fff}.article-rich-editor .article-product-card img,.article-phone-preview .article-product-card img{width:52px;height:52px;flex:none;object-fit:cover;border-radius:3px}.article-rich-editor .article-product-card span,.article-phone-preview .article-product-card span{display:grid;min-width:0;flex:1;gap:5px}.article-rich-editor .article-product-card b,.article-phone-preview .article-product-card b{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.article-rich-editor .article-product-card small,.article-phone-preview .article-product-card small{overflow:hidden;color:#7b8794;text-overflow:ellipsis;white-space:nowrap}.article-rich-editor .article-product-card em,.article-phone-preview .article-product-card em{padding:3px 7px;border-radius:10px;background:#e9f2ff;color:#2563eb;font-size:12px;font-style:normal}
.article-toolbar-reference .article-text-color-icon{line-height:18px!important}.article-toolbar-reference .article-text-color-icon:after{bottom:0!important;background:#e11d2e!important}.article-toolbar-reference .article-table-spacing{position:relative}.article-toolbar-reference .article-table-spacing-panel{position:absolute;z-index:95;top:39px;left:0;display:grid;box-sizing:border-box;width:210px;gap:8px;padding:10px;border:1px solid #d4dae2;background:#fff;box-shadow:0 4px 14px #26344526}.article-toolbar-reference .article-table-spacing-panel label{display:grid;grid-template-columns:72px 1fr 18px;align-items:center;gap:5px;font-size:13px}.article-toolbar-reference .article-table-spacing-panel input{box-sizing:border-box;width:70px!important;height:28px!important;padding:2px 6px;border:1px solid #d4dae2}.article-toolbar-reference .article-table-spacing-panel button{height:30px!important;border:1px solid #c9d2df!important;background:#fff!important}
.article-toolbar-reference .article-wechat-color-panel{width:242px;padding:10px}.article-toolbar-reference .article-color-recent{display:grid;grid-template-columns:repeat(9,19px);gap:5px;margin-bottom:10px}.article-toolbar-reference .article-color-recent button{position:relative;box-sizing:border-box;width:19px!important;min-width:19px!important;height:19px!important;padding:0!important;border:1px solid #dfe4ea!important;background:var(--swatch)!important}.article-toolbar-reference .article-color-recent button.no-color:after{content:'';position:absolute;left:1px;top:8px;width:16px;height:1px;background:#ef4444;transform:rotate(-45deg)}
.article-toolbar-reference .article-color-tabs{display:flex;gap:16px;height:27px;margin-bottom:6px}.article-toolbar-reference .article-color-tabs button{height:27px!important;padding:0!important;border:0!important;background:#fff!important;color:#a5acb5!important}.article-toolbar-reference .article-color-tabs button.active{color:#4b5563!important}.article-toolbar-reference .article-color-tab{display:none}.article-toolbar-reference .article-color-tab.active{display:block}
.article-toolbar-reference .article-wechat-color-panel .article-color-swatches{grid-template-columns:repeat(9,19px);gap:5px}.article-toolbar-reference .article-wechat-color-panel .article-color-swatches button{width:19px!important;min-width:19px!important;height:19px!important}
.article-toolbar-reference .article-color-spectrum{position:relative;width:200px;height:150px;cursor:crosshair;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),var(--hue)}.article-toolbar-reference .article-color-spectrum i{position:absolute;left:100%;top:0;width:8px;height:8px;border:1px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #334155;transform:translate(-50%,-50%);pointer-events:none}.article-toolbar-reference .article-color-hue{box-sizing:border-box;width:200px!important;height:12px!important;margin:6px 0 0;padding:0;appearance:none;background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}.article-toolbar-reference .article-color-hue::-webkit-slider-thumb{width:7px;height:16px;border:1px solid #fff;box-shadow:0 0 0 1px #64748b;appearance:none;background:transparent}
.article-toolbar-reference .article-table-grid-picker[hidden]{display:none!important}
.article-toolbar-reference .article-bg-icon{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;padding:0!important;line-height:1!important}
.article-toolbar-reference .article-wechat-color-panel .article-more-color{grid-template-columns:26px 1fr 54px}.article-toolbar-reference .article-wechat-color-panel .article-more-color b{display:block;width:26px;height:26px;background:var(--preview)}
