/* Irivi 创作者卡片公开页 /u/<账号>（REFACTOR_PLAN 3.12c）
   对照 design/ui-2026-10-21/creator/creator.html#pub / #night。卡片本体沿用 static/app/creator.css 的 .cw-* 样式，
   这里只放公开页特有的部分：页面底、顶部字标与按钮、去掉编辑器的虚线框、分享提示、嵌入模式、文字对比度。 */
html,body{margin:0}
body[data-page="creator_public"]{min-height:100vh;background:#F3EEFB;overflow-x:clip}
.cw.cw-pub{min-height:100vh;display:flex;justify-content:center;background:var(--th)}
.cw-pubin{width:100%;max-width:440px;position:relative;display:flex;flex-direction:column}
.cw-pub .cw-page{padding-bottom:28px}
.cw-pub .cw-card{padding-top:22px}
.cw-ptop{display:flex;align-items:center;gap:8px;padding:14px 16px 0;position:relative;z-index:3}
.cw-wm{display:inline-flex}.cw-wm img{height:20px;opacity:.8}
.th-light .cw-wm img,.th-light .cw-foot img,.lay-ticket .cw-wm img{filter:invert(1)}
.cw-pbtn{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 14px;border-radius:999px;border:0;background:rgba(255,255,255,.86);color:#24212A;font:inherit;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer;white-space:nowrap}
.cw-pbtn svg{width:16px;height:16px}
.cw-pbtn.icon{width:34px;padding:0;justify-content:center}
.cw-pbtn.p{background:var(--brand);color:#fff}
.th-light .cw-pbtn:not(.p){background:rgba(255,255,255,.14);color:#F4F2FA}
/* 公开页没有编辑态：去掉虚线框、允许选择文字 */
.cw-pub .cw-eb{touch-action:auto;-webkit-user-select:auto;user-select:auto}
.cw-pub .cw-eb>.cw-blk,.cw-pub .cw-eb>.cw-pics3,.cw-pub .cw-eb>.cw-swipe,.cw-pub .cw-nm h1{outline:0!important;cursor:auto}
.cw-pub a.cw-blk,.cw-pub .cw-so,.cw-pub .cw-pic-link{cursor:pointer}
.cw-pub .cw-blk.link{transition:transform var(--t-fast) var(--ease-out)}
.cw-pub .cw-blk.link:active{transform:scale(.98)}
.cw-pub .cw-blk.link .go svg{width:16px;height:16px}
.cw-pub .cw-blk.link .cw-lk{min-width:0}
.cw-pub .cw-so{text-decoration:none}
.cw-pub .cw-so span{font-size:13px}
.cw-pub .cw-av a{display:block;border-radius:inherit;text-decoration:none;color:inherit}
.cw-pub figure.cw-blk{margin:0}
.cw-pub .cw-blk.img a{display:block}
.cw-pub .cw-blk.img figcaption small{display:block;padding:8px 14px 10px;font-size:12px}
.cw-pub .cw-pics3>a,.cw-pub .cw-swipe>a{display:block;min-width:0}
.cw-pub .cw-pics3>a img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;display:block}
.cw-pub .cw-swipe>a{width:42%;flex:none;scroll-snap-align:start}.cw-pub .cw-swipe>a img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px;display:block}
.cw-pub .cw-foot a{display:inline-flex}
.cw-pub-empty{display:block;padding:18px;border-radius:16px;border:2px dashed rgba(36,33,42,.45);background:rgba(255,255,255,.6);color:var(--brand);font-weight:800;text-align:center;text-decoration:none}
/* 4.8 新块 section_title：默认左对齐、标题下有分隔线 */
.cw-blk.sec.has-divider b{display:flex;align-items:center;gap:8px}
.cw-blk.sec.has-divider b:after{content:"";flex:1;height:1px;background:currentColor;opacity:.25}
.cw-blk.sec.align-center.has-divider b:before{content:"";flex:1;height:1px;background:currentColor;opacity:.25}
/* 文字对比度：creator-public.js 按块填充色写入 --btx / --btx2（与编辑器相同的算法） */
.cw-pub .cw-blk{color:var(--btx,var(--tx))}
.cw-pub .cw-blk.link small,.cw-pub .cw-blk.img small,.cw-pub .cw-blk.link .go{color:var(--btx2,var(--tx2))}
.cw-pub .cw-blk.text.bare,.cw-pub .cw-blk.sec,.cw-pub .cw-blk.gap{color:var(--tx)}
.cw-pub .cw-blk.sec small{color:var(--tx2)}
/* 分享提示（#creatorShareState，creator_public_v2_02_06.js 切换 .show） */
.creator-share-state{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%,12px);opacity:0;pointer-events:none;background:rgba(36,33,42,.92);color:#fff;font-size:13px;font-weight:800;padding:10px 16px;border-radius:999px;transition:opacity var(--t-base) var(--ease-out),transform var(--t-base) var(--ease-out);z-index:50}
.creator-share-state.show{opacity:1;transform:translate(-50%,0)}
.creator-editor-add{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:40}
/* 个人主页里的 iframe 预览（?preview=1&embed=profile）：没有顶栏，留白收紧 */
.creator-card-profile-embed .cw.cw-pub{min-height:100%}
.creator-card-profile-embed .cw-pub .cw-card{padding-top:18px}
/* 经典版式：封面与打孔线不显示，头部子元素照常排列（低优先级，作品集/票根/手帐版式会覆盖） */
:where(.cw-pub) .cw-cover,:where(.cw-pub) .cw-perf{display:none}
:where(.cw-pub) .cw-head{display:contents}
