/* Scoped imported content only. Inline edits and authored styles keep precedence. */
div:where(.ali-body-template){font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB",Arial,sans-serif;font-size:14px;line-height:1.6;color:#53585f;overflow-wrap:anywhere}
:where(.ali-body-template) p{margin:0 0 18px}
:where(.ali-body-template) h2{position:relative;display:block;margin:32px 0 14px;padding:0 0 11px;border:0;color:#42464d;font-size:18px;line-height:1.6;font-weight:700}
:where(.ali-body-template) h2::before{content:"";position:absolute;left:0;bottom:0;width:min(200px,65%);height:1px;background:linear-gradient(90deg,#e4def2,#f3f0f8)}
:where(.ali-body-template) h2::after{content:"";position:absolute;left:0;bottom:-2.5px;width:56px;height:6px;border-radius:4px;background:#9674d8}
:where(.ali-body-template) h3{position:relative;display:block;margin:28px 0 14px;padding:0 0 0 18px;border:0;color:#42464d;font-size:16px;line-height:1.6;font-weight:700}
:where(.ali-body-template) h3::before{content:"";position:absolute;left:0;top:2px;width:6px;height:22px;border-radius:4px;background:#e8a163}
:where(.ali-body-template) :is(h4,h5,h6){margin:24px 0 12px;color:#42464d;font-size:16px;line-height:1.6;font-weight:700}
:where(.ali-body-template) :is(ul,ol){margin:0 0 18px;padding-left:1.6em}
:where(.ali-body-template) li{margin:6px 0;padding-left:3px}
:where(.ali-body-template) li::marker{color:#9674d8;font-weight:700}
/* Beat TinyMCE's dashed visual aids inside the import only; keep inline edits. */
.ali-body-template table{width:100%;max-width:100%;margin:24px 0 28px;border:1px solid #e8e4f1;border-collapse:separate;border-spacing:0;border-radius:9px;overflow:hidden;font-family:inherit;font-size:14px;line-height:1.6}
.ali-body-template :is(th,td){padding:11px 14px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid #eae7f1;font-family:inherit;font-size:inherit;line-height:inherit;overflow-wrap:anywhere}
.ali-body-template th,.ali-body-template .ali-template-table-heading>:is(th,td){background:#f1edff;color:#4c32b5;font-weight:700}
.ali-body-template :is(td,th)+:is(td,th){border-left:1px solid #eae7f1}
.ali-body-template tr:last-child>:is(th,td){border-bottom:0}
.ali-body-template :is(td,th)>p:last-child{margin-bottom:0}
:where(.ali-body-template) blockquote{position:relative;margin:24px 0;padding:16px 20px 16px 23px;background:#fff8f1;border:0;border-radius:8px;color:#554536}
:where(.ali-body-template) blockquote::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;border-radius:3px;background:#ff7b00;pointer-events:none}
:where(.ali-body-template) blockquote p:last-child{margin-bottom:0}
:where(.ali-body-template) .ali-template-summary{position:relative;margin:0 0 32px;padding:18px 22px 18px 26px;background:linear-gradient(110deg,#f7f5ff,#fbfaff);border-left:0;border-radius:9px}
:where(.ali-body-template) .ali-template-summary::after{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:4px;background:#623cef;pointer-events:none}
:where(.ali-body-template) .ali-template-summary::before{content:"内容摘要";display:block;margin-bottom:8px;color:#623cef;font-size:14px;font-weight:700}
:where(.ali-body-template) .ali-template-summary p:last-child{margin-bottom:0}
:where(.ali-body-template) .ali-template-caption{margin:10px 0 18px;color:#777487;font-size:13px;line-height:1.6;text-align:center}
:where(.ali-body-template) .ali-template-related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
:where(.ali-body-template) .ali-template-related a{display:block;padding:12px 14px;border:1px solid #e9e6f3;border-radius:7px;background:#fff;color:#42464d;font-size:14px;line-height:1.6;font-weight:600;text-decoration:none}
:where(.ali-body-template) .ali-template-related a::after{content:"↗";float:right;margin-left:10px;color:#ff7b00}
:where(.ali-body-template) .ali-template-related a:hover,:where(.ali-body-template) .ali-template-related a:focus-visible{background:#f1edff;border-color:#d8ceff}
:where(.ali-body-template) img{max-width:100%;height:auto}
@media(max-width:560px){:where(.ali-body-template) .ali-template-related{grid-template-columns:1fr}:where(.ali-body-template) .ali-template-summary{padding:16px 18px 16px 22px}.ali-body-template :is(th,td){padding:10px}}

/* One visual baseline, including native editor table aids and historic imports. */
.ali-body-template table{margin-bottom:18px}
.ali-body-template table+blockquote{margin-top:0}
.ali-body-template .ali-html-table-scroll{margin:24px 0 18px}
.ali-body-template .ali-html-table-scroll>table{margin:0}
.ali-body-template .ali-html-table-scroll+blockquote{margin-top:0}
.ali-body-template :is(figcaption,.wp-caption-text,.ali-template-caption){text-align:center;font-size:14px;line-height:1.6}
.ali-body-template a[href]:not(:has(img)):not(.ali-template-related a){color:#623cef;font-weight:700;text-decoration:underline;text-decoration-color:#c4b5f0;text-underline-offset:3px;border-radius:3px;transition:background-color .18s ease,color .18s ease,text-decoration-color .18s ease}
.ali-body-template a[href]:not(:has(img)):is(:hover,:focus-visible){background-color:#f0eaff;color:#4f2bc3;text-decoration-color:#9674d8}
@media(prefers-reduced-motion:reduce){.ali-body-template a[href]{transition:none}}
