@quirekit/pptx-editor 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/README.zh-CN.md +21 -0
- package/dist/ai.d.mts +24 -1
- package/dist/ai.mjs +51 -51
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +36 -32
- package/dist/open-aKqKXJ6B.mjs +2 -0
- package/dist/styles.css +29 -0
- package/dist/svg-raster-BWlVOKxM.mjs +11 -0
- package/dist/templates.d.mts +575 -0
- package/dist/templates.mjs +1 -0
- package/dist/{types-B8CWBpnf.d.mts → types-Brh5JARz.d.mts} +437 -674
- package/dist/types-DeGx0c3N.d.mts +687 -0
- package/package.json +33 -29
- package/dist/svg-raster-DL19F7ez.mjs +0 -11
package/dist/ai.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{E as gt,Gt as Se,Ht as yt,Jt as wt,Kt as Le,N as kt,Nt as Ee,Rt as De,St as Me,Ut as q,Wt as W,Xt as G,Yt as xt,Zt as Ft,_ as Q,_t as Tt,at as vt,bt as Bt,ct as R,gt as Ct,kt as le,lt as P,mt as Re,ot as U,r as j,t as St,yt as Lt}from"./svg-raster-DL19F7ez.mjs";import{parseQuireHexColor as Et,quireSrgbToOklch as Dt}from"@quirekit/ui";import{addContentSlide as z,addSlideShape as Ne,addSlideTable as Mt,addSlideTextBox as Rt,addTitleSlide as V,createPresentation as Nt,emu as $e,findSlidePlaceholder as $t,getGroupChildren as At,getPresentationTheme as ce,getShapeBounds as _t,getShapeChartCategories as Ot,getShapeChartKind as Pt,getShapeChartSeriesNames as jt,getShapeChartSeriesValues as zt,getShapeDescription as Wt,getShapeFill as Kt,getShapeFillColor as It,getShapeFillColorResolved as Ht,getShapeFillEffective as de,getShapeId as C,getShapeImagePartName as qt,getShapeName as _,getShapePlaceholderType as Ae,getShapePreset as _e,getShapeRunFormat as Gt,getShapeRunFormatEffective as Qt,getShapeSize as Ut,getShapeText as K,getSlideAnimations as Oe,getSlideLayout as he,getSlideLayoutName as Vt,getSlideLayoutPartName as Pe,getSlideMasterPartName as je,getSlideNotes as ze,getSlidePartName as E,getSlideShapes as M,getSlides as D,getTableCellText as We,getTableCells as Ke,isShapeHidden as Jt,isShapePlaceholder as Ie,isSlideHidden as Xt,loadPresentation as pe,readPackagePart as I,removeShape as Zt,savePresentation as Yt,setMediaPartBytes as er,setShapeFill as He,setShapeImageFill as tr,setShapeNoStroke as qe,setShapeText as rr,setShapeTextFormat as ar}from"@quirekit/office-kit-pptx";import{v4 as nr}from"uuid";import{createQuireAiProviderSettings as ir,mountQuireAiDocumentPanel as or,quireAiImageGenerator as sr,resolveQuireAiModelConnection as lr}from"@quirekit/ai-assistant";import{createQuireAiSlidesDocumentSdk as cr,createQuireAiSlidesIdentity as dr,renderQuireAiSlidesView as hr}from"@quirekit/ai-runtime/slides";import{mergeDecks as pr}from"@quirekit/office-kit-pptx-editor/merge";import"@quirekit/ai-chat/styles.css";import"@quirekit/ai-assistant/styles.css";import{createQuireAiMemorySkillStore as mr,createQuireAiSkillLibrary as ur}from"@quirekit/ai-runtime";const J=e=>Dt(Et(e));function br(e){const{l:t,c:r}=J(e);return r>=.1&&t>=.3&&t<=.85?"saturated":t>=.6?"light":"dark"}function fr(e){const{c:t}=J(e);return t<.07?"low":t<=.15?"mid":"high"}function gr(e,t){const{c:r}=J(t);switch(e){case"any":return!0;case"low":return r<=.12;case"mid":return r>=.04&&r<=.22;case"high":return r>=.1}}function yr(e,t){const r=[];for(const a of["cover","content"]){const n=e.tokens[a],o=br(t[a]);n==="any"||n===o||n==="saturated"&&o==="dark"&&J(t[a]).c>=.1||r.push({kind:"page",page:a,expected:n,actual:o})}return gr(e.tokens.primary,t.primary)||r.push({kind:"primary",expected:e.tokens.primary,actual:fr(t.primary)}),r}const wr={photo:"商业摄影,真实场景,自然光,干净背景,统一的色彩分级","3d-object":"3D 渲染物件,磨砂或玻璃材质,柔和光影,干净的纯色背景","3d-character":"3D 卡通角色,圆润比例,柔和材质与高光,表情友好,干净的纯色背景","flat-illustration":"扁平矢量插画,平涂色块,少量颜色,简洁的人物与场景","line-art":"单色线描插画,细线条,几乎不填色,大量留白","ink-wash":"中国水墨画,淡墨晕染,大面积留白,宣纸纹理",guochao:"国潮平面插画,平涂色块,传统纹样,撞色",watercolor:"水彩插画,颜色晕染,纸张质感,低饱和,留白",fluid:"抽象流体丝带,柔和渐变,丝绸质感","tech-glow":"深色背景上的发光线条与粒子,全息界面元素,景深",geometric:"扁平几何构成,纯色块与简单图形",festive:"节庆元素,灯笼、烟花或礼盒,喜庆而不杂乱",civic:"庄重的红色与金色,红绸、柔和光晕、建筑剪影,对称构图",gradient:"柔和的抽象渐变与光斑,没有具体物体",type:"简洁的抽象背景,为大字留出空间",chart:"简洁的数据可视化示意,抽象图形"},kr="画面中不要出现任何文字、字母、数字、水印、商标或标志,不要出现国旗、国徽、党徽和地图";function xr(e,t,r,a){const n=q(t?.style),o=t?.custom?.picture||n?.hero.picture||(n?n.hero.kinds.map(c=>wr[c]).join(";"):""),s=t?`色调与页面协调:主色 ${t.palette.primary},强调色 ${t.palette.accent},页面底色 ${t.palette.background}`:"",d=r>a*1.2?"横版构图":a>r*1.2?"竖版构图":"方形构图";return[e.trim().replace(/[。.]$/u,""),o&&`风格:${o}`,s,d,kr].filter(Boolean).join("。")+"。"}const X=36e3;function Ge(e,t){const r=Math.max(e.x,t.x),a=Math.max(e.y,t.y),n=Math.min(e.x+e.width,t.x+t.width),o=Math.min(e.y+e.height,t.y+t.height);return n>r&&o>a?{x:r,y:a,width:n-r,height:o-a}:null}const Qe=e=>e.width*e.height;function me(e,t){return Math.max(0,t.x-e.x,t.y-e.y,e.x+e.width-t.x-t.width,e.y+e.height-t.y-t.height)}const ue=e=>e.role==="text"?e.text??e.frame:e.frame;function be(e,t){const r=Ge(e.frame,t.frame);return t.order<e.order&&r!==null&&Qe(r)>=Qe(e.frame)*.5}function Fr(e,t){const r=[],a={x:0,y:0,...t},n=e.filter(c=>c.role==="text"&&c.text!==null),o=e.filter(c=>c.role==="content");for(const c of n){const l=me(c.text,c.frame);l>36e3&&r.push({kind:"overflow",shapes:[c.id],amount:l});const i=e.filter(y=>y.role==="container"&&be(c,y)).sort((y,b)=>b.order-y.order)[0],p=i?me(c.text,i.frame):0;i&&p>36e3&&r.push({kind:"outside-container",shapes:[c.id,i.id],amount:p})}for(const c of[...n,...o]){const l=me(ue(c),a);l>36e3&&r.push({kind:"off-slide",shapes:[c.id],amount:l})}const s=e.filter(c=>c.role==="container");n.forEach((c,l)=>{const i=[...n.slice(l+1),...[...o,...s].filter(p=>!be(c,p))];for(const p of i){const y=Ge(ue(c),ue(p)),b=y?Math.min(y.width,y.height):0;b>36e3&&r.push({kind:"overlap",shapes:[c.id,p.id],amount:b})}});const d=e.filter(c=>c.role==="line");for(const c of n)for(const l of d){const i=s.some(p=>p.order>l.order&&be(c,p))?0:Tr(c.text,l.frame);i>36e3&&r.push({kind:"crosses-line",shapes:[c.id,l.id],amount:i})}return r}function Tr(e,t){const r={x:e.x+X,y:e.y+X,width:e.width-2*X,height:e.height-2*X};if(r.width<=0||r.height<=0)return 0;const a=t.width>=t.height,n=a?t.y+t.height/2:t.x+t.width/2;if(!(a?n>=r.y&&n<=r.y+r.height:n>=r.x&&n<=r.x+r.width))return 0;const o=a?Math.max(t.x,r.x):Math.max(t.y,r.y),s=a?Math.min(t.x+t.width,r.x+r.width):Math.min(t.y+t.height,r.y+r.height);return Math.max(0,s-o)}const vr=28800;function Br(e){const t=new Map,r=a=>{t.set(C(a),a);let n=[];try{n=At(a)}catch{}n.forEach(r)};return M(e).forEach(r),t}function Cr(e,t){if(!t)return!1;try{const r=de(e,t).kind;return r!=="none"&&r!=="inherit"&&r!=="background"}catch{return!1}}function Sr(e,t,r){const a=Br(t);return R(e,t,{lines:!0}).filter(n=>n.kind!=="group").map((n,o)=>{const s={x:n.x,y:n.y,width:n.width,height:n.height},d=Math.min(n.width,n.height)<vr&&(n.kind==="connector"||n.empty),c=n.rotation%360!==0?"decoration":d?"line":n.kind==="text"&&!n.empty?"text":n.kind==="picture"||n.kind==="chart"||n.kind==="table"||n.kind==="media"?"content":n.kind==="text"&&Cr(e,a.get(n.id))?"container":"decoration";return{id:n.id,role:c,frame:s,text:c==="text"?r.get(n.id)??null:null,order:o}})}function Lr(e,t,r){const a=r.measure(e,t);return{problems:Fr(Sr(e,t,a),P(e)),text:a}}const Er=()=>new Promise(e=>setTimeout(e,0));function Z(e,t=Er){const r=new Map;let a;const n=(d,c)=>{const l=he(c),i=[E(c),l?Pe(l):null,l?je(l):null];return{name:i[0],parts:i.map(p=>p?I(d,p):null),theme:JSON.stringify(ce(d))}},o=(d,c)=>{const l=n(d,c),i=r.get(l.name);return i&&i.theme===l.theme&&i.parts.every((p,y)=>p===l.parts[y])?i:void 0},s={peek(d,c){return o(d,c)?.problems},text(d,c){return o(d,c)?.text},check(d,c){const l=s.peek(d,c);if(l)return l;const i=n(d,c),{problems:p,text:y}=Lr(d,c,e);return r.set(i.name,{parts:i.parts,theme:i.theme,problems:p,text:y}),p},settle(d){const c=async()=>{for(const p of D(d))s.peek(d,p)||(await t(),s.check(d,p))},l=(a??Promise.resolve()).then(c),i=l.finally(()=>{a===i&&(a=void 0)});return a=i,l}};return s}const Dr={addSlide:"新建幻灯片",duplicateSlide:"复制幻灯片",setSlideHidden:"隐藏幻灯片",setSlideBackground:"设置背景",setSlideNotes:"修改备注",setSlideLayout:"更换版式",setSlideTransition:"设置切换",addTextBox:"插入文本框",addShape:"插入形状",addTable:"插入表格",addChart:"插入图表",addDiagram:"插入智能图形",setTableCellText:"修改单元格",setTableStyle:"设置表格样式",setChartData:"修改图表数据",setShapeFill:"设置填充",setShapeOutline:"设置轮廓",setShapeBounds:"调整位置和大小",duplicateShapes:"复制形状",alignShapes:"对齐",arrangeShapes:"调整层次",rotateShapes:"旋转",flipShapes:"翻转",ungroupShapes:"取消组合",setTextFormat:"设置文字格式",setTextAlignment:"设置对齐",setTextAnchor:"设置文字垂直对齐",setParagraphBullets:"设置项目符号",changeListLevel:"调整列表级别",setLineSpacing:"设置行距",addShapeAnimation:"添加动画",clearShapeAnimations:"删除动画",setDeckColors:"设置主题配色",setDeckFonts:"设置主题字体",applyMotion:"设置动画",setBrief:"记录简报",setDeckPlan:"写入故事线",setDeckDesign:"确定设计语言",setDeckDirections:"提出设计方向",drawSlide:"绘制幻灯片",moveShapes:"移动"};function Mr(e,t){try{const r=de(e,t).kind;return r!=="none"&&r!=="inherit"&&r!=="background"}catch{return!1}}function Rr(e,t){const r=new Map(G(t).map(o=>[C(o),o])),a=R(e,t).filter(o=>o.parent===null),n=a.map((o,s)=>({box:o,order:s})).filter(({box:o})=>{const s=r.get(o.id);return s!==void 0&&o.kind!=="picture"&&o.kind!=="chart"&&o.kind!=="table"&&o.kind!=="media"&&Mr(e,s)});return o=>{const s=a.findIndex(p=>p.id===o),d=a[s];if(d===void 0)return{container:null,color:void 0};const c=d.x+d.width/2,l=d.y+d.height/2,i=n.filter(p=>p.order<s&&c>=p.box.x&&c<=p.box.x+p.box.width&&l>=p.box.y&&l<=p.box.y+p.box.height).at(-1);return i===void 0?{container:null,color:void 0}:{container:i.box.id,color:Ht(e,r.get(i.box.id))}}}const Nr=/^qk:([a-z]+):e(\d+)-([A-Za-z]+):/u,$r=/^qk:draw:e\d+-([A-Za-z]+):/u,Ar=new Set(["title","eyebrow","subtitle","decoration","page"]);function Ue(e,t){const r=(a,n)=>Math.min(2,Math.max(0,Math.floor(a/n*3)));return`${["top","middle","bottom"][r(e.y+e.height/2,t.height)]}-${["left","centre","right"][r(e.width>t.width/3?e.x:e.x+e.width/2,t.width)]}`}function _r(e,t){const r=new Map;for(const l of R(e,t)){const i=$r.exec(l.name);i&&r.set(l.id,i[1])}if(r.size===0)return null;const a=P(e),n=R(e,t).filter(l=>r.has(l.id)),o=n.find(l=>r.get(l.id)==="title"),s=n.filter(l=>!Ar.has(r.get(l.id))),d=[...s].sort((l,i)=>i.width*i.height-l.width*l.height)[0],c=[o?`title ${Ue(o,a)}`:"no title",...d?[`${r.get(d.id)==="body"?d.kind:r.get(d.id)} ${Ue(d,a)}`]:[],`${Math.min(s.length,4)}${s.length>4?"+":""} block(s)`];return`${s.length>0?"content":"statement"}:${c.join("+")}`}function fe(e,t){const r=_r(e,t);if(r!==null)return r;const a=new Map;let n="";for(const o of M(t)){const s=Nr.exec(_(o)??"");s&&(n=s[1],a.set(Number(s[2]),s[3]))}return a.size===0?null:`${n}:${[...a.entries()].sort((o,s)=>o[0]-s[0]).map(([,o])=>o).join("+")}`}const v=Object.freeze({contentWords:80,statementWords:40,bodySize:16,smallTextWords:15,bodyWords:20,hierarchy:1.25,alignedWithin:18e3,alignmentReach:144e3,coverage:.5,perKind:3,typeLevels:5,headerDrift:36e4});function Or(e){const t=e?.delivery==="read";return{contentWords:t?v.contentWords*2:v.contentWords,statementWords:t?v.statementWords*1.5:v.statementWords,bodySize:e?.venue==="screen"?14:v.bodySize}}const Ve=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/gu;function Y(e){return(e.match(Ve)?.length??0)+(e.replace(Ve," ").match(/[\p{L}\p{N}]+/gu)?.length??0)}function Pr(e){let t;try{t=Gt(e,0,0)?.color??void 0}catch{t=void 0}return[It(e),t].filter(r=>typeof r=="string"&&/^#[0-9A-Fa-f]{6}$/u.test(r)).map(r=>r.toUpperCase())}function jr(e,t){const r=le(e);if(!r)return[];const a=new Set(Object.values(r.palette).map(n=>n.toUpperCase()));return t.flatMap(n=>{const o=Pr(n).find(s=>!a.has(s));return o?[{kind:"off-palette",shape:C(n),color:o}]:[]}).slice(0,v.perKind)}function zr(e){const t=[...new Set(e.map(r=>Math.round(r)))].sort((r,a)=>a-r);return t.length>v.typeLevels?[{kind:"type-levels",sizes:t,limit:v.typeLevels}]:[]}function Wr(e,t,r){const a=c=>{const l=r(c);if(!l||fe(e,c)?.split(":")[0]!=="content")return null;const i=R(e,c).find(p=>p.id===C(l));return i?{id:i.id,x:i.x,y:i.y}:null},n=a(t),o=D(e).map(a).filter(c=>c!==null);if(!n||o.length<3)return[];const s=c=>c.sort((l,i)=>l-i)[Math.floor(c.length/2)],d=Math.hypot(n.x-s(o.map(c=>c.x)),n.y-s(o.map(c=>c.y)));return d>v.headerDrift?[{kind:"header-drift",shape:n.id,offset:Math.round(d)}]:[]}const Kr=new Set(["dt","ftr","sldNum"]),Ir=/-(bigNumber|stats|quote|takeaway|number):/u,H=e=>{try{return K(e)}catch{return""}};function Hr(e){const t=_(e)??"";return Kr.has(Ae(e)??"")||/:(page-number|decoration|title-mark|takeaway-band):/u.test(t)}function ge(e){const t=Ae(e);return t==="title"||t==="ctrTitle"||/^qk:[a-z]+:e\d+-title:/u.test(_(e)??"")}function ee(e,t){return H(t).split(`
|
|
2
|
-
`).flatMap((r,a)=>{if(!r.trim())return[];try{return[Qt(e,t,a,0).size??18]}catch{return[]}})}function ye(e,t,r){const a=[],n=Or(Re(e)),o=fe(e,t),s=o?.split(":")[0]??($t(t,"ctrTitle")?"cover":"content"),d=P(e),c=Math.min(d.width,d.height)/6858e3,l=G(t).filter(u=>!Jt(u)&&!Hr(u)),i=l.filter(u=>Le(u)==="text"&&H(u).trim()),p=Rr(e,t),y=l.reduce((u,f)=>u+(Le(f)==="table"?Ke(f).flat().reduce((g,w)=>g+Y(We(w)),0):Y(H(f))),0),b=s==="content"?n.contentWords:n.statementWords;y>b&&a.push({kind:"dense",amount:y,limit:b});const F=n.bodySize*c,T=i.flatMap(u=>{if(ge(u)||Y(H(u))<v.smallTextWords)return[];const f=Math.min(...ee(e,u));return f<F-.05?[{kind:"small-text",shape:C(u),size:f,minimum:F}]:[]});a.push(...T.sort((u,f)=>u.size-f.size).slice(0,v.perKind));const h=i.find(ge),m=i.filter(u=>u!==h&&!Ir.test(_(u)??"")&&Y(H(u))>=v.bodyWords);if(s==="content"&&h&&m.length>0){const u=Math.max(...ee(e,h)),f=Math.max(...m.flatMap(g=>ee(e,g)));u<f*v.hierarchy&&a.push({kind:"weak-hierarchy",shape:C(h),size:u,body:f})}const k=i.flatMap(u=>{const f=p(C(u)),g=gt(e,t,u,f.container===null?void 0:f.color);return g?[{kind:"low-contrast",shape:C(u),ratio:g.ratio,needed:g.needed}]:[]});if(a.push(...k.slice(0,v.perKind)),a.push(...qr(e,t,new Set(l.map(C)),p).slice(0,v.perKind)),a.push(...jr(e,l)),a.push(...zr(i.flatMap(u=>ee(e,u)))),s==="content"&&a.push(...Wr(e,t,u=>G(u).find(ge))),s==="content"&&r!==void 0){const u=Gr(e,t,r,new Set(i.map(C)));u>v.coverage&&a.push({kind:"crowded",coverage:u,limit:v.coverage})}return{...o?{composition:o}:{},facts:a}}function qr(e,t,r,a){const n=R(e,t).filter(s=>s.parent===null&&r.has(s.id)&&s.rotation%360===0&&!s.empty&&(s.kind==="text"||s.kind==="picture"||s.kind==="chart"||s.kind==="table")),o=[];return n.forEach((s,d)=>n.slice(d+1).forEach(c=>{if(a(s.id).container!==a(c.id).container)return;const l=Math.abs(s.x-c.x);l>v.alignedWithin&&l<v.alignmentReach&&o.push({kind:"near-alignment",shapes:[s.id,c.id],offset:l})})),o.sort((s,d)=>s.offset-d.offset)}function Gr(e,t,r,a){const n=P(e),o=[...a].flatMap(l=>r.get(l)??[]);o.push(...R(e,t).filter(l=>l.parent===null&&l.kind==="table"));const s=64,d=36;let c=0;for(let l=0;l<d;l+=1)for(let i=0;i<s;i+=1){const p=(i+.5)*n.width/s,y=(l+.5)*n.height/d;o.some(b=>p>=b.x&&p<=b.x+b.width&&y>=b.y&&y<=b.y+b.height)&&(c+=1)}return c/(s*d)}function Je(e){const t=new Map;return{measure(r,a){const n=E(a),o=he(a),s=[n,o?Pe(o):null,o?je(o):null].map(p=>p?I(r,p):null),d=JSON.stringify(ce(r)),c=e?.text(r,a),l=t.get(n);if(l&&l.theme===d&&l.text===c&&l.parts.every((p,y)=>p===s[y]))return l.design;const i=ye(r,a,c);return t.set(n,{parts:s,theme:d,text:c,design:i}),i}}}const Qr=/^qk:draw:/u;function we(e){const t=Wt(e)?.trim()??"";return Qr.test(_(e)??"")&&t!==""&&Kt(e).kind!=="image"?t:void 0}const Ur=1600,Vr=3,Xe=3,Jr=2e3,ke=new WeakMap;async function Ze(e,t,r,a){const n=le(e.presentation());let o=ke.get(e);o||ke.set(e,o=new Map);const s=o,d=D(e.presentation()).filter(b=>a===void 0||E(b)===a).flatMap(b=>M(b).flatMap(F=>{const T=we(F),h=Ut(F),m=`${E(b)}#${C(F)}`;return T&&h&&!s.has(m)?[{key:m,part:E(b),id:C(F),prompt:T,width:h.w,height:h.h}]:[]})),c=new Map;for(const b of d)s.set(b.key,new Promise(F=>c.set(b.key,F)));let l=0,i=0;const p=async b=>{const F=Ur/Math.max(b.width,b.height,1),T=Math.round(b.width*F),h=Math.round(b.height*F),m=xr(b.prompt,n,T,h);let k;for(let f=1;f<=Xe&&!k&&!r?.aborted;f+=1)try{k=await t.generate({prompt:m,width:T,height:h,signal:r})}catch{f<Xe&&!r?.aborted&&await new Promise(g=>setTimeout(g,Jr*f))}if(!k||r?.aborted)return;const u=k;e.transact("生成配图",f=>{const g=xt(f,b.part),w=g&&M(g).find(S=>C(S)===b.id);return w?(rr(w,""),tr(w,u),!0):!1},"agent")&&(l+=1)},y=async()=>{for(;i<d.length;){const b=d[i++];try{await p(b)}finally{s.delete(b.key),c.get(b.key)?.()}}};return await Promise.all(Array.from({length:Math.min(Vr,d.length)},y)),l}async function Xr(e,t,r,a,n=6e4){Ze(e,r,a,t);const o=[...ke.get(e)?.entries()??[]].filter(([d])=>d.startsWith(`${t}#`)).map(([,d])=>d);if(o.length===0)return;let s;await Promise.race([Promise.all(o),new Promise(d=>{s=setTimeout(d,n)})]),clearTimeout(s)}const Zr={entr:"entrance",emph:"emphasis",exit:"exit",path:"path"};function xe(e){return Oe(e).filter(t=>t.sequence==="mainSeq").map(t=>({shapes:[...t.targetShapeIds],start:t.start==="withPrevious"?"with":t.start==="afterPrevious"?"after":"click",kind:Zr[t.presetClass??""]??"other",effect:t.effect}))}function Ye(e){let t=0;return e.map(r=>r.start==="click"?t+=1:t)}const et=8,Yr=3;function te(e){return e.flatMap(t=>t.kind==="shape"?[t.shape]:t.kind==="box"?[t.shape,...te(t.holds)]:[...t.items.flat(),...t.links])}function tt(e,t){for(const r of e)t(r),r.kind==="box"&&tt(r.holds,t)}const ea=(e,t)=>new Set(e.map(t));function ta(e,t){if(e.length===0)return[];const r=[],a=Ye(e),n=new Map;e.forEach((l,i)=>{if(l.kind==="entrance")for(const p of l.shapes)n.has(p)||n.set(p,a[i])});const o=l=>n.get(l)??-1,s=a.at(-1)??0;s>et&&r.push({kind:"many-clicks",clicks:s,limit:et}),tt(t.content,l=>{if(l.kind==="items")for(const i of l.items){const p=ea(i,o);p.size>1&&i.some(y=>n.has(y))&&r.push({kind:"split-item",shapes:i,clicks:p.size})}if(l.kind==="box"&&l.holds.every(i=>i.kind==="shape")){const i=o(l.shape),p=Math.min(...te(l.holds).map(o));i!==p&&r.push({kind:"box-apart",shape:l.shape,early:i<p?"box":"content"})}});for(const l of t.furniture)e.some(i=>i.shapes.includes(l))&&r.push({kind:"animated-furniture",shape:l});const d=t.content.map(l=>({shape:te([l])[0],at:Math.min(...te([l]).filter(i=>n.has(i)).map(o))})).filter(l=>Number.isFinite(l.at));for(let l=1;l<d.length;l+=1){const i=d.slice(0,l).find(p=>p.at>d[l].at);if(i!==void 0){r.push({kind:"build-order",later:d[l].shape,earlier:i.shape});break}}const c=new Map;return r.filter(l=>{const i=(c.get(l.kind)??0)+1;return c.set(l.kind,i),i<=Yr})}const re=36e4,ra=.25,aa=.1,na=.45,ia=new Set(["rect","roundRect","snip1Rect","snip2SameRect","round1Rect","round2SameRect"]);function rt(e){return e.flatMap(t=>t.kind==="shape"?[t.shape]:t.kind==="box"?[t.shape,...rt(t.holds)]:[...t.items.flat(),...t.links])}function Fe(e){return e.flatMap(t=>t.kind==="items"?[t]:t.kind==="box"?Fe(t.holds):[])}function ae(e){if(e.length===0)return null;const t=Math.min(...e.map(a=>a.x)),r=Math.min(...e.map(a=>a.y));return{x:t,y:r,width:Math.max(...e.map(a=>a.x+a.width))-t,height:Math.max(...e.map(a=>a.y+a.height))-r}}const oa=(e,t)=>t.x>=e.x-18e3&&t.y>=e.y-18e3&&t.x+t.width<=e.x+e.width+18e3&&t.y+t.height<=e.y+e.height+18e3,sa=(e,t)=>e.x-36e3<=t.x+t.width&&t.x-36e3<=e.x+e.width&&e.y-36e3<=t.y+t.height&&t.y-36e3<=e.y+e.height;function la(e,t){if(t===void 0)return!1;try{const r=de(e,t).kind;return r!=="none"&&r!=="inherit"&&r!=="background"}catch{return!1}}function ca(e,t,r,a){const n=P(e),o=new Map(R(e,t,{lines:!0}).filter(h=>h.parent===null).map(h=>[h.id,h])),s=new Map(G(t).map(h=>[C(h),h])),d=h=>{const m=o.get(h);return m===void 0?null:a?.get(h)??{x:m.x,y:m.y,width:m.width,height:m.height}},c=h=>Math.min(h.width,h.height)<.08*re&&(h.kind==="connector"||h.empty),l=rt(r.content),i=[],p=ae(r.header.flatMap(h=>d(h)??[])),y=r.furniture.flatMap(h=>d(h)??[]).filter(h=>h.y>=n.height*.75),b={top:p?p.y+p.height:0,bottom:y.length>0?Math.min(...y.map(h=>h.y)):n.height},F=ae(l.flatMap(h=>d(h)??[]));if(F!==null&&b.bottom>b.top){const h=b.bottom-b.top,m={top:(F.y-b.top)/h,bottom:(b.bottom-F.y-F.height)/h},k={top:"bottom",bottom:"top"},u=["bottom","top"].find(f=>m[f]>ra&&m[k[f]]<aa);u!==void 0&&i.push({kind:"empty-band",side:u,share:m[u]})}for(const h of o.values()){const m=s.get(h.id);if(!l.includes(h.id)||!h.empty||c(h)||!ia.has(_e(m)??"")||!la(e,m))continue;const k=[...o.values()].filter(g=>g!==h&&!c(g)&&oa(h,g)).flatMap(g=>d(g.id)??[]),u=h.width*h.height/(n.width*n.height);k.length===0&&u>=.02&&u<=.6&&i.push({kind:"empty-box",shape:h.id});const f=ae(k);f!==null&&h.height>=2.5*re&&f.height/h.height<na&&i.push({kind:"sparse-box",shape:h.id,filled:f.height/h.height})}for(const h of Fe(r.content)){if(h.layout==="grid"||h.items.length<2)continue;const m=h.items.map(g=>ae(g.flatMap(w=>o.get(w)&&!c(o.get(w))?[o.get(w)]:[])));if(m.some(g=>g===null))continue;const k=h.layout==="row"?m.map(g=>g.width):m.map(g=>g.height),u=m.slice(1).map((g,w)=>h.layout==="row"?g.x-m[w].x-m[w].width:g.y-m[w].y-m[w].height),f=g=>Math.max(...g)-Math.min(...g);(f(k)>Math.max(.3*re,Math.max(...k)*.15)||u.length>1&&f(u)>Math.max(.3*re,Math.max(...u)*.25))&&i.push({kind:"uneven-items",shapes:h.items.flat()})}const T=new Set(Fe(r.content).flatMap(h=>h.links));for(const h of l){const m=o.get(h);m===void 0||!c(m)||T.has(h)||Math.max(m.width/n.width,m.height/n.height)<.25||[...o.values()].some(k=>k!==m&&!c(k)&&l.includes(k.id)&&sa(m,k))||i.push({kind:"stray-line",shape:h})}return i}function at(e){return e.flatMap(t=>t.kind==="items"?t.items:t.kind==="box"?at(t.holds):[])}function Te(e,t,r,a,n){const o=at(a.content),s=c=>o.some(l=>c.every(i=>l.includes(i))),d=r.facts.filter(c=>c.kind!=="near-alignment"||!s(c.shapes));return{...r,facts:[...d,...ta(xe(t),a),...ca(e,t,a,n)]}}const ve={"bold-3d":{samples:50,genres:[{genre:"business",share:.34},{genre:"marketing",share:.18},{genre:"tech",share:.14},{genre:"classroom",share:.14},{genre:"medical",share:.08}],palettes:[{background:"#2A91E9",primary:"#0E82F9",text:"#FFFFFE",share:.1},{background:"#0169E8",primary:"#3EA1F7",text:"#E7F1FB",share:.08},{background:"#F4F7FF",primary:"#3A6FEC",text:"#184CC9",share:.08},{background:"#7243FE",primary:"#6940EC",text:"#FAF4FE",accent:"#C57694",share:.06},{background:"#39240D",primary:"#955F33",text:"#D9CABF",share:.04},{background:"#1C1433",primary:"#8462C4",text:"#A4AAAC",share:.04},{background:"#161719",primary:"#2486AA",text:"#92C9D6",share:.04},{background:"#010101",primary:"#DF3736",text:"#C5BDB3",share:.04}],covers:[{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.5,.18,.45,.8],bleed:!1},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["箭头按钮","底部白色波浪","条纹块"],share:.44},{title:{box:[.5,.3,.45,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.03,.16,.47,.78],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["玻璃立方体","景深虚化","箭头点列"],share:.12},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.55,.15,.41,.75],bleed:!1},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["白色曲面雕塑","水面","三圆点"],share:.12},{title:{box:[.17,.32,.66,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"festive",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["3D礼盒","金币","购物袋"],share:.06},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.55,.22,.4,.6],bleed:!1},eyebrow:"date",byline:"pill",frame:"ornament_border",decor:["金色竖线","金线弧框","放射细线"],share:.06}],inner:[{skeleton:"TL contents left label + numbered items in a row; TR 4 tall cards with circle icons, last primary; ML photo cards; BL big numbers 01 02 in primary card + diagram; BC emoji rating scale; MR long text; BR primary stacked cards + photo",contents:"left CONTENTS/目录 label, items in a row on dark",header:"plain light title top-left on dark",cards:"primary cards with primary filled highlights",numbers:"01",photos:"photos in rounded frames",share:.46},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; primary pages with orchid cards; slash marks near headers",contents:"left CONTENTS/目录 label, items in a row on primary",header:"white title top-left on primary",cards:"primary cards with circle icons, last card orchid",numbers:"01",photos:"few photos, tech images in rounded frames",share:.3},{skeleton:"TL contents left label + numbered items in a row; TC pie chart section; TR 4 tall cards with circle icons, last primary; ML text cards list; BL big numbers 01 02 in primary card + photo; MR text; BR primary stacked cards + chart illustration",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"white cards with last filled lime primary",numbers:"01",photos:"photos and chart illustrations",share:.08},{skeleton:"TL contents row; ML section title over a column of round icons or icon bars; BL two or three lines of large title over a landscape photo; R a full column of photos, no card row; primary; ML list rows with icon bars",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"primary icon bars in a column",numbers:"01",photos:"desert/landscape photos in rounded frames, right column",share:.04}],continuity:["black field with iridescent blobs leads to indigo-violet pages","cobalt field with white wave becomes cobalt cards on white","green primary with yellow accent carried into inner pages","saturated red ground everywhere, yellow as highlight fill"],traits:["gold scales of justice inside a gold-lined frame on mahogany","sculptural 3D fluid ribbon in bronze-white on dark chocolate","glass medical cross shield over blue-tinted microscope photo","3D calendar with magnifier check on nested cobalt-blue cards","glassy 3D browser window with media icons and pipes on violet","red-to-orange gradient with translucent white S-ribbon loop"]},"business-photo":{samples:164,genres:[{genre:"business",share:.36},{genre:"academic",share:.14},{genre:"medical",share:.11},{genre:"tech",share:.1},{genre:"marketing",share:.09}],palettes:[{background:"#FFFFFF",primary:"#466DC5",text:"#1C3264",share:.17},{background:"#FFFFFF",primary:"#4A90E3",text:"#272A37",share:.07},{background:"#FDFDFD",primary:"#975747",text:"#975747",share:.07},{background:"#FFFFFF",primary:"#B68C58",text:"#1E1E23",share:.04},{background:"#8690A6",primary:"#4666A3",text:"#FDFEFE",share:.04},{background:"#FFFFFF",primary:"#39C4D6",text:"#4A3D3C",share:.04},{background:"#274C84",primary:"#0B2556",text:"#FFFFFF",share:.03},{background:"#2561B5",primary:"#3579CF",text:"#E3EBF4",share:.03}],covers:[{title:{box:[.08,.32,.42,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"masked_photo",box:[.55,0,.45,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","斜切块","圆环"],share:.3},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[.6,0,.4,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"split",decor:["点阵","校徽","白色弧边"],share:.13},{title:{box:[.08,.3,.46,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["绿色渐变罩","蓝色半透明蒙层","竖向色条"],share:.1},{title:{box:[.45,.3,.5,.24],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"masked_photo",box:[0,0,.5,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"split",decor:["大圆描边","左侧色块","渐隐"],share:.07},{title:{box:[.07,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"masked_photo",box:[.55,.1,.43,.88],bleed:!0},eyebrow:"date",byline:"plain",frame:"card_on_bg",decor:["点阵","大圆","汉堡线"],share:.06}],inner:[{skeleton:"TL contents left label + numbered items in a row; TR 4 tall cards with circle icons, last primary; ML photo + text; BL big numbers 01 02 in primary card + photo; MR long text; BR primary stacked cards + hospital photo",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light cards with last filled primary",numbers:"01",photos:"photos in rounded frames",share:.49},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; primary; BC row of thin-divider text columns",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"light cards with circle icons, last card primary",numbers:"01",photos:"medical and tech photos in rounded frames",share:.24},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo but TL is a list card instead of contents; cornflower primary with primary arc accent",header:"plain dark title top-left",cards:"light cards with circle icons, last card primary",numbers:"01",photos:"landscape and logistics photos in rounded frames",share:.06},{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + 2 icon list rows; BL primary panel big numbers 01 02; BR primary small cards + photo; BC people photos",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"cream cards, last card primary filled",numbers:"01",photos:"photos in circles and frames",share:.05}],continuity:["orange title and fluid curve color fill inner cards on cream","blue-tinted glass building photo sits behind all inner pages","blue overlay on graduation photo becomes blue cards on white","cocoa brown overlay and bookmark tabs carry into brown cards"],traits:["aerial farmland photo under green gradient wash, white title","white spiral staircase sculpture fading into soft blue light","full-bleed airliner above sea of clouds with centered title","hands holding seedling soil photo under green duotone overlay","photo in a big circle crop plus teal and charcoal semicircles","skyscraper photo revealed through a gold-tinted diagonal slash"]},chalkboard:{samples:22,genres:[{genre:"classroom",share:.64},{genre:"business",share:.09},{genre:"academic",share:.09},{genre:"medical",share:.05},{genre:"tech",share:.05}],palettes:[{background:"#1D4638",primary:"#46A687",text:"#C4D2C5",share:.23},{background:"#302F2F",primary:"#BDBAB9",text:"#BDBAB9",share:.18},{background:"#363538",primary:"#446786",text:"#D2DDE4",share:.14},{background:"#BF9F5F",primary:"#7E673D",text:"#131413",share:.05},{background:"#1E4332",primary:"#E5A445",text:"#E9D6AA",share:.05},{background:"#12145F",primary:"#AA41BA",text:"#95AAD3",accent:"#12145F",share:.05},{background:"#1F2870",primary:"#7C86D1",text:"#CED1E9",share:.05},{background:"#7B8FA6",primary:"#212E33",text:"#212E33",share:.05}],covers:[{title:{box:[.18,.33,.64,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"board",decor:["地球","粉笔涂鸦","纸飞机"],share:.32},{title:{box:[.2,.35,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"plain",frame:"card_on_bg",decor:["黑板纹理","粉笔线","粉笔纸飞机"],share:.23},{title:{box:[.08,.32,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[.55,.15,.4,.85],bleed:!1},eyebrow:"date",byline:"plain",frame:"board",decor:["粉笔显微镜","原子符号","木框"],share:.14},{title:{box:[.08,.31,.45,.24],align:"left",lines:2,weight:"regular",family:"calligraphy",effect:"none"},hero:{kind:"line_art",box:[.48,.07,.5,.88],bleed:!0},eyebrow:"dots",byline:"plain",frame:"full_bleed",decor:["金色线描牡丹","蝴蝶","鹤翼"],share:.09}],inner:[{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; chalkboard dark pages with primary cards; ML circle photo rows",contents:"left CONTENTS/目录 label, items in a row on chalkboard",header:"white title top-left on chalkboard",cards:"dark cards with circle icons, last card primary",numbers:"01",photos:"bookshelf photos in rounded frames",share:.59},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo variant on primary: TL contents as stacked text rows in dark card; TR 4 cards with primary circle icons, last primary; ML title + tea field photo; BL primary big numbers 01; BR primary cards",contents:"items stacked vertically in a dark tint card",header:"plain light title top-left on dark",cards:"primary cards with circle icons, last card primary filled",numbers:"01",photos:"landscape photos in rounded frames",share:.18},{skeleton:"TL contents left label + numbered items in a row; TC chalk telescope section; TR 4 tall cards with circle icons, last primary; ML primary text cards; BL big numbers 01 02 in primary card + science photo; BC periodic table image; MR microscope photo; BR primary stacked cards",contents:"left CONTENTS/目录 label, items in a row on primary board",header:"plain light title top-left on chalkboard",cards:"chalkboard primary cards with primary highlights in wooden frames",numbers:"01",photos:"science photos in rounded frames",share:.09},{skeleton:"TL contents left label column + numbered items in a row; TC chalkboard + 01; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML photo + text rows; MR landscape photo; BL primary panel with big numbers 01 02 + image; BC primary cards row; BR primary side column",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain light title top-left on primary",cards:"alternating light and primary cards, circle icons on top",numbers:"01",photos:"photos in rectangular frames",share:.05}],continuity:["dark teal with faint embossed floral line art and serif type","blackboard ground with white stationery doodles carried over","chalkboard texture and chalk doodles continue on inner pages","charcoal chalkboard with frame borders on every inner page"],traits:["single glowing green heartbeat line across a deep navy card","black chalkboard covered with colorful chalk school doodles","wood-framed chalkboard with neon chalk microscope and atom drawings","chalkboard cover with bunting flags, chalk stars and grad-cap badge","dark slate chalkboard with chalk-drawn globe, astronaut and planets","blackboard ringed by dense white line-art school supplies and formulas"]},"dark-photo":{samples:39,genres:[{genre:"business",share:.56},{genre:"tech",share:.13},{genre:"marketing",share:.05},{genre:"civic",share:.05},{genre:"culture",share:.05}],palettes:[{background:"#1B1E2A",primary:"#CCBC9F",text:"#CCBC9F",share:.1},{background:"#010101",primary:"#4DC272",text:"#ACD7AA",share:.08},{background:"#121E3E",primary:"#4272EB",text:"#E0E7F1",share:.08},{background:"#3C3326",primary:"#CCA245",text:"#F0D595",share:.05},{background:"#1E4E77",primary:"#659FD5",text:"#FFFFFF",share:.05},{background:"#090909",primary:"#D2D0CC",text:"#D2D0CC",share:.05},{background:"#545453",primary:"#D29344",text:"#000101",share:.05},{background:"#010101",primary:"#E08021",text:"#BFB8B1",share:.05}],covers:[{title:{box:[.08,.32,.48,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["左侧竖条","圆形箭头按钮","细线"],share:.28},{title:{box:[.08,.3,.42,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"masked_photo",box:[.56,.04,.42,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","弧形光带","光斑"],share:.26},{title:{box:[.08,.31,.43,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[.65,0,.35,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"split",decor:["点阵","校徽","红色弧边"],share:.1},{title:{box:[.46,.3,.47,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[.01,.11,.42,.86],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["斜切块","闪电折线","聚光暗场"],share:.1},{title:{box:[.2,.32,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["蓝色调建筑仰拍","黑白仰拍楼宇","黄色细竖线"],share:.08}],inner:[{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + diagram with icons; BL primary panel big numbers 01 02; BR primary small cards stacked + landscape photo",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain light title top-left on dark",cards:"dark cards with primary accents, last card primary filled",numbers:"01",photos:"cutout athlete photo and photo strips",share:.54},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo with TL contents as stacked list in panel: TL contents list in primary panel; TR 4 cards row with circle icons, last card periwinkle; ML title + icon list rows; BL periwinkle panel big numbers 01 02; BR periwinkle small cards + photo; MR dense text",contents:"stacked list of items in a primary-tint panel, no row",header:"plain light title top-left on primary",cards:"periwinkle tinted cards on primary",numbers:"01",photos:"community photos in frames",share:.18},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; black pages with primary cards; ML photo above heading",contents:"left CONTENTS/目录 label, items in a row on black",header:"white title top-left on black",cards:"primary cards with circle icons, last card primary",numbers:"01",photos:"industrial photos in rounded frames",share:.18},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; TC section number 01 with primary block; TR 4 cards row with circle icons, last card primary; ML title + round icon rows; BL primary panel big numbers 01 02; BR primary small cards; MR dense text; BC photo card row",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"light cards with primary icons, last card primary filled",numbers:"01",photos:"office photos",share:.05}],continuity:["black field with teal arc becomes black pages with teal cards","deep ocean blue photo carries into dark pages with blue cards","dark sepia background with amber-yellow accents throughout","dark slate ground and sky blue pill color continue inside"],traits:["symmetric blue-tinted glass atrium photo with centered title","vaporwave classical statue bust with pink blobs and dot grid","monochrome folded-facade architecture with neon green title","dark sepia-toned city skyline photo with amber pill byline","dark monochrome city skyline photo with amber-orange title","sea turtle in an underwater cave silhouette with slider buttons"]},"flat-illustration":{samples:109,genres:[{genre:"classroom",share:.41},{genre:"business",share:.19},{genre:"kids",share:.13},{genre:"marketing",share:.08},{genre:"medical",share:.07}],palettes:[{background:"#FFFFFF",primary:"#4483D7",text:"#294285",accent:"#D8B66D",share:.2},{background:"#FFFFFF",primary:"#3FA37B",text:"#394C45",share:.15},{background:"#FFF5ED",primary:"#CD5945",text:"#4D3B41",accent:"#EAAE53",share:.11},{background:"#FFFFFF",primary:"#415899",text:"#415899",accent:"#52C0C3",share:.07},{background:"#FFFFFF",primary:"#F3A249",text:"#333237",share:.06},{background:"#EFFAEE",primary:"#45C283",text:"#5E7D5C",accent:"#E5CB79",share:.06},{background:"#7796F0",primary:"#46589E",text:"#FCFAFD",share:.05},{background:"#FFFBEF",primary:"#A98A37",text:"#845628",share:.05}],covers:[{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"flat_people",box:[.55,.14,.42,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","星芒","灯泡"],share:.29},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"flat_people",box:[.53,.17,.45,.75],bleed:!1},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["三圆点","网格底纹","有机色块"],share:.17},{title:{box:[.18,.33,.64,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"cartoon",box:[0,.47,1,.53],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["山丘","云朵","燕子"],share:.13},{title:{box:[.48,.3,.47,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"cartoon",box:[0,.18,.45,.82],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["斜切块","医疗十字","时钟"],share:.08},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"flat_people",box:[.55,.15,.4,.8],bleed:!1},eyebrow:"date",byline:"block",frame:"ornament_border",decor:["网格底纹","灯塔","光束"],share:.05}],inner:[{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; ML large meeting photo; BL primary panel big numbers 01; BR primary small cards plus photos; MR isometric map graphic",contents:"left CONTENTS/目录 label, items 01 02 in a row",header:"plain dark title top-left",cards:"white cards with primary circle icons, last card primary filled",numbers:"01",photos:"office photos",share:.4},{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card amber; ML title + text + primary block; BL amber panel big numbers 01 02; BR amber small cards + photo; MR cartoon icons",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"white cards with primary outline offset, last card amber filled",numbers:"01",photos:"children photos and cartoon icons",share:.34},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo but TL is a list card instead of contents; primary; cartoon city skyline edges",header:"plain dark title top-left",cards:"light cards with circle icons, last card primary",numbers:"01",photos:"photos in rounded frames",share:.11},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; TC framed section page; TR 4 cards row with circle icons, last card primary; ML title + sketch cards; BL primary panel big numbers 01 02; BR bookshelf photo; MR painting child photo; BC photo row",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"light cards, last card primary filled",numbers:"01",photos:"children activity photos",share:.04}],continuity:["orange primary and grid paper texture carry into inner pages","green primary with blue secondary and stripe corners repeated","sky blue and handwritten font continue; paper plane doodles","red primary and primary-color circles continue at inner edges"],traits:["flat cartoon brown bear standing in leafy circle on pale sage","cute cartoon dinosaur with egg on pale blue doodle background","flat figure presenting a chart on a periwinkle organic blob","big-eyed cartoon kid with pencil and backpack on muted purple","flat female judge at lectern on periwinkle blob background","flat astronauts floating around a giant tablet in indigo space"]},geometric:{samples:97,genres:[{genre:"business",share:.37},{genre:"recruitment",share:.14},{genre:"academic",share:.13},{genre:"marketing",share:.12},{genre:"classroom",share:.11}],palettes:[{background:"#FFFFFF",primary:"#C57460",text:"#684137",share:.11},{background:"#FFFFFF",primary:"#776BFA",text:"#3C3B7B",accent:"#F5CB3E",share:.08},{background:"#FFFFFF",primary:"#373B3F",text:"#373B3F",share:.07},{background:"#FFFFFF",primary:"#4CA6A7",text:"#384756",accent:"#F7BC13",share:.06},{background:"#FFFBF7",primary:"#F3BD2F",text:"#686348",share:.05},{background:"#FFFFFF",primary:"#577D9E",text:"#2E4154",share:.05},{background:"#0456B0",primary:"#143B5E",text:"#FCFEFF",share:.04},{background:"#FFFFFF",primary:"#60706B",text:"#60706B",share:.03}],covers:[{title:{box:[.2,.34,.6,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","半圆","细线同心圆"],share:.23},{title:{box:[.08,.3,.45,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[.5,0,.5,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","V形箭头","半圆"],share:.22},{title:{box:[.15,.32,.7,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["波浪线","点阵","黄色圆"],share:.1},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[.59,0,.41,.9],bleed:!0},eyebrow:"date",byline:"pill",frame:"split",decor:["斜切块","斜切橙色块","橙色竖块"],share:.05},{title:{box:[.2,.35,.6,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"ornament_border",decor:["半圆","细线框","短横线组"],share:.05}],inner:[{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; primary; dot grid accents on inner corners",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"cream cards with circle icons, last card primary",numbers:"01",photos:"team and office photos in rounded frames",share:.57},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo but TL is a stacked contents card; dusty rose primary; ML photo above heading",contents:"stacked list card top-left",header:"plain dark title top-left",cards:"light cards with circle icons, last card dusty rose",numbers:"01",photos:"business and product photos in rounded frames",share:.29},{skeleton:"TL list card; TC ring + 01; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML photo cards; MR chart illustration; BL primary panel with big numbers 01 02 + chart; BC photo; BR people photo",header:"plain dark title top-left",cards:"alternating white and primary cards, circle icons on top",numbers:"01",photos:"business photos and charts",share:.05},{skeleton:"TL contents as white card with stacked item lines (no CONTENTS label column); TR 4 cards row with circle icons, last card primary filled; ML number badges 01 03 with text rows; BL primary panel big numbers 01; BC 4-column text items with divider lines; BR primary small cards plus line-art org chart and resume graphics",contents:"white card with items stacked vertically",header:"plain dark title top-left",cards:"white cards with primary circle icons, last card primary filled",numbers:"01",photos:"few photos, line-art recruiting illustrations",share:.03}],continuity:["black ground and champagne gold carry into cards and accents","red overlay tint and dark ground used across all inner pages","dark purple with neon gradient planets and dot grids continue","coral orange ring color fills inner cards; ring motif repeats"],traits:["grayscale city-and-person photo masked inside thick red ring","stacked red chevron arrow on right edge with faint diamonds","emerald green card with a lime gradient planet and ring orbit","Memphis pastel blobs with mustard stripes and confetti dashes","copper gradient chevron arrows at opposite corners on charcoal","retro orange concentric-arc stripes at top and bottom on peach"]},guochao:{samples:36,genres:[{genre:"culture",share:.5},{genre:"classroom",share:.25},{genre:"marketing",share:.17},{genre:"festival",share:.06},{genre:"business",share:.03}],palettes:[{background:"#EDF5F0",primary:"#4A876B",text:"#1F4B50",share:.25},{background:"#FFFFFF",primary:"#BC7252",text:"#98563C",share:.14},{background:"#F6F4F0",primary:"#4F464C",text:"#4F464C",share:.08},{background:"#FDF5EF",primary:"#AA381C",text:"#AA381C",share:.06},{background:"#E0E0F0",primary:"#1E264A",text:"#1E264A",share:.06},{background:"#039C8D",primary:"#05ACD5",text:"#FDFEFB",accent:"#039C8D",share:.06},{background:"#1B3336",primary:"#5C8C53",text:"#E9EDEC",share:.06},{background:"#4A9579",primary:"#469276",text:"#F8F3E9",share:.03}],covers:[{title:{box:[.28,.32,.45,.22],align:"center",lines:2,weight:"regular",family:"sans",effect:"none"},hero:{kind:"guochao",box:[0,.6,1,.4],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["仙鹤","祥云","红日"],share:.22},{title:{box:[.08,.3,.45,.22],align:"left",lines:2,weight:"heavy",family:"serif",effect:"none"},hero:{kind:"guochao",box:[0,.3,1,.7],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["红日","圆日","飞鸟"],share:.14},{title:{box:[.5,.3,.45,.24],align:"right",lines:2,weight:"heavy",family:"serif",effect:"none"},hero:{kind:"guochao",box:[0,.05,.45,.95],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["蝴蝶","花鸟","山水"],share:.08},{title:{box:[.08,.3,.45,.22],align:"left",lines:2,weight:"bold",family:"serif",effect:"none"},hero:{kind:"guochao",box:[.55,0,.45,.95],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["祥云","圆日","底部色带"],share:.08},{title:{box:[.08,.3,.4,.22],align:"left",lines:2,weight:"bold",family:"serif",effect:"none"},hero:{kind:"guochao",box:[.45,.1,.5,.85],bleed:!1},eyebrow:"date",byline:"outline",frame:"ornament_border",decor:["竹叶","长城","顶部色带"],share:.08}],inner:[{skeleton:"TL contents left label + numbered items in a row; TC flower illustration section; TR 4 tall cards with circle icons, last primary; ML round photo thumbnails; BL big numbers 01 02 in primary card + bookshelf photo; MR long text; BR primary stacked cards + english sign photo",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light cards with last filled primary",numbers:"01",photos:"photos in rounded frames",share:.83},{skeleton:"NOT TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; ML section title + vertical column of round photo icons; BL two-line title + photo; MR/BR photos right column; TC section number 01",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"light cards with round photo icons, primary bars",numbers:"01",photos:"education photos in rounded frames",share:.06},{skeleton:"TL list card; TC pagoda + 01; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML icon list rows; MR flat illustration; BL primary panel with big numbers 01 02 + farm photo; BC text columns; BR primary side column + produce photo",header:"plain dark title top-left",cards:"alternating white and vermilion cards, circle icons on top",numbers:"01",photos:"farm and produce photos in rectangular frames",share:.03},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + stacked primary cards; BL primary panel big numbers 01 02; BR illustration; MR guochao poster; TC section number 01",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"light cards, last card primary filled",numbers:"01",photos:"illustration posters, few photos",share:.03}],continuity:["deep teal bands and bamboo corners recur on cream inner pages","sage green with botanical illustration accents at corners","mint ground with green stylized hills and bamboo at inner edges","green from the mountains fills inner cards on a pale mint ground"],traits:["guochao teal-gold Great Wall mountains under a big yellow sun","guochao pagoda and cranes inside a cloud-shaped window on teal","guochao orange-teal cloud mountains and red pine trees on white","muted taupe cover with flowing satin-like mountains and gold crane","guochao peach cloud sea, pagoda and cranes under golden moon on jade","illustrated ancient scholar in a beige circle with birds, serif title"]},"ink-paper":{samples:69,genres:[{genre:"culture",share:.49},{genre:"classroom",share:.22},{genre:"business",share:.07},{genre:"academic",share:.07},{genre:"marketing",share:.06}],palettes:[{background:"#FFFFFF",primary:"#433F3D",text:"#433F3D",share:.25},{background:"#FFFFFF",primary:"#69645D",text:"#69645D",share:.2},{background:"#EBF3F7",primary:"#4D575D",text:"#4D575D",share:.19},{background:"#FFFFFF",primary:"#49AF88",text:"#3B6453",share:.1},{background:"#F6FAFB",primary:"#3F7D8E",text:"#2E515E",share:.07},{background:"#FFFFFF",primary:"#C31D2A",text:"#4C3138",share:.06},{background:"#FAF4F4",primary:"#BE8B86",text:"#725754",share:.04},{background:"#EF7238",primary:"#924826",text:"#FDF9ED",share:.01}],covers:[{title:{box:[.08,.3,.45,.22],align:"left",lines:2,weight:"regular",family:"serif",effect:"none"},hero:{kind:"ink_wash",box:[.5,.1,.5,.9],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["飞鸟","远山","红日"],share:.25},{title:{box:[.18,.35,.64,.13],align:"center",lines:1,weight:"heavy",family:"serif",effect:"none"},hero:{kind:"ink_wash",box:[0,.45,1,.55],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["飞鸟","红日","小舟"],share:.19},{title:{box:[.08,.3,.46,.23],align:"left",lines:2,weight:"regular",family:"serif",effect:"none"},hero:{kind:"ink_wash",box:[.56,.11,.41,.85],bleed:!1},eyebrow:"date",byline:"plain",frame:"ornament_border",decor:["切角框","印章","色块角"],share:.09},{title:{box:[.48,.3,.47,.22],align:"right",lines:2,weight:"regular",family:"serif",effect:"none"},hero:{kind:"ink_wash",box:[0,.1,.8,.6],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["印章","飞鸟","亭子"],share:.07},{title:{box:[.45,.3,.49,.22],align:"right",lines:2,weight:"regular",family:"serif",effect:"none"},hero:{kind:"ink_wash",box:[0,.1,.45,.9],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["飞鸟","远山","红日"],share:.06}],inner:[{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card taupe; ML title + text + architecture image; BL taupe panel big numbers 01 02; BR taupe small cards + portrait photo; MR leaf photo",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"white cards, last card taupe filled",numbers:"01",photos:"nature and portrait photos",share:.41},{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + illustration cards; BL primary panel big numbers 01 02; BR photo; BC text columns",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"cream and primary cards, last card primary filled",numbers:"01",photos:"classroom photos and illustrations",share:.25},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; muted primary; ink-wash pavilion and crane cutouts at edges",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"light cards with circle icons, last card primary",numbers:"01",photos:"classroom and calligraphy photos in rounded frames",share:.17},{skeleton:"TL contents left label + numbered items in a row; ML primary icon list bars; BL title + forest photo; MR misty mountain photo; BR primary foliage photo",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"primary filled bars with outline icons",numbers:"01",photos:"nature photos in rounded frames",share:.04}],continuity:["ink-wash mountains and red brush accent recur on white pages","paper texture with blue-green mountains and red title accent","jade green border and ink-wash motifs at inner page corners","teal watercolor tone reappears as card fill and pill color"],traits:["unrolled scroll revealing 3D jade mountains over misty water","crimson ink bamboo on warm beige with deep red serif title","snow mountain peak emerging from white clouds on pale blue-gray","teal watercolor splash rising from the bottom under a teal title","faint ink-wash mountain mist with crimson date and pill","right-aligned brush title balanced by a pink-ink lotus on the left"]},"light-flow":{samples:84,genres:[{genre:"business",share:.49},{genre:"classroom",share:.11},{genre:"marketing",share:.11},{genre:"academic",share:.07},{genre:"tech",share:.07}],palettes:[{background:"#FBFDFE",primary:"#4374D2",text:"#3E599A",share:.17},{background:"#3265EA",primary:"#4977ED",text:"#FFFFFF",share:.07},{background:"#FEF5F6",primary:"#5D6C97",text:"#5D6C97",share:.07},{background:"#FBF2E7",primary:"#B27D7F",text:"#7C5458",share:.06},{background:"#FFFFFF",primary:"#0738C6",text:"#042483",accent:"#DF44EB",share:.05},{background:"#E7EAF4",primary:"#32AB9E",text:"#275550",share:.04},{background:"#171D4B",primary:"#528ACA",text:"#BECEE1",share:.04},{background:"#F2F4F5",primary:"#464444",text:"#464444",share:.04}],covers:[{title:{box:[.08,.32,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.45,.1,.55,.9],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["汉堡线","祥云纹","细横线"],share:.25},{title:{box:[.2,.35,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["点阵","小圆点","同心圆环"],share:.25},{title:{box:[.08,.3,.45,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"fluid",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["水彩晕染","流动细线束","玻璃圆"],share:.15},{title:{box:[.15,.33,.7,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"fluid",box:[0,.03,1,.72],bleed:!0},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["玻璃面板","四芒星","菜单图标"],share:.1},{title:{box:[.08,.3,.46,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"gradient",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"plain",frame:"card_on_bg",decor:["点阵","细曲线","大圆弧"],share:.05}],inner:[{skeleton:"TL contents left label + numbered items in a row; TR 4 tall cards with circle icons, last primary; ML round photo thumbnails row; BL big numbers 01 02 in primary card + photo; MR text column; BR primary stacked cards + classroom photo",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light cards with last filled primary",numbers:"01",photos:"round thumbnails and rounded photo frames",share:.49},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; primary; ML side label rows with small titles",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"white cards with circle icons, last card primary",numbers:"01",photos:"photos in rounded frames beside primary cards",share:.38},{skeleton:"TL contents left label column + numbered items in a row; ML title + periwinkle photo cards; MR portrait photo; BL title + sketch image; BC icon tiles; BR Great Wall photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark title top-left",cards:"periwinkle tinted photo cards and pale bars",numbers:"01",photos:"photos in rectangular frames",share:.04},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + primary text cards; BL primary panel big numbers 01 02; BR primary small cards + map graphic; MR dense text; BC primary small cards row",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"primary cards, last card primary filled",numbers:"01",photos:"few images, flat graphics",share:.02}],continuity:["coral pink title color and organic corner blobs recur inside","white field and pink from the gradient orb become pink cards","pink-coral organic blobs and leaf line art at inner corners","pink bubbles and frosted glass card soften into coral cards"],traits:["frosted glass spheres on pale blue with bold blue bottom bar","black marble with gold veins and italic gold gradient title","layered indigo fluid waves with magenta and cyan corner blobs","oversized thick blue paperclip-like stroke on near-white cover","molecule photo under a translucent emerald duotone overlay","soft pink and blue watercolor wash with cornflower serif title"]},"line-sketch":{samples:29,genres:[{genre:"business",share:.28},{genre:"academic",share:.14},{genre:"classroom",share:.14},{genre:"kids",share:.1},{genre:"recruitment",share:.1}],palettes:[{background:"#FFFFFF",primary:"#64A58A",text:"#232930",share:.17},{background:"#F9F9F9",primary:"#4F4842",text:"#4F4842",share:.14},{background:"#FFFFFF",primary:"#FF941D",text:"#423529",share:.14},{background:"#FFFFFF",primary:"#C07572",text:"#7C4845",share:.1},{background:"#EFF1FF",primary:"#426FDF",text:"#2E4A93",share:.1},{background:"#FFFFFF",primary:"#010101",text:"#010101",share:.07},{background:"#FFFFFF",primary:"#FFB002",text:"#403730",share:.07},{background:"#FFFFFF",primary:"#53C155",text:"#151A1C",share:.03}],covers:[{title:{box:[.08,.32,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[.55,.2,.4,.8],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["齿轮","折线人字纹","斜线排列"],share:.24},{title:{box:[.2,.33,.61,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["有机色块","手绘叶片","线描花朵"],share:.21},{title:{box:[.08,.3,.42,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"flat_people",box:[.55,.15,.38,.7],bleed:!1},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["点阵","蓝色角块","三点符号"],share:.1},{title:{box:[.1,.31,.44,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[.58,.15,.35,.72],bleed:!1},eyebrow:"date",byline:"outline",frame:"ornament_border",decor:["细线框","虚线","圆弧"],share:.07},{title:{box:[.07,.29,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[.55,.15,.4,.8],bleed:!1},eyebrow:"date",byline:"plain",frame:"device",decor:["浏览器顶栏","橙色色块","点阵"],share:.07}],inner:[{skeleton:"TL contents left label + numbered items in a row; TR 4 tall cards with petal icons, last terracotta; ML photo thumbnail + text; BL big numbers 01 02 in terracotta card; MR text column; BC text columns with rules; BR terracotta stacked cards",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light blush cards with last filled terracotta",numbers:"01",photos:"few small photos",share:.38},{skeleton:"TL contents left label + numbered items in a row; TC contour line section; TR 4 tall cards with circle icons, last steel primary; ML numbered list 01 03 with text; BL big numbers 01 02 in primary card + medical photo; MR person arrow illustration; BR primary stacked cards + photo",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light cards with last filled steel primary",numbers:"01",photos:"photos in rounded frames",share:.31},{skeleton:"TL contents left label + numbered items in a row; TC outline big number 01 section; TR 4 tall cards with circle icons, last gray; ML 3D icon cards; BL big numbers 01 02 in gray card + photo; BR gray stacked cards + chart illustration",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light cards with last filled mid-gray",numbers:"01",photos:"photos and 3D chart illustrations",share:.1},{skeleton:"TL contents left label + numbered items in a row; TC phone mockup section; ML primary cards with round photos; BL title text + landscape photos; MR landscape photos",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"primary tinted cards",numbers:"01",photos:"landscape photos in rounded frames",share:.07}],continuity:["pink desk-flat-lay doodles frame inner pages, coral primary","jade green and blue gradient landmark motifs echo at page tops","blue primary and paper-plane line icons reappear on inner pages","stacked browser-window frames and orange accents continue"],traits:["flat vivid green with oversized white outline chat bubble","stacked chevron line-art pattern, strict black-and-white minimal","gold outline leaves and soft organic blobs on pale mint","black line-art woman running with a browser window over pink blob","black-and-white line-drawn people riding a neon green growth arrow","gold line-drawn peonies framing bronze serif title on speckled paper"]},"red-ceremony":{samples:42,genres:[{genre:"civic",share:.6},{genre:"festival",share:.33},{genre:"recruitment",share:.02},{genre:"business",share:.02},{genre:"marketing",share:.02}],palettes:[{background:"#FFFFFF",primary:"#D32511",text:"#67140F",share:.29},{background:"#E82716",primary:"#AC1310",text:"#FEFEFE",share:.14},{background:"#A91614",primary:"#E0382F",text:"#FDF9F5",share:.12},{background:"#DB1C12",primary:"#EC5A28",text:"#FCFBF8",share:.1},{background:"#9F3B3A",primary:"#CEA373",text:"#FAF1EA",accent:"#9F3B3A",share:.07},{background:"#D90018",primary:"#8C0403",text:"#FEFFFF",share:.07},{background:"#1C4DD5",primary:"#093CCA",text:"#FCFCFD",share:.02},{background:"#2C40A5",primary:"#F42A29",text:"#FEF7F0",accent:"#4559BA",share:.02}],covers:[{title:{box:[.18,.35,.64,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"civic",box:[0,.55,1,.45],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["光带","红绸","白鸽"],share:.36},{title:{box:[.08,.3,.45,.22],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"civic",box:[.55,.2,.45,.8],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["飞鸽","红绸光带","竖向圆点导航"],share:.17},{title:{box:[.15,.2,.7,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"gradient"},hero:{kind:"festive",box:[0,.45,1,.55],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["红绸","烟花","月饼"],share:.1},{title:{box:[.09,.3,.47,.22],align:"left",lines:2,weight:"bold",family:"calligraphy",effect:"none"},hero:{kind:"festive",box:[.15,.05,.85,.95],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["金马","烟花","金山"],share:.05},{title:{box:[.47,.29,.47,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"guochao",box:[0,.05,.5,.8],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["长城","白鸽","祥云山丘"],share:.05}],inner:[{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + photo cards; BL primary panel big numbers 01 02; BR primary small cards + photo",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"white cards, last card primary filled",numbers:"01",photos:"photos in frames",share:.52},{skeleton:"TL contents left label column + numbered items in a row; TC big 01 on primary; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML title + text; MR horse motif; BL primary panel with big numbers 01 02 + field photo; BC photo text columns; BR terraced field photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark calligraphic title top-left",cards:"alternating white and festive primary cards, circle icons on top",numbers:"01",photos:"landscape photos in rectangular frames",share:.21},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo with TL contents as stacked list in panel: TL contents list in primary panel; TR 4 cards row with circle icons, last card primary; ML title + primary numbers 01 02 text; BL primary panel big numbers 01 02; BR primary small cards + photo; BC primary card row",contents:"stacked list of items in a primary panel",header:"plain dark title top-left",cards:"primary tint cards, last card primary filled",numbers:"01",photos:"people photos in frames",share:.07},{skeleton:"TL bulleted contents list; ML title + icon rows with tinted bars; MR landscape photo; BL title + photo; BC icon tiles; BR primary binders photo",contents:"plain bulleted list of section titles in one column",header:"plain dark title top-left with primary ribbon top band",cards:"pale tinted bars with icons",numbers:"none",photos:"photos in rectangular frames",share:.05}],continuity:["festive red and gold horse motif recur in corners and cards","christmas red primary and snowman stickers at inner page edges","paper texture with red scalloped valance and dashed frame","cream paper ground, serif type and bamboo leaves continue"],traits:["folded red ribbon chevrons slicing a laptop photo diagonally","glowing skyscraper cluster rising from red silk under red sky","golden stone lion over red silk ribbon, civic propaganda style","billowing red silk with white doves, gold-tinted centered title","glowing open book with flying pages and gold light rings on red","full red gradient field with fine silk-ribbon line waves"]},"soft-3d":{samples:106,genres:[{genre:"business",share:.33},{genre:"marketing",share:.19},{genre:"classroom",share:.18},{genre:"finance",share:.08},{genre:"tech",share:.08}],palettes:[{background:"#E7F3F9",primary:"#3255A9",text:"#3255A9",share:.17},{background:"#FFFFFF",primary:"#5173B8",text:"#263E6E",share:.16},{background:"#F3F5F7",primary:"#DB7250",text:"#8B432B",share:.1},{background:"#FFFFFF",primary:"#F4A433",text:"#704630",share:.1},{background:"#E1F0E5",primary:"#60A883",text:"#406250",share:.08},{background:"#FFFFFF",primary:"#BF7637",text:"#836444",share:.06},{background:"#BBD9F3",primary:"#4D8FD1",text:"#404973",share:.05},{background:"#FFFFFF",primary:"#5EAEDF",text:"#5E6D79",share:.05}],covers:[{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.55,.15,.4,.8],bleed:!1},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","三圆点","玻璃圆环"],share:.43},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.55,.15,.4,.75],bleed:!1},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["四点","星星","菜单图标"],share:.24},{title:{box:[.47,.3,.47,.25],align:"right",lines:2,accentLine:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.04,.15,.45,.75],bleed:!1},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["彩点","细线","玻璃卡片"],share:.08},{title:{box:[.47,.3,.46,.23],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.01,.15,.47,.75],bleed:!1},eyebrow:"date",byline:"block",frame:"full_bleed",decor:["公式纸卷","纸飞机","滑雪人"],share:.06},{title:{box:[.08,.3,.49,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.56,.05,.43,.88],bleed:!1},eyebrow:"date",byline:"pill",frame:"none",decor:["箭头组","散落立方块","斜向圆角条"],share:.04}],inner:[{skeleton:"TL contents list in light panel; TR 4 cards row with circle icons, last card primary; ML title + photo list rows; BL primary panel big numbers 01 02; BR primary small cards + photo",contents:"light panel with short text list",header:"plain dark title top-left",cards:"primary cards, last card primary filled",numbers:"01",photos:"finance photos in small frames",share:.39},{skeleton:"TL contents list in light panel; TR 4 cards row with circle icons, last card primary; ML title + text columns; BL primary panel big numbers 01 02; BR primary small cards + tech photo",contents:"light panel with short text list",header:"plain dark title top-left",cards:"white and primary cards, last card primary filled",numbers:"01",photos:"photos in rounded frames",share:.33},{skeleton:"TL contents left label column + numbered items in a row; TC shapes + 01; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML photo cards; MR paragraph text; BL primary panel with big numbers 01 02 + circuit photo; BC landscape photos; BR city photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark title top-left",cards:"alternating white and burnt primary cards, circle icons on top",numbers:"01",photos:"landscape and tech photos",share:.09},{skeleton:"TL contents left label column + numbered items in a row; TC 3D object + 01; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML chevron icon list card; MR english word sticky note; BL primary panel with big numbers 01 02 + figure; BC text columns; BR strategy sign photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark title top-left",cards:"alternating white and primary cards, circle icons on top",numbers:"01",photos:"graphics and photos",share:.08}],continuity:["violet from the 3D podium fills inner cards on pale lavender","sky blue and yellow double frame edges carry into inner pages","burnt orange arch and spheres color fill inner cards on cream","copper brown primary and notched-corner frame repeat inside"],traits:["frosted glass panels and translucent blue ring on pale blue","exploding metallic data cubes with triple chevron logo mark","cluster of pastel violet 3D cubes on a lavender split panel","stacked translucent violet glass cubes on lavender gradient","translucent glass capsule spilling molecules on pale icy blue","3D purple shopping bag, coins and shield check on blue blob"]},"tech-glow":{samples:108,genres:[{genre:"tech",share:.4},{genre:"business",share:.26},{genre:"marketing",share:.14},{genre:"recruitment",share:.06},{genre:"finance",share:.06}],palettes:[{background:"#002C43",primary:"#10B1D4",text:"#96C4C7",share:.14},{background:"#0C305C",primary:"#5C8AB0",text:"#B8C3C8",share:.13},{background:"#050C1F",primary:"#57A8E5",text:"#CBE1ED",share:.11},{background:"#0B2A73",primary:"#2B5DCE",text:"#B6D2EE",share:.08},{background:"#0C1349",primary:"#763DC1",text:"#7F81C4",accent:"#180857",share:.06},{background:"#010101",primary:"#2DB463",text:"#A9CDB5",share:.06},{background:"#100F0C",primary:"#D1863A",text:"#DCC197",share:.04},{background:"#010101",primary:"#2AADE9",text:"#BFD0D3",share:.04}],covers:[{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"tech_glow",box:[.5,.1,.5,.9],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["电路线","光点","光带"],share:.3},{title:{box:[.2,.33,.6,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"tech_glow",box:[0,0,1,.8],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["深蓝渐变","黑底","金色曲线"],share:.19},{title:{box:[.08,.32,.45,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"tech_glow",box:[.3,0,.7,1],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["粒子光流","大圆","下划短线"],share:.1},{title:{box:[.5,.3,.45,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"tech_glow",box:[0,.08,.55,.85],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["金色细线束","弧形切面","透视网格"],share:.09},{title:{box:[.07,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"tech_glow",box:[.3,.05,.7,.95],bleed:!0},eyebrow:"date",byline:"plain",frame:"card_on_bg",decor:["光轨","发光城市","光纤流线"],share:.06}],inner:[{skeleton:"TL contents left label + numbered items in a row; TR 4 tall cards with circle icons, last primary; ML photo + text cards; BL big numbers 01 02 in primary card + photo; MR long text; BR primary stacked cards + engine photo",contents:"left CONTENTS/目录 label, items in a row on primary",header:"plain light title top-left on primary",cards:"primary filled cards on primary",numbers:"01",photos:"photos in rounded frames",share:.32},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo on primary ground; ML title + text rows; BR primary cards + landscape photos",contents:"left CONTENTS/目录 label, items 01 02 in a row",header:"plain light title top-left on dark",cards:"dark cards with primary circle icons, last card primary filled",numbers:"01",photos:"landscape photos in rounded frames",share:.28},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; ML photo cards; BL primary panel big numbers 01 beside forest lake photo; BR lighter primary cards; MR line-art analytics illustration",contents:"left CONTENTS/目录 label, items 01 02 in a row",header:"plain light title top-left on primary",cards:"primary cards with brighter primary highlight",numbers:"01",photos:"nature photos and line art",share:.14},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo but TL is a primary list card instead of contents label; primary ground with neon primary",header:"white title top-left on dark",cards:"primary cards with circle icons on primary",numbers:"01",photos:"few photos, mostly primary panels",share:.09}],continuity:["black ground and violet primary taken from the particle wave","dark grayscale ground with electric blue accents throughout","dark navy ground and soft blue primary from the glowing vortex","indigo-violet tech palette and bottom gradient band carry over"],traits:["liquid gold wave sculpture on a black pedestal against black","glowing wireframe globe touched by digital hand on deep blue","glowing teal particle wave across dark teal with soft circles","holographic stock chart screen floating on a perspective grid","armored figure stepping through a glowing neon ring in mist","minimal dark purple cover with swirling glowing filament arcs"]},"toon-3d":{samples:45,genres:[{genre:"business",share:.29},{genre:"classroom",share:.22},{genre:"kids",share:.2},{genre:"medical",share:.13},{genre:"recruitment",share:.11}],palettes:[{background:"#FDF7F2",primary:"#E66427",text:"#8D4D24",accent:"#FED35B",share:.13},{background:"#FFFFFF",primary:"#376EDB",text:"#113261",accent:"#FAD093",share:.09},{background:"#FFFFFF",primary:"#3DA7EA",text:"#1A4B80",share:.09},{background:"#FEF7EC",primary:"#F9AD31",text:"#533D28",share:.07},{background:"#1891D3",primary:"#63AED4",text:"#F0F2ED",share:.07},{background:"#FFFFFF",primary:"#829E6F",text:"#314052",share:.07},{background:"#E9D8CA",primary:"#7C3830",text:"#080406",accent:"#F6DB93",share:.04},{background:"#08B6F4",primary:"#A1DCD4",text:"#505964",accent:"#08B6F4",share:.04}],covers:[{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_character",box:[.55,.1,.45,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["纸飞机","行星","星星"],share:.47},{title:{box:[.08,.3,.41,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_character",box:[.55,.1,.42,.9],bleed:!0},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["3D铃铛","叠层卡片","粗色边框"],share:.22},{title:{box:[.5,.3,.45,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"cartoon",box:[0,.15,.45,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["动物群","书本","三圆点"],share:.11},{title:{box:[.45,.3,.5,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_character",box:[.05,.1,.43,.88],bleed:!1},eyebrow:"date",byline:"plain",frame:"card_on_bg",decor:["斜切块","四角星","弧线"],share:.09},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"cartoon",box:[.55,.15,.4,.75],bleed:!1},eyebrow:"date",byline:"pill",frame:"device",decor:["游戏机按键","进度条","棋盘格"],share:.07}],inner:[{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card amber; ML title + photo; BL amber panel big numbers 01 02; BR amber small cards + photo; MR education icon illustration",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"cream cards on amber ground, last card amber filled",numbers:"01",photos:"photos in rounded frames and line icon illustrations",share:.44},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; primary; web-page chrome on inner pages",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"light cards with circle icons, last card primary",numbers:"01",photos:"office photos in rounded frames",share:.4},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; TC section number 01; TR 4 cards row with circle icons, last card primary; ML title + icon list rows; BL primary panel big numbers 01 02; BR primary small cards + prohibition sign; MR dense text; BC bus photo + text",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"light cards, last card primary filled",numbers:"01",photos:"traffic photos",share:.04},{skeleton:"TL contents row; ML section title over a column of round icons or icon bars; BL two or three lines of large title over a landscape photo; R a full column of photos, no card row; ML title + round photo card; BL title text + lake photo; MR/BR landscape photos right column",contents:"left CONTENTS/目录 label, items 01 02 in a row",header:"plain dark title top-left",cards:"white tint cards with outline icons",numbers:"01",photos:"landscape and lake photos in rounded frames",share:.04}],continuity:["bright blue primary carried as frame bars around inner pages","bright azure blue and circular shapes repeat on inner pages","cobalt blue with cream moon shape carries into cobalt cards","red title and bottom swoosh become red cards; drones repeat"],traits:["3D cartoon doctor with clipboard on pale green diagonal light","cute cartoon astronaut kid riding a planet in royal blue space","cartoon zoo animals gathered around an open book on warm yellow","cartoon wild animals gathered around an open book on pale cream","cover drawn as a handheld game console with cute monster cartoons","torn paper diagonal revealing a 3D schoolboy running in classroom"]},"type-poster":{samples:17,genres:[{genre:"business",share:.41},{genre:"classroom",share:.24},{genre:"tech",share:.12},{genre:"marketing",share:.12},{genre:"culture",share:.06}],palettes:[{background:"#FFFFFF",primary:"#393C3E",text:"#393C3E",accent:"#39967B",share:.18},{background:"#FFFFFF",primary:"#4B7BB1",text:"#3B3D49",share:.12},{background:"#2D2F33",primary:"#C8CBCF",text:"#C8CBCF",share:.12},{background:"#5A5C27",primary:"#FBA84F",text:"#F6F0E8",share:.06},{background:"#FFFFFF",primary:"#182F85",text:"#182F85",share:.06},{background:"#003F3E",primary:"#2E868E",text:"#FBFDFE",share:.06},{background:"#000000",primary:"#032A56",text:"#D5D7D7",share:.06},{background:"#6BBE6E",primary:"#59B55D",text:"#F4F2E2",share:.06}],covers:[{title:{box:[.2,.33,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:null,eyebrow:"date",byline:"pill",frame:"ornament_border",decor:["大引号","圆角线框","黑板纹理"],share:.18},{title:{box:[.2,.35,.6,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"board",decor:["黑板木框","粉笔公式","粉笔擦"],share:.18},{title:{box:[.08,.3,.43,.22],align:"left",lines:2,weight:"regular",family:"sans",effect:"none"},hero:null,eyebrow:"date",byline:"plain",frame:"none",decor:[],share:.12},{title:{box:[.2,.35,.6,.15],align:"center",lines:1,weight:"heavy",family:"sans",effect:"shadow"},hero:{kind:"geometric",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["大圆环","四分圆块","同色深浅块"],share:.12}],inner:[{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; gray monochrome primary; ML circle icon bullet rows",contents:"left CONTENTS/目录 label, items in a row with gray numbers",header:"plain dark title top-left",cards:"light cards with circle icons, last card gray",numbers:"01",photos:"infographic and chart images",share:.65},{skeleton:"TL contents list in light panel; TR 4 cards row with circle icons, last card slate; ML title + photo cards; BL slate panel big numbers 01 02; BR slate small cards + graphic; BC photo row",contents:"light panel with short text list",header:"plain dark title top-left",cards:"white cards, last card slate gray-primary filled",numbers:"01",photos:"business people photos in frames",share:.12},{skeleton:"TL contents left label + numbered items in a row; TC cartoon kid peeking over board; ML primary card with outline icon list; BL title + car photo; MR karst landscape photo; BR traffic cone photo",contents:"left CONTENTS/目录 label, items in a row",header:"plain light title top-left on primary",cards:"primary chalkboard cards with primary frames",numbers:"01",photos:"photos in rounded frames",share:.06},{skeleton:"TL contents left label column + numbered items in a row; ML title + photo cards; MR chart photo; BL title + office photo; BC primary bars with icons; BR business photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark title top-left",cards:"pale tinted cards with primary bars",numbers:"01",photos:"business photos in rectangular frames",share:.06}],continuity:["rice-paper ground with fret corner brackets on inner pages","deep teal primary from the cover frame becomes card and panel fills","olive chalkboard with orange frame repeated on pages","charcoal chalkboard and peach-rust accents continue"],traits:["realistic wooden-framed chalkboard with faint chalk formulas","pure black cover with only white light-weight type, no imagery","cyan gradient title over blue hexagon grid and HUD rings","bare black cover with only a blue-to-magenta gradient display-font title","nested rounded frames over a teal-tinted building photo, white pill byline","flat teal chalkboard with brown wood frame, chalk and leafy plants on peach"]},watercolor:{samples:51,genres:[{genre:"business",share:.29},{genre:"classroom",share:.18},{genre:"marketing",share:.1},{genre:"academic",share:.1},{genre:"tech",share:.08}],palettes:[{background:"#FFFFFF",primary:"#625846",text:"#625846",share:.29},{background:"#F2F7F6",primary:"#5AA065",text:"#4A6E4B",share:.25},{background:"#FFFBEF",primary:"#DE565B",text:"#725156",share:.1},{background:"#FFFFFF",primary:"#E29D49",text:"#744D2D",share:.08},{background:"#F6F8FA",primary:"#5093B9",text:"#385B6D",share:.08},{background:"#FFFFFF",primary:"#996260",text:"#6B4D4A",share:.06},{background:"#A8A486",primary:"#8CB177",text:"#FFFBF7",share:.02},{background:"#F0FAF5",primary:"#90C73D",text:"#45623E",share:.02}],covers:[{title:{box:[.08,.3,.42,.22],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"watercolor",box:[.55,.12,.4,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","光斑","底部色带"],share:.22},{title:{box:[.2,.35,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"watercolor",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"ornament_border",decor:["叶片","植物枝叶","金色细框"],share:.18},{title:{box:[.2,.35,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"watercolor",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["植物叶片","花朵","粉色色块"],share:.16},{title:{box:[.5,.29,.45,.22],align:"right",lines:2,weight:"bold",family:"serif",effect:"none"},hero:{kind:"watercolor",box:[.03,.14,.41,.8],bleed:!1},eyebrow:"date",byline:"plain",frame:"ornament_border",decor:["荷花","细线框","拱形窗"],share:.08},{title:{box:[.08,.3,.4,.22],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"watercolor",box:[.55,.15,.45,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["菜单图标","点阵","汉堡图标"],share:.06}],inner:[{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card taupe; ML title + photo cards; BL taupe panel big numbers 01 02; BR taupe small cards + photo; MR line illustration",contents:"left italic CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"cream cards, last card taupe filled",numbers:"01",photos:"photos and line illustrations",share:.33},{skeleton:"TL contents as white card with stacked item lines (no CONTENTS label column); TR 4 cards row with circle icons, last card primary filled; ML list rows with photo thumbnails; BL primary panel big numbers 01; BR primary small cards plus 3D bar chart graphic; MR gauge graphic",contents:"white card with items stacked vertically",header:"plain dark title top-left",cards:"white cards with primary circle icons, last card primary filled",numbers:"01",photos:"finance photos and 3D chart icons",share:.16},{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card ochre; ML title + photo + text list; BL ochre panel big numbers 01 02; BR ochre small cards + illustration",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"cream cards, last card ochre filled",numbers:"01",photos:"photos and flat illustrations mixed",share:.16},{skeleton:"TL contents left label column + numbered items in a row; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML photo + text columns; MR paragraph text; BL primary panel with big numbers 01 02 + chart; BC photo text columns; BR primary side column + portrait photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark title top-left",cards:"alternating white and sage primary cards, circle icons on top",numbers:"01",photos:"people photos in rectangular frames",share:.14}],continuity:["olive green primary and botanical sprigs at inner page edges","sage green and brush font continue; hydrangea corners recur","mint ground and sakura branches continue at inner page tops","eucalyptus watercolor leaves frame inner pages, serif type"],traits:["anime-style girl riding a dragonfly over lotus pond at night","watercolor flowering branches framing a white centered title","pink-gray-sage leaf blobs framing a sage-green centered title","soft watercolor fern leaves at both sides, centered green title","golden ginkgo branch with red ribbon wind chime and cloud lines","crayon-textured autumn trees and drifting leaves on peach"]}},ne={w:33.867,h:19.05},ie=e=>`${Math.round(e*100)}%`;function nt(e){const[t,r,a,n]=e;return`x ${(t*ne.w).toFixed(1)} y ${(r*ne.h).toFixed(1)} w ${(a*ne.w).toFixed(1)} h ${(n*ne.h).toFixed(1)}`}function da(e,t){const r=e.title,a=[`标题${r.align==="left"?"左对齐":r.align==="right"?"右对齐":"居中"}(${nt(r.box)}),${r.lines} 行${r.accentLine?`、第 ${r.accentLine} 行换主色`:""},${r.weight}/${r.family}${r.effect&&r.effect!=="none"?`,${r.effect}`:""}`,e.hero?`主视觉 ${e.hero.kind}(${nt(e.hero.box)}${e.hero.bleed?",出血":""})`:"没有主视觉",`眉标 ${e.eyebrow}`,`落款 ${e.byline}`,`版面 ${e.frame}`,...e.decor.length?[`装饰 ${e.decor.join("、")}`]:[]];return`- 封面 ${String.fromCharCode(65+t)}(${ie(e.share)}):${a.join(";")}`}function ha(e,t=r=>r){if(!e||e.samples===0)return"";const r=e.inner.map(a=>`- ${a.skeleton}(${ie(a.share)})${[a.contents&&`目录:${a.contents}`,a.header&&`标题:${a.header}`,a.cards&&`卡片:${a.cards}`,a.numbers&&`编号:${a.numbers}`,a.photos&&`图片:${a.photos}`].filter(Boolean).map(n=>`
|
|
1
|
+
import{Bt as Q,Ft as Ee,Ht as De,L as wt,Nt as Me,O as kt,S as xt,St as Re,Ut as Ft,Vt as W,_t as Tt,a as vt,bt as Bt,dt as Ne,gt as Ct,kt as de,lt as St,mt as Lt,pt as Et,r as P,t as Dt,v as U,zt as Mt}from"./svg-raster-BWlVOKxM.mjs";import{F as $e,L as Rt,R as Nt,_ as V,b as j,u as K,y as R,z as J}from"./open-aKqKXJ6B.mjs";import{parseQuireHexColor as $t,quireSrgbToOklch as At}from"@quirekit/ui";import{addContentSlide as z,addSlideShape as Ae,addSlideTable as _t,addSlideTextBox as Ot,addTitleSlide as X,createPresentation as Pt,emu as _e,findSlidePlaceholder as jt,getGroupChildren as zt,getPresentationTheme as he,getShapeBounds as Wt,getShapeChartCategories as Kt,getShapeChartKind as It,getShapeChartSeriesNames as Ht,getShapeChartSeriesValues as qt,getShapeDescription as Gt,getShapeFill as Qt,getShapeFillColor as Ut,getShapeFillColorResolved as Vt,getShapeFillEffective as pe,getShapeId as C,getShapeImagePartName as Jt,getShapeName as _,getShapePlaceholderType as Oe,getShapePreset as Pe,getShapeRunFormat as Xt,getShapeRunFormatEffective as Zt,getShapeSize as Yt,getShapeText as I,getSlideAnimations as je,getSlideLayout as me,getSlideLayoutName as er,getSlideLayoutPartName as ze,getSlideMasterPartName as We,getSlideNotes as Ke,getSlidePartName as D,getSlideShapes as M,getSlides as L,getTableCellText as Ie,getTableCells as He,isShapeHidden as tr,isShapePlaceholder as rr,isSlideHidden as ar,loadPresentation as ue,readPackagePart as H,removeShape as nr,savePresentation as ir,setMediaPartBytes as or,setShapeFill as qe,setShapeImageFill as sr,setShapeNoStroke as Ge,setShapeText as lr,setShapeTextFormat as cr}from"@quirekit/office-kit-pptx";import{v4 as dr}from"uuid";import{createQuireAiProviderSettings as hr,mountQuireAiDocumentPanel as pr,quireAiImageGenerator as mr,resolveQuireAiModelConnection as ur}from"@quirekit/ai-assistant";import{createQuireAiSlidesDocumentSdk as fr,createQuireAiSlidesIdentity as br,renderQuireAiSlidesView as gr}from"@quirekit/ai-runtime/slides";import{mergeDecks as yr}from"@quirekit/office-kit-pptx-editor/merge";import"@quirekit/ai-chat/styles.css";import"@quirekit/ai-assistant/styles.css";import{createQuireAiMemorySkillStore as wr,createQuireAiSkillLibrary as kr}from"@quirekit/ai-runtime";const Z=e=>At($t(e));function xr(e){const{l:t,c:r}=Z(e);return r>=.1&&t>=.3&&t<=.85?"saturated":t>=.6?"light":"dark"}function Fr(e){const{c:t}=Z(e);return t<.07?"low":t<=.15?"mid":"high"}function Tr(e,t){const{c:r}=Z(t);switch(e){case"any":return!0;case"low":return r<=.12;case"mid":return r>=.04&&r<=.22;case"high":return r>=.1}}function vr(e,t){const r=[];for(const a of["cover","content"]){const n=e.tokens[a],i=xr(t[a]);n==="any"||n===i||n==="saturated"&&i==="dark"&&Z(t[a]).c>=.1||r.push({kind:"page",page:a,expected:n,actual:i})}return Tr(e.tokens.primary,t.primary)||r.push({kind:"primary",expected:e.tokens.primary,actual:Fr(t.primary)}),r}const Br={photo:"商业摄影,真实场景,自然光,干净背景,统一的色彩分级","3d-object":"3D 渲染物件,磨砂或玻璃材质,柔和光影,干净的纯色背景","3d-character":"3D 卡通角色,圆润比例,柔和材质与高光,表情友好,干净的纯色背景","flat-illustration":"扁平矢量插画,平涂色块,少量颜色,简洁的人物与场景","line-art":"单色线描插画,细线条,几乎不填色,大量留白","ink-wash":"中国水墨画,淡墨晕染,大面积留白,宣纸纹理",guochao:"国潮平面插画,平涂色块,传统纹样,撞色",watercolor:"水彩插画,颜色晕染,纸张质感,低饱和,留白",fluid:"抽象流体丝带,柔和渐变,丝绸质感","tech-glow":"深色背景上的发光线条与粒子,全息界面元素,景深",geometric:"扁平几何构成,纯色块与简单图形",festive:"节庆元素,灯笼、烟花或礼盒,喜庆而不杂乱",civic:"庄重的红色与金色,红绸、柔和光晕、建筑剪影,对称构图",gradient:"柔和的抽象渐变与光斑,没有具体物体",type:"简洁的抽象背景,为大字留出空间",chart:"简洁的数据可视化示意,抽象图形"},Cr="画面中不要出现任何文字、字母、数字、水印、商标或标志,不要出现国旗、国徽、党徽和地图";function Sr(e,t,r,a){const n=Q(t?.style),i=t?.custom?.picture||n?.hero.picture||(n?n.hero.kinds.map(d=>Br[d]).join(";"):""),s=t?`色调与页面协调:主色 ${t.palette.primary},强调色 ${t.palette.accent},页面底色 ${t.palette.background}`:"",c=r>a*1.2?"横版构图":a>r*1.2?"竖版构图":"方形构图";return[e.trim().replace(/[。.]$/u,""),i&&`风格:${i}`,s,c,Cr].filter(Boolean).join("。")+"。"}const Y=36e3;function Qe(e,t){const r=Math.max(e.x,t.x),a=Math.max(e.y,t.y),n=Math.min(e.x+e.width,t.x+t.width),i=Math.min(e.y+e.height,t.y+t.height);return n>r&&i>a?{x:r,y:a,width:n-r,height:i-a}:null}const Ue=e=>e.width*e.height;function fe(e,t){return Math.max(0,t.x-e.x,t.y-e.y,e.x+e.width-t.x-t.width,e.y+e.height-t.y-t.height)}const be=e=>e.role==="text"?e.text??e.frame:e.frame;function ge(e,t){const r=Qe(e.frame,t.frame);return t.order<e.order&&r!==null&&Ue(r)>=Ue(e.frame)*.5}function Lr(e,t){const r=[],a={x:0,y:0,...t},n=e.filter(d=>d.role==="text"&&d.text!==null),i=e.filter(d=>d.role==="content");for(const d of n){const l=fe(d.text,d.frame);l>36e3&&r.push({kind:"overflow",shapes:[d.id],amount:l});const o=e.filter(u=>u.role==="container"&&ge(d,u)).sort((u,f)=>f.order-u.order)[0],m=o?fe(d.text,o.frame):0;o&&m>36e3&&r.push({kind:"outside-container",shapes:[d.id,o.id],amount:m})}for(const d of[...n,...i]){const l=fe(be(d),a);l>36e3&&r.push({kind:"off-slide",shapes:[d.id],amount:l})}const s=e.filter(d=>d.role==="container");n.forEach((d,l)=>{const o=[...n.slice(l+1),...[...i,...s].filter(m=>!ge(d,m))];for(const m of o){const u=Qe(be(d),be(m)),f=u?Math.min(u.width,u.height):0;f>36e3&&r.push({kind:"overlap",shapes:[d.id,m.id],amount:f})}});const c=e.filter(d=>d.role==="line");for(const d of n)for(const l of c){const o=s.some(m=>m.order>l.order&&ge(d,m))?0:Er(d.text,l.frame);o>36e3&&r.push({kind:"crosses-line",shapes:[d.id,l.id],amount:o})}return r}function Er(e,t){const r={x:e.x+Y,y:e.y+Y,width:e.width-2*Y,height:e.height-2*Y};if(r.width<=0||r.height<=0)return 0;const a=t.width>=t.height,n=a?t.y+t.height/2:t.x+t.width/2;if(!(a?n>=r.y&&n<=r.y+r.height:n>=r.x&&n<=r.x+r.width))return 0;const i=a?Math.max(t.x,r.x):Math.max(t.y,r.y),s=a?Math.min(t.x+t.width,r.x+r.width):Math.min(t.y+t.height,r.y+r.height);return Math.max(0,s-i)}const Dr=28800;function Mr(e){const t=new Map,r=a=>{t.set(C(a),a);let n=[];try{n=zt(a)}catch{}n.forEach(r)};return M(e).forEach(r),t}function Rr(e,t){if(!t)return!1;try{const r=pe(e,t).kind;return r!=="none"&&r!=="inherit"&&r!=="background"}catch{return!1}}function Nr(e,t,r){const a=Mr(t);return R(e,t,{lines:!0}).filter(n=>n.kind!=="group").map((n,i)=>{const s={x:n.x,y:n.y,width:n.width,height:n.height},c=Math.min(n.width,n.height)<Dr&&(n.kind==="connector"||n.empty),d=n.rotation%360!==0?"decoration":c?"line":n.kind==="text"&&!n.empty?"text":n.kind==="picture"||n.kind==="chart"||n.kind==="table"||n.kind==="media"?"content":n.kind==="text"&&Rr(e,a.get(n.id))?"container":"decoration";return{id:n.id,role:d,frame:s,text:d==="text"?r.get(n.id)??null:null,order:i}})}function $r(e,t,r){const a=r.measure(e,t);return{problems:Lr(Nr(e,t,a),j(e)),text:a}}const Ar=()=>new Promise(e=>setTimeout(e,0));function ee(e,t=Ar){const r=new Map;let a;const n=(c,d)=>{const l=me(d),o=[D(d),l?ze(l):null,l?We(l):null];return{name:o[0],parts:o.map(m=>m?H(c,m):null),theme:JSON.stringify(he(c))}},i=(c,d)=>{const l=n(c,d),o=r.get(l.name);return o&&o.theme===l.theme&&o.parts.every((m,u)=>m===l.parts[u])?o:void 0},s={peek(c,d){return i(c,d)?.problems},text(c,d){return i(c,d)?.text},check(c,d){const l=s.peek(c,d);if(l)return l;const o=n(c,d),{problems:m,text:u}=$r(c,d,e);return r.set(o.name,{parts:o.parts,theme:o.theme,problems:m,text:u}),m},settle(c){const d=async()=>{for(const m of L(c))s.peek(c,m)||(await t(),s.check(c,m))},l=(a??Promise.resolve()).then(d),o=l.finally(()=>{a===o&&(a=void 0)});return a=o,l}};return s}const _r={addSlide:"新建幻灯片",duplicateSlide:"复制幻灯片",setSlideHidden:"隐藏幻灯片",setSlideBackground:"设置背景",setSlideNotes:"修改备注",setSlideLayout:"更换版式",setSlideTransition:"设置切换",addTextBox:"插入文本框",addShape:"插入形状",addTable:"插入表格",addChart:"插入图表",addDiagram:"插入智能图形",setTableCellText:"修改单元格",setTableStyle:"设置表格样式",setChartData:"修改图表数据",setShapeFill:"设置填充",setShapeOutline:"设置轮廓",setShapeBounds:"调整位置和大小",duplicateShapes:"复制形状",alignShapes:"对齐",arrangeShapes:"调整层次",rotateShapes:"旋转",flipShapes:"翻转",ungroupShapes:"取消组合",setTextFormat:"设置文字格式",setTextAlignment:"设置对齐",setTextAnchor:"设置文字垂直对齐",setParagraphBullets:"设置项目符号",changeListLevel:"调整列表级别",setLineSpacing:"设置行距",addShapeAnimation:"添加动画",clearShapeAnimations:"删除动画",setDeckColors:"设置主题配色",setDeckFonts:"设置主题字体",applyMotion:"设置动画",setBrief:"记录简报",setDeckPlan:"写入故事线",setDeckDesign:"确定设计语言",setDeckDirections:"提出设计方向",drawSlide:"绘制幻灯片",addTemplatePage:"添加模板页面",moveShapes:"移动"};function Or(e,t){try{const r=pe(e,t).kind;return r!=="none"&&r!=="inherit"&&r!=="background"}catch{return!1}}function Pr(e,t){const r=new Map(J(t).map(i=>[C(i),i])),a=R(e,t).filter(i=>i.parent===null),n=a.map((i,s)=>({box:i,order:s})).filter(({box:i})=>{const s=r.get(i.id);return s!==void 0&&i.kind!=="picture"&&i.kind!=="chart"&&i.kind!=="table"&&i.kind!=="media"&&Or(e,s)});return i=>{const s=a.findIndex(m=>m.id===i),c=a[s];if(c===void 0)return{container:null,color:void 0};const d=c.x+c.width/2,l=c.y+c.height/2,o=n.filter(m=>m.order<s&&d>=m.box.x&&d<=m.box.x+m.box.width&&l>=m.box.y&&l<=m.box.y+m.box.height).at(-1);return o===void 0?{container:null,color:void 0}:{container:o.box.id,color:Vt(e,r.get(o.box.id))}}}const jr=/^qk:([a-z]+):e(\d+)-([A-Za-z]+):/u,zr=/^qk:draw:e\d+-([A-Za-z]+):/u,Wr=new Set(["title","eyebrow","subtitle","decoration","page"]);function Ve(e,t){const r=(a,n)=>Math.min(2,Math.max(0,Math.floor(a/n*3)));return`${["top","middle","bottom"][r(e.y+e.height/2,t.height)]}-${["left","centre","right"][r(e.width>t.width/3?e.x:e.x+e.width/2,t.width)]}`}function Kr(e,t){const r=new Map;for(const l of R(e,t)){const o=zr.exec(l.name);o&&r.set(l.id,o[1])}if(r.size===0)return null;const a=j(e),n=R(e,t).filter(l=>r.has(l.id)),i=n.find(l=>r.get(l.id)==="title"),s=n.filter(l=>!Wr.has(r.get(l.id))),c=[...s].sort((l,o)=>o.width*o.height-l.width*l.height)[0],d=[i?`title ${Ve(i,a)}`:"no title",...c?[`${r.get(c.id)==="body"?c.kind:r.get(c.id)} ${Ve(c,a)}`]:[],`${Math.min(s.length,4)}${s.length>4?"+":""} block(s)`];return`${s.length>0?"content":"statement"}:${d.join("+")}`}function ye(e,t){const r=Kr(e,t);if(r!==null)return r;const a=new Map;let n="";for(const i of M(t)){const s=jr.exec(_(i)??"");s&&(n=s[1],a.set(Number(s[2]),s[3]))}return a.size===0?null:`${n}:${[...a.entries()].sort((i,s)=>i[0]-s[0]).map(([,i])=>i).join("+")}`}const v=Object.freeze({contentWords:80,statementWords:40,bodySize:16,smallTextWords:15,bodyWords:20,hierarchy:1.25,alignedWithin:18e3,alignmentReach:144e3,coverage:.5,perKind:3,typeLevels:5,headerDrift:36e4});function Ir(e){const t=e?.delivery==="read";return{contentWords:t?v.contentWords*2:v.contentWords,statementWords:t?v.statementWords*1.5:v.statementWords,bodySize:e?.venue==="screen"?14:v.bodySize}}const Je=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/gu;function te(e){return(e.match(Je)?.length??0)+(e.replace(Je," ").match(/[\p{L}\p{N}]+/gu)?.length??0)}function Hr(e){let t;try{t=Xt(e,0,0)?.color??void 0}catch{t=void 0}return[Ut(e),t].filter(r=>typeof r=="string"&&/^#[0-9A-Fa-f]{6}$/u.test(r)).map(r=>r.toUpperCase())}function qr(e,t){const r=de(e);if(!r)return[];const a=new Set(Object.values(r.palette).map(n=>n.toUpperCase()));return t.flatMap(n=>{const i=Hr(n).find(s=>!a.has(s));return i?[{kind:"off-palette",shape:C(n),color:i}]:[]}).slice(0,v.perKind)}function Gr(e){const t=[...new Set(e.map(r=>Math.round(r)))].sort((r,a)=>a-r);return t.length>v.typeLevels?[{kind:"type-levels",sizes:t,limit:v.typeLevels}]:[]}function Qr(e,t,r){const a=d=>{const l=r(d);if(!l||ye(e,d)?.split(":")[0]!=="content")return null;const o=R(e,d).find(m=>m.id===C(l));return o?{id:o.id,x:o.x,y:o.y}:null},n=a(t),i=L(e).map(a).filter(d=>d!==null);if(!n||i.length<3)return[];const s=d=>d.sort((l,o)=>l-o)[Math.floor(d.length/2)],c=Math.hypot(n.x-s(i.map(d=>d.x)),n.y-s(i.map(d=>d.y)));return c>v.headerDrift?[{kind:"header-drift",shape:n.id,offset:Math.round(c)}]:[]}const Ur=new Set(["dt","ftr","sldNum"]),Vr=/-(bigNumber|stats|quote|takeaway|number):/u,q=e=>{try{return I(e)}catch{return""}};function Jr(e){const t=_(e)??"";return Ur.has(Oe(e)??"")||/:(page-number|decoration|title-mark|takeaway-band):/u.test(t)}function we(e){const t=Oe(e);return t==="title"||t==="ctrTitle"||/^qk:[a-z]+:e\d+-title:/u.test(_(e)??"")}function re(e,t){return q(t).split(`
|
|
2
|
+
`).flatMap((r,a)=>{if(!r.trim())return[];try{return[Zt(e,t,a,0).size??18]}catch{return[]}})}function ke(e,t,r){const a=[],n=Ir(Ne(e)),i=ye(e,t),s=i?.split(":")[0]??(jt(t,"ctrTitle")?"cover":"content"),c=j(e),d=Math.min(c.width,c.height)/6858e3,l=J(t).filter(b=>!tr(b)&&!Jr(b)),o=l.filter(b=>$e(b)==="text"&&q(b).trim()),m=Pr(e,t),u=l.reduce((b,g)=>b+($e(g)==="table"?He(g).flat().reduce((y,k)=>y+te(Ie(k)),0):te(q(g))),0),f=s==="content"?n.contentWords:n.statementWords;u>f&&a.push({kind:"dense",amount:u,limit:f});const F=n.bodySize*d,T=o.flatMap(b=>{if(we(b)||te(q(b))<v.smallTextWords)return[];const g=Math.min(...re(e,b));return g<F-.05?[{kind:"small-text",shape:C(b),size:g,minimum:F}]:[]});a.push(...T.sort((b,g)=>b.size-g.size).slice(0,v.perKind));const h=o.find(we),p=o.filter(b=>b!==h&&!Vr.test(_(b)??"")&&te(q(b))>=v.bodyWords);if(s==="content"&&h&&p.length>0){const b=Math.max(...re(e,h)),g=Math.max(...p.flatMap(y=>re(e,y)));b<g*v.hierarchy&&a.push({kind:"weak-hierarchy",shape:C(h),size:b,body:g})}const w=o.flatMap(b=>{const g=m(C(b)),y=kt(e,t,b,g.container===null?void 0:g.color);return y?[{kind:"low-contrast",shape:C(b),ratio:y.ratio,needed:y.needed}]:[]});if(a.push(...w.slice(0,v.perKind)),a.push(...Xr(e,t,new Set(l.map(C)),m).slice(0,v.perKind)),a.push(...qr(e,l)),a.push(...Gr(o.flatMap(b=>re(e,b)))),s==="content"&&a.push(...Qr(e,t,b=>J(b).find(we))),s==="content"&&r!==void 0){const b=Zr(e,t,r,new Set(o.map(C)));b>v.coverage&&a.push({kind:"crowded",coverage:b,limit:v.coverage})}return{...i?{composition:i}:{},facts:a}}function Xr(e,t,r,a){const n=R(e,t).filter(s=>s.parent===null&&r.has(s.id)&&s.rotation%360===0&&!s.empty&&(s.kind==="text"||s.kind==="picture"||s.kind==="chart"||s.kind==="table")),i=[];return n.forEach((s,c)=>n.slice(c+1).forEach(d=>{if(a(s.id).container!==a(d.id).container)return;const l=Math.abs(s.x-d.x);l>v.alignedWithin&&l<v.alignmentReach&&i.push({kind:"near-alignment",shapes:[s.id,d.id],offset:l})})),i.sort((s,c)=>s.offset-c.offset)}function Zr(e,t,r,a){const n=j(e),i=[...a].flatMap(l=>r.get(l)??[]);i.push(...R(e,t).filter(l=>l.parent===null&&l.kind==="table"));const s=64,c=36;let d=0;for(let l=0;l<c;l+=1)for(let o=0;o<s;o+=1){const m=(o+.5)*n.width/s,u=(l+.5)*n.height/c;i.some(f=>m>=f.x&&m<=f.x+f.width&&u>=f.y&&u<=f.y+f.height)&&(d+=1)}return d/(s*c)}function Xe(e){const t=new Map;return{measure(r,a){const n=D(a),i=me(a),s=[n,i?ze(i):null,i?We(i):null].map(m=>m?H(r,m):null),c=JSON.stringify(he(r)),d=e?.text(r,a),l=t.get(n);if(l&&l.theme===c&&l.text===d&&l.parts.every((m,u)=>m===s[u]))return l.design;const o=ke(r,a,d);return t.set(n,{parts:s,theme:c,text:d,design:o}),o}}}const Yr=/^qk:draw:/u;function xe(e){const t=Gt(e)?.trim()??"";return Yr.test(_(e)??"")&&t!==""&&Qt(e).kind!=="image"?t:void 0}const ea=1600,ta=3,Ze=3,ra=2e3,Fe=new WeakMap;async function Ye(e,t,r,a){const n=de(e.presentation());let i=Fe.get(e);i||Fe.set(e,i=new Map);const s=i,c=L(e.presentation()).filter(f=>a===void 0||D(f)===a).flatMap(f=>M(f).flatMap(F=>{const T=xe(F),h=Yt(F),p=`${D(f)}#${C(F)}`;return T&&h&&!s.has(p)?[{key:p,part:D(f),id:C(F),prompt:T,width:h.w,height:h.h}]:[]})),d=new Map;for(const f of c)s.set(f.key,new Promise(F=>d.set(f.key,F)));let l=0,o=0;const m=async f=>{const F=ea/Math.max(f.width,f.height,1),T=Math.round(f.width*F),h=Math.round(f.height*F),p=Sr(f.prompt,n,T,h);let w;for(let g=1;g<=Ze&&!w&&!r?.aborted;g+=1)try{w=await t.generate({prompt:p,width:T,height:h,signal:r})}catch{g<Ze&&!r?.aborted&&await new Promise(y=>setTimeout(y,ra*g))}if(!w||r?.aborted)return;const b=w;e.transact("生成配图",g=>{const y=Nt(g,f.part),k=y&&M(y).find(E=>C(E)===f.id);return k?(lr(k,""),sr(k,b),!0):!1},"agent")&&(l+=1)},u=async()=>{for(;o<c.length;){const f=c[o++];try{await m(f)}finally{s.delete(f.key),d.get(f.key)?.()}}};return await Promise.all(Array.from({length:Math.min(ta,c.length)},u)),l}async function aa(e,t,r,a,n=6e4){Ye(e,r,a,t);const i=[...Fe.get(e)?.entries()??[]].filter(([c])=>c.startsWith(`${t}#`)).map(([,c])=>c);if(i.length===0)return;let s;await Promise.race([Promise.all(i),new Promise(c=>{s=setTimeout(c,n)})]),clearTimeout(s)}const na={entr:"entrance",emph:"emphasis",exit:"exit",path:"path"};function Te(e){return je(e).filter(t=>t.sequence==="mainSeq").map(t=>({shapes:[...t.targetShapeIds],start:t.start==="withPrevious"?"with":t.start==="afterPrevious"?"after":"click",kind:na[t.presetClass??""]??"other",effect:t.effect}))}function et(e){let t=0;return e.map(r=>r.start==="click"?t+=1:t)}const tt=8,ia=3;function ae(e){return e.flatMap(t=>t.kind==="shape"?[t.shape]:t.kind==="box"?[t.shape,...ae(t.holds)]:[...t.items.flat(),...t.links])}function rt(e,t){for(const r of e)t(r),r.kind==="box"&&rt(r.holds,t)}const oa=(e,t)=>new Set(e.map(t));function sa(e,t){if(e.length===0)return[];const r=[],a=et(e),n=new Map;e.forEach((l,o)=>{if(l.kind==="entrance")for(const m of l.shapes)n.has(m)||n.set(m,a[o])});const i=l=>n.get(l)??-1,s=a.at(-1)??0;s>tt&&r.push({kind:"many-clicks",clicks:s,limit:tt}),rt(t.content,l=>{if(l.kind==="items")for(const o of l.items){const m=oa(o,i);m.size>1&&o.some(u=>n.has(u))&&r.push({kind:"split-item",shapes:o,clicks:m.size})}if(l.kind==="box"&&l.holds.every(o=>o.kind==="shape")){const o=i(l.shape),m=Math.min(...ae(l.holds).map(i));o!==m&&r.push({kind:"box-apart",shape:l.shape,early:o<m?"box":"content"})}});for(const l of t.furniture)e.some(o=>o.shapes.includes(l))&&r.push({kind:"animated-furniture",shape:l});const c=t.content.map(l=>({shape:ae([l])[0],at:Math.min(...ae([l]).filter(o=>n.has(o)).map(i))})).filter(l=>Number.isFinite(l.at));for(let l=1;l<c.length;l+=1){const o=c.slice(0,l).find(m=>m.at>c[l].at);if(o!==void 0){r.push({kind:"build-order",later:c[l].shape,earlier:o.shape});break}}const d=new Map;return r.filter(l=>{const o=(d.get(l.kind)??0)+1;return d.set(l.kind,o),o<=ia})}const ne=36e4,la=.25,ca=.1,da=.45,ha=new Set(["rect","roundRect","snip1Rect","snip2SameRect","round1Rect","round2SameRect"]);function at(e){return e.flatMap(t=>t.kind==="shape"?[t.shape]:t.kind==="box"?[t.shape,...at(t.holds)]:[...t.items.flat(),...t.links])}function ve(e){return e.flatMap(t=>t.kind==="items"?[t]:t.kind==="box"?ve(t.holds):[])}function ie(e){if(e.length===0)return null;const t=Math.min(...e.map(a=>a.x)),r=Math.min(...e.map(a=>a.y));return{x:t,y:r,width:Math.max(...e.map(a=>a.x+a.width))-t,height:Math.max(...e.map(a=>a.y+a.height))-r}}const pa=(e,t)=>t.x>=e.x-18e3&&t.y>=e.y-18e3&&t.x+t.width<=e.x+e.width+18e3&&t.y+t.height<=e.y+e.height+18e3,ma=(e,t)=>e.x-36e3<=t.x+t.width&&t.x-36e3<=e.x+e.width&&e.y-36e3<=t.y+t.height&&t.y-36e3<=e.y+e.height;function ua(e,t){if(t===void 0)return!1;try{const r=pe(e,t).kind;return r!=="none"&&r!=="inherit"&&r!=="background"}catch{return!1}}function fa(e,t,r,a){const n=j(e),i=new Map(R(e,t,{lines:!0}).filter(h=>h.parent===null).map(h=>[h.id,h])),s=new Map(J(t).map(h=>[C(h),h])),c=h=>{const p=i.get(h);return p===void 0?null:a?.get(h)??{x:p.x,y:p.y,width:p.width,height:p.height}},d=h=>Math.min(h.width,h.height)<.08*ne&&(h.kind==="connector"||h.empty),l=at(r.content),o=[],m=ie(r.header.flatMap(h=>c(h)??[])),u=r.furniture.flatMap(h=>c(h)??[]).filter(h=>h.y>=n.height*.75),f={top:m?m.y+m.height:0,bottom:u.length>0?Math.min(...u.map(h=>h.y)):n.height},F=ie(l.flatMap(h=>c(h)??[]));if(F!==null&&f.bottom>f.top){const h=f.bottom-f.top,p={top:(F.y-f.top)/h,bottom:(f.bottom-F.y-F.height)/h},w={top:"bottom",bottom:"top"},b=["bottom","top"].find(g=>p[g]>la&&p[w[g]]<ca);b!==void 0&&o.push({kind:"empty-band",side:b,share:p[b]})}for(const h of i.values()){const p=s.get(h.id);if(!l.includes(h.id)||!h.empty||d(h)||!ha.has(Pe(p)??"")||!ua(e,p))continue;const w=[...i.values()].filter(y=>y!==h&&!d(y)&&pa(h,y)).flatMap(y=>c(y.id)??[]),b=h.width*h.height/(n.width*n.height);w.length===0&&b>=.02&&b<=.6&&o.push({kind:"empty-box",shape:h.id});const g=ie(w);g!==null&&h.height>=2.5*ne&&g.height/h.height<da&&o.push({kind:"sparse-box",shape:h.id,filled:g.height/h.height})}for(const h of ve(r.content)){if(h.layout==="grid"||h.items.length<2)continue;const p=h.items.map(y=>ie(y.flatMap(k=>i.get(k)&&!d(i.get(k))?[i.get(k)]:[])));if(p.some(y=>y===null))continue;const w=h.layout==="row"?p.map(y=>y.width):p.map(y=>y.height),b=p.slice(1).map((y,k)=>h.layout==="row"?y.x-p[k].x-p[k].width:y.y-p[k].y-p[k].height),g=y=>Math.max(...y)-Math.min(...y);(g(w)>Math.max(.3*ne,Math.max(...w)*.15)||b.length>1&&g(b)>Math.max(.3*ne,Math.max(...b)*.25))&&o.push({kind:"uneven-items",shapes:h.items.flat()})}const T=new Set(ve(r.content).flatMap(h=>h.links));for(const h of l){const p=i.get(h);p===void 0||!d(p)||T.has(h)||Math.max(p.width/n.width,p.height/n.height)<.25||[...i.values()].some(w=>w!==p&&!d(w)&&l.includes(w.id)&&ma(p,w))||o.push({kind:"stray-line",shape:h})}return o}function nt(e){return e.flatMap(t=>t.kind==="items"?t.items:t.kind==="box"?nt(t.holds):[])}function Be(e,t,r,a,n){const i=nt(a.content),s=d=>i.some(l=>d.every(o=>l.includes(o))),c=r.facts.filter(d=>d.kind!=="near-alignment"||!s(d.shapes));return{...r,facts:[...c,...sa(Te(t),a),...fa(e,t,a,n)]}}const Ce={"bold-3d":{samples:50,genres:[{genre:"business",share:.34},{genre:"marketing",share:.18},{genre:"tech",share:.14},{genre:"classroom",share:.14},{genre:"medical",share:.08}],palettes:[{background:"#2A91E9",primary:"#0E82F9",text:"#FFFFFE",share:.1},{background:"#0169E8",primary:"#3EA1F7",text:"#E7F1FB",share:.08},{background:"#F4F7FF",primary:"#3A6FEC",text:"#184CC9",share:.08},{background:"#7243FE",primary:"#6940EC",text:"#FAF4FE",accent:"#C57694",share:.06},{background:"#39240D",primary:"#955F33",text:"#D9CABF",share:.04},{background:"#1C1433",primary:"#8462C4",text:"#A4AAAC",share:.04},{background:"#161719",primary:"#2486AA",text:"#92C9D6",share:.04},{background:"#010101",primary:"#DF3736",text:"#C5BDB3",share:.04}],covers:[{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.5,.18,.45,.8],bleed:!1},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["箭头按钮","底部白色波浪","条纹块"],share:.44},{title:{box:[.5,.3,.45,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.03,.16,.47,.78],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["玻璃立方体","景深虚化","箭头点列"],share:.12},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.55,.15,.41,.75],bleed:!1},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["白色曲面雕塑","水面","三圆点"],share:.12},{title:{box:[.17,.32,.66,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"festive",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["3D礼盒","金币","购物袋"],share:.06},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.55,.22,.4,.6],bleed:!1},eyebrow:"date",byline:"pill",frame:"ornament_border",decor:["金色竖线","金线弧框","放射细线"],share:.06}],inner:[{skeleton:"TL contents left label + numbered items in a row; TR 4 tall cards with circle icons, last primary; ML photo cards; BL big numbers 01 02 in primary card + diagram; BC emoji rating scale; MR long text; BR primary stacked cards + photo",contents:"left CONTENTS/目录 label, items in a row on dark",header:"plain light title top-left on dark",cards:"primary cards with primary filled highlights",numbers:"01",photos:"photos in rounded frames",share:.46},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; primary pages with orchid cards; slash marks near headers",contents:"left CONTENTS/目录 label, items in a row on primary",header:"white title top-left on primary",cards:"primary cards with circle icons, last card orchid",numbers:"01",photos:"few photos, tech images in rounded frames",share:.3},{skeleton:"TL contents left label + numbered items in a row; TC pie chart section; TR 4 tall cards with circle icons, last primary; ML text cards list; BL big numbers 01 02 in primary card + photo; MR text; BR primary stacked cards + chart illustration",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"white cards with last filled lime primary",numbers:"01",photos:"photos and chart illustrations",share:.08},{skeleton:"TL contents row; ML section title over a column of round icons or icon bars; BL two or three lines of large title over a landscape photo; R a full column of photos, no card row; primary; ML list rows with icon bars",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"primary icon bars in a column",numbers:"01",photos:"desert/landscape photos in rounded frames, right column",share:.04}],continuity:["black field with iridescent blobs leads to indigo-violet pages","cobalt field with white wave becomes cobalt cards on white","green primary with yellow accent carried into inner pages","saturated red ground everywhere, yellow as highlight fill"],traits:["gold scales of justice inside a gold-lined frame on mahogany","sculptural 3D fluid ribbon in bronze-white on dark chocolate","glass medical cross shield over blue-tinted microscope photo","3D calendar with magnifier check on nested cobalt-blue cards","glassy 3D browser window with media icons and pipes on violet","red-to-orange gradient with translucent white S-ribbon loop"]},"business-photo":{samples:164,genres:[{genre:"business",share:.36},{genre:"academic",share:.14},{genre:"medical",share:.11},{genre:"tech",share:.1},{genre:"marketing",share:.09}],palettes:[{background:"#FFFFFF",primary:"#466DC5",text:"#1C3264",share:.17},{background:"#FFFFFF",primary:"#4A90E3",text:"#272A37",share:.07},{background:"#FDFDFD",primary:"#975747",text:"#975747",share:.07},{background:"#FFFFFF",primary:"#B68C58",text:"#1E1E23",share:.04},{background:"#8690A6",primary:"#4666A3",text:"#FDFEFE",share:.04},{background:"#FFFFFF",primary:"#39C4D6",text:"#4A3D3C",share:.04},{background:"#274C84",primary:"#0B2556",text:"#FFFFFF",share:.03},{background:"#2561B5",primary:"#3579CF",text:"#E3EBF4",share:.03}],covers:[{title:{box:[.08,.32,.42,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"masked_photo",box:[.55,0,.45,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","斜切块","圆环"],share:.3},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[.6,0,.4,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"split",decor:["点阵","校徽","白色弧边"],share:.13},{title:{box:[.08,.3,.46,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["绿色渐变罩","蓝色半透明蒙层","竖向色条"],share:.1},{title:{box:[.45,.3,.5,.24],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"masked_photo",box:[0,0,.5,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"split",decor:["大圆描边","左侧色块","渐隐"],share:.07},{title:{box:[.07,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"masked_photo",box:[.55,.1,.43,.88],bleed:!0},eyebrow:"date",byline:"plain",frame:"card_on_bg",decor:["点阵","大圆","汉堡线"],share:.06}],inner:[{skeleton:"TL contents left label + numbered items in a row; TR 4 tall cards with circle icons, last primary; ML photo + text; BL big numbers 01 02 in primary card + photo; MR long text; BR primary stacked cards + hospital photo",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light cards with last filled primary",numbers:"01",photos:"photos in rounded frames",share:.49},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; primary; BC row of thin-divider text columns",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"light cards with circle icons, last card primary",numbers:"01",photos:"medical and tech photos in rounded frames",share:.24},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo but TL is a list card instead of contents; cornflower primary with primary arc accent",header:"plain dark title top-left",cards:"light cards with circle icons, last card primary",numbers:"01",photos:"landscape and logistics photos in rounded frames",share:.06},{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + 2 icon list rows; BL primary panel big numbers 01 02; BR primary small cards + photo; BC people photos",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"cream cards, last card primary filled",numbers:"01",photos:"photos in circles and frames",share:.05}],continuity:["orange title and fluid curve color fill inner cards on cream","blue-tinted glass building photo sits behind all inner pages","blue overlay on graduation photo becomes blue cards on white","cocoa brown overlay and bookmark tabs carry into brown cards"],traits:["aerial farmland photo under green gradient wash, white title","white spiral staircase sculpture fading into soft blue light","full-bleed airliner above sea of clouds with centered title","hands holding seedling soil photo under green duotone overlay","photo in a big circle crop plus teal and charcoal semicircles","skyscraper photo revealed through a gold-tinted diagonal slash"]},chalkboard:{samples:22,genres:[{genre:"classroom",share:.64},{genre:"business",share:.09},{genre:"academic",share:.09},{genre:"medical",share:.05},{genre:"tech",share:.05}],palettes:[{background:"#1D4638",primary:"#46A687",text:"#C4D2C5",share:.23},{background:"#302F2F",primary:"#BDBAB9",text:"#BDBAB9",share:.18},{background:"#363538",primary:"#446786",text:"#D2DDE4",share:.14},{background:"#BF9F5F",primary:"#7E673D",text:"#131413",share:.05},{background:"#1E4332",primary:"#E5A445",text:"#E9D6AA",share:.05},{background:"#12145F",primary:"#AA41BA",text:"#95AAD3",accent:"#12145F",share:.05},{background:"#1F2870",primary:"#7C86D1",text:"#CED1E9",share:.05},{background:"#7B8FA6",primary:"#212E33",text:"#212E33",share:.05}],covers:[{title:{box:[.18,.33,.64,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"board",decor:["地球","粉笔涂鸦","纸飞机"],share:.32},{title:{box:[.2,.35,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"plain",frame:"card_on_bg",decor:["黑板纹理","粉笔线","粉笔纸飞机"],share:.23},{title:{box:[.08,.32,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[.55,.15,.4,.85],bleed:!1},eyebrow:"date",byline:"plain",frame:"board",decor:["粉笔显微镜","原子符号","木框"],share:.14},{title:{box:[.08,.31,.45,.24],align:"left",lines:2,weight:"regular",family:"calligraphy",effect:"none"},hero:{kind:"line_art",box:[.48,.07,.5,.88],bleed:!0},eyebrow:"dots",byline:"plain",frame:"full_bleed",decor:["金色线描牡丹","蝴蝶","鹤翼"],share:.09}],inner:[{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; chalkboard dark pages with primary cards; ML circle photo rows",contents:"left CONTENTS/目录 label, items in a row on chalkboard",header:"white title top-left on chalkboard",cards:"dark cards with circle icons, last card primary",numbers:"01",photos:"bookshelf photos in rounded frames",share:.59},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo variant on primary: TL contents as stacked text rows in dark card; TR 4 cards with primary circle icons, last primary; ML title + tea field photo; BL primary big numbers 01; BR primary cards",contents:"items stacked vertically in a dark tint card",header:"plain light title top-left on dark",cards:"primary cards with circle icons, last card primary filled",numbers:"01",photos:"landscape photos in rounded frames",share:.18},{skeleton:"TL contents left label + numbered items in a row; TC chalk telescope section; TR 4 tall cards with circle icons, last primary; ML primary text cards; BL big numbers 01 02 in primary card + science photo; BC periodic table image; MR microscope photo; BR primary stacked cards",contents:"left CONTENTS/目录 label, items in a row on primary board",header:"plain light title top-left on chalkboard",cards:"chalkboard primary cards with primary highlights in wooden frames",numbers:"01",photos:"science photos in rounded frames",share:.09},{skeleton:"TL contents left label column + numbered items in a row; TC chalkboard + 01; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML photo + text rows; MR landscape photo; BL primary panel with big numbers 01 02 + image; BC primary cards row; BR primary side column",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain light title top-left on primary",cards:"alternating light and primary cards, circle icons on top",numbers:"01",photos:"photos in rectangular frames",share:.05}],continuity:["dark teal with faint embossed floral line art and serif type","blackboard ground with white stationery doodles carried over","chalkboard texture and chalk doodles continue on inner pages","charcoal chalkboard with frame borders on every inner page"],traits:["single glowing green heartbeat line across a deep navy card","black chalkboard covered with colorful chalk school doodles","wood-framed chalkboard with neon chalk microscope and atom drawings","chalkboard cover with bunting flags, chalk stars and grad-cap badge","dark slate chalkboard with chalk-drawn globe, astronaut and planets","blackboard ringed by dense white line-art school supplies and formulas"]},"dark-photo":{samples:39,genres:[{genre:"business",share:.56},{genre:"tech",share:.13},{genre:"marketing",share:.05},{genre:"civic",share:.05},{genre:"culture",share:.05}],palettes:[{background:"#1B1E2A",primary:"#CCBC9F",text:"#CCBC9F",share:.1},{background:"#010101",primary:"#4DC272",text:"#ACD7AA",share:.08},{background:"#121E3E",primary:"#4272EB",text:"#E0E7F1",share:.08},{background:"#3C3326",primary:"#CCA245",text:"#F0D595",share:.05},{background:"#1E4E77",primary:"#659FD5",text:"#FFFFFF",share:.05},{background:"#090909",primary:"#D2D0CC",text:"#D2D0CC",share:.05},{background:"#545453",primary:"#D29344",text:"#000101",share:.05},{background:"#010101",primary:"#E08021",text:"#BFB8B1",share:.05}],covers:[{title:{box:[.08,.32,.48,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["左侧竖条","圆形箭头按钮","细线"],share:.28},{title:{box:[.08,.3,.42,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"masked_photo",box:[.56,.04,.42,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","弧形光带","光斑"],share:.26},{title:{box:[.08,.31,.43,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[.65,0,.35,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"split",decor:["点阵","校徽","红色弧边"],share:.1},{title:{box:[.46,.3,.47,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[.01,.11,.42,.86],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["斜切块","闪电折线","聚光暗场"],share:.1},{title:{box:[.2,.32,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"photo",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["蓝色调建筑仰拍","黑白仰拍楼宇","黄色细竖线"],share:.08}],inner:[{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + diagram with icons; BL primary panel big numbers 01 02; BR primary small cards stacked + landscape photo",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain light title top-left on dark",cards:"dark cards with primary accents, last card primary filled",numbers:"01",photos:"cutout athlete photo and photo strips",share:.54},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo with TL contents as stacked list in panel: TL contents list in primary panel; TR 4 cards row with circle icons, last card periwinkle; ML title + icon list rows; BL periwinkle panel big numbers 01 02; BR periwinkle small cards + photo; MR dense text",contents:"stacked list of items in a primary-tint panel, no row",header:"plain light title top-left on primary",cards:"periwinkle tinted cards on primary",numbers:"01",photos:"community photos in frames",share:.18},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; black pages with primary cards; ML photo above heading",contents:"left CONTENTS/目录 label, items in a row on black",header:"white title top-left on black",cards:"primary cards with circle icons, last card primary",numbers:"01",photos:"industrial photos in rounded frames",share:.18},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; TC section number 01 with primary block; TR 4 cards row with circle icons, last card primary; ML title + round icon rows; BL primary panel big numbers 01 02; BR primary small cards; MR dense text; BC photo card row",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"light cards with primary icons, last card primary filled",numbers:"01",photos:"office photos",share:.05}],continuity:["black field with teal arc becomes black pages with teal cards","deep ocean blue photo carries into dark pages with blue cards","dark sepia background with amber-yellow accents throughout","dark slate ground and sky blue pill color continue inside"],traits:["symmetric blue-tinted glass atrium photo with centered title","vaporwave classical statue bust with pink blobs and dot grid","monochrome folded-facade architecture with neon green title","dark sepia-toned city skyline photo with amber pill byline","dark monochrome city skyline photo with amber-orange title","sea turtle in an underwater cave silhouette with slider buttons"]},"flat-illustration":{samples:109,genres:[{genre:"classroom",share:.41},{genre:"business",share:.19},{genre:"kids",share:.13},{genre:"marketing",share:.08},{genre:"medical",share:.07}],palettes:[{background:"#FFFFFF",primary:"#4483D7",text:"#294285",accent:"#D8B66D",share:.2},{background:"#FFFFFF",primary:"#3FA37B",text:"#394C45",share:.15},{background:"#FFF5ED",primary:"#CD5945",text:"#4D3B41",accent:"#EAAE53",share:.11},{background:"#FFFFFF",primary:"#415899",text:"#415899",accent:"#52C0C3",share:.07},{background:"#FFFFFF",primary:"#F3A249",text:"#333237",share:.06},{background:"#EFFAEE",primary:"#45C283",text:"#5E7D5C",accent:"#E5CB79",share:.06},{background:"#7796F0",primary:"#46589E",text:"#FCFAFD",share:.05},{background:"#FFFBEF",primary:"#A98A37",text:"#845628",share:.05}],covers:[{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"flat_people",box:[.55,.14,.42,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","星芒","灯泡"],share:.29},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"flat_people",box:[.53,.17,.45,.75],bleed:!1},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["三圆点","网格底纹","有机色块"],share:.17},{title:{box:[.18,.33,.64,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"cartoon",box:[0,.47,1,.53],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["山丘","云朵","燕子"],share:.13},{title:{box:[.48,.3,.47,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"cartoon",box:[0,.18,.45,.82],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["斜切块","医疗十字","时钟"],share:.08},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"flat_people",box:[.55,.15,.4,.8],bleed:!1},eyebrow:"date",byline:"block",frame:"ornament_border",decor:["网格底纹","灯塔","光束"],share:.05}],inner:[{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; ML large meeting photo; BL primary panel big numbers 01; BR primary small cards plus photos; MR isometric map graphic",contents:"left CONTENTS/目录 label, items 01 02 in a row",header:"plain dark title top-left",cards:"white cards with primary circle icons, last card primary filled",numbers:"01",photos:"office photos",share:.4},{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card amber; ML title + text + primary block; BL amber panel big numbers 01 02; BR amber small cards + photo; MR cartoon icons",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"white cards with primary outline offset, last card amber filled",numbers:"01",photos:"children photos and cartoon icons",share:.34},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo but TL is a list card instead of contents; primary; cartoon city skyline edges",header:"plain dark title top-left",cards:"light cards with circle icons, last card primary",numbers:"01",photos:"photos in rounded frames",share:.11},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; TC framed section page; TR 4 cards row with circle icons, last card primary; ML title + sketch cards; BL primary panel big numbers 01 02; BR bookshelf photo; MR painting child photo; BC photo row",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"light cards, last card primary filled",numbers:"01",photos:"children activity photos",share:.04}],continuity:["orange primary and grid paper texture carry into inner pages","green primary with blue secondary and stripe corners repeated","sky blue and handwritten font continue; paper plane doodles","red primary and primary-color circles continue at inner edges"],traits:["flat cartoon brown bear standing in leafy circle on pale sage","cute cartoon dinosaur with egg on pale blue doodle background","flat figure presenting a chart on a periwinkle organic blob","big-eyed cartoon kid with pencil and backpack on muted purple","flat female judge at lectern on periwinkle blob background","flat astronauts floating around a giant tablet in indigo space"]},geometric:{samples:97,genres:[{genre:"business",share:.37},{genre:"recruitment",share:.14},{genre:"academic",share:.13},{genre:"marketing",share:.12},{genre:"classroom",share:.11}],palettes:[{background:"#FFFFFF",primary:"#C57460",text:"#684137",share:.11},{background:"#FFFFFF",primary:"#776BFA",text:"#3C3B7B",accent:"#F5CB3E",share:.08},{background:"#FFFFFF",primary:"#373B3F",text:"#373B3F",share:.07},{background:"#FFFFFF",primary:"#4CA6A7",text:"#384756",accent:"#F7BC13",share:.06},{background:"#FFFBF7",primary:"#F3BD2F",text:"#686348",share:.05},{background:"#FFFFFF",primary:"#577D9E",text:"#2E4154",share:.05},{background:"#0456B0",primary:"#143B5E",text:"#FCFEFF",share:.04},{background:"#FFFFFF",primary:"#60706B",text:"#60706B",share:.03}],covers:[{title:{box:[.2,.34,.6,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","半圆","细线同心圆"],share:.23},{title:{box:[.08,.3,.45,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[.5,0,.5,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","V形箭头","半圆"],share:.22},{title:{box:[.15,.32,.7,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["波浪线","点阵","黄色圆"],share:.1},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[.59,0,.41,.9],bleed:!0},eyebrow:"date",byline:"pill",frame:"split",decor:["斜切块","斜切橙色块","橙色竖块"],share:.05},{title:{box:[.2,.35,.6,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"ornament_border",decor:["半圆","细线框","短横线组"],share:.05}],inner:[{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; primary; dot grid accents on inner corners",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"cream cards with circle icons, last card primary",numbers:"01",photos:"team and office photos in rounded frames",share:.57},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo but TL is a stacked contents card; dusty rose primary; ML photo above heading",contents:"stacked list card top-left",header:"plain dark title top-left",cards:"light cards with circle icons, last card dusty rose",numbers:"01",photos:"business and product photos in rounded frames",share:.29},{skeleton:"TL list card; TC ring + 01; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML photo cards; MR chart illustration; BL primary panel with big numbers 01 02 + chart; BC photo; BR people photo",header:"plain dark title top-left",cards:"alternating white and primary cards, circle icons on top",numbers:"01",photos:"business photos and charts",share:.05},{skeleton:"TL contents as white card with stacked item lines (no CONTENTS label column); TR 4 cards row with circle icons, last card primary filled; ML number badges 01 03 with text rows; BL primary panel big numbers 01; BC 4-column text items with divider lines; BR primary small cards plus line-art org chart and resume graphics",contents:"white card with items stacked vertically",header:"plain dark title top-left",cards:"white cards with primary circle icons, last card primary filled",numbers:"01",photos:"few photos, line-art recruiting illustrations",share:.03}],continuity:["black ground and champagne gold carry into cards and accents","red overlay tint and dark ground used across all inner pages","dark purple with neon gradient planets and dot grids continue","coral orange ring color fills inner cards; ring motif repeats"],traits:["grayscale city-and-person photo masked inside thick red ring","stacked red chevron arrow on right edge with faint diamonds","emerald green card with a lime gradient planet and ring orbit","Memphis pastel blobs with mustard stripes and confetti dashes","copper gradient chevron arrows at opposite corners on charcoal","retro orange concentric-arc stripes at top and bottom on peach"]},guochao:{samples:36,genres:[{genre:"culture",share:.5},{genre:"classroom",share:.25},{genre:"marketing",share:.17},{genre:"festival",share:.06},{genre:"business",share:.03}],palettes:[{background:"#EDF5F0",primary:"#4A876B",text:"#1F4B50",share:.25},{background:"#FFFFFF",primary:"#BC7252",text:"#98563C",share:.14},{background:"#F6F4F0",primary:"#4F464C",text:"#4F464C",share:.08},{background:"#FDF5EF",primary:"#AA381C",text:"#AA381C",share:.06},{background:"#E0E0F0",primary:"#1E264A",text:"#1E264A",share:.06},{background:"#039C8D",primary:"#05ACD5",text:"#FDFEFB",accent:"#039C8D",share:.06},{background:"#1B3336",primary:"#5C8C53",text:"#E9EDEC",share:.06},{background:"#4A9579",primary:"#469276",text:"#F8F3E9",share:.03}],covers:[{title:{box:[.28,.32,.45,.22],align:"center",lines:2,weight:"regular",family:"sans",effect:"none"},hero:{kind:"guochao",box:[0,.6,1,.4],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["仙鹤","祥云","红日"],share:.22},{title:{box:[.08,.3,.45,.22],align:"left",lines:2,weight:"heavy",family:"serif",effect:"none"},hero:{kind:"guochao",box:[0,.3,1,.7],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["红日","圆日","飞鸟"],share:.14},{title:{box:[.5,.3,.45,.24],align:"right",lines:2,weight:"heavy",family:"serif",effect:"none"},hero:{kind:"guochao",box:[0,.05,.45,.95],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["蝴蝶","花鸟","山水"],share:.08},{title:{box:[.08,.3,.45,.22],align:"left",lines:2,weight:"bold",family:"serif",effect:"none"},hero:{kind:"guochao",box:[.55,0,.45,.95],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["祥云","圆日","底部色带"],share:.08},{title:{box:[.08,.3,.4,.22],align:"left",lines:2,weight:"bold",family:"serif",effect:"none"},hero:{kind:"guochao",box:[.45,.1,.5,.85],bleed:!1},eyebrow:"date",byline:"outline",frame:"ornament_border",decor:["竹叶","长城","顶部色带"],share:.08}],inner:[{skeleton:"TL contents left label + numbered items in a row; TC flower illustration section; TR 4 tall cards with circle icons, last primary; ML round photo thumbnails; BL big numbers 01 02 in primary card + bookshelf photo; MR long text; BR primary stacked cards + english sign photo",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light cards with last filled primary",numbers:"01",photos:"photos in rounded frames",share:.83},{skeleton:"NOT TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; ML section title + vertical column of round photo icons; BL two-line title + photo; MR/BR photos right column; TC section number 01",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"light cards with round photo icons, primary bars",numbers:"01",photos:"education photos in rounded frames",share:.06},{skeleton:"TL list card; TC pagoda + 01; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML icon list rows; MR flat illustration; BL primary panel with big numbers 01 02 + farm photo; BC text columns; BR primary side column + produce photo",header:"plain dark title top-left",cards:"alternating white and vermilion cards, circle icons on top",numbers:"01",photos:"farm and produce photos in rectangular frames",share:.03},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + stacked primary cards; BL primary panel big numbers 01 02; BR illustration; MR guochao poster; TC section number 01",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"light cards, last card primary filled",numbers:"01",photos:"illustration posters, few photos",share:.03}],continuity:["deep teal bands and bamboo corners recur on cream inner pages","sage green with botanical illustration accents at corners","mint ground with green stylized hills and bamboo at inner edges","green from the mountains fills inner cards on a pale mint ground"],traits:["guochao teal-gold Great Wall mountains under a big yellow sun","guochao pagoda and cranes inside a cloud-shaped window on teal","guochao orange-teal cloud mountains and red pine trees on white","muted taupe cover with flowing satin-like mountains and gold crane","guochao peach cloud sea, pagoda and cranes under golden moon on jade","illustrated ancient scholar in a beige circle with birds, serif title"]},"ink-paper":{samples:69,genres:[{genre:"culture",share:.49},{genre:"classroom",share:.22},{genre:"business",share:.07},{genre:"academic",share:.07},{genre:"marketing",share:.06}],palettes:[{background:"#FFFFFF",primary:"#433F3D",text:"#433F3D",share:.25},{background:"#FFFFFF",primary:"#69645D",text:"#69645D",share:.2},{background:"#EBF3F7",primary:"#4D575D",text:"#4D575D",share:.19},{background:"#FFFFFF",primary:"#49AF88",text:"#3B6453",share:.1},{background:"#F6FAFB",primary:"#3F7D8E",text:"#2E515E",share:.07},{background:"#FFFFFF",primary:"#C31D2A",text:"#4C3138",share:.06},{background:"#FAF4F4",primary:"#BE8B86",text:"#725754",share:.04},{background:"#EF7238",primary:"#924826",text:"#FDF9ED",share:.01}],covers:[{title:{box:[.08,.3,.45,.22],align:"left",lines:2,weight:"regular",family:"serif",effect:"none"},hero:{kind:"ink_wash",box:[.5,.1,.5,.9],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["飞鸟","远山","红日"],share:.25},{title:{box:[.18,.35,.64,.13],align:"center",lines:1,weight:"heavy",family:"serif",effect:"none"},hero:{kind:"ink_wash",box:[0,.45,1,.55],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["飞鸟","红日","小舟"],share:.19},{title:{box:[.08,.3,.46,.23],align:"left",lines:2,weight:"regular",family:"serif",effect:"none"},hero:{kind:"ink_wash",box:[.56,.11,.41,.85],bleed:!1},eyebrow:"date",byline:"plain",frame:"ornament_border",decor:["切角框","印章","色块角"],share:.09},{title:{box:[.48,.3,.47,.22],align:"right",lines:2,weight:"regular",family:"serif",effect:"none"},hero:{kind:"ink_wash",box:[0,.1,.8,.6],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["印章","飞鸟","亭子"],share:.07},{title:{box:[.45,.3,.49,.22],align:"right",lines:2,weight:"regular",family:"serif",effect:"none"},hero:{kind:"ink_wash",box:[0,.1,.45,.9],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["飞鸟","远山","红日"],share:.06}],inner:[{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card taupe; ML title + text + architecture image; BL taupe panel big numbers 01 02; BR taupe small cards + portrait photo; MR leaf photo",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"white cards, last card taupe filled",numbers:"01",photos:"nature and portrait photos",share:.41},{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + illustration cards; BL primary panel big numbers 01 02; BR photo; BC text columns",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"cream and primary cards, last card primary filled",numbers:"01",photos:"classroom photos and illustrations",share:.25},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; muted primary; ink-wash pavilion and crane cutouts at edges",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"light cards with circle icons, last card primary",numbers:"01",photos:"classroom and calligraphy photos in rounded frames",share:.17},{skeleton:"TL contents left label + numbered items in a row; ML primary icon list bars; BL title + forest photo; MR misty mountain photo; BR primary foliage photo",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"primary filled bars with outline icons",numbers:"01",photos:"nature photos in rounded frames",share:.04}],continuity:["ink-wash mountains and red brush accent recur on white pages","paper texture with blue-green mountains and red title accent","jade green border and ink-wash motifs at inner page corners","teal watercolor tone reappears as card fill and pill color"],traits:["unrolled scroll revealing 3D jade mountains over misty water","crimson ink bamboo on warm beige with deep red serif title","snow mountain peak emerging from white clouds on pale blue-gray","teal watercolor splash rising from the bottom under a teal title","faint ink-wash mountain mist with crimson date and pill","right-aligned brush title balanced by a pink-ink lotus on the left"]},"light-flow":{samples:84,genres:[{genre:"business",share:.49},{genre:"classroom",share:.11},{genre:"marketing",share:.11},{genre:"academic",share:.07},{genre:"tech",share:.07}],palettes:[{background:"#FBFDFE",primary:"#4374D2",text:"#3E599A",share:.17},{background:"#3265EA",primary:"#4977ED",text:"#FFFFFF",share:.07},{background:"#FEF5F6",primary:"#5D6C97",text:"#5D6C97",share:.07},{background:"#FBF2E7",primary:"#B27D7F",text:"#7C5458",share:.06},{background:"#FFFFFF",primary:"#0738C6",text:"#042483",accent:"#DF44EB",share:.05},{background:"#E7EAF4",primary:"#32AB9E",text:"#275550",share:.04},{background:"#171D4B",primary:"#528ACA",text:"#BECEE1",share:.04},{background:"#F2F4F5",primary:"#464444",text:"#464444",share:.04}],covers:[{title:{box:[.08,.32,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.45,.1,.55,.9],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["汉堡线","祥云纹","细横线"],share:.25},{title:{box:[.2,.35,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"geometric",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["点阵","小圆点","同心圆环"],share:.25},{title:{box:[.08,.3,.45,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"fluid",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["水彩晕染","流动细线束","玻璃圆"],share:.15},{title:{box:[.15,.33,.7,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"fluid",box:[0,.03,1,.72],bleed:!0},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["玻璃面板","四芒星","菜单图标"],share:.1},{title:{box:[.08,.3,.46,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"gradient",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"plain",frame:"card_on_bg",decor:["点阵","细曲线","大圆弧"],share:.05}],inner:[{skeleton:"TL contents left label + numbered items in a row; TR 4 tall cards with circle icons, last primary; ML round photo thumbnails row; BL big numbers 01 02 in primary card + photo; MR text column; BR primary stacked cards + classroom photo",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light cards with last filled primary",numbers:"01",photos:"round thumbnails and rounded photo frames",share:.49},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; primary; ML side label rows with small titles",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"white cards with circle icons, last card primary",numbers:"01",photos:"photos in rounded frames beside primary cards",share:.38},{skeleton:"TL contents left label column + numbered items in a row; ML title + periwinkle photo cards; MR portrait photo; BL title + sketch image; BC icon tiles; BR Great Wall photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark title top-left",cards:"periwinkle tinted photo cards and pale bars",numbers:"01",photos:"photos in rectangular frames",share:.04},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + primary text cards; BL primary panel big numbers 01 02; BR primary small cards + map graphic; MR dense text; BC primary small cards row",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"primary cards, last card primary filled",numbers:"01",photos:"few images, flat graphics",share:.02}],continuity:["coral pink title color and organic corner blobs recur inside","white field and pink from the gradient orb become pink cards","pink-coral organic blobs and leaf line art at inner corners","pink bubbles and frosted glass card soften into coral cards"],traits:["frosted glass spheres on pale blue with bold blue bottom bar","black marble with gold veins and italic gold gradient title","layered indigo fluid waves with magenta and cyan corner blobs","oversized thick blue paperclip-like stroke on near-white cover","molecule photo under a translucent emerald duotone overlay","soft pink and blue watercolor wash with cornflower serif title"]},"line-sketch":{samples:29,genres:[{genre:"business",share:.28},{genre:"academic",share:.14},{genre:"classroom",share:.14},{genre:"kids",share:.1},{genre:"recruitment",share:.1}],palettes:[{background:"#FFFFFF",primary:"#64A58A",text:"#232930",share:.17},{background:"#F9F9F9",primary:"#4F4842",text:"#4F4842",share:.14},{background:"#FFFFFF",primary:"#FF941D",text:"#423529",share:.14},{background:"#FFFFFF",primary:"#C07572",text:"#7C4845",share:.1},{background:"#EFF1FF",primary:"#426FDF",text:"#2E4A93",share:.1},{background:"#FFFFFF",primary:"#010101",text:"#010101",share:.07},{background:"#FFFFFF",primary:"#FFB002",text:"#403730",share:.07},{background:"#FFFFFF",primary:"#53C155",text:"#151A1C",share:.03}],covers:[{title:{box:[.08,.32,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[.55,.2,.4,.8],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["齿轮","折线人字纹","斜线排列"],share:.24},{title:{box:[.2,.33,.61,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["有机色块","手绘叶片","线描花朵"],share:.21},{title:{box:[.08,.3,.42,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"flat_people",box:[.55,.15,.38,.7],bleed:!1},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["点阵","蓝色角块","三点符号"],share:.1},{title:{box:[.1,.31,.44,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[.58,.15,.35,.72],bleed:!1},eyebrow:"date",byline:"outline",frame:"ornament_border",decor:["细线框","虚线","圆弧"],share:.07},{title:{box:[.07,.29,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[.55,.15,.4,.8],bleed:!1},eyebrow:"date",byline:"plain",frame:"device",decor:["浏览器顶栏","橙色色块","点阵"],share:.07}],inner:[{skeleton:"TL contents left label + numbered items in a row; TR 4 tall cards with petal icons, last terracotta; ML photo thumbnail + text; BL big numbers 01 02 in terracotta card; MR text column; BC text columns with rules; BR terracotta stacked cards",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light blush cards with last filled terracotta",numbers:"01",photos:"few small photos",share:.38},{skeleton:"TL contents left label + numbered items in a row; TC contour line section; TR 4 tall cards with circle icons, last steel primary; ML numbered list 01 03 with text; BL big numbers 01 02 in primary card + medical photo; MR person arrow illustration; BR primary stacked cards + photo",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light cards with last filled steel primary",numbers:"01",photos:"photos in rounded frames",share:.31},{skeleton:"TL contents left label + numbered items in a row; TC outline big number 01 section; TR 4 tall cards with circle icons, last gray; ML 3D icon cards; BL big numbers 01 02 in gray card + photo; BR gray stacked cards + chart illustration",contents:"left CONTENTS/目录 label, items in a row",header:"plain dark title top-left",cards:"light cards with last filled mid-gray",numbers:"01",photos:"photos and 3D chart illustrations",share:.1},{skeleton:"TL contents left label + numbered items in a row; TC phone mockup section; ML primary cards with round photos; BL title text + landscape photos; MR landscape photos",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"primary tinted cards",numbers:"01",photos:"landscape photos in rounded frames",share:.07}],continuity:["pink desk-flat-lay doodles frame inner pages, coral primary","jade green and blue gradient landmark motifs echo at page tops","blue primary and paper-plane line icons reappear on inner pages","stacked browser-window frames and orange accents continue"],traits:["flat vivid green with oversized white outline chat bubble","stacked chevron line-art pattern, strict black-and-white minimal","gold outline leaves and soft organic blobs on pale mint","black line-art woman running with a browser window over pink blob","black-and-white line-drawn people riding a neon green growth arrow","gold line-drawn peonies framing bronze serif title on speckled paper"]},"red-ceremony":{samples:42,genres:[{genre:"civic",share:.6},{genre:"festival",share:.33},{genre:"recruitment",share:.02},{genre:"business",share:.02},{genre:"marketing",share:.02}],palettes:[{background:"#FFFFFF",primary:"#D32511",text:"#67140F",share:.29},{background:"#E82716",primary:"#AC1310",text:"#FEFEFE",share:.14},{background:"#A91614",primary:"#E0382F",text:"#FDF9F5",share:.12},{background:"#DB1C12",primary:"#EC5A28",text:"#FCFBF8",share:.1},{background:"#9F3B3A",primary:"#CEA373",text:"#FAF1EA",accent:"#9F3B3A",share:.07},{background:"#D90018",primary:"#8C0403",text:"#FEFFFF",share:.07},{background:"#1C4DD5",primary:"#093CCA",text:"#FCFCFD",share:.02},{background:"#2C40A5",primary:"#F42A29",text:"#FEF7F0",accent:"#4559BA",share:.02}],covers:[{title:{box:[.18,.35,.64,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"civic",box:[0,.55,1,.45],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["光带","红绸","白鸽"],share:.36},{title:{box:[.08,.3,.45,.22],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"civic",box:[.55,.2,.45,.8],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["飞鸽","红绸光带","竖向圆点导航"],share:.17},{title:{box:[.15,.2,.7,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"gradient"},hero:{kind:"festive",box:[0,.45,1,.55],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["红绸","烟花","月饼"],share:.1},{title:{box:[.09,.3,.47,.22],align:"left",lines:2,weight:"bold",family:"calligraphy",effect:"none"},hero:{kind:"festive",box:[.15,.05,.85,.95],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["金马","烟花","金山"],share:.05},{title:{box:[.47,.29,.47,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"guochao",box:[0,.05,.5,.8],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["长城","白鸽","祥云山丘"],share:.05}],inner:[{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card primary; ML title + photo cards; BL primary panel big numbers 01 02; BR primary small cards + photo",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"white cards, last card primary filled",numbers:"01",photos:"photos in frames",share:.52},{skeleton:"TL contents left label column + numbered items in a row; TC big 01 on primary; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML title + text; MR horse motif; BL primary panel with big numbers 01 02 + field photo; BC photo text columns; BR terraced field photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark calligraphic title top-left",cards:"alternating white and festive primary cards, circle icons on top",numbers:"01",photos:"landscape photos in rectangular frames",share:.21},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo with TL contents as stacked list in panel: TL contents list in primary panel; TR 4 cards row with circle icons, last card primary; ML title + primary numbers 01 02 text; BL primary panel big numbers 01 02; BR primary small cards + photo; BC primary card row",contents:"stacked list of items in a primary panel",header:"plain dark title top-left",cards:"primary tint cards, last card primary filled",numbers:"01",photos:"people photos in frames",share:.07},{skeleton:"TL bulleted contents list; ML title + icon rows with tinted bars; MR landscape photo; BL title + photo; BC icon tiles; BR primary binders photo",contents:"plain bulleted list of section titles in one column",header:"plain dark title top-left with primary ribbon top band",cards:"pale tinted bars with icons",numbers:"none",photos:"photos in rectangular frames",share:.05}],continuity:["festive red and gold horse motif recur in corners and cards","christmas red primary and snowman stickers at inner page edges","paper texture with red scalloped valance and dashed frame","cream paper ground, serif type and bamboo leaves continue"],traits:["folded red ribbon chevrons slicing a laptop photo diagonally","glowing skyscraper cluster rising from red silk under red sky","golden stone lion over red silk ribbon, civic propaganda style","billowing red silk with white doves, gold-tinted centered title","glowing open book with flying pages and gold light rings on red","full red gradient field with fine silk-ribbon line waves"]},"soft-3d":{samples:106,genres:[{genre:"business",share:.33},{genre:"marketing",share:.19},{genre:"classroom",share:.18},{genre:"finance",share:.08},{genre:"tech",share:.08}],palettes:[{background:"#E7F3F9",primary:"#3255A9",text:"#3255A9",share:.17},{background:"#FFFFFF",primary:"#5173B8",text:"#263E6E",share:.16},{background:"#F3F5F7",primary:"#DB7250",text:"#8B432B",share:.1},{background:"#FFFFFF",primary:"#F4A433",text:"#704630",share:.1},{background:"#E1F0E5",primary:"#60A883",text:"#406250",share:.08},{background:"#FFFFFF",primary:"#BF7637",text:"#836444",share:.06},{background:"#BBD9F3",primary:"#4D8FD1",text:"#404973",share:.05},{background:"#FFFFFF",primary:"#5EAEDF",text:"#5E6D79",share:.05}],covers:[{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.55,.15,.4,.8],bleed:!1},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","三圆点","玻璃圆环"],share:.43},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.55,.15,.4,.75],bleed:!1},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["四点","星星","菜单图标"],share:.24},{title:{box:[.47,.3,.47,.25],align:"right",lines:2,accentLine:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.04,.15,.45,.75],bleed:!1},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["彩点","细线","玻璃卡片"],share:.08},{title:{box:[.47,.3,.46,.23],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.01,.15,.47,.75],bleed:!1},eyebrow:"date",byline:"block",frame:"full_bleed",decor:["公式纸卷","纸飞机","滑雪人"],share:.06},{title:{box:[.08,.3,.49,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_object",box:[.56,.05,.43,.88],bleed:!1},eyebrow:"date",byline:"pill",frame:"none",decor:["箭头组","散落立方块","斜向圆角条"],share:.04}],inner:[{skeleton:"TL contents list in light panel; TR 4 cards row with circle icons, last card primary; ML title + photo list rows; BL primary panel big numbers 01 02; BR primary small cards + photo",contents:"light panel with short text list",header:"plain dark title top-left",cards:"primary cards, last card primary filled",numbers:"01",photos:"finance photos in small frames",share:.39},{skeleton:"TL contents list in light panel; TR 4 cards row with circle icons, last card primary; ML title + text columns; BL primary panel big numbers 01 02; BR primary small cards + tech photo",contents:"light panel with short text list",header:"plain dark title top-left",cards:"white and primary cards, last card primary filled",numbers:"01",photos:"photos in rounded frames",share:.33},{skeleton:"TL contents left label column + numbered items in a row; TC shapes + 01; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML photo cards; MR paragraph text; BL primary panel with big numbers 01 02 + circuit photo; BC landscape photos; BR city photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark title top-left",cards:"alternating white and burnt primary cards, circle icons on top",numbers:"01",photos:"landscape and tech photos",share:.09},{skeleton:"TL contents left label column + numbered items in a row; TC 3D object + 01; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML chevron icon list card; MR english word sticky note; BL primary panel with big numbers 01 02 + figure; BC text columns; BR strategy sign photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark title top-left",cards:"alternating white and primary cards, circle icons on top",numbers:"01",photos:"graphics and photos",share:.08}],continuity:["violet from the 3D podium fills inner cards on pale lavender","sky blue and yellow double frame edges carry into inner pages","burnt orange arch and spheres color fill inner cards on cream","copper brown primary and notched-corner frame repeat inside"],traits:["frosted glass panels and translucent blue ring on pale blue","exploding metallic data cubes with triple chevron logo mark","cluster of pastel violet 3D cubes on a lavender split panel","stacked translucent violet glass cubes on lavender gradient","translucent glass capsule spilling molecules on pale icy blue","3D purple shopping bag, coins and shield check on blue blob"]},"tech-glow":{samples:108,genres:[{genre:"tech",share:.4},{genre:"business",share:.26},{genre:"marketing",share:.14},{genre:"recruitment",share:.06},{genre:"finance",share:.06}],palettes:[{background:"#002C43",primary:"#10B1D4",text:"#96C4C7",share:.14},{background:"#0C305C",primary:"#5C8AB0",text:"#B8C3C8",share:.13},{background:"#050C1F",primary:"#57A8E5",text:"#CBE1ED",share:.11},{background:"#0B2A73",primary:"#2B5DCE",text:"#B6D2EE",share:.08},{background:"#0C1349",primary:"#763DC1",text:"#7F81C4",accent:"#180857",share:.06},{background:"#010101",primary:"#2DB463",text:"#A9CDB5",share:.06},{background:"#100F0C",primary:"#D1863A",text:"#DCC197",share:.04},{background:"#010101",primary:"#2AADE9",text:"#BFD0D3",share:.04}],covers:[{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"tech_glow",box:[.5,.1,.5,.9],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["电路线","光点","光带"],share:.3},{title:{box:[.2,.33,.6,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"tech_glow",box:[0,0,1,.8],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["深蓝渐变","黑底","金色曲线"],share:.19},{title:{box:[.08,.32,.45,.24],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"tech_glow",box:[.3,0,.7,1],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["粒子光流","大圆","下划短线"],share:.1},{title:{box:[.5,.3,.45,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"tech_glow",box:[0,.08,.55,.85],bleed:!0},eyebrow:"date",byline:"plain",frame:"full_bleed",decor:["金色细线束","弧形切面","透视网格"],share:.09},{title:{box:[.07,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"tech_glow",box:[.3,.05,.7,.95],bleed:!0},eyebrow:"date",byline:"plain",frame:"card_on_bg",decor:["光轨","发光城市","光纤流线"],share:.06}],inner:[{skeleton:"TL contents left label + numbered items in a row; TR 4 tall cards with circle icons, last primary; ML photo + text cards; BL big numbers 01 02 in primary card + photo; MR long text; BR primary stacked cards + engine photo",contents:"left CONTENTS/目录 label, items in a row on primary",header:"plain light title top-left on primary",cards:"primary filled cards on primary",numbers:"01",photos:"photos in rounded frames",share:.32},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo on primary ground; ML title + text rows; BR primary cards + landscape photos",contents:"left CONTENTS/目录 label, items 01 02 in a row",header:"plain light title top-left on dark",cards:"dark cards with primary circle icons, last card primary filled",numbers:"01",photos:"landscape photos in rounded frames",share:.28},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; ML photo cards; BL primary panel big numbers 01 beside forest lake photo; BR lighter primary cards; MR line-art analytics illustration",contents:"left CONTENTS/目录 label, items 01 02 in a row",header:"plain light title top-left on primary",cards:"primary cards with brighter primary highlight",numbers:"01",photos:"nature photos and line art",share:.14},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo but TL is a primary list card instead of contents label; primary ground with neon primary",header:"white title top-left on dark",cards:"primary cards with circle icons on primary",numbers:"01",photos:"few photos, mostly primary panels",share:.09}],continuity:["black ground and violet primary taken from the particle wave","dark grayscale ground with electric blue accents throughout","dark navy ground and soft blue primary from the glowing vortex","indigo-violet tech palette and bottom gradient band carry over"],traits:["liquid gold wave sculpture on a black pedestal against black","glowing wireframe globe touched by digital hand on deep blue","glowing teal particle wave across dark teal with soft circles","holographic stock chart screen floating on a perspective grid","armored figure stepping through a glowing neon ring in mist","minimal dark purple cover with swirling glowing filament arcs"]},"toon-3d":{samples:45,genres:[{genre:"business",share:.29},{genre:"classroom",share:.22},{genre:"kids",share:.2},{genre:"medical",share:.13},{genre:"recruitment",share:.11}],palettes:[{background:"#FDF7F2",primary:"#E66427",text:"#8D4D24",accent:"#FED35B",share:.13},{background:"#FFFFFF",primary:"#376EDB",text:"#113261",accent:"#FAD093",share:.09},{background:"#FFFFFF",primary:"#3DA7EA",text:"#1A4B80",share:.09},{background:"#FEF7EC",primary:"#F9AD31",text:"#533D28",share:.07},{background:"#1891D3",primary:"#63AED4",text:"#F0F2ED",share:.07},{background:"#FFFFFF",primary:"#829E6F",text:"#314052",share:.07},{background:"#E9D8CA",primary:"#7C3830",text:"#080406",accent:"#F6DB93",share:.04},{background:"#08B6F4",primary:"#A1DCD4",text:"#505964",accent:"#08B6F4",share:.04}],covers:[{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_character",box:[.55,.1,.45,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["纸飞机","行星","星星"],share:.47},{title:{box:[.08,.3,.41,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_character",box:[.55,.1,.42,.9],bleed:!0},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["3D铃铛","叠层卡片","粗色边框"],share:.22},{title:{box:[.5,.3,.45,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"cartoon",box:[0,.15,.45,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["动物群","书本","三圆点"],share:.11},{title:{box:[.45,.3,.5,.25],align:"right",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"3d_character",box:[.05,.1,.43,.88],bleed:!1},eyebrow:"date",byline:"plain",frame:"card_on_bg",decor:["斜切块","四角星","弧线"],share:.09},{title:{box:[.08,.3,.45,.25],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"cartoon",box:[.55,.15,.4,.75],bleed:!1},eyebrow:"date",byline:"pill",frame:"device",decor:["游戏机按键","进度条","棋盘格"],share:.07}],inner:[{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card amber; ML title + photo; BL amber panel big numbers 01 02; BR amber small cards + photo; MR education icon illustration",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"cream cards on amber ground, last card amber filled",numbers:"01",photos:"photos in rounded frames and line icon illustrations",share:.44},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; primary; web-page chrome on inner pages",contents:"left CONTENTS/目录 label, items in a row with primary numbers",header:"plain dark title top-left",cards:"light cards with circle icons, last card primary",numbers:"01",photos:"office photos in rounded frames",share:.4},{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo: TL contents left label + numbered items row; TC section number 01; TR 4 cards row with circle icons, last card primary; ML title + icon list rows; BL primary panel big numbers 01 02; BR primary small cards + prohibition sign; MR dense text; BC bus photo + text",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark title top-left",cards:"light cards, last card primary filled",numbers:"01",photos:"traffic photos",share:.04},{skeleton:"TL contents row; ML section title over a column of round icons or icon bars; BL two or three lines of large title over a landscape photo; R a full column of photos, no card row; ML title + round photo card; BL title text + lake photo; MR/BR landscape photos right column",contents:"left CONTENTS/目录 label, items 01 02 in a row",header:"plain dark title top-left",cards:"white tint cards with outline icons",numbers:"01",photos:"landscape and lake photos in rounded frames",share:.04}],continuity:["bright blue primary carried as frame bars around inner pages","bright azure blue and circular shapes repeat on inner pages","cobalt blue with cream moon shape carries into cobalt cards","red title and bottom swoosh become red cards; drones repeat"],traits:["3D cartoon doctor with clipboard on pale green diagonal light","cute cartoon astronaut kid riding a planet in royal blue space","cartoon zoo animals gathered around an open book on warm yellow","cartoon wild animals gathered around an open book on pale cream","cover drawn as a handheld game console with cute monster cartoons","torn paper diagonal revealing a 3D schoolboy running in classroom"]},"type-poster":{samples:17,genres:[{genre:"business",share:.41},{genre:"classroom",share:.24},{genre:"tech",share:.12},{genre:"marketing",share:.12},{genre:"culture",share:.06}],palettes:[{background:"#FFFFFF",primary:"#393C3E",text:"#393C3E",accent:"#39967B",share:.18},{background:"#FFFFFF",primary:"#4B7BB1",text:"#3B3D49",share:.12},{background:"#2D2F33",primary:"#C8CBCF",text:"#C8CBCF",share:.12},{background:"#5A5C27",primary:"#FBA84F",text:"#F6F0E8",share:.06},{background:"#FFFFFF",primary:"#182F85",text:"#182F85",share:.06},{background:"#003F3E",primary:"#2E868E",text:"#FBFDFE",share:.06},{background:"#000000",primary:"#032A56",text:"#D5D7D7",share:.06},{background:"#6BBE6E",primary:"#59B55D",text:"#F4F2E2",share:.06}],covers:[{title:{box:[.2,.33,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:null,eyebrow:"date",byline:"pill",frame:"ornament_border",decor:["大引号","圆角线框","黑板纹理"],share:.18},{title:{box:[.2,.35,.6,.13],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"line_art",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"board",decor:["黑板木框","粉笔公式","粉笔擦"],share:.18},{title:{box:[.08,.3,.43,.22],align:"left",lines:2,weight:"regular",family:"sans",effect:"none"},hero:null,eyebrow:"date",byline:"plain",frame:"none",decor:[],share:.12},{title:{box:[.2,.35,.6,.15],align:"center",lines:1,weight:"heavy",family:"sans",effect:"shadow"},hero:{kind:"geometric",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["大圆环","四分圆块","同色深浅块"],share:.12}],inner:[{skeleton:"TL contents: a CONTENTS label column with numbered items in a row; TR 4 tall cards in a row, circle icons on top, the last card filled with primary; BL a primary panel with big numbers 01 02; BR small primary cards beside a photo; gray monochrome primary; ML circle icon bullet rows",contents:"left CONTENTS/目录 label, items in a row with gray numbers",header:"plain dark title top-left",cards:"light cards with circle icons, last card gray",numbers:"01",photos:"infographic and chart images",share:.65},{skeleton:"TL contents list in light panel; TR 4 cards row with circle icons, last card slate; ML title + photo cards; BL slate panel big numbers 01 02; BR slate small cards + graphic; BC photo row",contents:"light panel with short text list",header:"plain dark title top-left",cards:"white cards, last card slate gray-primary filled",numbers:"01",photos:"business people photos in frames",share:.12},{skeleton:"TL contents left label + numbered items in a row; TC cartoon kid peeking over board; ML primary card with outline icon list; BL title + car photo; MR karst landscape photo; BR traffic cone photo",contents:"left CONTENTS/目录 label, items in a row",header:"plain light title top-left on primary",cards:"primary chalkboard cards with primary frames",numbers:"01",photos:"photos in rounded frames",share:.06},{skeleton:"TL contents left label column + numbered items in a row; ML title + photo cards; MR chart photo; BL title + office photo; BC primary bars with icons; BR business photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark title top-left",cards:"pale tinted cards with primary bars",numbers:"01",photos:"business photos in rectangular frames",share:.06}],continuity:["rice-paper ground with fret corner brackets on inner pages","deep teal primary from the cover frame becomes card and panel fills","olive chalkboard with orange frame repeated on pages","charcoal chalkboard and peach-rust accents continue"],traits:["realistic wooden-framed chalkboard with faint chalk formulas","pure black cover with only white light-weight type, no imagery","cyan gradient title over blue hexagon grid and HUD rings","bare black cover with only a blue-to-magenta gradient display-font title","nested rounded frames over a teal-tinted building photo, white pill byline","flat teal chalkboard with brown wood frame, chalk and leafy plants on peach"]},watercolor:{samples:51,genres:[{genre:"business",share:.29},{genre:"classroom",share:.18},{genre:"marketing",share:.1},{genre:"academic",share:.1},{genre:"tech",share:.08}],palettes:[{background:"#FFFFFF",primary:"#625846",text:"#625846",share:.29},{background:"#F2F7F6",primary:"#5AA065",text:"#4A6E4B",share:.25},{background:"#FFFBEF",primary:"#DE565B",text:"#725156",share:.1},{background:"#FFFFFF",primary:"#E29D49",text:"#744D2D",share:.08},{background:"#F6F8FA",primary:"#5093B9",text:"#385B6D",share:.08},{background:"#FFFFFF",primary:"#996260",text:"#6B4D4A",share:.06},{background:"#A8A486",primary:"#8CB177",text:"#FFFBF7",share:.02},{background:"#F0FAF5",primary:"#90C73D",text:"#45623E",share:.02}],covers:[{title:{box:[.08,.3,.42,.22],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"watercolor",box:[.55,.12,.4,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["点阵","光斑","底部色带"],share:.22},{title:{box:[.2,.35,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"watercolor",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"ornament_border",decor:["叶片","植物枝叶","金色细框"],share:.18},{title:{box:[.2,.35,.6,.12],align:"center",lines:1,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"watercolor",box:[0,0,1,1],bleed:!0},eyebrow:"date",byline:"pill",frame:"full_bleed",decor:["植物叶片","花朵","粉色色块"],share:.16},{title:{box:[.5,.29,.45,.22],align:"right",lines:2,weight:"bold",family:"serif",effect:"none"},hero:{kind:"watercolor",box:[.03,.14,.41,.8],bleed:!1},eyebrow:"date",byline:"plain",frame:"ornament_border",decor:["荷花","细线框","拱形窗"],share:.08},{title:{box:[.08,.3,.4,.22],align:"left",lines:2,weight:"heavy",family:"sans",effect:"none"},hero:{kind:"watercolor",box:[.55,.15,.45,.85],bleed:!0},eyebrow:"date",byline:"pill",frame:"card_on_bg",decor:["菜单图标","点阵","汉堡图标"],share:.06}],inner:[{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card taupe; ML title + photo cards; BL taupe panel big numbers 01 02; BR taupe small cards + photo; MR line illustration",contents:"left italic CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"cream cards, last card taupe filled",numbers:"01",photos:"photos and line illustrations",share:.33},{skeleton:"TL contents as white card with stacked item lines (no CONTENTS label column); TR 4 cards row with circle icons, last card primary filled; ML list rows with photo thumbnails; BL primary panel big numbers 01; BR primary small cards plus 3D bar chart graphic; MR gauge graphic",contents:"white card with items stacked vertically",header:"plain dark title top-left",cards:"white cards with primary circle icons, last card primary filled",numbers:"01",photos:"finance photos and 3D chart icons",share:.16},{skeleton:"TL contents left label + numbered items row; TR 4 cards row with circle icons, last card ochre; ML title + photo + text list; BL ochre panel big numbers 01 02; BR ochre small cards + illustration",contents:"left CONTENTS/目录 label, items 01 02 in a row at top",header:"plain dark serif title top-left",cards:"cream cards, last card ochre filled",numbers:"01",photos:"photos and flat illustrations mixed",share:.16},{skeleton:"TL contents left label column + numbered items in a row; TR plain title + 4 tall cards row alternating white and primary with circle icons; ML photo + text columns; MR paragraph text; BL primary panel with big numbers 01 02 + chart; BC photo text columns; BR primary side column + portrait photo",contents:"left CONTENTS/目录 label, numbered items laid out horizontally",header:"plain dark title top-left",cards:"alternating white and sage primary cards, circle icons on top",numbers:"01",photos:"people photos in rectangular frames",share:.14}],continuity:["olive green primary and botanical sprigs at inner page edges","sage green and brush font continue; hydrangea corners recur","mint ground and sakura branches continue at inner page tops","eucalyptus watercolor leaves frame inner pages, serif type"],traits:["anime-style girl riding a dragonfly over lotus pond at night","watercolor flowering branches framing a white centered title","pink-gray-sage leaf blobs framing a sage-green centered title","soft watercolor fern leaves at both sides, centered green title","golden ginkgo branch with red ribbon wind chime and cloud lines","crayon-textured autumn trees and drifting leaves on peach"]}},oe={w:33.867,h:19.05},se=e=>`${Math.round(e*100)}%`;function it(e){const[t,r,a,n]=e;return`x ${(t*oe.w).toFixed(1)} y ${(r*oe.h).toFixed(1)} w ${(a*oe.w).toFixed(1)} h ${(n*oe.h).toFixed(1)}`}function ba(e,t){const r=e.title,a=[`标题${r.align==="left"?"左对齐":r.align==="right"?"右对齐":"居中"}(${it(r.box)}),${r.lines} 行${r.accentLine?`、第 ${r.accentLine} 行换主色`:""},${r.weight}/${r.family}${r.effect&&r.effect!=="none"?`,${r.effect}`:""}`,e.hero?`主视觉 ${e.hero.kind}(${it(e.hero.box)}${e.hero.bleed?",出血":""})`:"没有主视觉",`眉标 ${e.eyebrow}`,`落款 ${e.byline}`,`版面 ${e.frame}`,...e.decor.length?[`装饰 ${e.decor.join("、")}`]:[]];return`- 封面 ${String.fromCharCode(65+t)}(${se(e.share)}):${a.join(";")}`}function ga(e,t=r=>r){if(!e||e.samples===0)return"";const r=e.inner.map(a=>`- ${a.skeleton}(${se(a.share)})${[a.contents&&`目录:${a.contents}`,a.header&&`标题:${a.header}`,a.cards&&`卡片:${a.cards}`,a.numbers&&`编号:${a.numbers}`,a.photos&&`图片:${a.photos}`].filter(Boolean).map(n=>`
|
|
3
3
|
${n}`).join("")}`);return`
|
|
4
4
|
## 真实稿件里的做法(${e.samples} 套样本归纳,只作参考,按内容重新设计)
|
|
5
5
|
|
|
6
|
-
样本题材:${e.genres.map(a=>`${t(a.genre)} ${
|
|
6
|
+
样本题材:${e.genres.map(a=>`${t(a.genre)} ${se(a.share)}`).join("、")}
|
|
7
7
|
|
|
8
8
|
### 配色
|
|
9
|
-
${e.palettes.map(a=>`- 底 ${a.background},主 ${a.primary}${a.accent?`,强调 ${a.accent}`:""},字 ${a.text}(${
|
|
9
|
+
${e.palettes.map(a=>`- 底 ${a.background},主 ${a.primary}${a.accent?`,强调 ${a.accent}`:""},字 ${a.text}(${se(a.share)})`).join(`
|
|
10
10
|
`)}
|
|
11
11
|
|
|
12
12
|
### 封面版式(坐标为 16:9 页面上的厘米,竖屏或其他尺寸按比例换算)
|
|
13
|
-
${e.covers.map(
|
|
13
|
+
${e.covers.map(ba).join(`
|
|
14
14
|
`)}
|
|
15
15
|
|
|
16
16
|
### 内页(位置缩写:TL 左上、TR 右上、ML 左中、MC 正中、MR 右中、BL 左下、BC 下中、BR 右下)
|
|
@@ -24,15 +24,15 @@ ${e.continuity.map(a=>`- ${a}`).join(`
|
|
|
24
24
|
### 好样本的特点
|
|
25
25
|
${e.traits.map(a=>`- ${a}`).join(`
|
|
26
26
|
`)}
|
|
27
|
-
`}const
|
|
27
|
+
`}const ya="23";function N(e){const t=Object.entries(e.files??{}).map(([r,a])=>({path:r,mediaType:"text/markdown",content:a.trim()}));return{id:e.id,name:e.name,description:e.description,category:e.category,version:ya,files:[{path:"SKILL.md",mediaType:"text/markdown",content:e.instructions.trim()},...t]}}const Se="style-library",ot=e=>`${e}.md`,st={photo:"摄影","3d-object":"3D 物件","3d-character":"3D 卡通人物","flat-illustration":"扁平插画","line-art":"线描","ink-wash":"水墨",guochao:"国潮纹样",watercolor:"水彩",fluid:"流体丝带","tech-glow":"科技光效",geometric:"几何",festive:"节庆元素",civic:"党政符号",gradient:"抽象渐变",type:"大字",chart:"图表"},le={civic:"机关单位与主题宣讲",classroom:"课堂教学",kids:"儿童与亲子",tech:"科技发布",business:"商务汇报",finance:"金融财报",medical:"医疗健康",culture:"国风与传统文化",festival:"节庆活动",marketing:"营销推广",academic:"学术答辩",recruitment:"招聘与述职",social:"竖屏知识卡"},lt={light:"浅色",dark:"深色",saturated:"饱和色",any:"不限"},wa={low:"低饱和",mid:"中等饱和",high:"鲜艳",any:"不限"},ka={none:"直角",small:"小圆角",large:"大圆角",mixed:"直角与圆形并用"},xa=e=>e.hero.picture===void 0;function Fa(e){const{hero:t,dimensions:r,tokens:a,components:n,pages:i}=e;return`
|
|
28
28
|
# ${e.name}(${e.key})
|
|
29
29
|
|
|
30
30
|
**主张**:${e.idea}
|
|
31
31
|
**情绪**:${e.moods.join("、")}
|
|
32
|
-
**适合**:${e.genres.map(s=>
|
|
32
|
+
**适合**:${e.genres.map(s=>le[s]).join("、")}
|
|
33
33
|
|
|
34
34
|
## 主视觉
|
|
35
|
-
- 类型:${t.kinds.map(s=>
|
|
35
|
+
- 类型:${t.kinds.map(s=>st[s]).join("、")}
|
|
36
36
|
- 用形状画:${t.vector}
|
|
37
37
|
${t.picture?`- 能生成图片时,prompt 的风格词:${t.picture}`:"- 这种风格完全用形状、线条和渐变画,不需要图片。"}
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@ ${t.picture?`- 能生成图片时,prompt 的风格词:${t.picture}`:"- 这
|
|
|
44
44
|
- 字体:${r.type}
|
|
45
45
|
|
|
46
46
|
## 取值范围(设计语言落在范围内,具体值由你定)
|
|
47
|
-
- 封面底:${
|
|
47
|
+
- 封面底:${lt[a.cover]};内容页底:${lt[a.content]};主色:${wa[a.primary]}
|
|
48
48
|
- 标题字体:${a.heading.join("、")};正文字体:${a.body.join("、")}
|
|
49
|
-
- 大字与正文字号比:${a.scale[0]} 到 ${a.scale[1]} 倍;圆角:${
|
|
49
|
+
- 大字与正文字号比:${a.scale[0]} 到 ${a.scale[1]} 倍;圆角:${ka[a.radius]}
|
|
50
50
|
- 质感:${a.effects.length?a.effects.join("、"):"无,保持扁平"}
|
|
51
51
|
|
|
52
52
|
## 元素词汇
|
|
@@ -54,7 +54,7 @@ ${e.elements.join("、")}
|
|
|
54
54
|
|
|
55
55
|
元素库里适合的元素(drawSlide 的 motif,用法见 element-library):${e.motifs.join("、")}
|
|
56
56
|
|
|
57
|
-
默认组件皮肤(setDeckDesign 的 skin,用法见 component-library):${Object.entries(e.skin).map(([s,
|
|
57
|
+
默认组件皮肤(setDeckDesign 的 skin,用法见 component-library):${Object.entries(e.skin).map(([s,c])=>`${s} ${c}`).join(",")}
|
|
58
58
|
|
|
59
59
|
## 组件画法
|
|
60
60
|
- 标题组:${n.titleGroup}
|
|
@@ -63,11 +63,11 @@ ${e.elements.join("、")}
|
|
|
63
63
|
- 内容页标题区:${n.header}
|
|
64
64
|
|
|
65
65
|
## 页面倾向
|
|
66
|
-
- 封面:${
|
|
67
|
-
- 章节:${
|
|
68
|
-
- 内容:${
|
|
69
|
-
- 数据:${
|
|
70
|
-
- 结尾:${
|
|
66
|
+
- 封面:${i.cover}
|
|
67
|
+
- 章节:${i.section}
|
|
68
|
+
- 内容:${i.content}
|
|
69
|
+
- 数据:${i.data}
|
|
70
|
+
- 结尾:${i.closing}
|
|
71
71
|
|
|
72
72
|
## 禁忌
|
|
73
73
|
${e.taboos.map(s=>`- ${s}`).join(`
|
|
@@ -75,10 +75,10 @@ ${e.taboos.map(s=>`- ${s}`).join(`
|
|
|
75
75
|
|
|
76
76
|
## 样张(文字描述,只示意气质,不照抄位置)
|
|
77
77
|
${e.sample}
|
|
78
|
-
${
|
|
78
|
+
${ga(Ce[e.key],s=>le[s]??s)}`}const Ta=`
|
|
79
79
|
# 参考做同款
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
用户给了参考图、一份模板或一段描述(“像这张那样”“要苹果发布会那种感觉”),只学它的风格,不搬它的东西。用户在编辑器里选定的模板不在此列,视图会写明,照它的页面做。
|
|
82
82
|
|
|
83
83
|
## 逐项提炼
|
|
84
84
|
1. **主视觉**:是什么(摄影、3D 物件、3D 人物、扁平插画、线描、水墨、国潮、水彩、流体、科技光效、几何、纯大字)、占画面多少、放在哪里。
|
|
@@ -98,7 +98,7 @@ ${ha(ve[e.key],s=>oe[s]??s)}`}const ga=`
|
|
|
98
98
|
- 不照搬参考的版面坐标、图片、文字、标志和品牌名;不仿冒具体机构或产品的视觉识别。
|
|
99
99
|
- 参考里有国旗、国徽、党徽、地图或形似旭日旗的放射条纹时,不学这些,按 genres.md 的“庄重场合的细节”处理。
|
|
100
100
|
- 看不到图(模型不能看图、或用户只给了文件名)时,请用户用几句话描述,或从文字描述里提炼,不要猜。
|
|
101
|
-
`;function
|
|
101
|
+
`;function va(e){const t=r=>{const a=Ce[r.key];return(a?.genres.find(n=>n.genre===e)?.share??0)*(a?.samples??0)};return W.filter(r=>r.genres.includes(e)||t(r)>=3).sort((r,a)=>t(a)-t(r))}const ct=e=>Ce[e.key]?.samples??0,Ba=Object.keys(le),Ca=N({id:Se,name:"风格库",category:"演示文稿",description:`定一份稿件的样子时读:${W.length} 张风格卡,每张是一种设计主张加取值范围、主视觉、元素词汇、组件画法和禁忌,按题材找候选、读卡、混合或自创。`,instructions:`
|
|
102
102
|
# 风格库
|
|
103
103
|
|
|
104
104
|
风格卡是一种设计主张,写明主视觉、风格维度上的选择、取值范围、元素词汇、组件画法和禁忌。它不是模板:卡里没有固定的版面和坐标,
|
|
@@ -107,7 +107,7 @@ ${ha(ve[e.key],s=>oe[s]??s)}`}const ga=`
|
|
|
107
107
|
## 怎么用
|
|
108
108
|
1. **按题材找候选**:先读 slide-design 的 genres.md 判断题材,再看下面的“题材 → 候选风格卡”。候选按真实稿件里的使用占比排序,括号里是样本数。
|
|
109
109
|
优先在有样本的卡里按观众、场合和用户的话挑,不要每次都挑第一张。
|
|
110
|
-
2. **读卡**:用 \`skill_read\`(id ${
|
|
110
|
+
2. **读卡**:用 \`skill_read\`(id ${Se},file 写卡的 key 加 .md,如 ink-paper.md)读完整的卡。
|
|
111
111
|
从样本归纳出来的卡带有“真实稿件里的做法”:常见配色、封面版式(厘米坐标)、各类内页的网格与卡片、整套如何统一。这是上千套真实稿件的规律,按它起步,再按内容改。
|
|
112
112
|
3. **写设计语言**:\`setDeckDesign\` 的 style 写卡的 key。配色从卡的常见配色里挑一套贴近这份稿件气质的做起点,再按品牌或用户的话调;页面明暗和主色鲜艳度落在范围内,字体从卡里选,
|
|
113
113
|
母题和图像方式用卡的元素词汇。读稿视图会指出超出范围的地方。
|
|
@@ -120,15 +120,15 @@ ${ha(ve[e.key],s=>oe[s]??s)}`}const ga=`
|
|
|
120
120
|
## 风格卡一览
|
|
121
121
|
| key | 名称 | 主张 | 主视觉 | 无图可画 |
|
|
122
122
|
| --- | --- | --- | --- | --- |
|
|
123
|
-
${W.map(e=>`| ${e.key} | ${e.name} | ${e.idea} | ${e.hero.kinds.map(t=>
|
|
123
|
+
${W.map(e=>`| ${e.key} | ${e.name} | ${e.idea} | ${e.hero.kinds.map(t=>st[t]).join("、")} | ${xa(e)?"是":"用形状替代"} |`).join(`
|
|
124
124
|
`)}
|
|
125
125
|
|
|
126
126
|
## 题材 → 候选风格卡
|
|
127
127
|
| 题材 | 候选 |
|
|
128
128
|
| --- | --- |
|
|
129
|
-
${
|
|
129
|
+
${Ba.map(e=>`| ${le[e]} | ${va(e).map(t=>`${t.name}(${t.key}${ct(t)?`,${ct(t)} 套样本`:""})`).join("、")} |`).join(`
|
|
130
130
|
`)}
|
|
131
|
-
`,files:{...Object.fromEntries(W.map(e=>[it(e.key),fa(e)])),"reference.md":ga}});function xa(e){const t=q(e.style),r=e.custom;if(!t&&r)return{key:"custom",name:r.name,idea:r.idea,misfits:[],custom:{hero:r.hero,elements:[...r.elements],motifs:[...r.motifs??[]],taboos:[...r.taboos??[]],...r.source?{source:r.source}:{}}};if(!t)return;const a=q(e.blend),n=yr(t,{cover:Ee(e.palette,e.pages.cover.background),content:Ee(e.palette,e.pages.content.background),primary:e.palette.primary});return{key:t.key,name:t.name,idea:t.idea,...a?{blend:{key:a.key,name:a.name}}:{},card:{skill:Be,file:it(t.key)},misfits:n}}function ct(e,t,r,a,n){return{size:P(e),brief:Re(e),plan:vt(e),design:Ta(e,le(e)),directions:Tt(e).map(o=>{const s=q(o.design.style)?.name,d=n?.(e,o)??[];return{name:o.design.name,primary:o.design.palette.primary,...s?{style:s}:{},motif:o.design.motif,samples:o.samples.length,...d.length?{problems:d}:{}}}),slides:D(e).map(o=>{const s=he(o),d=new Map(M(o).map(i=>[C(i),i])),c={key:E(o),layout:s===null?null:Vt(s),hidden:Xt(o),notes:ze(o)??"",shapes:R(e,o,{lines:!0}).map(i=>{const p=d.get(i.id),y=i.kind==="text"?K(p):"",b=y===""&&(i.kind==="text"||i.kind==="other"||i.kind==="connector")?_e(p)??(i.kind==="connector"?"line":i.placeholder===null?"freeform":null):null;return{id:i.id,name:i.name,kind:i.kind,placeholder:i.placeholder,text:y,...i.parent===null?{}:{parent:i.parent},...b===null?{}:{form:b},...we(p)===void 0?{}:{pending:we(p)},bounds:{x:i.x,y:i.y,width:i.width,height:i.height},...i.kind==="table"?{table:Ke(p).map(F=>F.map(We))}:{},...i.kind==="chart"?{chart:Fa(p)}:{}}})},l=xe(o);return l.length>0&&Object.defineProperty(c,"builds",{enumerable:!0,value:l}),a!==void 0&&Object.defineProperty(c,"structure",{enumerable:!0,get:()=>a.read(e,o)}),r!==void 0&&Object.defineProperty(c,"design",{enumerable:!0,get:()=>{const i=r.measure(e,o);return a===void 0?i:Te(e,o,i,a.read(e,o),t?.text(e,o))}}),t===void 0?c:Object.defineProperty(c,"problems",{enumerable:!0,get:()=>{const i=t.peek(e,o);return i===void 0&&t.settle(e),(i??[]).map(p=>({...p,shapes:[...p.shapes]}))}})})}}function Fa(e){const t=jt(e)??[];return{kind:Pt(e)??"chart",categories:Ot(e)??[],series:t.map(r=>({name:r,values:zt(e,r)??[]}))}}function Ta(e,t){if(!t)return null;const r=i=>typeof i=="string"?i:`${i.radial?"a radial":"a"} gradient from ${i.from} to ${i.to}`,a=Object.fromEntries(Object.entries(t.pages).map(([i,p])=>[i,{background:r(p.background),text:p.text}])),{style:n,blend:o,skin:s,custom:d,...c}=t,l=xa(t);return{...c,grid:Bt(Lt(e,t.margin,t.type.title)),...l?{style:l}:{},...s?{skin:Object.fromEntries(Object.entries(s))}:{},palette:{...t.palette},type:{...t.type},pages:a}}function dt(e,t){return e==="addSlide"||e==="duplicateSlide"?!0:e==="drawSlide"&&t?.replace!==!0}function va(e,t,r,a){const n=e.factories[r];if(n===void 0)return{ok:!1,reason:`${r} is not installed`};const o=n(a);let s;try{s=o({presentation:t,dispatch:!1})}catch(d){return{ok:!1,reason:d instanceof Ft?d.message:`${r} cannot apply these values: ${d instanceof Error?d.message:String(d)}`}}return s?(o({presentation:t,dispatch:!0}),{ok:!0,changed:!0}):{ok:!1,reason:`${r} does not apply here; check the ids and values against the view`}}const Ba=/^qk:draw:e(\d+)-/u,Ca=12;function Sa(e){const t=new Map;return(r,a)=>{const n=JSON.stringify(a),o=t.get(n);if(o!==void 0)return o;const s=a.samples.flatMap((d,c)=>{const l=Ct(r,a,c),i=new Map(M(l.slide).map(p=>[C(p),Number(Ba.exec(_(p)??"")?.[1])]));return e.check(l.presentation,l.slide).flatMap(p=>{const y=p.shapes.map(b=>i.get(b)).filter(b=>b!==void 0&&Number.isFinite(b));return y.length===0?[]:[{sample:c+1,kind:p.kind,objects:y,amount:p.amount}]})});return t.size>=Ca&&t.clear(),t.set(n,s),s}}function ht(e,t,r,a={}){const{document:n,table:o}=e,s=Je(t),d=U(),c=a.samples===void 0?void 0:Sa(a.samples),l=new Set;let i=!0,p;const y=()=>{t!==void 0&&(clearTimeout(p),p=setTimeout(()=>{t.settle(n.presentation())},400))},b=n.subscribe(h=>{h.content&&!h.live&&y()});return y(),{isOpen:()=>i,isEditable:()=>i,onDestroy(h){return l.add(h),()=>l.delete(h)},revision:()=>String(n.version()),read:()=>({...ct(n.presentation(),t,s,d,c),...a.pictures?{pictures:!0}:{}}),settle:()=>t?.settle(n.presentation())??Promise.resolve(),selection:()=>n.selection(),...r===void 0?{}:{picture:async h=>({data:Da(await r(h,Ea)),mimeType:"image/png"})},commands(){const h=new Map;for(const[m,k]of o.descriptors()){const{description:u,params:f,target:g,kinds:w,ordinals:S,risk:x,standalone:L,category:B,group:A,planning:O}=k;h.set(m,{description:u,params:f,target:g,kinds:w,ordinals:S,risk:x,standalone:L,category:B,group:A,planning:O,label:Dr[m]})}return h},apply(h){const m=h.map(()=>({ok:!1,reason:"not run"}));let k=-1;try{n.transact("AI 修改",u=>{let f=!1;const g=[],w=new Map;return h.forEach((S,x)=>{k=x;const L=new Set(D(u).map(E)),B=F(u,S,g,w),A=D(u).map(E).filter(O=>!L.has(O));g.push(...A),m[x]=B.ok&&A.length>0?{...B,created:A}:B,B.ok&&B.changed&&(f=!0)}),k=-1,f?!0:null},"agent")}catch(u){if(k<0)throw u;const f=u instanceof Error?u.message:String(u);return h.map((g,w)=>({ok:!1,reason:w===k?`it failed while editing: ${f}`:"not applied, because another operation of this call failed while editing and the whole call was taken back; send this one again"}))}return m},checkpoint:()=>n.save(),async revert(h,m){const k=await h,u=await m,f=await n.save();if(La(f,u))return n.adopt(k,"撤回 AI 修改","agent");const g=pr(u,f,k);return g.ok?n.adopt(g.bytes,"撤回 AI 修改","agent"):!1},subscribe(h){return n.subscribe(m=>{m.content&&!m.live&&h({agent:m.origin==="agent"})})},close(){if(i){i=!1,clearTimeout(p),b();for(const h of[...l])h();l.clear()}}};function F(h,m,k,u){switch(m.kind){case"replace":return T(h,"setShapeText",{slide:m.slide,shape:m.shape,text:m.text});case"replace_text":return T(h,"replaceShapeText",{slide:m.slide,shape:m.shape,find:m.find,replace:m.replace,occurrence:m.occurrence});case"replace_all":{const f=wt(h,m.slide,m.shape);if(f===null)return{ok:!1,reason:"the shape no longer exists"};const g=K(f).split(m.find).length-1;for(let w=g-1;w>=0;w-=1){const S=T(h,"replaceShapeText",{slide:m.slide,shape:m.shape,find:m.find,replace:m.replace,occurrence:w});if(!S.ok)return S}return{ok:!0,changed:g>0}}case"delete_shape":return T(h,"deleteShape",{slide:m.slide,shape:m.shape});case"delete_slide":return T(h,"deleteSlide",{slide:m.slide});case"move_slide":return T(h,"moveSlide",{slide:m.slide,to:m.to});case"command":{const f=m.name,g=o.descriptors().get(f);if(g===void 0)return{ok:!1,reason:`${m.name} is not a described command`};let w=m.target.created===void 0?m.target.slide:k[m.target.created];const S=(m.target.created===k.length||m.target.created===void 0&&w===null&&g.target==="slide")&&dt(f,m.params);if(S&&(w=D(h).map(E).at(-1)),w===void 0)return{ok:!1,reason:"the slide it names was not added by the earlier operations of this call; read the deck for its id"};const x=!S&&typeof w=="string"&&dt(f,m.params)?w:void 0;x!==void 0&&(w=u.get(x)??x);const L={presentation:h,slide:w,shape:m.target.shape,text:m.target.text,prepared:void 0,...m.target.shapes===void 0?{}:{shapes:m.target.shapes},icons:a.icons?.(),pictures:a.pictures===!0},B=g.adapt===void 0?m.params:g.adapt(m.params,L);if(B===null)return{ok:!1,reason:w===null&&g.target==="slide"?"name the slide it acts on":"nothing in the deck matches the parameters"};const A=x===void 0?void 0:new Set(D(h).map(E)),O=T(h,f,B),Ce=A&&D(h).map(E).filter(ft=>!A.has(ft)).at(-1);return x!==void 0&&Ce&&u.set(x,Ce),!O.ok&&g.satisfied?.(m.params,L)===!0?{ok:!0,changed:!1}:O}}}function T(h,m,k){return va(o,h,m,k)}}function La(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1)if(e[r]!==t[r])return!1;return!0}const Ea=1024;function Da(e){let t="";for(let r=0;r<e.length;r+=32768)t+=String.fromCharCode(...e.subarray(r,r+32768));return btoa(t)}const Ma=/^qk:draw:/u,Ra=1600;async function Na(e,t,r){const a=e.presentation(),n=new Map;for(const o of D(a)){const s=E(o);for(const d of M(o)){if(r?.aborted||!Ma.test(_(d)??""))continue;const c=qt(d),l=kt(a,s,d),i=_t(d),p=c?I(a,c):null,y=l?I(a,l):null;if(!c||!y||!i||!p||!Me(p)||n.has(c))continue;const b=Ra/Math.max(i.w,i.h,1),F=await St(t,new TextDecoder().decode(y),i.w*b,i.h*b);F&&n.set(c,F)}}return n.size===0||r?.aborted?0:e.transact("生成插画位图",o=>{let s=!1;for(const[d,c]of n){const l=I(o,d);l&&Me(l)&&(s=er(o,d,c)||s)}return s?!0:null},"agent")?n.size:0}const $a=N({id:"component-library",name:"组件库",category:"演示文稿",description:`排版内容页前读:${Se.length} 个组件(标题组、内容页标题区、引言块、卡片组、指标组、步骤、时间轴、目录、对比栏、模拟邮件、模拟手机聊天、模拟网页),drawSlide 的 component 对象给一个框和内容,编辑器按整套稿件的组件皮肤排好。`,instructions:`
|
|
131
|
+
`,files:{...Object.fromEntries(W.map(e=>[ot(e.key),Fa(e)])),"reference.md":Ta}});function Sa(e){const t=Q(e.style),r=e.custom;if(!t&&r)return{key:"custom",name:r.name,idea:r.idea,misfits:[],custom:{hero:r.hero,elements:[...r.elements],motifs:[...r.motifs??[]],taboos:[...r.taboos??[]],...r.source?{source:r.source}:{}}};if(!t)return;const a=Q(e.blend),n=vr(t,{cover:Me(e.palette,e.pages.cover.background),content:Me(e.palette,e.pages.content.background),primary:e.palette.primary});return{key:t.key,name:t.name,idea:t.idea,...a?{blend:{key:a.key,name:a.name}}:{},card:{skill:Se,file:ot(t.key)},misfits:n}}const La=new Set(["off-palette","type-levels","header-drift","stray-line","empty-box","near-alignment","weak-hierarchy","small-text"]),Ea=e=>new Set(M(e).filter(t=>_(t)?.startsWith(Bt)).map(C));function dt(e,t,r,a,n,i){const s=K(e)!==null;return{size:j(e),brief:Ne(e),plan:St(e),design:Ma(e,de(e)),directions:Lt(e).map(c=>{const d=Q(c.design.style)?.name,l=n?.(e,c)??[];return{name:c.design.name,primary:c.design.palette.primary,...d?{style:d}:{},motif:c.design.motif,samples:c.samples.length,...l.length?{problems:l}:{}}}),slides:L(e).map(c=>{const d=me(c),l=new Map(M(c).map(u=>[C(u),u])),o={key:D(c),layout:d===null?null:er(d),hidden:ar(c),notes:Ke(c)??"",shapes:R(e,c,{lines:!0}).map(u=>{const f=l.get(u.id),F=u.kind==="text"?I(f):"",T=F===""&&(u.kind==="text"||u.kind==="other"||u.kind==="connector")?Pe(f)??(u.kind==="connector"?"line":u.placeholder===null?"freeform":null):null;return{id:u.id,name:u.name,kind:u.kind,placeholder:u.placeholder,text:F,...u.parent===null?{}:{parent:u.parent},...T===null?{}:{form:T},...xe(f)===void 0?{}:{pending:xe(f)},bounds:{x:u.x,y:u.y,width:u.width,height:u.height},...u.kind==="table"?{table:He(f).map(h=>h.map(Ie))}:{},...u.kind==="chart"?{chart:Da(f)}:{}}})},m=Te(c);return m.length>0&&Object.defineProperty(o,"builds",{enumerable:!0,value:m}),a!==void 0&&Object.defineProperty(o,"structure",{enumerable:!0,get:()=>a.read(e,c)}),r!==void 0&&Object.defineProperty(o,"design",{enumerable:!0,get:()=>{const u=r.measure(e,c),f=a===void 0?u:Be(e,c,u,a.read(e,c),t?.text(e,c));if(!s)return f;const F=Ea(c);return{...f,facts:f.facts.filter(T=>T.kind==="low-contrast"?F.has(T.shape):!La.has(T.kind))}}}),t===void 0?o:Object.defineProperty(o,"problems",{enumerable:!0,get:()=>{const u=t.peek(e,c);return u===void 0&&t.settle(e),(u??[]).filter(f=>!i?.(f)).map(f=>({...f,shapes:[...f.shapes]}))}})})}}function Da(e){const t=Ht(e)??[];return{kind:It(e)??"chart",categories:Kt(e)??[],series:t.map(r=>({name:r,values:qt(e,r)??[]}))}}function Ma(e,t){if(!t)return null;const r=u=>typeof u=="string"?u:`${u.radial?"a radial":"a"} gradient from ${u.from} to ${u.to}`,a=Object.fromEntries(Object.entries(t.pages).map(([u,f])=>[u,{background:r(f.background),text:f.text}])),{style:n,blend:i,skin:s,custom:c,literal:d,...l}=t,o=Sa(t),m=K(e)?{}:{grid:Tt(Ct(e,t.margin,t.type.title))};return{...l,...m,...o?{style:o}:{},...s?{skin:Object.fromEntries(Object.entries(s))}:{},palette:{...t.palette},type:{...t.type},pages:a}}function ht(e,t){return e==="addSlide"||e==="duplicateSlide"?!0:(e==="drawSlide"||e==="addTemplatePage")&&t?.replace!==!0}function Ra(e,t,r,a){const n=e.factories[r];if(n===void 0)return{ok:!1,reason:`${r} is not installed`};const i=n(a);let s;try{s=i({presentation:t,dispatch:!1})}catch(c){return{ok:!1,reason:c instanceof Ft?c.message:`${r} cannot apply these values: ${c instanceof Error?c.message:String(c)}`}}return s?(i({presentation:t,dispatch:!0}),{ok:!0,changed:!0}):{ok:!1,reason:`${r} does not apply here; check the ids and values against the view`}}const Na=/^qk:draw:e(\d+)-/u,$a=12;function Aa(e){const t=new Map;return(r,a)=>{const n=JSON.stringify(a),i=t.get(n);if(i!==void 0)return i;const s=a.samples.flatMap((c,d)=>{const l=Et(r,a,d),o=new Map(M(l.slide).map(m=>[C(m),Number(Na.exec(_(m)??"")?.[1])]));return e.check(l.presentation,l.slide).flatMap(m=>{const u=m.shapes.map(f=>o.get(f)).filter(f=>f!==void 0&&Number.isFinite(f));return u.length===0?[]:[{sample:d+1,kind:m.kind,objects:u,amount:m.amount}]})});return t.size>=$a&&t.clear(),t.set(n,s),s}}const pt=e=>({key:e.key,...e.role==="picture"?{picture:!0}:{},...e.limit===void 0?{}:{limit:e.limit},...e.fixed?{fixed:e.sample??""}:{}});function _a(e){try{return I(e).trim().slice(0,60)}catch{return""}}function Oa(e,t){const r=new Set(t.manifest.pages.flatMap(a=>[...a.slots,...a.items?.members.flatMap(n=>n.slots)??[]]).flatMap(a=>a.fixed||!a.sample||a.shape===void 0?[]:[`${a.shape}:${a.sample}`]));return L(e).filter(a=>M(a).some(n=>r.has(`${C(n)}:${_a(n)}`))).map(D)}function Pa(e,t){const r=K(e);if(!r)return{};if(!t)return{template:{name:r.name,pages:null,samples:[]}};const{manifest:a}=t;return{template:{name:r.name,...a.notes?{notes:a.notes}:{},samples:Oa(e,t),pages:a.pages.map(n=>({key:n.key,kind:n.kind,name:n.name,slots:n.slots.map(pt),...n.area?{area:n.area}:{},...n.items?{items:{least:xt(n.items),count:n.items.members.length,layout:n.items.layout,slots:n.items.members[0].slots.map(pt)}}:{}}))}}}const Le=e=>`${e.kind}:${e.shapes.join(",")}`;function ja(e,t){let r;return a=>{if(r===void 0){r=new Map;for(const i of L(e.presentation))for(const s of t.peek(e.presentation,i)??[])r.set(Le(s),Math.max(s.amount,r.get(Le(s))??0))}const n=r.get(Le(a));return n!==void 0&&a.amount<=n+36e3}}function mt(e,t,r,a={}){const{document:n,table:i}=e,s=Xe(t),c=V(),d=a.samples===void 0?void 0:Aa(a.samples),l=new Set;let o=!0,m;const u=()=>{t!==void 0&&(clearTimeout(m),m=setTimeout(()=>{t.settle(n.presentation())},400))},f=n.subscribe(h=>{h.content&&!h.live&&u()});return u(),{isOpen:()=>o,isEditable:()=>o,onDestroy(h){return l.add(h),()=>l.delete(h)},revision:()=>String(n.version()),read(){const h=n.presentation(),p=e.templates.current(h);return{...dt(h,t,s,c,d,p&&a.samples?ja(p,a.samples):void 0),...a.pictures?{pictures:!0}:{},...Pa(h,p)}},async settle(){const h=e.templates.current(n.presentation());await t?.settle(n.presentation()),h&&await a.samples?.settle(h.presentation)},selection:()=>n.selection(),...r===void 0?{}:{picture:async h=>({data:Ia(await r(h,Ka)),mimeType:"image/png"})},commands(){const h=new Map,p=K(n.presentation())!==null;for(const[w,b]of i.descriptors()){if(p?Wa.has(w):w==="addTemplatePage")continue;const{description:g,params:y,target:k,kinds:E,ordinals:x,risk:B,standalone:S,category:A,group:O,planning:G}=b;h.set(w,{description:g,params:y,target:k,kinds:E,ordinals:x,risk:B,standalone:S,category:A,group:O,planning:G,label:_r[w]})}return h},apply(h){const p=h.map(()=>({ok:!1,reason:"not run"}));let w=-1;try{n.transact("AI 修改",b=>{let g=!1;const y=[],k=new Map;return h.forEach((E,x)=>{w=x;const B=new Set(L(b).map(D)),S=F(b,E,y,k),A=L(b).map(D).filter(O=>!B.has(O));y.push(...A),p[x]=S.ok&&A.length>0?{...S,created:A}:S,S.ok&&S.changed&&(g=!0)}),w=-1,g?!0:null},"agent")}catch(b){if(w<0)throw b;const g=b instanceof Error?b.message:String(b);return h.map((y,k)=>({ok:!1,reason:k===w?`it failed while editing: ${g}`:"not applied, because another operation of this call failed while editing and the whole call was taken back; send this one again"}))}return p},checkpoint:()=>n.save(),async revert(h,p){const w=await h,b=await p,g=await n.save();if(za(g,b))return n.adopt(w,"撤回 AI 修改","agent");const y=yr(b,g,w);return y.ok?n.adopt(y.bytes,"撤回 AI 修改","agent"):!1},subscribe(h){return n.subscribe(p=>{p.content&&!p.live&&h({agent:p.origin==="agent"})})},close(){if(o){o=!1,clearTimeout(m),f();for(const h of[...l])h();l.clear()}}};function F(h,p,w,b){switch(p.kind){case"replace":return T(h,"setShapeText",{slide:p.slide,shape:p.shape,text:p.text});case"replace_text":return T(h,"replaceShapeText",{slide:p.slide,shape:p.shape,find:p.find,replace:p.replace,occurrence:p.occurrence});case"replace_all":{const g=Rt(h,p.slide,p.shape);if(g===null)return{ok:!1,reason:"the shape no longer exists"};const y=I(g).split(p.find).length-1;for(let k=y-1;k>=0;k-=1){const E=T(h,"replaceShapeText",{slide:p.slide,shape:p.shape,find:p.find,replace:p.replace,occurrence:k});if(!E.ok)return E}return{ok:!0,changed:y>0}}case"delete_shape":return T(h,"deleteShape",{slide:p.slide,shape:p.shape});case"delete_slide":return T(h,"deleteSlide",{slide:p.slide});case"move_slide":return T(h,"moveSlide",{slide:p.slide,to:p.to});case"command":{const g=p.name,y=i.descriptors().get(g);if(y===void 0)return{ok:!1,reason:`${p.name} is not a described command`};let k=p.target.created===void 0?p.target.slide:w[p.target.created];const E=(p.target.created===w.length||p.target.created===void 0&&k===null&&y.target==="slide")&&ht(g,p.params);if(E&&(k=L(h).map(D).at(-1)),k===void 0)return{ok:!1,reason:"the slide it names was not added by the earlier operations of this call; read the deck for its id"};const x=!E&&typeof k=="string"&&ht(g,p.params)?k:void 0;x!==void 0&&(k=b.get(x)??x);const B={presentation:h,slide:k,shape:p.target.shape,text:p.target.text,prepared:void 0,...p.target.shapes===void 0?{}:{shapes:p.target.shapes},icons:a.icons?.(),pictures:a.pictures===!0},S=y.adapt===void 0?p.params:y.adapt(p.params,B);if(S===null)return{ok:!1,reason:k===null&&y.target==="slide"?"name the slide it acts on":"nothing in the deck matches the parameters"};const A=x===void 0?void 0:new Set(L(h).map(D)),O=T(h,g,S),G=A&&L(h).map(D).filter(yt=>!A.has(yt)).at(-1);return x!==void 0&&G&&b.set(x,G),!O.ok&&y.satisfied?.(p.params,B)===!0?{ok:!0,changed:!1}:O}}}function T(h,p,w){return Ra(i,h,p,w)}}function za(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1)if(e[r]!==t[r])return!1;return!0}const Wa=new Set(["setDeckDesign","setDeckDirections","setDeckColors","setDeckFonts","drawSlide"]),Ka=1024;function Ia(e){let t="";for(let r=0;r<e.length;r+=32768)t+=String.fromCharCode(...e.subarray(r,r+32768));return btoa(t)}const Ha=/^qk:draw:/u,qa=1600;async function Ga(e,t,r){const a=e.presentation(),n=new Map;for(const i of L(a)){const s=D(i);for(const c of M(i)){if(r?.aborted||!Ha.test(_(c)??""))continue;const d=Jt(c),l=wt(a,s,c),o=Wt(c),m=d?H(a,d):null,u=l?H(a,l):null;if(!d||!u||!o||!m||!Re(m)||n.has(d))continue;const f=qa/Math.max(o.w,o.h,1),F=await Dt(t,new TextDecoder().decode(u),o.w*f,o.h*f);F&&n.set(d,F)}}return n.size===0||r?.aborted?0:e.transact("生成插画位图",i=>{let s=!1;for(const[c,d]of n){const l=H(i,c);l&&Re(l)&&(s=or(i,c,d)||s)}return s?!0:null},"agent")?n.size:0}const Qa=N({id:"component-library",name:"组件库",category:"演示文稿",description:`排版内容页前读:${De.length} 个组件(标题组、内容页标题区、引言块、卡片组、指标组、步骤、时间轴、目录、对比栏、模拟邮件、模拟手机聊天、模拟网页),drawSlide 的 component 对象给一个框和内容,编辑器按整套稿件的组件皮肤排好。`,instructions:`
|
|
132
132
|
# 组件库
|
|
133
133
|
|
|
134
134
|
组件是按风格换皮的版面单元:你给一个框(x、y、w、h,厘米)和内容,编辑器按设计语言的组件皮肤画出卡片、徽章、编号和文字,
|
|
@@ -143,15 +143,15 @@ ${wa.map(e=>`| ${oe[e]} | ${ya(e).map(t=>`${t.name}(${t.key}${lt(t)?`,${lt(t
|
|
|
143
143
|
|
|
144
144
|
## 组件皮肤
|
|
145
145
|
设计语言的 skin 决定组件长什么样,整套统一;不写时用风格卡的默认皮肤。
|
|
146
|
-
${Object.entries(
|
|
146
|
+
${Object.entries(Mt).map(([e,t])=>`- ${e}:${t.join("、")}`).join(`
|
|
147
147
|
`)}
|
|
148
148
|
|
|
149
149
|
## 组件一览
|
|
150
150
|
| 组件 | 名称 | 内容字段 | 变体 | 用法 |
|
|
151
151
|
| --- | --- | --- | --- | --- |
|
|
152
|
-
${
|
|
152
|
+
${De.map(e=>`| ${e.name} | ${e.label} | ${e.needs.join("、")}${e.items?`(${e.items[0]}–${e.items[1]} 项)`:""} | ${e.variants.map(([t,r])=>`${t}(${r})`).join(";")} | ${e.usage} |`).join(`
|
|
153
153
|
`)}
|
|
154
|
-
`}),
|
|
154
|
+
`}),Ua={"composition.md":`
|
|
155
155
|
# 构图类型
|
|
156
156
|
|
|
157
157
|
版式从这一页要做的事推出来,不从菜单里挑。先问:这一页在提出问题、证明观点、停顿,还是收尾?视觉主角是什么?
|
|
@@ -192,7 +192,7 @@ ${Se.map(e=>`| ${e.name} | ${e.label} | ${e.needs.join("、")}${e.items?`(${e.
|
|
|
192
192
|
- 文字框要给够高度:一行字高约为字号(磅)× 0.035 × 1.3 厘米;中文一个字宽约为字号 × 0.035 厘米。放不下就删字、拆页或放大框,不要缩字硬塞。
|
|
193
193
|
- 后画的对象在上层:背景色块和光晕先画,卡片其次,文字最后。
|
|
194
194
|
- 截图、代码这类素材:一页只讲一个区域或几行,其余进备注或拆页。
|
|
195
|
-
`},
|
|
195
|
+
`},Va={"words.md":`
|
|
196
196
|
# 标题与文字
|
|
197
197
|
|
|
198
198
|
- 标题写结论,不写话题:“退款周期是投诉的主要来源”,不是“退款情况”。不超过 20 个汉字。
|
|
@@ -255,7 +255,7 @@ ${Se.map(e=>`| ${e.name} | ${e.label} | ${e.needs.join("、")}${e.items?`(${e.
|
|
|
255
255
|
- 每页至少有一个不是文字的元素:形状、图标、图表、大数字、模拟物件。
|
|
256
256
|
- 对齐、对比、重复、亲密:同类元素对齐到同一条边;层级之间字号拉开;同类页面的标题位置一致;相关的东西靠近、无关的东西分开。
|
|
257
257
|
- 深底上的正文接近白色;没有标题下划线、页边细色条这类装饰。
|
|
258
|
-
`},
|
|
258
|
+
`},Ja={"genres.md":`
|
|
259
259
|
# 题材视觉语言
|
|
260
260
|
|
|
261
261
|
先判断稿件属于哪个题材,再在这个题材的语言里做出这份稿件自己的样子。每个题材的候选风格卡见风格库技能(style-library)的“题材 → 候选风格卡”。每个题材都列了两种以上的做法,挑一种或混合,
|
|
@@ -355,7 +355,7 @@ ${Se.map(e=>`| ${e.name} | ${e.label} | ${e.needs.join("、")}${e.items?`(${e.
|
|
|
355
355
|
|
|
356
356
|
## 没有对应题材时
|
|
357
357
|
从观众和场合推:给谁看、希望他们有什么感受,然后在 style.md 的风格维度上逐项做决定。
|
|
358
|
-
`},
|
|
358
|
+
`},Xa={"style.md":`
|
|
359
359
|
# 设计语言与风格维度
|
|
360
360
|
|
|
361
361
|
设计语言是这份稿件的一组决定,用 setDeckDesign 写进文件,之后每页都照它画。
|
|
@@ -408,10 +408,10 @@ ${Se.map(e=>`| ${e.name} | ${e.label} | ${e.needs.join("、")}${e.items?`(${e.
|
|
|
408
408
|
- 读稿视图写明可以生成图片时,封面、章节页和需要场景的页放 image 对象,prompt 写清主体、构图、风格、色调,与设计语言一致。
|
|
409
409
|
不能生成图片时,抽象的主视觉用元素库(element-library)的 motif 画(光晕、圆环、丝带、粒子、远山、窗格、印章……),不留空图框;
|
|
410
410
|
人物、动物、物件这类具象画面用 illustration 对象自己画 SVG 插画,不用形状硬拼。
|
|
411
|
-
`},
|
|
411
|
+
`},Za=N({id:"slide-design",name:"幻灯片设计大脑",category:"演示文稿",description:"做或改任何演示文稿前读:读场合、定故事线、按题材选风格卡定风格、逐页当镜头来导演、画完看图自审。附题材视觉语言、风格维度、构图类型、标题与文字、节奏、改稿、动画、审稿清单八个主题文件。",instructions:`
|
|
412
412
|
# 设计大脑
|
|
413
413
|
|
|
414
|
-
|
|
414
|
+
这份稿件只为这个场合、这群观众而做。视图写明用户选定了模板时,样子由模板决定:照常读场合、定故事线,跳过“定风格”,逐页从模板页面里选合适的来填。没有选定模板时,样子全部由你设计;如果把这份稿件的封面换到别的主题上也成立,就说明还不够具体。
|
|
415
415
|
|
|
416
416
|
## 一、读场合
|
|
417
417
|
- 先分清是**给人讲的**还是**给人看的**。讲的稿配合演讲者,屏幕只放观众要看的,解释、例子、过渡句进备注;看的稿要能自己读懂,可以更密。
|
|
@@ -423,7 +423,7 @@ ${Se.map(e=>`| ${e.name} | ${e.label} | ${e.needs.join("、")}${e.items?`(${e.
|
|
|
423
423
|
- 从零做而用户没给内容:先用 \`setDeckPlan\` 写草稿故事线(每页结论、证明方式、缺的事实),回复只问会被编造的事实,最多三问,不在回复里重复大纲。用户确认(视图显示 confirmed)或说直接做,再往下走。
|
|
424
424
|
- 名称、数字、电话、日期不编,缺了写醒目的占位(如【公司热线】)并在回复里列出。
|
|
425
425
|
|
|
426
|
-
##
|
|
426
|
+
## 三、定风格(没有选定模板时)
|
|
427
427
|
1. **判断题材**:读 genres.md,找到这份稿件属于什么题材(机关单位宣讲、课堂、儿童、科技发布、商务汇报、国风、营销……),记下这个题材的用色、元素、字体性格和禁忌。题材决定底色和气质,不要把所有稿件都做成浅色纸面加深色封面。
|
|
428
428
|
2. **选风格卡**:读风格库技能(style-library),在这个题材的候选卡里按观众和用户的话挑一张,读完整的卡;需要时混合第二张,或在没有卡对得上时自创。
|
|
429
429
|
3. **写设计语言**:用 \`setDeckDesign\` 写下来,style 写卡的 key,见 style.md:
|
|
@@ -455,7 +455,7 @@ ${Se.map(e=>`| ${e.name} | ${e.label} | ${e.needs.join("、")}${e.items?`(${e.
|
|
|
455
455
|
# 主题文件
|
|
456
456
|
风格卡在 style-library,参数化的装饰与主视觉元素在 element-library,版面组件在 component-library。用 \`skill_read\` 读:genres.md(题材视觉语言)、style.md(设计语言与风格维度)、composition.md(构图类型)、words.md(标题与文字)、
|
|
457
457
|
rhythm.md(整套节奏)、split.md(改已有稿件、换风格与拆页)、motion.md(动画)、checklist.md(审稿清单)。第一次用到某类问题时读一次即可。
|
|
458
|
-
`,files:{...
|
|
458
|
+
`,files:{...Ja,...Xa,...Ua,...Va}}),Ya={"big-number.md":`
|
|
459
459
|
# 大数字
|
|
460
460
|
|
|
461
461
|
一页只讲一个数字时,数字本身就是画面。标题写这个数字说明了什么。
|
|
@@ -505,7 +505,7 @@ rhythm.md(整套节奏)、split.md(改已有稿件、换风格与拆页)
|
|
|
505
505
|
- 画法:两根柱子,要强调的那根用强调色,另一根用 muted。
|
|
506
506
|
- 好在哪:两根柱子,差距一眼可见;选柱状图而不是饼图,因为比较的是两个量的大小。
|
|
507
507
|
- 常见错误:用饼图比较两个独立的比例;或者数据只有两个却画成表格。
|
|
508
|
-
`},
|
|
508
|
+
`},en={"cover.md":`
|
|
509
509
|
# 封面
|
|
510
510
|
|
|
511
511
|
封面只做两件事:说清这份稿件讲什么,让人想听下去。标题是一句话,不是一个名词。封面最能体现题材,同一个标题在不同题材里应该长得完全不同。
|
|
@@ -549,7 +549,7 @@ rhythm.md(整套节奏)、split.md(改已有稿件、换风格与拆页)
|
|
|
549
549
|
- **汇报的下一步**:标题「预算从投放转向内容运营」,下方用强调色的块单独标出“需要决定:内容团队增加 2 人”。
|
|
550
550
|
- **机关单位**:红金底,中轴对称,一句号召(如「立足岗位,接续奋斗」)宋体大字居中,下方落款单位与日期。
|
|
551
551
|
- 常见错误:结束页重复一遍目录,或只写「Q&A」。
|
|
552
|
-
`},
|
|
552
|
+
`},tn={"steps.md":`
|
|
553
553
|
# 步骤
|
|
554
554
|
|
|
555
555
|
有先后顺序的内容排成一条路径,3–5 步;每步一个短标题加一句说明。
|
|
@@ -602,7 +602,7 @@ rhythm.md(整套节奏)、split.md(改已有稿件、换风格与拆页)
|
|
|
602
602
|
- 画法:表格占正文区主要宽度,行高给足;“是”和“否”可以用颜色区分。
|
|
603
603
|
- 好在哪:三列四行,一眼能找到答案;每格很短。
|
|
604
604
|
- 常见错误:把整章的知识点放进一张 8 列的大表,字号被压到 10pt 以下。拆成几页,或者只保留这一页要讲的列。
|
|
605
|
-
`},
|
|
605
|
+
`},rn={"quote.md":`
|
|
606
606
|
# 引用
|
|
607
607
|
|
|
608
608
|
一句有分量的话独占一页,是整套里的强拍。
|
|
@@ -634,7 +634,7 @@ rhythm.md(整套节奏)、split.md(改已有稿件、换风格与拆页)
|
|
|
634
634
|
- 画法:三条之间留足行距,每条前用一个和母题一致的小标记。
|
|
635
635
|
- 好在哪:列表短、条目少,是总结而不是讲稿。
|
|
636
636
|
- 常见错误:整套每一页都是标题加 6 条要点,这是最常见、最需要避免的默认样子。
|
|
637
|
-
`},
|
|
637
|
+
`},an=N({id:"slide-exemplars",name:"幻灯片范例",category:"演示文稿",description:"按页面用途分类的好页面范例:每个范例写清适合什么内容、可以怎么画、为什么好、常见的错误做法。做某一类页面前读对应文件。",instructions:`
|
|
638
638
|
# 怎么用
|
|
639
639
|
|
|
640
640
|
做一页之前,先想这一页的用途,读对应的文件,参考它的取舍,再按自己的内容和设计语言重新画。范例里的画法是一种可能,不是模板;不要照抄范例里的文字、数字和版式。
|
|
@@ -655,7 +655,7 @@ rhythm.md(整套节奏)、split.md(改已有稿件、换风格与拆页)
|
|
|
655
655
|
| 解释一个概念、确实需要列表时 | explain.md |
|
|
656
656
|
|
|
657
657
|
一次读一两个文件就够;同一类页面在这次对话里读过就不用再读。
|
|
658
|
-
`,files:{...
|
|
658
|
+
`,files:{...en,...Ya,...tn,...rn}}),ut={geometry:"几何",light:"光",nature:"山水与纹样",frame:"边框"},ft=[Za,Ca,N({id:"element-library",name:"元素库",category:"演示文稿",description:`画主视觉和装饰前读:${Ee.length} 个参数化矢量元素(点阵、圆环与仪表、有机形、斜切块、波浪、网格、电路、光晕、丝带、粒子、光线、远山、海浪纹、窗格、印章、边框等),drawSlide 的 motif 对象一次画成一组可编辑形状。`,instructions:`
|
|
659
659
|
# 元素库
|
|
660
660
|
|
|
661
661
|
元素库里的每个元素都是参数化的矢量图形:给一个框(x、y、w、h,厘米),编辑器按框的大小画出整组形状并编成一组,可以整体移动、缩放和改色。
|
|
@@ -672,14 +672,14 @@ rhythm.md(整套节奏)、split.md(改已有稿件、换风格与拆页)
|
|
|
672
672
|
- **跟着风格卡走**:每张风格卡列了适合它的元素;同一套稿件反复用同一两个元素,就成了母题。
|
|
673
673
|
- **只做抽象**:元素库只有光、线、纹理、框这类抽象图形。人物、动物、建筑、植物这类具象画面用生成图片,不能生成时用 illustration 对象自己画 SVG 插画;不用元素库或形状拼简笔画。
|
|
674
674
|
|
|
675
|
-
${Object.keys(
|
|
675
|
+
${Object.keys(ut).map(e=>`## ${ut[e]}
|
|
676
676
|
| 元素 | 名称 | 变体 | 用法 | 常用于风格 |
|
|
677
677
|
| --- | --- | --- | --- | --- |
|
|
678
|
-
${
|
|
678
|
+
${Ee.filter(t=>t.category===e).map(t=>`| ${t.name} | ${t.label} | ${t.variants.map(([r,a])=>`${r}(${a})`).join(";")} | ${t.usage} | ${W.filter(r=>r.motifs.includes(t.name)).map(r=>r.name).join("、")||"按需"} |`).join(`
|
|
679
679
|
`)}`).join(`
|
|
680
680
|
|
|
681
681
|
`)}
|
|
682
|
-
`})
|
|
682
|
+
`}),Qa,an,N({id:"slides-lecture",name:"课堂课件",category:"演示文稿",description:"做或改上课用的课件(中小学、大学、培训):一页一个知识点、例题与练习页、术语和讲稿进备注。",instructions:`
|
|
683
683
|
# 适用
|
|
684
684
|
老师现场讲的课件。学生要记笔记、跟着做练习,所以要清楚、有节奏,而不是一次看完。
|
|
685
685
|
|
|
@@ -748,16 +748,16 @@ ${De.filter(t=>t.category===e).map(t=>`| ${t.name} | ${t.label} | ${t.variants.m
|
|
|
748
748
|
|
|
749
749
|
# 设计语言与动画
|
|
750
750
|
读 genres.md 的“自媒体知识卡”:高对比整版色、粗大的标题字,一屏一个焦点;导出视频用 applyMotion(auto),每块自动依次出现。
|
|
751
|
-
`})];function
|
|
752
|
-
`},{id:"restyle",label:"换一种设计",icon:"colorScheme",skill:"slide-design",prompt:"保留现有内容,按新的设计整套重画。我想要的感觉是:"},{id:"check",label:"检查版面",icon:"scan",prompt:"逐页检查版面,修正文字重叠、超出卡片或页面、对齐不齐的问题。"}]}}const
|
|
751
|
+
`})];function bt(e=ft){const t=kr({sources:[{id:"builtin",label:"内置",store:wr(e)}]});return t.refresh(),t}function nn(){return{title:"今天想做什么演示?",tasks:[{id:"create",label:"从零做一份稿件",icon:"file",skill:"slide-design",prompt:"帮我从零做一份演示文稿,主题是:"},{id:"outline",label:"按大纲生成",icon:"listNumbered",skill:"slide-design",prompt:`按下面的大纲生成整套幻灯片:
|
|
752
|
+
`},{id:"restyle",label:"换一种设计",icon:"colorScheme",skill:"slide-design",prompt:"保留现有内容,按新的设计整套重画。我想要的感觉是:"},{id:"check",label:"检查版面",icon:"scan",prompt:"逐页检查版面,修正文字重叠、超出卡片或页面、对齐不齐的问题。"}]}}const on=48,sn=4,ln=1e4;function cn(e,t,r,a,n){const{renderSlide:i,session:s}=e,c=U(e.ownerDocument,i?(x,B)=>i(D(B)):void 0);let d;import("lucide-static/icon-nodes.json").then(x=>{d=x.default},()=>{});const l=ee(U(e.ownerDocument)),o=new AbortController,m=()=>{const x=n.pictures();x&&Ye(P(s).document,x,o.signal)},u=e.pictureSlide===void 0?void 0:async(x,B)=>{const S=n.pictures();return S&&await aa(P(s).document,x,S,o.signal),e.pictureSlide(x,B)},f=mt(P(s),ee(c),u,{icons:()=>d,samples:l,get pictures(){return n.pictures()!==void 0}}),F=t.skills??bt();let T=!1,h=!1,p=!1,w;const b=P(s).document.subscribe(x=>{!p||!x.content||x.live||x.origin!=="agent"||(clearTimeout(w),w=setTimeout(m,ln))});let g=e.locale??"zh-CN",y="side";const k=pr({ownerDocument:e.ownerDocument,createDocument:({authorizeWrite:x,documentKey:B})=>fr(f,{documentId:B??`pptx-document-${dr()}`,skills:F,authorizeWrite:()=>{const S=x();return h?{...S,review:!1}:S}}),onPendingChange:x=>{p=x;const B=P(s).document.presentation();h=x&&(T||vt(B)||L(B).length===1&&K(B)!==null),x?T=!1:(clearTimeout(w),m(),Ga(P(s).document,e.ownerDocument,o.signal))},connection:()=>s.ready.then(a),documentKey:t.documentKey===!1?void 0:()=>`pptx:${s.name()}`,settings:r,storage:t.storage,skills:F,maxModelTurns:on,maxIdleTurns:sn,locale:g,startPage:nn(),layouts:["side","wide","page"],onLayoutChange:x=>e.setLayout(x),onClose:()=>e.close()});k.element.classList.add("pptx-editor-ai");const E=()=>k.reconnect();return n.mounted.add(E),{element:k.element,layout(x){y=x,k.update({locale:g,layout:x})},setLocale(x){g=x,k.update({locale:g,layout:y})},ask:(x,B)=>(B?.create&&(T=!0),k.ask(x)),destroy(){o.abort(),clearTimeout(w),b(),n.mounted.delete(E),k.destroy(),f.close()}}}function dn(e){const t=e.connection?void 0:hr({ownerDocument:e.ownerDocument,defaultHostUrl:e.defaultHostUrl??"",storage:{local:e.storage},reconnect:e.reconnect??(()=>{i=void 0,n=a();for(const c of r)c()}),...e.providers===void 0?{}:{providers:e.providers}}),r=new Set,a=()=>e.pictures===!1?void 0:e.pictures??(t?mr(t.connection,e.fetch):void 0);let n=a(),i;const s=()=>i??=e.connection?e.connection():ur({...t?.connection.mode==="browser"?{browserCatalog:t.connection.catalog}:{},...t?.connection.mode==="host"?{hostUrl:t.connection.hostUrl}:{},fetch:e.fetch,getHeaders:e.getHeaders});return{panel:{id:"quirekit.ai",label:"AI 助手",defaultOpen:e.defaultOpen??!1,layouts:["side","wide","page"],assistant:!0,mount:c=>cn(c,e,t,s,{pictures:()=>n,mounted:r})},destroy:()=>t?.destroy()}}async function hn(e){const t=Pt();switch(e){case"blank":X(t,"");break;case"denseLecture":mn(t);break;case"textWall":un(t);break;case"plain":fn(t);break;case"singleNumber":z(t,{title:"用户增长情况",body:"今年一季度新增注册用户 128 万,比去年同期增长 63%。其中 72% 来自自然流量,主要渠道是搜索和朋友推荐;付费投放带来的用户留存率只有自然流量的一半。下一季度计划把预算从投放转向内容运营。"});break}return ir(t)}function pn(e){for(const t of M(e))rr(t)&&nr(t)}function $(e,t,r,a,n={}){const i=s=>_e(Math.round(s*36e4));cr(Ot(e,{x:i(t[0]),y:i(t[1]),w:i(t[2]),h:i(t[3]),text:r}),{size:a,color:n.color??"#1F2937",bold:n.bold??!1,...n.font?{font:n.font}:{}})}function mn(e){const t=d=>_e(Math.round(d*36e4)),r=(d,l)=>{const o=X(e,"");return pn(o),$(o,[1.5,.8,24,1.6],d,32,{bold:!0}),$(o,[1.5,2.3,24,1],l,16,{color:"#2563EB"}),$(o,[1.5,17.3,31,.9],"KEY TERMS variable /ˈveəriəbl/ 变量 · type /taɪp/ 类型 · mutable /ˈmjuːtəbl/ 可变的 · immutable /ɪˈmjuːtəbl/ 不可变的",13,{color:"#8A6210"}),o},a=r("Python 的基本数据类型:变量、类型与可变性","Variables, Types and Mutability in Python");_t(a,{x:t(1.5),y:t(3.8),w:t(19),h:t(9),rows:[["类型 Type","示例 Example","可变 Mutable","常见操作 Common operations"],["int 整数","42, -7","否","+ - * // % **,比较大小"],["float 浮点数","3.14, 1e-3","否","运算有精度误差,比较时用 math.isclose"],["str 字符串","'hello'","否","切片、拼接、format、split、join"],["list 列表","[1, 2, 3]","是","append、pop、sort、切片、推导式"],["dict 字典","{'a': 1}","是","按键取值、get、items、update"],["tuple 元组","(1, 2)","否","解包、作为字典的键"]]});const n=Ae(a,{preset:"roundRect",x:t(21.5),y:t(3.8),w:t(11),h:t(6.5)});qe(n,"#111827"),Ge(n),$(a,[22,4.2,10,6],`>>> a = [1, 2]
|
|
753
753
|
>>> b = a
|
|
754
754
|
>>> b.append(3)
|
|
755
755
|
>>> a
|
|
756
756
|
[1, 2, 3] # a 也变了!
|
|
757
757
|
>>> s = 'hi'
|
|
758
758
|
>>> s[0] = 'H'
|
|
759
|
-
TypeError`,12,{color:"#A7F3D0",font:"Menlo"}),$(a,[21.5,10.8,11,5.5],"⚠ 易错点:赋值只是给对象再起一个名字,不会复制。对列表、字典这类可变对象,b = a 之后修改 b,a 也会变;要复制请用 a.copy() 或 list(a)。字符串和元组不可变,不能按位置修改,只能生成新的对象。",13,{color:"#B91C1C"});const
|
|
760
|
-
`),14);const s=
|
|
759
|
+
TypeError`,12,{color:"#A7F3D0",font:"Menlo"}),$(a,[21.5,10.8,11,5.5],"⚠ 易错点:赋值只是给对象再起一个名字,不会复制。对列表、字典这类可变对象,b = a 之后修改 b,a 也会变;要复制请用 a.copy() 或 list(a)。字符串和元组不可变,不能按位置修改,只能生成新的对象。",13,{color:"#B91C1C"});const i=r("条件与循环:让程序做判断、做重复","Control Flow: if, for and while");$(i,[1.5,3.8,16,12.5],["if 后面的条件为真时执行缩进的代码块,elif 可以有多个,else 最多一个","Python 用缩进表示代码块,同一块里缩进必须一致,建议 4 个空格","for 循环遍历序列:列表、字符串、range(n)、字典的 items()","while 循环在条件为真时重复,注意要在循环体里改变条件,否则会死循环","break 立刻结束整个循环,continue 跳过本次进入下一次","for 和 while 都可以带 else,循环正常结束(没有 break)时执行","range(start, stop, step) 不包含 stop,range(5) 是 0 到 4","列表推导式 [x * x for x in range(10) if x % 2 == 0] 可以代替简单循环","嵌套循环的时间会成倍增加,数据量大时要先想清楚复杂度"].join(`
|
|
760
|
+
`),14);const s=Ae(i,{preset:"roundRect",x:t(18.5),y:t(3.8),w:t(14),h:t(9)});qe(s,"#111827"),Ge(s),$(i,[19,4.2,13,8.5],`scores = [88, 92, 59, 75]
|
|
761
761
|
for i, s in enumerate(scores):
|
|
762
762
|
if s >= 90:
|
|
763
763
|
level = 'A'
|
|
@@ -765,13 +765,13 @@ for i, s in enumerate(scores):
|
|
|
765
765
|
level = 'B'
|
|
766
766
|
else:
|
|
767
767
|
level = 'C'
|
|
768
|
-
print(i, s, level)`,12,{color:"#A7F3D0",font:"Menlo"});const
|
|
769
|
-
`),14),$(
|
|
768
|
+
print(i, s, level)`,12,{color:"#A7F3D0",font:"Menlo"});const c=r("课堂练习:写一个成绩统计小程序","Hands-on Lab: A Grade Report in 15 Minutes");$(c,[1.5,3.8,18,12.5],["① 新建文件 grades.py,定义列表 scores,写入 10 个 0–100 的整数","② 用 for 循环算出总分和平均分,平均分保留一位小数","③ 用 max() 和 min() 找出最高分和最低分,并打印它们的位置","④ 按 90/80/60 分段统计 A、B、C、D 各有多少人,存进字典","⑤ 用 while 循环让用户反复输入新成绩,输入 q 结束","⑥ 把结果按“等级: 人数”的格式打印出来","⑦ 进阶:把成绩从 grades.txt 读入,结果写进 report.txt","提示:input() 返回字符串,要先用 int() 转换;遇到非数字输入用 try/except 处理"].join(`
|
|
769
|
+
`),14),$(c,[21,3.8,11.5,12.5],`评分标准:能运行 40%,结果正确 30%,代码清楚(变量命名、缩进、注释)20%,完成进阶 10%。
|
|
770
770
|
|
|
771
771
|
提交方式:把 grades.py 和运行截图发到课程群,文件名用“学号_姓名”。
|
|
772
772
|
|
|
773
|
-
常见问题:缩进混用 Tab 和空格;把字符串和数字直接相加;循环条件写反导致死循环。`,13,{color:"#374151"})}function
|
|
774
|
-
`)})}function
|
|
773
|
+
常见问题:缩进混用 Tab 和空格;把字符串和数字直接相加;循环条件写反导致死循环。`,13,{color:"#374151"})}function un(e){X(e,"2026 年第三季度客服中心工作汇报");for(const[t,r]of[["工作概况",["本季度共受理工单 18,420 件,比上季度增加 12%,主要增量来自 8 月新版本上线后的咨询","平均首次响应时间从 4.2 小时缩短到 2.6 小时,达到年初定的 3 小时目标","一次解决率 71%,比上季度提高 6 个百分点,但退款类工单的一次解决率只有 48%","客户满意度 4.3 分(满分 5 分),差评主要集中在退款周期长和转接次数多","夜间时段(22 点到次日 8 点)的工单占 19%,目前只有 2 人值守,响应时间是白天的 3 倍","知识库新增和更新文章 126 篇,自助解决的咨询占 23%","人员方面新入职 6 人、离职 3 人,新人平均需要 5 周才能独立处理工单","系统方面完成了工单系统与订单系统的打通,客服可以直接查看订单状态"]],["存在的问题",["退款流程需要财务审批,平均耗时 6.5 天,是客户投诉最多的环节,涉及跨部门协作","工单分类规则不清楚,约 15% 的工单被分错组,需要二次转接,增加了处理时间","夜间值守人手不足,高峰期排队超过 40 分钟,部分客户转向社交媒体投诉","新人培训没有系统教材,主要靠老员工带,质量不稳定,带教的老员工自己的工作量也受影响","知识库文章缺少维护,有 30 多篇内容已经过时,客户按文章操作失败后再来咨询","质检只抽查 3% 的工单,很多问题发现得太晚,无法及时纠正","数据报表需要每周手工整理,耗费组长大量时间","客服与产品团队之间缺少固定的问题反馈渠道,同类问题反复出现"]],["下季度计划",["与财务部门协商,把 500 元以下的退款改为客服直接审批,目标是把退款周期缩短到 2 天以内","重新梳理工单分类规则,上线自动分类,目标是把分错组的比例降到 5% 以下","夜间增加 2 名值守人员,并尝试用智能客服处理常见问题","编写新人培训手册和考核题库,目标是新人 3 周内独立上岗","建立知识库文章的季度复核机制,每篇文章指定负责人","质检抽查比例提高到 8%,并引入关键词自动质检","用 BI 工具自动生成周报,释放组长的时间","每两周与产品团队开一次问题复盘会,跟踪高频问题的修复进度"]]])z(e,{title:t,body:r.join(`
|
|
774
|
+
`)})}function fn(e){X(e,"家庭阳台种菜入门"),z(e,{title:"为什么在阳台种菜",body:`吃得放心
|
|
775
775
|
孩子能看到食物怎么长出来
|
|
776
776
|
每天十分钟,放松心情`}),z(e,{title:"先看阳台条件",body:`朝南最好,每天至少 4 小时直射光
|
|
777
777
|
承重:一个装满土的大花盆约 30 公斤
|
|
@@ -781,6 +781,6 @@ for i, s in enumerate(scores):
|
|
|
781
781
|
辣椒:耐旱好养
|
|
782
782
|
薄荷:长得快,要单独种`}),z(e,{title:"常见问题",body:`叶子发黄:多半是浇水太多
|
|
783
783
|
长得细长:光照不够
|
|
784
|
-
有小虫:用肥皂水喷叶子背面`})}async function
|
|
784
|
+
有小虫:用肥皂水喷叶子背面`})}async function gt(e,t){const r=await ue(e),a=L(r),n=V(),i=a.map(o=>M(o).reduce((m,u)=>m+I(u).replace(/\s/gu,"").length,0)),s=a.map(o=>ye(r,o));let c=0,d=0;s.forEach((o,m)=>{d=o!==null&&o===s[m-1]?d+1:o===null?0:1,c=Math.max(c,d)});const l=o=>a.length===0?0:yn(a.filter(o).length/a.length);return{slides:a.length,charsMean:a.length===0?0:Math.round(i.reduce((o,m)=>o+m,0)/a.length),charsMax:Math.max(0,...i),notesShare:l(o=>(Ke(o)??"").trim().length>0),motionShare:l(o=>je(o).length>0),compositions:new Set(s.filter(o=>o!==null)).size,longestRepeat:c,theme:he(r)?.name??null,...gn(a.map(o=>Be(r,o,ke(r,o),n.read(r,o)).facts.map(m=>m.kind)).flat()),clicksMax:Math.max(0,...a.map(o=>et(Te(o)).at(-1)??0)),...await bn(r,a,t)}}async function bn(e,t,r){if(r===void 0)return{layoutProblems:null,layoutProblemKinds:{}};await r.settle(e);const a=t.flatMap(i=>r.check(e,i).map(s=>s.kind)),n={};for(const i of a)n[i]=(n[i]??0)+1;return{layoutProblems:a.length,layoutProblemKinds:n}}function gn(e){const t={};for(const r of e)t[r]=(t[r]??0)+1;return{designNotes:e.length,designNoteKinds:t}}function yn(e){return Math.round(e*100)/100}const ce=[{id:"T1",kind:"create",fixture:"blank",prompt:"帮我做一份科普分享的 PPT,主题是“睡眠如何巩固记忆”,6 到 8 页,我会在读书会上现场讲 15 分钟。"},{id:"T2",kind:"create",fixture:"blank",prompt:"做一份季度工作汇报,5 页左右。数据:新客户 128 家(上季度 96 家);续约率 87%(目标 85%);客单价 4.2 万元(上季度 3.8 万元)。问题是华南区续约率只有 71%。"},{id:"T3",kind:"create",fixture:"blank",prompt:"我们要发布一款降噪耳机“静界 Pro”,做 5 页发布会风格的 PPT:续航 40 小时、降噪深度 50dB、重量 4.8 克、售价 899 元。"},{id:"T4",kind:"create",fixture:"blank",prompt:"做 5 页竖屏知识卡,发小红书,主题“3 个让咖啡更好喝的小习惯”。"},{id:"T5",kind:"create",fixture:"blank",prompt:"按这个大纲做一节初中物理课的课件:1. 生活中的浮力现象 2. 阿基米德原理 3. 例题:木块浮在水面 4. 课堂小实验 5. 小结与作业。"},{id:"T6",kind:"improve",fixture:"denseLecture",prompt:"这份课件信息太密集了。请优化成更适合课堂讲解的版本:每页只讲一件事,标题直接写结论;补充说明、讲稿和音标术语放进演讲者备注;太密的页拆成几页。原来的知识点不要丢。"},{id:"T7",kind:"improve",fixture:"textWall",prompt:"这份汇报每页字太多了,我要在部门会上讲,帮我改成适合讲的版本。"},{id:"T8",kind:"restyle",fixture:"plain",prompt:"把这份稿件换成手绘科普的风格。"},{id:"T9",kind:"motion",fixture:"denseLecture",prompt:"这份课件现场上课用,帮我加上动画:讲到哪块出哪块。"},{id:"T10",kind:"slide",fixture:"singleNumber",prompt:"把这一页改成重点突出的一页。"},{id:"T11",kind:"create",fixture:"blank",prompt:["按下面的大纲做一份产品方案评审的 PPT,给技术和产品负责人看,我讲 20 分钟。","一、背景:客服工单量一年涨了 60%,人工分派平均要 25 分钟","二、目标:自动分派准确率 90%,分派时间降到 1 分钟以内","三、方案"," 1. 规则引擎:按产品线、客户等级、问题类型分派"," 2. 模型辅助:对描述不清的工单给出 3 个候选分类"," 3. 人工兜底:置信度低于 0.7 的转人工","四、排期:6 月完成规则引擎,8 月上线模型辅助,9 月全量","五、风险:历史标注数据不足;客服团队需要培训"].join(`
|
|
785
785
|
`)},{id:"T12",kind:"create",fixture:"blank",prompt:["把下面这篇短文做成 PPT,在社区活动上分享 10 分钟:","","骑车通勤这件事,很多人想过,真正开始的不多。最常见的顾虑有三个:太远、太累、不安全。其实城市里一半以上的通勤距离在 8 公里以内,按每小时 15 公里算,骑车 30 分钟就能到,和挤地铁、等公交差不多。","累的问题,靠一辆合适的车解决。车架尺寸对了,座高调到腿能伸直八成,骑 30 分钟并不比走 20 分钟更累。如果路上有坡,电助力车是很好的入门选择。","安全方面,选路比车技更重要。尽量走有隔离的非机动车道,避开早高峰的主干道;白天也开车灯,戴头盔,路口提前减速。","坚持下来,变化很明显:每天多出一小时的运动量,通勤时间变得可以预期,一个月下来还能省下几百元交通费。","开始的方法很简单:先挑一个天气好的周末,按通勤路线骑一遍,记下时间和难走的路段;第一周每周只骑两天,其余照旧。"].join(`
|
|
786
|
-
`)},{id:"T13",kind:"create",fixture:"blank",prompt:"做一个新员工信息安全培训的 PPT。"}];function
|
|
786
|
+
`)},{id:"T13",kind:"create",fixture:"blank",prompt:"做一个新员工信息安全培训的 PPT。"}];function wn(e){let t=null,r=null;const a=()=>{const n=e();if(!n)throw new Error("The editor has no open session.");return n};return{tasks:ce,async prepare(n){const i=ce.find(s=>s.id===n);if(!i)throw new Error(`Unknown task ${n}; tasks are ${ce.map(s=>s.id).join(", ")}.`);return i.fixture==="blank"?await a().createDocument():await a().open(`评测-${i.id}.pptx`,await hn(i.fixture)),t=i.id,r=performance.now(),i.prompt},async score(){return{...await gt(await a().snapshot(),typeof document>"u"?void 0:ee(U(document))),task:t,seconds:r===null?null:Math.round((performance.now()-r)/1e3)}},async design(){const n=await ue(await a().snapshot()),i=V();return L(n).map((s,c)=>({slide:c+1,design:Be(n,s,ke(n,s),i.read(n,s))}))},async view(){const n=await ue(await a().snapshot()),i=typeof document>"u"?void 0:ee(U(document));return await i?.settle(n),gr(dt(n,i,Xe(i),V()),br(),{limit:1e3}).text}}}export{mt as createPptxAiDocument,wn as createPptxAiEval,bt as createPptxAiSkills,dn as createPptxEditorAi,ft as pptxBuiltinSkills,ce as pptxEvalTasks,gt as scorePptxEvalDeck};
|