/* 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)}
/* 背景图“固定”：原来直接用 background-attachment:fixed，iOS Safari 不支持（退成按整页拉伸），整页截图里也只铺第一屏、
   下面露出页面底色。改为 position:fixed 的伪元素继承根节点的背景（含版式叠层），始终正好盖住视口；
   根节点 isolation 让伪元素的 z-index:-1 留在卡片内容之下、页面底色之上。 */
.cw.cw-pub.bg-fixed{isolation:isolate}
.cw.cw-pub.bg-fixed::before{content:"";position:fixed;inset:0;z-index:-1;background:inherit;pointer-events:none}
.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:calc(14px + env(safe-area-inset-top,0px)) 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}
/* 顶栏窄屏（负责人 2026-11-11）：按钮不被压缩、不换行；≤430 宽“分享”只留图标，≤340 宽“编辑卡片”也只留图标（aria-label 保留） */
.cw-ptop>*{flex-shrink:0}
.cw-ptop>.cw-sp{flex:1 1 0;min-width:0}
@media (max-width:430px){.cw-ptop{gap:6px;padding-left:14px;padding-right:12px}#creatorShare{width:34px;padding:0;justify-content:center}#creatorShare .cw-pbtn-t{display:none}.cw-pbtn{padding:0 12px}}
/* 本人查看自己的卡片：右下角浮“编辑”胶囊（白底墨字 + 铅笔，负责人 2026-11-11） */
.cw-edit-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:60;display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 18px;border-radius:999px;background:#fff;color:#24212A;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;box-shadow:0 6px 20px rgba(0,0,0,.28)}
.cw-edit-fab svg{width:18px;height:18px}
.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}
/* 他人卡片上的关注按钮（#creatorFollow，creator-public.js，负责人 2026-11-07） */
.cw-follow-row{display:flex;justify-content:center;padding:10px 16px 0}
.lay-portfolio .cw-follow-row,.lay-polaroid .cw-follow-row{justify-content:flex-start;padding-left:20px}
.cw-follow{min-width:96px;height:36px;padding:0 20px;border:0;border-radius:999px;background:var(--brand,#7349D8);color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.cw-follow.is-following{background:rgba(255,255,255,.86);color:#24212A;box-shadow:inset 0 0 0 1.5px rgba(36,33,42,.18)}
.th-light .cw-follow.is-following{background:rgba(255,255,255,.14);color:#F4F2FA;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.35)}
.cw-follow[aria-disabled="true"]{cursor:default}
/* 交易安全配套（开发指令 2026-11-12 §5.2-1）：免责一行用卡片正文颜色（继承文字色，不用灰色说明字），居中，所有版式一致 */
.cw-disclaimer{margin:16px 18px 6px;font-size:13px;line-height:1.6;text-align:center;color:inherit;font-weight:500}
.pg-page .cw-disclaimer{margin:6px 8px 0;font-size:11px;line-height:1.4}
/* 游客看到的联系方式块收起（§5.2-3）：第二行“显示联系方式”与正文同色 */
.cw-blk.is-locked small,.cw-blk.cpy.is-locked b{opacity:1}

/* ================================================================ 固定画布（负责人 2026-11-14 17:13 / 17:40） ================================================================
   卡片不做分机型适配：卡片（.cw-card）按 iPhone 17 的逻辑尺寸（--cv-w × --cv-h = 402×874，不提供比例选项）排版，任何设备上把可视区域（扣掉顶栏）当画布，
   按比例完整放入（contain），用 transform: scale(--cv-s) 等比缩放（倍数由 creator-canvas.js 算，写在 <html> 上），其余地方全是背景。
   顶栏在画布外、宽度跟卡片（最窄 360，横屏手机上卡片很小时顶栏也放得下）。卡片里的尺寸单位用 cqw / cqh（容器 = 卡片本身），
   不用 vw / vh / 媒体查询，所以同一张卡片在所有设备上排版一样。只用于翻页版式（负责人 17:57；模板里 canvas = paged），
   经典 / 作品集不套、照旧一列往下滑；分页细节见 creator-pager.css。下面“不分页时”的规则只在分页脚本没跑起来（无脚本 / 4 秒没建好）时兜底：卡片内滚动。 */
html:has(>body.creator-card-canvas),body.creator-card-canvas{height:100%;overflow:hidden;overscroll-behavior:none}
.cw.cw-pub.cw-canvas{height:100vh;height:100dvh;min-height:0;overflow:hidden;align-items:center;justify-content:center}
.cw-pub.cw-canvas .cw-pubin{flex:none;width:max(calc(var(--cv-w,402) * var(--cv-s,1) * 1px),min(100%,360px));max-width:100%;height:auto}
.cw-pub.cw-canvas .cw-ptop{flex:none;padding-bottom:6px}
.cw-pub.cw-canvas .cw-page{flex:none;position:relative;width:100%;height:calc(var(--cv-h,874) * var(--cv-s,1) * 1px);padding:0;margin:0;display:block}
.cw-pub.cw-canvas .cw-card{position:absolute;left:50%;top:0;width:calc(var(--cv-w,402) * 1px);height:calc(var(--cv-h,874) * 1px);max-width:none;min-height:0;margin:0 0 0 calc(var(--cv-w,402) * -.5px);
  transform:scale(var(--cv-s,1));transform-origin:50% 0;container:cwcanvas / size;box-sizing:border-box}
/* 翻页版式没建好页时（无脚本 / 分页失败）：卡片是一张有底色的卡（圆角 + 阴影），内容在卡片里滚动 */
html:not(.pg-on) .cw-pub.cw-canvas .cw-card{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:22px 20px 28px;border-radius:22px;background:var(--th);box-shadow:0 18px 50px rgba(20,12,40,.28)}
html:not(.pg-on) .cw-pub.cw-canvas .cw-card>*{flex-shrink:0}
