/* Irivi 创作者卡片：所见即所得编辑器 + 经典版式（REFACTOR_PLAN 3.12a）
   对照 design/ui-2026-10-21/creator/creator.html#wy*。令牌来自 static/app/base.css。
   公开页 /u/<name> 的样式仍由 /assets/v2.03.01/creator.css 提供（3.12c 再并入这里）。 */
body[data-page="creator_editor"] main>.page-header{display:none}
body[data-page="creator_editor"] main{max-width:none;padding:0 0 64px}
.cw{--th:linear-gradient(160deg,#EEF2FF,#FDF2F8);--tx:#24212A;--tx2:#5E5868;--box:rgba(255,255,255,.86);--box-op:.86;position:relative;min-height:calc(100vh - var(--topbar-h));background:var(--th);color:var(--tx);font-family:var(--f-ui)}
.cw.th-light{--tx:#F4F2FA;--tx2:#B8B2CC;--box:rgba(255,255,255,.12)}
.cw.th-light .cw-foot img{filter:invert(1)}
svg.cw-i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
.creator-image-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.cw-sp{flex:1}

/* 顶栏 */
.cw-bar{position:sticky;top:var(--topbar-h);z-index:30;display:flex;align-items:center;gap:8px;height:60px;padding:0 20px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);color:var(--ink)}
.cw-done{height:34px;padding:0 14px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:inherit;font-size:13px;font-weight:900;cursor:pointer}
.cw-bar-title{font-size:15px;font-weight:900;display:flex;flex-direction:column;line-height:1.2;margin-left:6px}
.cw-save{font-size:11px;color:var(--ok);font-weight:800;transition:color var(--t-base)}
.cw-save.is-saving{color:var(--ink-3)}.cw-save.is-error{color:var(--danger)}
.cw-wb{height:38px;padding:0 14px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;font-weight:800;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;text-decoration:none}
.cw-wb svg{width:17px;height:17px}.cw-wb.p{background:var(--brand);border-color:var(--brand);color:#fff}
.cw-tip{text-align:center;font-size:12px;color:var(--tx2);padding:10px 16px 0;margin:0}

/* 卡片本体（经典版式） */
.cw-page{display:flex;justify-content:center;padding-bottom:40px}
.cw-card{width:100%;max-width:440px;padding:34px 20px 26px;display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--tx)}
.cw-av{position:relative}
.cw-avatar{width:92px;height:92px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.9);box-shadow:0 8px 24px rgba(40,20,80,.15);display:block;background:#fff}
.cw-avatar-fallback{display:grid;place-items:center;font-size:34px;font-weight:900;color:var(--brand);background:var(--brand-soft)}
.cw-cam{position:absolute;right:0;bottom:2px;width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;border:2px solid #fff;cursor:pointer}
.cw-cam svg{width:14px;height:14px}
.cw-nm{display:flex;align-items:center;gap:6px;justify-content:center}
.cw-nm h1{font-size:22px;font-weight:900;margin:4px 0 0;padding:0 6px;outline:1.5px dashed rgba(36,33,42,.32);outline-offset:4px;border-radius:8px}
.cw-pen{color:var(--tx2);display:inline-flex}.cw-pen svg{width:15px;height:15px}
.cw-socials{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.cw-so{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:900;background:var(--a,#64748B);border:0;cursor:pointer;font-family:inherit;padding:0;overflow:hidden}
.cw-so img{width:20px;height:20px;filter:brightness(0) invert(1)}
.cw-so.add{background:transparent;border:2px dashed rgba(36,33,42,.25);color:var(--tx2)}.cw-so.add svg{width:16px;height:16px}
.th-light .cw-so.add{border-color:rgba(255,255,255,.4)}
.cw-blocks{width:100%;display:flex;flex-direction:column;gap:10px}
.cw-eb{position:relative;width:100%;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.cw-eb>.cw-blk,.cw-eb>.cw-pics3,.cw-eb>.cw-swipe{outline:1.5px dashed rgba(36,33,42,.32);outline-offset:4px;border-radius:16px;cursor:pointer}
.cw-eb.sel>.cw-blk{outline:2.5px solid var(--brand)!important}
.cw-eb.is-hidden>.cw-blk{opacity:.45}
.cw-eb.is-hidden:after{content:"已隐藏";position:absolute;right:10px;top:-9px;z-index:2;font-size:10px;font-weight:900;background:var(--ink-3);color:#fff;padding:1px 8px;border-radius:999px}
.cw-eb.drag{z-index:5;transform:translateY(-6px) rotate(-.6deg);filter:drop-shadow(0 14px 22px rgba(36,20,70,.22));transition:none}
.cw-eb.drag:before{content:"拖动中";position:absolute;left:12px;top:-10px;z-index:2;font-size:10px;font-weight:900;background:var(--ink);color:#fff;padding:1px 8px;border-radius:999px}
.cw-eb.drop-before{box-shadow:0 -6px 0 -2px var(--brand)}.cw-eb.drop-after{box-shadow:0 6px 0 -2px var(--brand)}
.cw-blk{width:100%;border-radius:16px;background:var(--fill,var(--box));position:relative;box-sizing:border-box;color:var(--tx);text-decoration:none;display:block;isolation:isolate}
.cw-blk:before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--fill,var(--box));opacity:var(--fill-op,var(--box-op));z-index:-1}
.cw-blk{background:none}
.cw-blk.shape-square,.cw-blk.shape-square:before{border-radius:0}
.cw-blk.shape-pill,.cw-blk.shape-pill:before{border-radius:999px}
.cw-blk.text{padding:14px 16px;font-size:14px;line-height:1.7;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere}
.cw-blk.text.font-serif{font-family:Georgia,"Noto Serif CJK SC",serif}.cw-blk.text.font-mono{font-family:var(--f-mono)}.cw-blk.text.font-rounded{font-family:"Arial Rounded MT Bold","Hiragino Maru Gothic ProN",system-ui,sans-serif}
.cw-blk.sec{text-align:center;padding:14px 0 0}
.cw-blk.sec:before{display:none}
.cw-blk.sec.align-left{text-align:left}
.cw-blk.sec b{font-size:16px;font-weight:900}.cw-blk.sec small{display:block;font-size:12px;color:var(--tx2)}
.cw-blk.link{display:flex;align-items:center;gap:12px;padding:10px 14px 10px 10px;min-height:58px}
.cw-blk.link .lg{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--a,#64748B);color:#fff;font-weight:900;font-size:14px;flex:none;overflow:hidden}
.cw-blk.link .lg img{width:20px;height:20px;filter:brightness(0) invert(1)}
.cw-blk.link b{display:block;font-size:15px;font-weight:900;line-height:1.3}
.cw-blk.link small{font-size:12px;color:var(--tx2);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}
.cw-blk.link .go{margin-left:auto;color:var(--tx2)}.cw-blk.link .go svg{width:16px;height:16px}
.cw-blk.img{overflow:hidden;padding:0}
.cw-blk.img img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;display:block}
.cw-blk.img small{display:block;padding:8px 14px 10px;font-size:12px;color:var(--tx2)}
.cw-blk.gap{height:var(--h,32px);background:none}.cw-blk.gap:before{display:none}
.cw-blk.gap.has-divider:after{content:"";position:absolute;left:12%;right:12%;top:50%;border-top:1px solid currentColor;opacity:.25}
.cw-empty{font-size:13px;color:var(--tx2);text-align:center;margin:8px 0 0}
.cw-addbig{width:100%;height:54px;border-radius:999px;border:2px dashed rgba(36,33,42,.45);background:rgba(255,255,255,.55);color:var(--brand);font:inherit;font-size:15px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:6px;margin-top:6px;cursor:pointer}
.cw-addbig svg{width:20px;height:20px;stroke-width:2.4}
.cw-foot{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:11px;font-weight:800;color:var(--tx2);opacity:.8}
.cw-foot img{height:14px}

/* 面板（宽屏右浮 / 竖屏底拉） */
.cw-dim{position:fixed;inset:0;z-index:59;background:rgba(22,18,28,.18)}
.cw-sheet{position:fixed;z-index:60;right:20px;top:calc(var(--topbar-h) + 76px);width:400px;max-height:calc(100vh - var(--topbar-h) - 96px);overflow:auto;background:#fff;border-radius:20px;padding:18px;box-shadow:0 20px 60px rgba(36,20,70,.22);color:var(--ink);box-sizing:border-box;animation:cw-in var(--t-base) var(--ease-out)}
@keyframes cw-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.cw-shh{display:flex;align-items:center;margin-bottom:6px}.cw-shh h3{font-size:17px;font-weight:900;margin:0}
.cw-x{margin-left:auto;width:32px;height:32px;border-radius:50%;background:var(--soft);border:0;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.cw-x svg{width:16px;height:16px}
.cw-tl{font-size:12px;font-weight:900;color:var(--ink-3);margin:14px 0 8px}
.cw-types{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cw-ty{display:flex;flex-direction:column;gap:2px;padding:10px;border-radius:14px;border:1.5px solid var(--line);background:#fff;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.cw-ty:hover{border-color:var(--brand)}
.cw-ty b{font-size:13px;font-weight:900;margin-top:6px;display:flex;align-items:center;gap:4px}.cw-ty small{font-size:11px;color:var(--ink-3)}
.cw-ty.is-dev,.cw-tp2.is-dev{opacity:.55;cursor:not-allowed}
.cw-dev{font-style:normal;font-size:10px;font-weight:900;color:var(--ink-3);background:var(--soft);padding:0 6px;border-radius:999px}
.cw-pvw{height:56px;border-radius:10px;background:var(--th);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:8px;box-sizing:border-box}
.cw-pvw i{display:block;background:#fff;border-radius:6px}
.cw-pvw .b1{width:85%;height:16px;border-radius:999px}.cw-pvw .p1{width:85%;height:38px}
.cw-pvw.p3w{flex-direction:row}.cw-pvw.p3w i{width:27%;height:26px}
.cw-pvw.sw{flex-direction:row;justify-content:flex-start;overflow:hidden}.cw-pvw.sw i{width:34%;height:34px;flex:none}
.cw-pvw .tx1{width:80%;height:6px}.cw-pvw .tx2{width:55%;height:6px}.cw-pvw .hd{width:45%;height:10px;background:var(--ink)!important;opacity:.6}.cw-pvw .gp{width:85%;height:2px;opacity:.6}
.cw-tpls{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.cw-tp2{display:flex;flex-direction:column;align-items:center;gap:6px;font:inherit;font-size:12px;font-weight:800;color:var(--ink-2);background:none;border:0;padding:0;cursor:pointer}
.cw-tpv{width:100%;aspect-ratio:3/4.4;border-radius:12px;border:1.5px solid var(--line);padding:8px 7px;display:flex;flex-direction:column;align-items:center;gap:4px;overflow:hidden;background:#F6F3FB;box-sizing:border-box}
.cw-tp2.on .cw-tpv{outline:3px solid var(--brand);outline-offset:2px}
.cw-tpv i{display:block;background:#fff;border-radius:4px}
.cw-tpv.t1 .c{width:18px;height:18px;border-radius:50%;background:#D9CFF2;margin-bottom:3px}.cw-tpv.t1 .l{width:100%;height:9px;border-radius:999px}
.cw-tpv.t2{padding:0;flex-direction:row;flex-wrap:wrap;align-content:flex-start;gap:3px}.cw-tpv.t2 .cv{width:100%;height:30%;background:#CFC3EA;border-radius:0}.cw-tpv.t2 .av2{width:16px;height:16px;margin:-10px 0 4px 6px;background:#B9A6F2;border:2px solid #F6F3FB;border-radius:50%}.cw-tpv.t2 .g{width:calc(50% - 6px);height:16%;margin-left:4px;border-left:3px solid #FD8BA8}
.cw-tpv.t3{background:#2A1F44}.cw-tpv.t3 .ph{width:100%;height:40%;background:#7F6AAE}.cw-tpv.t3 .pf{width:100%;height:12%;background:#FBF8F2;border-top:1px dashed #D9CFBF}.cw-tpv.t3 .rw{width:100%;height:9%;background:rgba(255,255,255,.14)}
.cw-tpv.t4{background:#FFF8EE}.cw-tpv.t4 .po{width:46%;height:36%;transform:rotate(-4deg);border:3px solid #fff;background:#E9D9C2;box-shadow:0 2px 4px rgba(0,0,0,.1);margin-bottom:4px}.cw-tpv.t4 .sk{width:60%;height:9%;border-radius:6px;background:#FFE0E6}.cw-tpv.t4 .sk:nth-child(3){background:#DDF2FB;transform:rotate(3deg)}.cw-tpv.t4 .sk:nth-child(4){background:#E9E3FA;transform:rotate(-2deg)}
.cw-thg2{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cw-thm{display:flex;flex-direction:column;gap:6px;font:inherit;font-size:12px;font-weight:800;color:var(--ink-2);background:none;border:0;padding:0;cursor:pointer}
.cw-thm span{aspect-ratio:3/4;border-radius:12px;border:1.5px solid var(--line);position:relative;overflow:hidden;display:block}
.cw-thm span:after{content:"";position:absolute;left:18%;right:18%;top:40%;height:9%;border-radius:999px;background:rgba(255,255,255,.75);box-shadow:0 14px 0 rgba(255,255,255,.75),0 28px 0 rgba(255,255,255,.75)}
.cw-thm.on span{outline:3px solid var(--brand);outline-offset:2px}
.cw-vip{display:inline-flex;align-items:center;font-style:normal;font-size:10px;font-weight:900;color:#3A1626;background:var(--candy);padding:0 7px;height:17px;border-radius:999px;margin-left:4px;vertical-align:1px}
.cw-thm .cw-vip{position:absolute;right:4px;top:4px;margin:0;z-index:2}
.cw-upb{display:flex;align-items:center;gap:10px;margin-top:14px;padding:12px;border-radius:14px;border:1.5px dashed #DDD6EA;cursor:pointer}
.cw-upb svg{width:20px;height:20px;color:var(--brand)}.cw-upb label{flex:1;cursor:pointer}.cw-upb b{display:block;font-size:14px}.cw-upb small{font-size:12px;color:var(--ink-3)}
.cw-upb .cw-vip{margin-left:auto}
.cw-sl{height:44px;border-radius:12px;border:1.5px solid var(--line);display:flex;align-items:center;gap:10px;padding:0 12px;font-size:13px;font-weight:800;box-sizing:border-box}
.cw-sl input[type=range]{flex:1;accent-color:var(--brand)}
.cw-sl code{font-size:12px;color:var(--ink-3);font-family:var(--f-mono)}
.cw-hint2{font-size:11px;color:var(--ink-3);font-weight:600;margin:8px 0 0}
.cw-fd{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:800;color:var(--ink-2);margin-top:12px}
.cw-fl3{display:flex;align-items:center;gap:2px}
.cw-in{height:40px;border-radius:10px;border:1.5px solid var(--line);background:#fff;padding:0 12px;font:inherit;font-size:14px;font-weight:600;color:var(--ink);box-sizing:border-box;width:100%}
.cw-in:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.cw-ta{min-height:96px;padding:12px;border-radius:12px;border:1.5px solid var(--brand);font:inherit;font-size:14px;line-height:1.7;margin-top:6px;box-shadow:0 0 0 4px var(--brand-soft);width:100%;box-sizing:border-box;resize:vertical;color:var(--ink)}
.cw-sg{display:flex;padding:3px;border-radius:10px;background:var(--soft)}
.cw-sg button{flex:1;height:34px;border-radius:8px;border:0;background:transparent;font:inherit;font-size:13px;font-weight:800;color:var(--ink-2);cursor:pointer}
.cw-sg button.on{background:#fff;color:var(--brand);box-shadow:0 1px 3px rgba(36,20,70,.1)}
.cw-sg button:disabled{opacity:.45;cursor:not-allowed}
.cw-fills{display:flex;gap:6px;flex-wrap:wrap}
.cw-fills button{width:28px;height:28px;border-radius:8px;border:1.5px solid var(--line);padding:0;cursor:pointer}
.cw-fills button.on{outline:2px solid var(--brand);outline-offset:2px}
.cw-fills .cw-custom{border-color:transparent}
.cw-color-hidden{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.cw-pfs2{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 6px}
.cw-pf{padding:4px;border-radius:50%;border:1.5px solid var(--line);background:#fff;cursor:pointer}
.cw-pf i{width:30px;height:30px;border-radius:50%;background:var(--a);color:#fff;font-style:normal;font-size:12px;font-weight:900;display:grid;place-items:center}
.cw-pf.on{border-color:var(--brand);background:var(--brand-soft)}
.cw-pf.more2{border-radius:999px;padding:0 12px;font:inherit;font-size:12px;font-weight:800;display:flex;align-items:center;color:var(--ink-2)}
.cw-sel2{height:36px;padding:0 10px;border-radius:10px;border:1.5px solid var(--line);font:inherit;font-size:13px;font-weight:800;flex:1;background:#fff;color:var(--ink)}
.cw-tb{display:flex;gap:6px;margin-top:10px;align-items:center}
.cw-ipv{display:flex;align-items:center;gap:12px;margin-top:6px}.cw-ipv img{width:120px;height:76px;object-fit:cover;border-radius:10px;background:var(--soft)}
.cw-check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--ink-2);margin-top:12px;cursor:pointer}
.cw-check input{accent-color:var(--brand);width:18px;height:18px}
.cw-shf{display:flex;align-items:center;margin-top:16px}
.cw-sa{height:34px;padding:0 12px;border-radius:999px;border:0;background:var(--soft);font:inherit;font-size:13px;font-weight:800;display:flex;align-items:center;gap:5px;margin-right:6px;cursor:pointer;color:var(--ink)}
.cw-sa svg{width:15px;height:15px}.cw-sa.red{color:var(--danger);background:#FDEFF2}
.cw-sa[hidden]{display:none}
.cw-btn{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:#fff;font:inherit;font-weight:800;font-size:14px;cursor:pointer;color:var(--ink)}
.cw-btn.p{background:var(--brand);border-color:var(--brand);color:#fff}.cw-btn.s{height:34px;padding:0 14px;font-size:13px}
.cw-dev-row{opacity:.55}
.cw-dev-row .cw-sg button,.cw-dev-row .cw-fills button,.cw-dev-row .cw-in,.cw-dev-row input{pointer-events:none}

/* 竖屏 */
@media (max-aspect-ratio:1/1){
  .cw-bar{padding:0 10px;height:54px}
  .cw-wb span{display:none}.cw-wb{width:38px;padding:0;justify-content:center}.cw-wb.p{width:auto;padding:0 12px}.cw-wb.p span{display:inline}
  .cw-save{display:none}
  .cw-card{padding:28px 16px 90px}
  .cw-sheet{left:0;right:0;top:auto;bottom:0;width:auto;border-radius:22px 22px 0 0;max-height:75vh;padding-bottom:calc(18px + var(--safe-bottom));animation-name:cw-up}
  @keyframes cw-up{from{transform:translateY(100%)}to{transform:none}}
  .cw-thg2{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* 4.8 新字段：图片圆角、文本无框、一行三图 / 滑动图片 */
.cw-blk.img.corner-none,.cw-blk.img.corner-none:before{border-radius:0}
.cw-blk.img.corner-small,.cw-blk.img.corner-small:before{border-radius:16px}
.cw-blk.img.corner-large,.cw-blk.img.corner-large:before{border-radius:28px}
.cw-blk.text.bare:before{display:none}
.cw-blk.text.font-song{font-family:"Noto Serif CJK SC","Songti SC",serif}.cw-blk.text.font-kai{font-family:"KaiTi","STKaiti","LXGW WenKai",serif}.cw-blk.text.font-handwriting{font-family:"Segoe Script","Bradley Hand",cursive}.cw-blk.text.font-pixel{font-family:"Press Start 2P",monospace;font-size:.85em}
.cw-pics3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:100%}
.cw-pics3 img,.cw-pics3 .cw-ph{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;display:block;background:rgba(255,255,255,.35)}
.cw-swipe{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:12px;width:100%;scrollbar-width:none}
.cw-swipe::-webkit-scrollbar{display:none}
.cw-swipe img,.cw-swipe .cw-ph{width:42%;flex:none;aspect-ratio:3/4;object-fit:cover;border-radius:12px;scroll-snap-align:start;background:rgba(255,255,255,.35)}
.cw-pics3.corner-none img,.cw-swipe.corner-none img{border-radius:0}.cw-pics3.corner-large img,.cw-swipe.corner-large img{border-radius:22px}
.cw-dots2{display:flex;justify-content:center;gap:4px;margin-top:6px}.cw-dots2 i{width:5px;height:5px;border-radius:50%;background:var(--tx2);opacity:.35}.cw-dots2 i.on{opacity:1}
.cw-multi{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:6px}
.cw-slot{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--soft)}
.cw-slot img{width:100%;height:100%;object-fit:cover;display:block}
.cw-slot>span{position:absolute;left:0;right:0;bottom:0;display:flex;gap:4px;justify-content:center;padding:4px;background:linear-gradient(transparent,rgba(0,0,0,.45))}
.cw-slot>span .cw-btn{height:26px;padding:0 10px;font-size:12px}
.cw-slot-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1.5px dashed #DDD6EA;background:#fff;color:var(--brand);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.cw-tg2{width:36px;height:36px;border-radius:10px;border:1.5px solid var(--line);background:#fff;display:grid;place-items:center;font-size:15px;cursor:pointer;flex:none}
.cw-tg2.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.cw-tb .cw-sg{width:120px;flex:none}.cw-tb .cw-sg button{height:30px}
.cw-sel2.sm{flex:none;width:64px}
.cw-fonts{display:flex;gap:6px}
.cw-fonts button{flex:1;height:36px;border-radius:10px;border:1.5px solid var(--line);background:#fff;font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.cw-fonts button.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}

/* ===== 3.12b：版式（作品集 / 票根 / 手帐）与文字对比度 =====
   对照 design/ui-2026-10-21/creator/alt.html #a #b #c（及 -e 编辑态）。只改外观，DOM 与块数据同经典版式；
   公开页 /u 使用同一套类名（.cw.lay-<版式> > .cw-card > .cw-head / .cw-blocks），合入后自动套用。 */
.cw-cover,.cw-perf{display:none}
.cw{overflow-x:clip}
.cw-head{display:contents}
/* 每个块的文字颜色按填充色计算（creator.js inkVars）：白底块深色字、深色块浅色字；无底的文本跟随页面文字色 */
.cw-blk{color:var(--btx,var(--tx))}
.cw-blk.link small,.cw-blk.img small,.cw-blk.link .go{color:var(--btx2,var(--tx2))}
.cw-blk.text.bare,.cw-blk.sec,.cw-blk.gap{color:var(--tx)}
.cw-blk.sec small{color:var(--tx2)}
.th-light .cw-tip,.th-light .cw-empty{color:var(--tx2)}
.th-light .cw-addbig{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.45);color:#F4F2FA}
.th-light .cw-nm h1{outline-color:rgba(255,255,255,.45)}
.th-light .cw-eb>.cw-blk,.th-light .cw-eb>.cw-pics3,.th-light .cw-eb>.cw-swipe{outline-color:rgba(255,255,255,.4)}
.cw-tl-note{font-weight:700;color:var(--ink-3);margin-left:8px;font-size:11px}

/* ---------- 作品集：封面 + 左对齐 + 链接方格 ---------- */
.lay-portfolio .cw-card{align-items:stretch;padding-top:0;gap:0}
.lay-portfolio .cw-head{display:block;position:relative;margin:0 -20px}
.lay-portfolio .cw-cover{display:grid;grid-template-columns:2fr 1fr 1fr;gap:3px;height:200px;overflow:hidden;position:relative;background:linear-gradient(135deg,#CFC3EA,#FDE2EA 60%,#C9F1EC)}
.lay-portfolio .cw-cover[data-count="1"]{grid-template-columns:1fr}
.lay-portfolio .cw-cover[data-count="2"]{grid-template-columns:2fr 1fr}
.lay-portfolio .cw-cover img{width:100%;height:100%;object-fit:cover;display:block}
.lay-portfolio .cw-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,rgba(20,10,40,.35))}
.lay-portfolio .cw-av{margin:-44px 0 0 20px;position:relative;z-index:2;width:max-content}
.lay-portfolio .cw-avatar{width:88px;height:88px;border-radius:24px;border:4px solid #F6F3FB}
.lay-portfolio .cw-nm{justify-content:flex-start;padding:10px 20px 0}
.lay-portfolio .cw-nm h1{font-size:24px;margin:0;padding:0 4px;line-height:1.25}
.lay-portfolio .cw-socials{justify-content:flex-start;padding:10px 20px 0}
.lay-portfolio .cw-blocks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
.lay-portfolio .cw-eb{grid-column:1/-1;min-width:0}
.lay-portfolio .cw-eb[data-block-type="link"]{grid-column:auto}
.lay-portfolio .cw-blk.link{flex-direction:column;align-items:flex-start;gap:10px;min-height:96px;padding:12px 12px 12px 14px;border-radius:16px!important;border-left:4px solid var(--a)}
.lay-portfolio .cw-blk.link:before{border-radius:12px!important}
.lay-portfolio .cw-blk.link .lg{width:32px;height:32px;border-radius:10px}
.lay-portfolio .cw-blk.link .go{display:none}
.lay-portfolio .cw-blk.link small{max-width:100%;white-space:normal}
.lay-portfolio .cw-blk.sec{text-align:left;padding:16px 0 2px}
.lay-portfolio .cw-blk.sec b{display:flex;align-items:center;gap:8px;font-size:13px;letter-spacing:.06em;color:var(--tx2)}
.lay-portfolio .cw-blk.sec b:after{content:"";flex:1;height:1px;background:currentColor;opacity:.3}
.lay-portfolio .cw-blk.text{border-radius:16px}
.lay-portfolio .cw-addbig{margin-top:16px}
.lay-portfolio .cw-foot{align-self:center}

/* ---------- 票根：大图 + 头像印章 + 打孔线，链接成行 ---------- */
.cw.lay-ticket{--tx:#F4F2FA;--tx2:#B8B2CC;background:linear-gradient(rgba(30,20,52,.84),rgba(30,20,52,.9)),var(--th)}
.lay-ticket .cw-card{align-items:stretch;gap:0}
.lay-ticket .cw-head{display:block;position:relative;background:#FBF8F2;border-radius:20px 20px 0 0;overflow:hidden;margin-top:6px;--tx:#3B3326;--tx2:#A0937E;color:#3B3326}
.lay-ticket .cw-cover{display:grid;grid-template-columns:1fr;height:300px;position:relative;background:linear-gradient(160deg,#7F6AAE,#2A1F44)}
.lay-ticket .cw-cover img{width:100%;height:100%;object-fit:cover;display:block}
.lay-ticket .cw-cover img:not(:first-child){display:none}
.lay-ticket .cw-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.55))}
.lay-ticket .cw-av{position:absolute;left:14px;top:232px;z-index:2}
.lay-ticket .cw-avatar{width:54px;height:54px;border:2px solid #fff;box-shadow:none}
.lay-ticket .cw-avatar-fallback{font-size:22px}
.lay-ticket .cw-cam{width:22px;height:22px;right:-4px;bottom:-2px}
.lay-ticket .cw-nm{position:absolute;left:80px;right:14px;top:240px;z-index:2;justify-content:flex-start}
.lay-ticket .cw-nm h1{color:#fff;font-size:20px;margin:0;text-shadow:0 2px 10px rgba(0,0,0,.4);outline-color:rgba(255,255,255,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lay-ticket .cw-nm .cw-pen{color:#fff}
.lay-ticket .cw-socials{justify-content:flex-start;padding:14px 18px 6px;min-height:20px}
.lay-ticket .cw-so.add{border-color:#D9CFBF;color:#A0937E}
.lay-ticket .cw-perf{display:block;position:relative;height:24px;background:#FBF8F2;border-radius:0 0 20px 20px}
.lay-ticket .cw-perf:before{content:"";position:absolute;left:18px;right:18px;top:8px;border-top:2px dashed #D9CFBF}
.lay-ticket .cw-perf i{position:absolute;top:-2px;width:22px;height:22px;border-radius:50%;background:rgba(30,20,52,.92)}
.lay-ticket .cw-perf i:first-child{left:-11px}.lay-ticket .cw-perf i:last-child{right:-11px}
.lay-ticket .cw-blocks{margin-top:14px;gap:6px}
.lay-ticket .cw-blk.link{--fill:#FFFFFF!important;--fill-op:.08!important;--btx:#F4F2FA!important;--btx2:#B8B2CC!important;border-radius:14px!important;min-height:52px;padding:10px 16px}
.lay-ticket .cw-blk.link:before{border-radius:14px!important}
.lay-ticket .cw-blk.link .lg{width:30px;height:30px}
.lay-ticket .cw-blk.text:not(.bare){--fill:#FBF8F2!important;--fill-op:1!important;--btx:#3B3326!important;border-radius:16px}
.lay-ticket .cw-pics3{gap:4px;border-radius:16px;overflow:hidden}
.lay-ticket .cw-pics3 img,.lay-ticket .cw-pics3 .cw-ph{border-radius:0}
.lay-ticket .cw-foot img{filter:invert(1)}
.lay-ticket .cw-addbig{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35);color:#E6DEF5;margin-top:14px}
.lay-ticket .cw-eb>.cw-blk,.lay-ticket .cw-eb>.cw-pics3,.lay-ticket .cw-eb>.cw-swipe{outline-color:rgba(255,255,255,.35)}

/* ---------- 手帐：拍立得头像 + 贴纸链接 + 横线便签 ---------- */
.cw.lay-journal{--tx:#4A3B28;--tx2:#7A6A55;background:radial-gradient(#E9D9BF 1px,transparent 1px) 0 0/16px 16px,linear-gradient(rgba(255,248,238,.92),rgba(255,248,238,.92)),var(--th)}
.lay-journal .cw-av{background:#fff;padding:8px 8px 26px;box-shadow:0 8px 20px rgba(90,60,20,.15);transform:rotate(-3deg);margin-top:12px}
.lay-journal .cw-av:before{content:"";position:absolute;left:50%;top:-10px;width:70px;height:20px;margin-left:-35px;background:rgba(253,139,168,.6);transform:rotate(4deg);z-index:1}
.lay-journal .cw-avatar{width:150px;height:170px;border-radius:0;border:0;box-shadow:none}
.lay-journal .cw-avatar-fallback{font-size:48px}
.lay-journal .cw-cam{right:-8px;bottom:-8px}
.lay-journal .cw-nm h1{font-size:24px;margin-top:10px}
.lay-journal .cw-blocks{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:12px 10px;margin-top:8px}
.lay-journal .cw-eb{flex:1 1 100%;min-width:0}
.lay-journal .cw-eb[data-block-type="link"]{flex:0 0 auto;width:auto}
.lay-journal .cw-blk.link{--fill:var(--stk,#FFE0E6)!important;--fill-op:1!important;--btx:#3B2F22!important;min-height:0;padding:9px 16px 9px 10px;gap:8px;border-radius:14px!important;box-shadow:0 3px 0 rgba(0,0,0,.12);transform:rotate(var(--r,-2deg));font-weight:900}
.lay-journal .cw-blk.link:before{border-radius:14px!important}
.lay-journal .cw-blk.link .lg{width:26px;height:26px;font-size:11px}
.lay-journal .cw-blk.link .lg img{width:14px;height:14px}
.lay-journal .cw-blk.link small,.lay-journal .cw-blk.link .go{display:none}
.lay-journal .cw-blk.link b{font-size:14px}
.lay-journal .cw-eb:nth-child(4n+1) .cw-blk.link{--stk:#FFE0E6;--r:-2deg}
.lay-journal .cw-eb:nth-child(4n+2) .cw-blk.link{--stk:#DDF2FB;--r:2deg}
.lay-journal .cw-eb:nth-child(4n+3) .cw-blk.link{--stk:#FFE7D6;--r:-1deg}
.lay-journal .cw-eb:nth-child(4n) .cw-blk.link{--stk:#E9E3FA;--r:3deg}
.lay-journal .cw-blk.text:not(.bare){--fill:#FFFFFF!important;--fill-op:1!important;--btx:#5B4C38!important;border-radius:4px!important;line-height:28px;box-shadow:0 2px 8px rgba(90,60,20,.1)}
.lay-journal .cw-blk.text:not(.bare):before{border-radius:4px!important;background:repeating-linear-gradient(#fff 0 27px,#F3E8D6 27px 28px)}
.lay-journal .cw-blk.img{background:#fff;padding:8px 8px 24px;border-radius:2px!important;box-shadow:0 8px 20px rgba(90,60,20,.15);transform:rotate(-1.5deg);width:min(100%,320px)!important}
.lay-journal .cw-blk.img:before{display:none}
.lay-journal .cw-blk.img img{aspect-ratio:4/3}
.lay-journal .cw-blk.img small{color:#7A6A55;text-align:center;padding:8px 4px 0}
.lay-journal .cw-pics3{gap:10px;padding:4px}
.lay-journal .cw-pics3 img,.lay-journal .cw-pics3 .cw-ph{border-radius:0!important;border:6px solid #fff;border-bottom-width:18px;box-shadow:0 6px 14px rgba(90,60,20,.15);aspect-ratio:4/5;box-sizing:border-box}
.lay-journal .cw-pics3>:nth-child(1){transform:rotate(-4deg)}.lay-journal .cw-pics3>:nth-child(2){transform:rotate(2deg)}.lay-journal .cw-pics3>:nth-child(3){transform:rotate(-1deg)}
.lay-journal .cw-blk.sec b{font-size:17px}
.lay-journal .cw-addbig{background:rgba(255,255,255,.7);border-color:#E3C9A6;color:#9A6B3A}
.lay-journal .cw-foot img{filter:none}
/* @识别码（负责人 2026-10-28）：名字下面单独一行；不显示 UID（2026-10-30） */
.cw-nm{flex-wrap:wrap}
.cw-nm .cw-handle{flex-basis:100%;margin-top:2px;font-size:12px;font-weight:600;opacity:.62;text-align:center;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.lay-portfolio .cw-nm .cw-handle,.lay-ticket .cw-nm .cw-handle{text-align:left}
.lay-ticket .cw-nm .cw-handle{color:#fff;opacity:.85;text-shadow:0 1px 6px rgba(0,0,0,.4)}
