/* Irivi 创作者卡片 数据模型 v2 的通用样式（开发指令 2026-11-07 P0）。
   值都由服务端按白名单拼成 CSS 变量 / 内联声明（process/creator/card_render），这里只放规则。
   没有设置 v2 样式的旧卡片不会带这些类，外观与以前一致。 */
.cw-pubin,.cw-pub .cw-card{max-width:var(--cw-maxw,440px)}
/* 头部：一句话身份与简介（1.2） */
.cw-nm .cw-headline,.cw-nm .cw-bio{flex-basis:100%;width:100%;text-align:center}
.lay-magazine .cw-nm .cw-headline,.lay-magazine .cw-nm .cw-bio,.lay-polaroid .cw-nm .cw-headline,.lay-polaroid .cw-nm .cw-bio{text-align:left;padding:0 4px}
.lay-magazine .cw-nm .cw-headline,.lay-magazine .cw-nm .cw-bio{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.3)}
.cw-headline{margin:6px 0 0;font-size:14px;font-weight:800;line-height:1.5;color:var(--tx)}
.cw-bio{margin:6px 0 0;font-size:13px;line-height:1.7;color:var(--tx2);white-space:pre-line;overflow-wrap:anywhere}
/* 文本块：标题与正文分开（1.1），正文是富文本 */
.cw-blk.text .cw-tt{display:block;font-size:1.1em;font-weight:900;line-height:1.4;margin:0 0 6px}
.cw-blk.text .cw-rt{white-space:normal;overflow-wrap:anywhere}
.cw-rt>:first-child{margin-top:0}.cw-rt>:last-child{margin-bottom:0}
.cw-rt p{margin:0;min-height:1em;white-space:pre-wrap}
.cw-rt h3{margin:8px 0 4px;font-size:1.08em;font-weight:900}
.cw-rt blockquote{margin:6px 0;padding:2px 0 2px 10px;border-left:3px solid currentColor;opacity:.85}
.cw-rt ul,.cw-rt ol{margin:4px 0;padding-left:1.4em}
.cw-rt hr{border:0;border-top:1px solid currentColor;opacity:.25;margin:10px 0}
.cw-rt a{color:inherit;text-decoration:underline;text-underline-offset:2px}
/* 自定义圆角、文字色、玻璃模糊、颗粒 */
.cw-blk.has-r:before{border-radius:var(--cw-r)}
.cw-pics3.has-r img,.cw-swipe.has-r img{border-radius:var(--cw-r)}
.cw-pub .cw-blk.has-tx,.cw-blk.has-tx small,.cw-blk.has-tx .go{color:var(--cw-tx)}
.cw-blk.has-blur:before{-webkit-backdrop-filter:blur(var(--cw-blur));backdrop-filter:blur(var(--cw-blur))}
.cw-blk.has-grain:after,.cw-bgfilter.has-grain:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:.18;mix-blend-mode:overlay;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>")}
/* 背景滤镜（4.1） */
.cw-bgfilter{position:fixed;inset:0;z-index:0;pointer-events:none;-webkit-backdrop-filter:blur(var(--cw-fblur,0));backdrop-filter:blur(var(--cw-fblur,0))}
.cw-pub.has-filter .cw-pubin{z-index:1}
/* 宽度：半行 / 三分之一（两个半行块并排） */
.cw-blocks.has-w{flex-direction:row;flex-wrap:wrap}
.cw-blocks.has-w>.cw-eb{width:100%}
.cw-blocks.has-w>.cw-eb.w-half{width:calc(50% - 5px)}
.cw-blocks.has-w>.cw-eb.w-third{width:calc(33.333% - 7px)}
/* 动效：入场与按钮强调（每 6 秒一次）；系统“减少动态效果”时不动 */
@media (prefers-reduced-motion:no-preference){
  .cw-eb.mo-fade{animation:cw-v2-fade .5s ease both}
  .cw-eb.mo-slide-up{animation:cw-v2-up .5s ease both}
  .cw-blk.mo-shake{animation:cw-v2-shake 6s ease-in-out infinite}
  .cw-blk.mo-breathe{animation:cw-v2-breathe 6s ease-in-out infinite}
}
@keyframes cw-v2-fade{from{opacity:0}to{opacity:1}}
@keyframes cw-v2-up{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes cw-v2-shake{0%,90%,100%{transform:none}92%{transform:rotate(-2deg)}94%{transform:rotate(2deg)}96%{transform:rotate(-1deg)}98%{transform:rotate(1deg)}}
@keyframes cw-v2-breathe{0%,85%,100%{transform:none}92%{transform:scale(1.03)}}
/* ---------- 第 2 批（开发指令 v2 第 3.1、3.3、3.4、4.1、4.3 节） ---------- */
/* 3.1 头像：形状 / 大小 / 外圈（颜色或品牌渐变，由服务端按白名单拼进 --cw-ring） */
.cw-av.av-sized .cw-avatar{width:var(--cw-av);height:var(--cw-av)}
.cw-av.av-rounded .cw-avatar{border-radius:24%}
.cw-av.av-square .cw-avatar{border-radius:6px}
.cw-av.av-noring .cw-avatar{border:0}
.cw-av.av-ring .cw-avatar{border:3px solid transparent;background:linear-gradient(#fff,#fff) padding-box,var(--cw-ring) border-box}
.cw-av.av-ring .cw-avatar-fallback{background:linear-gradient(var(--brand-soft,#F3EEFB),var(--brand-soft,#F3EEFB)) padding-box,var(--cw-ring) border-box}
/* 3.1 徽章与身份小标签、左对齐 */
.cw-badges{display:inline-flex;gap:4px;vertical-align:middle;margin-left:6px}
.cw-badge{font-style:normal;font-size:11px;font-weight:800;line-height:18px;padding:0 7px;border-radius:999px;background:#FCE4EC;color:#B4235A}
.cw-badge.verified{background:#E3F2FD;color:#1E5AA8}
.cw-tags{flex-basis:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px}
.cw-tags i{font-style:normal;font-size:12px;font-weight:700;line-height:22px;padding:0 9px;border-radius:999px;background:rgba(255,255,255,.7);color:#24212A}
.th-light .cw-tags i{background:rgba(255,255,255,.14);color:var(--tx)}
.cw-head.hd-left>.cw-av,.cw-head.hd-left>.cw-nm,.cw-head.hd-left>.cw-socials{align-self:stretch}
.cw-head.hd-left .cw-nm{justify-content:flex-start;text-align:left}
.cw-head.hd-left .cw-nm .cw-headline,.cw-head.hd-left .cw-nm .cw-bio,.cw-head.hd-left .cw-handle{text-align:left}
.cw-head.hd-left .cw-tags{justify-content:flex-start}
/* 3.1 简介 / 3.3 长文本：超过 N 行折叠（脚本发现确实超出时才显示“展开”） */
.is-folded{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--cw-fold);line-clamp:var(--cw-fold);overflow:hidden}
.is-folded.is-open{display:block;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible}
.cw-more{border:0;background:none;padding:2px 0;margin:2px auto 0;font:inherit;font-size:13px;font-weight:800;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.cw-blk.text .cw-more{display:block;margin:4px 0 0}
/* 3.4 分区标题装饰符号 */
.cw-blk.sec .cw-deco{display:inline-block;margin:0 .35em;font-weight:400}
/* 3.4 分隔线：实线 / 虚线 / 点线 / 波浪 / 装饰符号行；宽度 整行 / 60% / 30% */
.cw-pub .cw-blk.dvd,.cw-blk.dvd{background:none;color:var(--cw-dv,var(--tx));min-height:14px;display:flex;align-items:center;justify-content:center;margin:0 auto}
.cw-blk.dvd:before{display:none}
.cw-blk.dvd.w-full{width:100%}.cw-blk.dvd.w-60{width:60%}.cw-blk.dvd.w-30{width:30%}
.cw-blk.dvd.line-solid:after,.cw-blk.dvd.line-dashed:after,.cw-blk.dvd.line-dotted:after{content:"";display:block;width:100%;border-top:1.5px solid currentColor;opacity:.6}
.cw-blk.dvd.line-dashed:after{border-top-style:dashed}.cw-blk.dvd.line-dotted:after{border-top-style:dotted;border-top-width:2.5px}
.cw-blk.dvd.line-wave:after{content:"";display:block;width:100%;height:8px;background:currentColor;opacity:.7;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='8'><path d='M0 4 Q4 0 8 4 T16 4' fill='none' stroke='black' stroke-width='1.5'/></svg>") repeat-x left center/16px 8px;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='8'><path d='M0 4 Q4 0 8 4 T16 4' fill='none' stroke='black' stroke-width='1.5'/></svg>") repeat-x left center/16px 8px}
.cw-blk.dvd.line-symbols span{font-size:15px;letter-spacing:.3em;white-space:nowrap;overflow:hidden;text-overflow:clip}
/* 2.3 / 4.3 装饰框（按钮样式库的四角括号、贴纸、票根也用这些类）。【需预览】：样式随预览定稿再细调 */
.cw-blk.frame-brackets{background:none}
.cw-blk.frame-brackets:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:0;
  background:linear-gradient(currentColor,currentColor) left top/14px 1.5px,linear-gradient(currentColor,currentColor) left top/1.5px 14px,
  linear-gradient(currentColor,currentColor) right top/14px 1.5px,linear-gradient(currentColor,currentColor) right top/1.5px 14px,
  linear-gradient(currentColor,currentColor) left bottom/14px 1.5px,linear-gradient(currentColor,currentColor) left bottom/1.5px 14px,
  linear-gradient(currentColor,currentColor) right bottom/14px 1.5px,linear-gradient(currentColor,currentColor) right bottom/1.5px 14px;background-repeat:no-repeat}
.cw-blk.frame-tape:after,.cw-blk.frame-sticker:after{content:"";position:absolute;left:50%;top:-8px;width:56px;height:16px;transform:translateX(-50%) rotate(-3deg);background:rgba(255,236,170,.85);box-shadow:0 1px 2px rgba(0,0,0,.08);pointer-events:none}
.cw-eb:nth-child(odd)>.cw-blk.frame-sticker{transform:rotate(-1.5deg)}.cw-eb:nth-child(even)>.cw-blk.frame-sticker{transform:rotate(1.5deg)}
.cw-blk.frame-ticket{-webkit-mask:radial-gradient(circle 7px at left center,transparent 6.5px,#000 7px) left/51% 100% no-repeat,radial-gradient(circle 7px at right center,transparent 6.5px,#000 7px) right/51% 100% no-repeat;mask:radial-gradient(circle 7px at left center,transparent 6.5px,#000 7px) left/51% 100% no-repeat,radial-gradient(circle 7px at right center,transparent 6.5px,#000 7px) right/51% 100% no-repeat}
.cw-blk.frame-sketch{outline:1.5px solid currentColor;outline-offset:3px;border-radius:12px 18px 10px 16px}
/* ---------- 编辑器（第 2 批）：头部可点区域、富文本工具栏、装饰与符号预设、渐变色块、字体选择 ---------- */
.cw-hdedit{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;cursor:pointer;border-radius:12px;padding:4px 6px;text-align:center}
.cw-head.hd-left .cw-hdedit{align-items:flex-start;text-align:left}
.cw-hdedit .cw-headline,.cw-hdedit .cw-bio{display:block;margin:0}
.cw-hdedit .cw-headline.is-empty{font-weight:700;opacity:.7}
.cw-hdedit .cw-tags:empty{display:none}
.cw:not(.cw-pub):not(.is-preview) .cw-hdedit{outline:1.5px dashed var(--cw-edit-line,rgba(36,33,42,.25));outline-offset:2px}
.cw.is-preview .cw-hdedit{outline:0;cursor:auto}
.cw.is-preview .cw-hdedit .cw-headline.is-empty{visibility:hidden}
.cw-rtbar{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 6px}
.cw-rtbar button{height:30px;min-width:30px;padding:0 8px;border:1px solid #E4E0EC;border-radius:8px;background:#fff;font:inherit;font-size:12px;cursor:pointer}
.cw-rtc{display:inline-flex;align-items:center;gap:4px}.cw-rtc input{width:30px;height:30px;padding:0;border:1px solid #E4E0EC;border-radius:8px;background:#fff}
/* 局部文字颜色（负责人 2026-11-11 安卓截图：手机上原生取色框被全站的色板增强展开在工具条里，挤得“会员”小标竖排、色格一行 6 个右边空着）：
   工具条里改成“● 文字颜色 会员”按钮（不换行），点开后在工具条下方整行显示取色；手机色板铺满宽度 */
.cw-rtbar button.cw-rtc{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;flex:none}
.cw-rtc-dot{display:inline-block;width:14px;height:14px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);flex:none}
.cw-rtc .cw-vip{flex:none;white-space:nowrap;margin:0}
.cw-rtc-pop{flex:1 0 100%;width:100%;display:flex;align-items:center;gap:8px}
.cw-rtc-pop[hidden]{display:none}
.cw-rtc-pop input[type=color]{width:44px;height:34px;padding:0;border:1px solid #E4E0EC;border-radius:8px;background:#fff}
.cw-rtc-pop .tag-color-palette{grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}
.cw-rte{min-height:120px;overflow:auto;white-space:pre-wrap}
.cw-rte p,.cw-rte h3,.cw-rte blockquote,.cw-rte ul,.cw-rte ol{margin:0 0 4px}.cw-rte blockquote{border-left:3px solid #D9D3E5;padding-left:8px}
.cw-decos{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.cw-decos button{min-width:36px;height:32px;padding:0 10px;border:1px solid #E4E0EC;border-radius:999px;background:#fff;font:inherit;cursor:pointer}
.cw-decos button.on{border-color:#24212A;box-shadow:0 0 0 1px #24212A}
.cw-sw input[type=color],.cw-fd input[type=color]{width:30px;height:30px;padding:0;border:1px solid #E4E0EC;border-radius:50%;background:none;vertical-align:middle}
.cw-gstops{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.cw-gstop{display:inline-flex;align-items:center;gap:2px}.cw-gstop input{width:38px;height:38px;padding:0;border:1px solid #E4E0EC;border-radius:10px}
.cw-filters{margin:6px 0}
.cw-fontsel select{max-width:60%}
.cw-pvw .dv{display:block;width:70%;margin:14px auto 0;border-top:2px dashed currentColor;opacity:.55}

/* 字体说明（负责人 2026-11-11：文本块面板给完整字体列表；设计面板里是整张卡片默认字体） */
